This video presentation is the sixth installment of the Essentials of MQX RTOS Application Development training course. In this session, you will be introduced to interrupts, the scheduler, and the ISR table.
This training was created by Embedded Access Inc., a Freescale sponsored training provider and proven partner.
|Session 6 Course Line||Lab Outline|
First, watch the video for Session 6: Interrupts.
Then, follow through with the interactive lab assignment below.
Effective interrupt handling is a critical part of most any embedded system. There are a few steps you have to learn in order to set up and use interrupts but taking the time to understand these steps are well worth the benefits. In this lab we'll replace the code that polls the switches to monitor for changes in state with interrupt driven code. The reaction the system has to switch presses will be updated to reflect what we'll need them to do for our application.
The objective of this lab is to learn how to handle interrupts in MQX by converting the polled switch handling to interrupt driven switch handling.This objective will be accomplished by:
New functions/ structures you will use:
lwgpio_int_init, _int_install_isr, lwgpio_int_enable, _int_install_isr, lwgpio_int_get_vector, lwgpio_int_enable, _bsp_int_init, lwgpio_int_clear_flag
Need more help? The full source code for this lab can be found in the 'Lab Source Code' folder here.