30 #ifndef SWI_UART_SAMD21_ASF_H_ 31 #define SWI_UART_SAMD21_ASF_H_ 49 #define MAX_SWI_BUSES 6 // SAMD21 has up to 6 SERCOMS that can be configured as UART 51 #define RECEIVE_MODE 0 // UART Receive mode, RX enabled 52 #define TRANSMIT_MODE 1 // UART Transmit mode, RX disabled 53 #define RX_DELAY 10 // Delay before responses come 54 #define TX_DELAY 90 // Delay before new flag is sent 56 #define DEBUG_PIN_1 EXT2_PIN_5 57 #define DEBUG_PIN_2 EXT2_PIN_6 81 #endif // SWI_UART_ASF_H ATCA_STATUS swi_uart_send_byte(ATCASWIMaster_t *instance, uint8_t data)
HAL implementation of SWI UART send byte over ASF. This function send one byte over UART...
Definition: swi_uart_at90usb1287_asf.c:160
int ref_ct
Definition: hal_swi_bitbang.h:66
usart_if usart_instance
Definition: swi_uart_at90usb1287_asf.h:62
void swi_uart_discover_buses(int swi_uart_buses[], int max_buses)
discover UART buses available for this hardware this maintains a list of logical to physical bus mapp...
Definition: swi_uart_at90usb1287_asf.c:146
ATCA_STATUS
Definition: atca_status.h:41
ATCA_STATUS swi_uart_receive_byte(ATCASWIMaster_t *instance, uint8_t *data)
HAL implementation of SWI UART receive bytes over ASF. This function receive one byte over UART...
Definition: swi_uart_at90usb1287_asf.c:209
void swi_uart_setbaud(ATCASWIMaster_t *instance, uint32_t baudrate)
implementation of SWI UART change baudrate.
Definition: swi_uart_at90usb1287_asf.c:110
Single aggregation point for all CryptoAuthLib header files.
This is the hal_data for ATCA HAL.
Definition: hal_swi_bitbang.h:63
void swi_uart_mode(ATCASWIMaster_t *instance, uint8_t mode)
implementation of SWI UART change mode.
Definition: swi_uart_at90usb1287_asf.c:122
ATCA_STATUS swi_uart_init(ATCASWIMaster_t *instance)
Implementation of SWI UART init.
Definition: swi_uart_at90usb1287_asf.c:64
struct atcaSWImaster ATCASWIMaster_t
this is the hal_data for ATCA HAL for ASF SERCOM
int bus_index
for conveniences during interface release phase
Definition: hal_swi_bitbang.h:68
ATCA_STATUS swi_uart_deinit(ATCASWIMaster_t *instance)
Implementation of SWI UART deinit.
Definition: swi_uart_at90usb1287_asf.c:98