OIL_VERSION = "2.5"; IMPLEMENTATION trampoline { /* This fix the default STACKSIZE of tasks */ TASK { UINT32 STACKSIZE = 300 ; } ; /* This fix the default STACKSIZE of ISRs */ ISR { UINT32 STACKSIZE = 200 ; } ; }; CPU readbutton { OS config { STATUS = EXTENDED; BUILD = TRUE { TRAMPOLINE_BASE_PATH = "../../../../../.."; APP_SRC = "readbutton_isr1.c"; APP_NAME = "readbutton_isr1_exe"; CFLAGS = "-O0 -g3 -gdwarf-2 -ggdb"; //gdb usage LDFLAGS = "-Map=readbutton_isr1.map"; COMPILER = "msp430-elf-gcc"; ASSEMBLER = "msp430-elf-gcc"; LINKER = "msp430-elf-ld"; COPIER = "msp430-elf-objcopy"; SYSTEM = PYTHON; }; SYSTEM_CALL = TRUE; MEMMAP = TRUE { COMPILER = gcc; LINKER = gnu_ld { SCRIPT = "script.ld"; }; ASSEMBLER = gnu_as; MEMORY_PROTECTION = FALSE; }; }; APPMODE std {}; TASK blink { PRIORITY = 1; AUTOSTART = FALSE; ACTIVATION = 1; SCHEDULE = FULL; }; ALARM blink_alarm { COUNTER = SystemCounter; ACTION = ACTIVATETASK { TASK = blink; }; AUTOSTART = TRUE { APPMODE = std; ALARMTIME = 100; CYCLETIME = 100; }; }; ISR buttonS1 { CATEGORY = 1; PRIORITY = 1; SOURCE = PORT5_VECTOR { BIT = 6; }; /* Button S1 is on GPIO port 5, bit 6 */ }; };