smol-gilbraltar/test/test01.c

16 lines
332 B
C
Raw Normal View History

2024-12-20 22:45:12 +00:00
#include <led.h>
#include <timer.h>
/* The kernel should start and the LED should blink.
* The time between blinks should be "fairly" long (around 1s).
*/
void main(void) {
while (1) {
gilbraltar_led(false);
gilbraltar_delay_hot_loop(0x3f0000);
gilbraltar_led(true);
gilbraltar_delay_hot_loop(0x3f0000);
}
}