Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions board/blue-pill/inc/board.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ extern "C" {
#if defined(USE_HAL)
#define LED HAL_GPIO_PC13
#elif defined(USE_DRIVERS)
// #define LED_PORT GPIOC
// #define LED_PIN GPIO_PIN_3
#define LED_PORT GPIOC
#define LED_PIN GPIO_PIN_3
#endif

/* === Public data type declarations =========================================================== */
Expand Down
3 changes: 2 additions & 1 deletion board/blue-pill/src/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ void BoardSetup(void) {
HAL_GPIO_WritePin(GPIOA, GPIO_PIN_3, GPIO_PIN_RESET);

/*Configure LED GPIO pin : PC13 */
GPIO_InitStruct.Pin = LED_PIN GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct.Pin = LED_PIN;
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
GPIO_InitStruct.Pull = GPIO_NOPULL;
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
HAL_GPIO_Init(LED_PORT, &GPIO_InitStruct);
Expand Down
4 changes: 2 additions & 2 deletions module/base/arch/cortex-m/makefile
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ AFLAGS += -mthumb

# Enable ARM Semihosting support
$(if $(findstring ENABLE_ARM_SEMIHOSTING,$(DEFINES)),\
$(eval SPECS = --specs=nano.specs --specs=rdimon.specs) \
$(eval SPECS ?= --specs=nano.specs --specs=rdimon.specs) \
$(eval LFLAGS += -l rdimon) \
, \
$(eval SPECS = --specs=nano.specs --specs=nosys.specs) \
$(eval SPECS ?= --specs=nano.specs --specs=nosys.specs) \
)

# Linker flags
Expand Down