#include "project.h" #define LED (GPIO3) #define LED_PORT GPIOB void led_init (void) { MAP_OUTPUT_PP (LED); } void led_clear (void) { CLEAR (LED); } void led_set() { gpio_set (LED_PORT, LED); } void led_slow_tick (void) { static int c; c = !c; if (c) led_set(); else led_clear(); }