mirror of
https://github.com/Polprzewodnikowy/SummerCart64.git
synced 2024-11-26 07:34:15 +01:00
18 lines
295 B
C
18 lines
295 B
C
#define LED *((volatile unsigned int *) 0x80000000)
|
|
|
|
volatile int counter = 0;
|
|
|
|
int main (void) {
|
|
while (1) {
|
|
if (counter++ == 0x000FFFFF) {
|
|
LED ^= 1;
|
|
counter = 0;
|
|
}
|
|
}
|
|
}
|
|
|
|
void irq_handler(void) {
|
|
LED = 1;
|
|
while (1);
|
|
}
|