Project Name: LEDButton_Callback Project Type: ADSP-BF533 [ ] ADSP-BF537 [X] ADSP-BF561 [ ] Hardware Used: EZ-Kit LEDs and Buttons System Services Components Used: DMA Manager [ ] Deferred Callback Manager [ ] Interrupt Manager [X] Timer Module [ ] Power Management Module [ ] Flag Module [X] External Bus Interface Unit Module [ ] Port Module [ ] Exa Example Overview: This program shows how to use the flag service to access LEDs and push buttons. This example uses three switches, and all of the LEDs. The LED's are turned off when the program starts. Callbacks are installed for the first and second button (SW13 and SW12). The callbacks call a function that sets the direction, based on which button was pressed. On startup the direction is set to 0. After returning from callback, a loop in main continually moves the LEDs in one direction or the other. SW13 (first button) - Scrolls LEDs to the right SW12 (second button) - Scrolls LEDs to the left SW11 (third button) - Halts the program File Structure: "./LEDButton_Callback.dpj" - main project file "./LEDButton_Callback.c" - main source file "./ezkitutilities.c" - EZ-Kit utilities source file for Blackfin processors "./ezkitutilities.h" - EZ-Kit utilities include file for Blackfin processors System Configuration: Jumpers: SW5 (push button enable switch) 1:ON, 2:ON, 3:ON, 4:ON External connections: None Getting Started: 1) Load Project file "LEDButton_Callback.dpj" 2) Build Project by selecting "Project->Rebuild Project" 3) Select "Debug->Run". 4) Press buttons, and observe the behavior described above. 5) When finished, select "Debug->Halt" to stop the program.