diff --git a/firmware/config/boards/prometheus/board.c b/firmware/config/boards/prometheus/board.c index 36f4d0cdd7..0f87f8007a 100644 --- a/firmware/config/boards/prometheus/board.c +++ b/firmware/config/boards/prometheus/board.c @@ -264,28 +264,3 @@ bool mmc_lld_is_write_protected(MMCDriver *mmcp) { void boardInit(void) { } -/** - * @brief Board-specific ADC channel configuration code overrides. - * @todo Add your board-specific code, if any. - */ -void setAdcChannelOverrides(void) { -} - - -#define PROMETHEUS_LED 13 - -// BLIIINK!!!!!!!!!! -void BLIIINK(int t) { - int i, j; - palSetPadMode(GPIOA, PROMETHEUS_LED, PAL_MODE_OUTPUT_PUSHPULL); - //while (true) { - for (j = 0; j < 2; j++) { - palClearPad(GPIOA, PROMETHEUS_LED); - for (i = 0; i < 2*t; i++) { - palTogglePad(GPIOA, PROMETHEUS_LED); - chThdSleepMilliseconds(250); - } - chThdSleepMilliseconds(1000); - } -} - diff --git a/firmware/config/boards/prometheus/board.mk b/firmware/config/boards/prometheus/board.mk index 4f39cbf190..f78c85ddec 100644 --- a/firmware/config/boards/prometheus/board.mk +++ b/firmware/config/boards/prometheus/board.mk @@ -1,5 +1,7 @@ # List of all the board related files. -BOARDSRC = $(PROJECT_DIR)/config/boards/prometheus/board.c +BOARDSRC = $(PROJECT_DIR)/config/boards/prometheus/board.c \ + $(PROJECT_DIR)/config/boards/prometheus/board_extra.c + BOARDSRC_CPP = $(PROJECT_DIR)/config/boards/Prometheus/board_configuration.cpp # Required include directories diff --git a/firmware/config/boards/prometheus/board_extra.c b/firmware/config/boards/prometheus/board_extra.c new file mode 100644 index 0000000000..b1c5e4c492 --- /dev/null +++ b/firmware/config/boards/prometheus/board_extra.c @@ -0,0 +1,28 @@ +#include "hal.h" +#include "stm32_gpio.h" + +/** + * @brief Board-specific ADC channel configuration code overrides. + * @todo Add your board-specific code, if any. + */ +void setAdcChannelOverrides(void) { +} + + +#define PROMETHEUS_LED 13 + +// BLIIINK!!!!!!!!!! +void BLIIINK(int t) { + int i, j; + palSetPadMode(GPIOA, PROMETHEUS_LED, PAL_MODE_OUTPUT_PUSHPULL); + //while (true) { + for (j = 0; j < 2; j++) { + palClearPad(GPIOA, PROMETHEUS_LED); + for (i = 0; i < 2*t; i++) { + palTogglePad(GPIOA, PROMETHEUS_LED); + chThdSleepMilliseconds(250); + } + chThdSleepMilliseconds(1000); + } +} +