15 char aDebugString[150u];
17 #ifdef REDIRECT_OUTPUT_TO_UART 19 #include <drivers/uart/adi_uart.h> 20 #include <drivers/general/adi_drivers_general.h> 27 #define UART0_TX_PORTP0_MUX (1u<<20) 28 #define UART0_RX_PORTP0_MUX (1u<<22) 38 void common_Init(
void)
40 #ifdef REDIRECT_OUTPUT_TO_UART 42 *pREG_GPIO0_CFG |= UART0_TX_PORTP0_MUX | UART0_RX_PORTP0_MUX;
56 void common_Pass(
void)
58 char pass[] =
"All done!\n\r";
60 #ifdef REDIRECT_OUTPUT_TO_UART 78 void common_Fail(
char *FailureReason)
80 char fail[] =
"Failed: ";
83 #ifdef REDIRECT_OUTPUT_TO_UART 87 adi_uart_Write(hDevOutput, FailureReason, strlen(FailureReason),
false, &pHwError);
91 printf(FailureReason);
105 void common_Perf(
char *InfoString)
107 char term[] =
"\n\r";
109 #ifdef REDIRECT_OUTPUT_TO_UART 112 adi_uart_Write(hDevOutput, InfoString, strlen(InfoString),
false, &pHwError);
ADI_UART_RESULT adi_uart_Write(ADI_UART_HANDLE const hDevice, void *const pBuffer, uint32_t const nBufSize, bool const bDMA, uint32_t *pHwError)
Submit the buffer for transmitting the data in ADI_UART_DATA_TRANSFER_MODE_BLOCKING....
struct _ADI_UART_DEVICE * ADI_UART_HANDLE
ADI_UART_RESULT adi_uart_Open(uint32_t const nDeviceNum, ADI_UART_DIRECTION const eDirection, void *pMemory, uint32_t const nMemSize, ADI_UART_HANDLE *const phDevice)
Initialization function for the UART device.
#define ADI_UART_UNIDIR_MEMORY_SIZE