Microchip® Advanced Software Framework

serial.c File Reference

Usart interface functions.

Copyright (c) 2014-2018 Microchip Technology Inc. and its subsidiaries.

#include "serial.h"
#include "pdca.h"
#include "usart.h"
#include "gpio.h"
#include "cycle_counter.h"
#include "intc.h"
#include "QDebugSettings.h"
#include "qdebugtransport.h"

Functions

static void int_pdca_handler (void)
 
static void int_usart_handler (void)
 
void SERIAL_Init (void)
 
void SERIAL_Retrieve_Message (void)
 
void SERIAL_Send_Message (void)
 

Variables

volatile bool MessageReady = false
 
volatile int rx_size = RX_BUFFER_SIZE
 
char SERIAL_RX_Buffer [RX_BUFFER_SIZE]
 Counter for interrupt test. More...
 
volatile unsigned int SERIAL_RX_index
 

void SERIAL_Retrieve_Message ( void  )

volatile bool MessageReady = false
volatile int rx_size = RX_BUFFER_SIZE

Referenced by int_usart_handler().

char SERIAL_RX_Buffer[RX_BUFFER_SIZE]

Counter for interrupt test.

Referenced by int_pdca_handler(), int_usart_handler(), SERIAL_Init(), and SERIAL_Retrieve_Message().

volatile unsigned int SERIAL_RX_index