Microchip® Advanced Software Framework

sam_ba_monitor.h File Reference

Monitor functions for SAM-BA on SAM0.

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

Macros

#define SAM_BA_INTERFACE_USART   1
 
#define SAM_BA_INTERFACE_USBCDC   0
 
#define SAM_BA_VERSION   "2.16"
 
#define SIZEBUFMAX   64
 

Functions

void call_applet (uint32_t address)
 Execute an applet from the specified address. More...
 
void sam_ba_monitor_init (uint8_t com_interface)
 Initialize the monitor. More...
 
void sam_ba_monitor_run (void)
 Main function of the SAM-BA Monitor. More...
 
void sam_ba_putdata_term (uint8_t *data, uint32_t length)
 This function allows data rx by USART. More...
 

#define SAM_BA_INTERFACE_USART   1

Referenced by main(), and sam_ba_monitor_init().

#define SAM_BA_INTERFACE_USBCDC   0

Referenced by main(), and sam_ba_monitor_init().

#define SAM_BA_VERSION   "2.16"
#define SIZEBUFMAX   64

Referenced by sam_ba_monitor_run().

void call_applet ( uint32_t  address)

Execute an applet from the specified address.

Parameters
addressApplet address

References cpu_irq_disable, and sp.

Referenced by sam_ba_monitor_run().

void sam_ba_monitor_init ( uint8_t  com_interface)

Initialize the monitor.

Initialize the monitor.

Parameters
com_interfaceCommunication interface to be used.

References SAM_BA_INTERFACE_USART, and SAM_BA_INTERFACE_USBCDC.

Referenced by main().

void sam_ba_monitor_run ( void  )
void sam_ba_putdata_term ( uint8_t *  data,
uint32_t  length 
)

This function allows data rx by USART.

Parameters
*dataData pointer
lengthLength of the data

References b_terminal_mode, buf, i, and t_monitor_if::putdata.

Referenced by sam_ba_monitor_run().