Other Parts Discussed in Thread: HALCOGEN
Good day. Is there an example of GIO buttons interrupt handle? I tried to google it and made this, but didnt work..:
In HALCoGen, I
- on Driver Enable enabled the gio driver,
- on GIO checked that the pin PORT A 7 is input enabled (default)
- on GIO also enabled the VIM route for that pin(default)
- on the INTERRUPT tab I left all as default (IRQ despach mode = vector mode)
- on the VIM channel 0-32 tab I enabled 9: GIO intA
- I initialized the GIO (and later also the VIM) in my sys_main.c
-
- enable_IRQ();
gioInit();
while(1); - set breakpoint in gio.c gioHighLevelInterrupt()
- enable_IRQ();