Implementation example AN2739
20/26
Demo firmware flowcharts
Figure 7 presents the overall function flowchart.
Figure 7. Demo’s functional flowchart 1
After performing the configuration steps, the demo program enters an infinite loop, and only
interrupt subroutines are executed (the program can perform other tasks in the mean time).
Each interrupt subroutine performs an action depending on the current stream status
(Playing, Paused or Stopped) as detailed in Figure 8.
Main.c
Configure
SystemTick
While (1)
End
LCD configuration
and welcome screen
display
Joystick and Key
configuration
SystemTick
event
Up/down push-putton
pressed
Key push-button
pressed
SEL push-button
pressed
Wait for an interrupt
ai15120
Right/Left push-button
pressed