diff --git a/lab5.c b/lab5.c index baa9472..b863abd 100644 --- a/lab5.c +++ b/lab5.c @@ -19,9 +19,23 @@ int main(void) while(1) { + GPIO_PORTF_DATA_R = 0x04; + } + +void GPIOIntHandler(void) + { + switch(z) + { + case 0: GPIO_PORTF_DATA_R = 0x02; + break; + + case 1: GPIO_PORTF_DATA_R = 0x00; + break; + + default : GPIO_PORTF_DATA_R = 0xFF; - + } }