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.
address | Applet 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.
com_interface | Communication interface to be used. |
References SAM_BA_INTERFACE_USART, and SAM_BA_INTERFACE_USBCDC.
Referenced by main().
void sam_ba_monitor_run | ( | void | ) |
Main function of the SAM-BA Monitor.
Main function of the SAM-BA Monitor.
References b_terminal_mode, call_applet(), command, cpu_irq_enable, current_number, data, t_monitor_if::getdata, t_monitor_if::getdata_xmd, i, j, length, min, NULL, ptr, ptr_data, t_monitor_if::putdata, t_monitor_if::putdata_xmd, RomBOOT_Version, sam_ba_putdata_term(), SIZEBUFMAX, sp, and u32tmp.
Referenced by main().
void sam_ba_putdata_term | ( | uint8_t * | data, |
uint32_t | length | ||
) |
This function allows data rx by USART.
*data | Data pointer |
length | Length of the data |
References b_terminal_mode, i, and t_monitor_if::putdata.
Referenced by sam_ba_monitor_run().