The unified diff between revisions [81e4dce2..] and [d0420ebd..] is displayed below. It can also be downloaded as a raw diff.
This diff has been restricted to the following files: 'main.c'
# # old_revision [81e4dce274e79dd9187ed4bd182e1d6fc0fdfb37] # new_revision [d0420ebd87c820e33a32b29727989516e15980a8] # # patch "main.c" # from [b366dce1bedfd103e47161ada956b8569816f2f4] # to [958bdc83e26a4a7dda991daabf259c44079bc7c5] # ============================================================ --- main.c b366dce1bedfd103e47161ada956b8569816f2f4 +++ main.c 958bdc83e26a4a7dda991daabf259c44079bc7c5 @@ -7,6 +7,7 @@ #include "interrupt.h" #include "event.h" #include "stick.h" +#include "led.h" #define PINSEL0 (*((volatile unsigned int *) 0xE002C000)) #define PINSEL1 (*((volatile unsigned int *) 0xE002C004)) @@ -196,11 +197,11 @@ int main(void) { putstr("prompt> "); - FP0XVAL &= ~0x04000000; + led_set(FALSE); timer_delay_ms(1000); - FP0XVAL |= 0x04000000; + led_set(TRUE); timer_delay_ms(1000); - FP0XVAL &= ~0x04000000; + led_set(FALSE); if (!wmp_init()) putstr("WMP initialisation failed\r\n"); @@ -208,11 +209,11 @@ int main(void) { timer_set_period(5*TIMER_MS); wmp_start_zero(); - FP0XVAL |= 0x04000000; + led_set_pattern(led_pattern_active); /* Good luck! */ while (1) { - FP0XVAL ^= 0x04000000; + led_update(); event_dispatch(); }