29 lines
600 B
C
29 lines
600 B
C
|
#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);
|
||
|
}
|
||
|
}
|
||
|
|