...
Analog-to-digital conversion of the different channels can be performed both single mode, in which the ADC converts all the channels at once in a single sequence of conversions, and continuous mode, where the device automatically restarts the scan after converting all of the different channels. The 12-bit value obtained from the conversion will be stored in the ADC read-only data register (ADC_DR).
Driver Inputs
SMT32F0 Interrupts
Interrupts on the SMT32 are managed by the extended interrupts and events controller (EXTI), which allows for the management of up to 32 different interrupt lines (23 external and 9 internal). Each line can have its own active edge and interrupt priority programmed independently. For each input
Handling Inputs
Each of the driver control inputs will be connected to the onboard GPIO pins. As we are only concerned with handling each input as they are triggered, they are all set to be handled by interrupt service routine.