rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
board_extra.c
Go to the documentation of this file.
1#include "hal.h"
2#include "stm32_gpio.h"
3
4#define PROMETHEUS_LED 13
5
6// BLIIINK!!!!!!!!!!
7void BLIIINK(int t) {
8 int i, j;
9 palSetPadMode(GPIOA, PROMETHEUS_LED, PAL_MODE_OUTPUT_PUSHPULL);
10 //while (true) {
11 for (j = 0; j < 2; j++) {
12 palClearPad(GPIOA, PROMETHEUS_LED);
13 for (i = 0; i < 2*t; i++) {
14 palTogglePad(GPIOA, PROMETHEUS_LED);
15 chThdSleepMilliseconds(250);
16 }
17 chThdSleepMilliseconds(1000);
18 }
19}
20
void BLIIINK(int t)
Definition board_extra.c:7