The purpose of the SER_BasicInterrupt sample application is to illustrate the methods to call in the naibrd library to perform basic interrupt operations with the serial module.
◆ Cfg_SER_Channel()
static void Cfg_SER_Channel |
( |
| ) |
|
|
static |
Configures a serial module for asynchronous loopback transmission.
◆ Cfg_SER_Interrupt()
static nai_status_t Cfg_SER_Interrupt |
( |
| ) |
|
|
static |
Configures a serial module to interrupt on the Receive Buffer High Water-mark status and inserts a user callback interrupt service routine. Prints out interrupt configuration.
◆ Clear_InterruptStatus()
Clears the interrupt status (in this case either the high watermark or transmit complete status). This is needed to be able to receive any additional interrupts of this type.
- Parameters
-
interruptStatus | (Input) The status to clear. |
◆ Run_SER_BasicInterrupt()
static int32_t Run_SER_BasicInterrupt |
( |
| ) |
|
|
static |
Configures a serial module to interrupt on the Receive Buffer High Water-mark status. and monitor the general purpose input.
◆ SampleCallBack()
static void SampleCallBack |
( |
uint32_t | vector | ) |
|
|
static |
The callback function that is installed via naibrd_ConnectISR(). This function will be called when the interrupt is received. Prints out that the interrupt has been received.
- Parameters
-
vector | (Input) Interrupt vector to identify which channel caused the interrupt. |