![]() |
ADS_BP
|
#include <stdint.h>#include <stdbool.h>#include "inc/hw_memmap.h"#include "inc/hw_types.h"#include "inc/hw_gpio.h"#include "inc/hw_ssi.h"#include "inc/hw_ints.h"#include "inc/hw_timer.h"#include "driverlib/gpio.h"#include "driverlib/pin_map.h"#include "driverlib/sysctl.h"#include "driverlib/uart.h"#include "driverlib/ssi.h"#include "driverlib/interrupt.h"#include "driverlib/timer.h"#include "ADS1299.h"#include "process.h"
Macros | |
| #define | IDLE 0 |
| #define | ACQUIRE_EMG 1 |
Functions | |
| void | DeviceInit (void) |
| Function in charge of initializing the ALC-D system. More... | |
| void | COMM_IntHandler (void) |
| UART reception ISR for decoding and executing commands given by external master devices. More... | |
| void | Timer0IntHandler (void) |
| Timer ISR for ADS1299 samples acquisition. More... | |
| void | Timer2IntHandler (void) |
| Timer ISR for LED blinking. More... | |
| void | Timer3IntHandler (void) |
| Timer ISR for accessory operation. More... | |
| int | main (void) |
| Main function. More... | |
Main file and module of the ADS_BP project.
----------------— Function Description ---------------— This module includes the main function, all ISRs as well as the initialization of the device. ----------------------— Updates ----------------------—
2016-06-17 / Enzo Mastinu / Creation ADS_BP project.
| void COMM_IntHandler | ( | void | ) |
UART reception ISR for decoding and executing commands given by external master devices.
| [in] | none |
| void DeviceInit | ( | void | ) |
Function in charge of initializing the ALC-D system.
| [in] | none |
The function initializes the following peripherals and devices:
TIMERs
Measured Execution Time @80MHz: 14/07/2016 -> 1.26 s

| int main | ( | void | ) |
Main function.
ISR priorities
| Timer3IntHandler -> 000 = 0x00 –> Accessory timer
| Timer0IntHandler -> 001 = 0x20 –> Acquisition timer
| COMM_IntHandler -> 001 = 0x20 –> UART communication
| Timer2IntHandler -> 011 = 0x40 –> LED blinking
<-------------------— higher priority ----------------------—

| void Timer0IntHandler | ( | void | ) |
Timer ISR for ADS1299 samples acquisition.
| [in] | none |
Measured Execution Time @80MHz: 13/07/2016 -> 357 us
| void Timer2IntHandler | ( | void | ) |
Timer ISR for LED blinking.
| [in] | none |
In the common setup LEDs are driven in this way:
| void Timer3IntHandler | ( | void | ) |
Timer ISR for accessory operation.
| [in] | none |
This has been used for UART and SPI timeout of reading.
1.8.12