ESIEE, Slide 25 Copyright © 2003 Texas Instruments. All rights reserved. Int i; /*global var*/ {HWI_enter(MASKS) i++; i++; SWI_post(&swiAudio) SWI_pos
{"Image DocumentName": "Writing an ISR in CInt i; / global var / { HWI_enter(MASKS) i++; SWI_post(&swiAudio) HWI_exit(MASKS)", "Image ImageDescription": "} void isr1(void) ISR can be purely in C if no scheduling APIs are called. Declare as interrupt void isr1(void) Don\u2019t use interrupt keyword if calling with HWI_enter and HWI_exit ISR! HWI_exit does a return from interrupt. Complete discussion on Program Startup sequence coming up. Note here that the main() function can do any system initialization that needs to be performed before interrupts and the thread schedulers are enabled. The main() function MUST return before the rest of the BIOS initialization steps complete.", "Image XResolution": "37", "Image YResolution": "37", "Image ResolutionUnit": "Pixels/Centimeter", "Image Software": "SlidePlayer", "Image YCbCrPositioning": "Centered"}