Contains all macro definitions and function prototypes support for debug_frmwrk firmware library on A31G12x. More...
Go to the source code of this file.
Functions | |
void | UARTPutChar (UARTn_Type *UARTx, uint8_t ch) |
Puts a character to UART port. More... | |
void | UARTPuts (UARTn_Type *UARTx, const void *str) |
Puts a string to UART port. More... | |
void | UARTPuts_ (UARTn_Type *UARTx, const void *str) |
Puts a string to UART port and print new line. More... | |
void | UARTPutDec (UARTn_Type *UARTx, uint8_t decnum) |
Puts a decimal number to UART port. More... | |
void | UARTPutDec16 (UARTn_Type *UARTx, uint16_t decnum) |
Puts a decimal number to UART port. More... | |
void | UARTPutDec32 (UARTn_Type *UARTx, uint32_t decnum) |
Puts a decimal number to UART port. More... | |
void | UARTPutHex (UARTn_Type *UARTx, uint8_t hexnum) |
Puts a hex number to UART port. More... | |
void | UARTPutHex16 (UARTn_Type *UARTx, uint16_t hexnum) |
Puts a hex number to UART port. More... | |
void | UARTPutHex32 (UARTn_Type *UARTx, uint32_t hexnum) |
Puts a hex number to UART port. More... | |
uint8_t | UARTGetChar (UARTn_Type *UARTx) |
Get a character to UART port. More... | |
uint8_t | UARTGetCh (UARTn_Type *UARTx, uint8_t *ch) |
Get a character to UART port. More... | |
void | cprintf (const char *format,...) |
print function that supports format as same as printf() function of <stdio.h> library More... | |
void | debug_frmwrk_init (void) |
Initializes Debug Framework through initializing UARTn. More... | |
uint8_t | getstring (void) |
Get a character to UART port. More... | |
Variables | |
void(* | _db_msg )(UARTn_Type *UARTx, const void *s) |
void(* | _db_msg_ )(UARTn_Type *UARTx, const void *s) |
void(* | _db_char )(UARTn_Type *UARTx, uint8_t ch) |
void(* | _db_dec )(UARTn_Type *UARTx, uint8_t decn) |
void(* | _db_dec_16 )(UARTn_Type *UARTx, uint16_t decn) |
void(* | _db_dec_32 )(UARTn_Type *UARTx, uint32_t decn) |
void(* | _db_hex )(UARTn_Type *UARTx, uint8_t hexn) |
void(* | _db_hex_16 )(UARTn_Type *UARTx, uint16_t hexn) |
void(* | _db_hex_32 )(UARTn_Type *UARTx, uint32_t hexn) |
uint8_t(* | _db_get_char )(UARTn_Type *UARTx) |
uint8_t(* | _db_get_ch )(UARTn_Type *UARTx, uint8_t *ch) |
Contains all macro definitions and function prototypes support for debug_frmwrk firmware library on A31G12x.
Copyright(C) 2019, ABOV Semiconductor All rights reserved.
ABOV Disclaimer
IMPORTANT NOTICE ? PLEASE READ CAREFULLY ABOV Semiconductor ("ABOV") reserves the right to make changes, corrections, enhancements, modifications, and improvements to ABOV products and/or to this document at any time without notice. ABOV does not give warranties as to the accuracy or completeness of the information included herein. Purchasers should obtain the latest relevant information of ABOV products before placing orders. Purchasers are entirely responsible for the choice, selection, and use of ABOV products and ABOV assumes no liability for application assistance or the design of purchasers' products. No license, express or implied, to any intellectual property rights is granted by ABOV herein. ABOV disclaims all express and implied warranties and shall not be responsible or liable for any injuries or damages related to use of ABOV products in such unauthorized applications. ABOV and the ABOV logo are trademarks of ABOV. All other product or service names are the property of their respective owners. Information in this document supersedes and replaces the information previously supplied in any former versions of this document. 2020 ABOV Semiconductor All rights reserved
Definition in file A31G12x_hal_debug_frmwrk.h.
void cprintf | ( | const char * | format, |
... | |||
) |
print function that supports format as same as printf() function of <stdio.h> library
[in] | format | formatted string to be print |
Definition at line 329 of file A31G12x_hal_debug_frmwrk.c.
void debug_frmwrk_init | ( | void | ) |
Initializes Debug Framework through initializing UARTn.
None |
Definition at line 346 of file A31G12x_hal_debug_frmwrk.c.
References _db_char, _db_dec, _db_dec_16, _db_dec_32, _db_get_ch, _db_get_char, _db_hex, _db_hex_16, _db_hex_32, _db_msg, _db_msg_, ALTERN_FUNC, UARTn_CFG_Type::Baudrate, HAL_GPIO_ConfigFunction(), HAL_GPIO_ConfigOutput(), HAL_UART_ConfigStructInit(), HAL_UART_Init(), UARTGetCh(), UARTGetChar(), UARTPutChar(), UARTPutDec(), UARTPutDec16(), UARTPutDec32(), UARTPutHex(), UARTPutHex16(), UARTPutHex32(), UARTPuts(), and UARTPuts_().
uint8_t getstring | ( | void | ) |
Get a character to UART port.
None |
Definition at line 400 of file A31G12x_hal_debug_frmwrk.c.
References InCount, InData, InFlag, UARTGetChar(), and UARTPutChar().
uint8_t UARTGetCh | ( | UARTn_Type * | UARTx, |
uint8_t * | ch | ||
) |
Get a character to UART port.
[in] | UARTx | Pointer to the target UART
|
[in] | ch | Character to get |
Definition at line 134 of file A31G12x_hal_debug_frmwrk.c.
References HAL_UART_ReceiveByte().
Referenced by debug_frmwrk_init().
uint8_t UARTGetChar | ( | UARTn_Type * | UARTx | ) |
Get a character to UART port.
[in] | UARTx | Pointer to the target UART
|
Definition at line 116 of file A31G12x_hal_debug_frmwrk.c.
References BLOCKING, and HAL_UART_Receive().
Referenced by debug_frmwrk_init(), and getstring().
void UARTPutChar | ( | UARTn_Type * | UARTx, |
uint8_t | ch | ||
) |
Puts a character to UART port.
[in] | UARTx | Pointer to the target UART
|
[in] | ch | Character to put |
Definition at line 104 of file A31G12x_hal_debug_frmwrk.c.
References BLOCKING, and HAL_UART_Transmit().
Referenced by debug_frmwrk_init(), getstring(), UARTPutDec(), UARTPutDec16(), UARTPutDec32(), UARTPutHex(), UARTPutHex16(), UARTPutHex32(), and UARTPuts().
void UARTPutDec | ( | UARTn_Type * | UARTx, |
uint8_t | decnum | ||
) |
Puts a decimal number to UART port.
[in] | UARTx | Pointer to the target UART
|
[in] | decnum | Decimal number (8-bit long) |
Definition at line 191 of file A31G12x_hal_debug_frmwrk.c.
References UARTPutChar().
Referenced by debug_frmwrk_init().
void UARTPutDec16 | ( | UARTn_Type * | UARTx, |
uint16_t | decnum | ||
) |
Puts a decimal number to UART port.
[in] | UARTx | Pointer to the target UART
|
[in] | decnum | Decimal number (8-bit long) |
Definition at line 211 of file A31G12x_hal_debug_frmwrk.c.
References UARTPutChar().
Referenced by debug_frmwrk_init().
void UARTPutDec32 | ( | UARTn_Type * | UARTx, |
uint32_t | decnum | ||
) |
Puts a decimal number to UART port.
[in] | UARTx | Pointer to the target UART
|
[in] | decnum | Decimal number (8-bit long) |
Definition at line 235 of file A31G12x_hal_debug_frmwrk.c.
References UARTPutChar().
Referenced by debug_frmwrk_init().
void UARTPutHex | ( | UARTn_Type * | UARTx, |
uint8_t | hexnum | ||
) |
Puts a hex number to UART port.
[in] | UARTx | Pointer to the target UART
|
[in] | hexnum | Hex number (8-bit long) |
Definition at line 269 of file A31G12x_hal_debug_frmwrk.c.
References UARTPutChar().
Referenced by debug_frmwrk_init().
void UARTPutHex16 | ( | UARTn_Type * | UARTx, |
uint16_t | hexnum | ||
) |
Puts a hex number to UART port.
[in] | UARTx | Pointer to the target UART
|
[in] | hexnum | Hex number (16-bit long) |
Definition at line 290 of file A31G12x_hal_debug_frmwrk.c.
References UARTPutChar().
Referenced by debug_frmwrk_init().
void UARTPutHex32 | ( | UARTn_Type * | UARTx, |
uint32_t | hexnum | ||
) |
Puts a hex number to UART port.
[in] | UARTx | Pointer to the target UART
|
[in] | hexnum | Hex number (32-bit long) |
Definition at line 311 of file A31G12x_hal_debug_frmwrk.c.
References UARTPutChar().
Referenced by debug_frmwrk_init().
void UARTPuts | ( | UARTn_Type * | UARTx, |
const void * | str | ||
) |
Puts a string to UART port.
[in] | UARTx | Pointer to the target UART
|
[in] | str | String to put |
Definition at line 157 of file A31G12x_hal_debug_frmwrk.c.
References UARTPutChar().
Referenced by debug_frmwrk_init(), and UARTPuts_().
void UARTPuts_ | ( | UARTn_Type * | UARTx, |
const void * | str | ||
) |
Puts a string to UART port and print new line.
[in] | UARTx | Pointer to the target UART
|
[in] | str | String to put |
Definition at line 176 of file A31G12x_hal_debug_frmwrk.c.
References UARTPuts().
Referenced by debug_frmwrk_init().
void( * _db_char) (UARTn_Type *UARTx, uint8_t ch) |
Definition at line 61 of file A31G12x_hal_debug_frmwrk.c.
Referenced by debug_frmwrk_init().
void( * _db_dec) (UARTn_Type *UARTx, uint8_t decn) |
Definition at line 62 of file A31G12x_hal_debug_frmwrk.c.
Referenced by debug_frmwrk_init().
void( * _db_dec_16) (UARTn_Type *UARTx, uint16_t decn) |
Definition at line 63 of file A31G12x_hal_debug_frmwrk.c.
Referenced by debug_frmwrk_init().
void( * _db_dec_32) (UARTn_Type *UARTx, uint32_t decn) |
Definition at line 64 of file A31G12x_hal_debug_frmwrk.c.
Referenced by debug_frmwrk_init().
uint8_t( * _db_get_ch) (UARTn_Type *UARTx, uint8_t *ch) |
Definition at line 69 of file A31G12x_hal_debug_frmwrk.c.
Referenced by debug_frmwrk_init().
uint8_t( * _db_get_char) (UARTn_Type *UARTx) |
Definition at line 68 of file A31G12x_hal_debug_frmwrk.c.
Referenced by debug_frmwrk_init().
void( * _db_hex) (UARTn_Type *UARTx, uint8_t hexn) |
Definition at line 65 of file A31G12x_hal_debug_frmwrk.c.
Referenced by debug_frmwrk_init().
void( * _db_hex_16) (UARTn_Type *UARTx, uint16_t hexn) |
Definition at line 66 of file A31G12x_hal_debug_frmwrk.c.
Referenced by debug_frmwrk_init().
void( * _db_hex_32) (UARTn_Type *UARTx, uint32_t hexn) |
Definition at line 67 of file A31G12x_hal_debug_frmwrk.c.
Referenced by debug_frmwrk_init().
void( * _db_msg) (UARTn_Type *UARTx, const void *s) |
Definition at line 59 of file A31G12x_hal_debug_frmwrk.c.
Referenced by debug_frmwrk_init().
void( * _db_msg_) (UARTn_Type *UARTx, const void *s) |
Definition at line 60 of file A31G12x_hal_debug_frmwrk.c.
Referenced by debug_frmwrk_init().