newcar/my_src/led.c

20 lines
258 B
C
Raw Normal View History

2018-03-19 19:29:45 +01:00
/*
* led.c
*
* Created on: Mar 19, 2018
* Author: wn
*/
#include "stm32f1xx_hal.h"
#include <PontCoopScheduler.h>
void blink(void *handle) {
HAL_GPIO_TogglePin(LED_GPIO_Port, LED_Pin);
}
void blinkInit() {
schAdd(blink, NULL, 0, 1000);
}