80 #include "uart_defines.h"
896 #if ((UART1_STD_EN == 1) || (UART2_STD_EN == 1))
912 sint32 stdin_getchar(
void);
913 void ttywrch(
int ch);
#define UART2
Definition: tle987x.h:6079
#define UART1
Definition: tle987x.h:6078
#define SCU
Definition: tle987x.h:6071
#define UART2_SCON_RI_Msk
Definition: tle987x.h:10110
#define UART1_SCON_REN_Msk
Definition: tle987x.h:10087
#define SCU_MODIEN1_TIEN1_Pos
Definition: tle987x.h:9107
#define UART1_SBUF_VAL_Msk
Definition: tle987x.h:10076
#define SCU_MODIEN2_TIEN2_Pos
Definition: tle987x.h:9118
#define SCU_MODIEN2_RIEN2_Pos
Definition: tle987x.h:9120
#define UART2_SBUF_VAL_Pos
Definition: tle987x.h:10106
#define UART2_SCON_TI_Pos
Definition: tle987x.h:10111
#define SCU_MODIEN1_TIEN1_Msk
Definition: tle987x.h:9108
#define UART1_SCON_REN_Pos
Definition: tle987x.h:10086
#define UART2_SCONCLR_TICLR_Msk
Definition: tle987x.h:10129
#define UART2_SBUF_VAL_Msk
Definition: tle987x.h:10107
#define UART2_SCON_REN_Pos
Definition: tle987x.h:10117
#define UART2_SCON_RI_Pos
Definition: tle987x.h:10109
#define SCU_MODIEN2_TIEN2_Msk
Definition: tle987x.h:9119
#define UART2_SCONCLR_TICLR_Pos
Definition: tle987x.h:10128
#define SCU_BCON2_R_Msk
Definition: tle987x.h:8741
#define UART1_SCON_RI_Pos
Definition: tle987x.h:10078
#define SCU_MODIEN2_RIEN2_Msk
Definition: tle987x.h:9121
#define SCU_BCON1_R_Msk
Definition: tle987x.h:8736
#define UART2_SCONCLR_RICLR_Msk
Definition: tle987x.h:10127
#define UART1_SBUF_VAL_Pos
Definition: tle987x.h:10075
#define SCU_MODIEN1_RIEN1_Pos
Definition: tle987x.h:9109
#define UART1_SCONCLR_TICLR_Pos
Definition: tle987x.h:10097
#define UART1_SCON_TI_Msk
Definition: tle987x.h:10081
#define UART1_SCON_RI_Msk
Definition: tle987x.h:10079
#define SCU_MODIEN1_RIEN1_Msk
Definition: tle987x.h:9110
#define UART1_SCONCLR_RICLR_Pos
Definition: tle987x.h:10095
#define UART1_SCONCLR_TICLR_Msk
Definition: tle987x.h:10098
#define UART1_SCON_TI_Pos
Definition: tle987x.h:10080
#define UART1_SCONCLR_RICLR_Msk
Definition: tle987x.h:10096
#define SCU_BCON2_R_Pos
Definition: tle987x.h:8740
#define UART2_SCON_REN_Msk
Definition: tle987x.h:10118
#define SCU_BCON1_R_Pos
Definition: tle987x.h:8735
#define UART2_SCONCLR_RICLR_Pos
Definition: tle987x.h:10126
#define UART2_SCON_TI_Msk
Definition: tle987x.h:10112
SFR low level access library.
INLINE void Field_Wrt8(volatile uint8 *reg, uint8 pos, uint8 msk, uint8 val)
This function writes a bit field in a 8-bit register.
Definition: sfr_access.h:322
INLINE uint8 u8_Field_Rd8(const volatile uint8 *reg, uint8 pos, uint8 msk)
This function reads a 8-bit field of a 8-bit register.
Definition: sfr_access.h:397
INLINE void Field_Wrt8all(volatile uint8 *reg, uint8 val)
This function writes an 8-bit register directly, no mask/position needed.
Definition: sfr_access.h:317
INLINE uint8 u1_Field_Rd8(const volatile uint8 *reg, uint8 pos, uint8 msk)
This function reads a 1-bit field of a 8-bit register.
Definition: sfr_access.h:382
INLINE void Field_Mod8(volatile uint8 *reg, uint8 pos, uint8 msk, uint8 val)
This function writes a bit field in a 8-bit register.
Definition: sfr_access.h:337
uint32 clock
Definition: uart.h:91
CMSIS register HeaderFile.
General type declarations.
#define INLINE
Definition: types.h:132
uint8_t uint8
8 bit unsigned value
Definition: types.h:137
int32_t sint32
32 bit signed value
Definition: types.h:144
uint16_t uint16
16 bit unsigned value
Definition: types.h:138
uint32_t uint32
32 bit unsigned value
Definition: types.h:139
INLINE uint8 UART2_TX_Sts(void)
reads the transmit interrupt flag of UART2.
Definition: uart.h:467
void UART2_BaudRate_Set(uint32 baudrate)
Sets the baudrate of UART2.
INLINE void UART1_Send_Byte(uint8 c)
clears the UART1 Transmit interrupt and sends a Byte via UART1.
Definition: uart.h:938
INLINE void UART1_Receiver_Dis(void)
disables Receiver of Serial Port (UART1).
Definition: uart.h:516
INLINE void UART2_TX_Int_Dis(void)
disables transmit interrupt of UART2.
Definition: uart.h:841
INLINE void UART1_Receiver_En(void)
enables Receiver of Serial Port (UART1).
Definition: uart.h:491
INLINE void UART2_RX_Int_Clr(void)
clears receive interrupt flag of UART2.
Definition: uart.h:638
INLINE void UART1_TX_Int_Dis(void)
disables transmit interrupt of UART1.
Definition: uart.h:751
INLINE uint8 UART1_RX_Sts(void)
reads the receive interrupt flag of UART1.
Definition: uart.h:392
INLINE void UART2_BaudRateGen_En(void)
enables Baud-rate generator (UART2).
Definition: uart.h:264
INLINE void UART1_TX_Int_Clr(void)
clears transmit interrupt flag of UART1.
Definition: uart.h:613
INLINE void UART1_RX_Int_En(void)
enables receive interrupt of UART1.
Definition: uart.h:683
INLINE bool UART1_isByteTransmitted(void)
checks if UART1 has transmitted a Byte or not.
Definition: uart.h:1024
INLINE uint8 UART1_Get_Byte(void)
Clears the UART1 receive interrupt and returns the UART1 buffer.
Definition: uart.h:965
void UART1_Init(void)
Initializes the UART1 module based on the Config Wizard for MOTIX MCU configuration.
INLINE uint8 UART1_Buffer_Get(void)
Reads UART1 Buffer.
Definition: uart.h:339
INLINE bool UART1_isByteReceived(void)
checks if UART1 has received Byte or not.
Definition: uart.h:993
INLINE void UART2_Receiver_Dis(void)
disables Receiver of Serial Port (UART2).
Definition: uart.h:565
INLINE void UART1_BaudRateGen_Dis(void)
disables Baud-rate generator (UART1).
Definition: uart.h:149
INLINE void UART2_TX_Int_Clr(void)
clears transmit interrupt flag of UART2.
Definition: uart.h:660
INLINE void UART2_RX_Int_Dis(void)
disables receive interrupt of UART2.
Definition: uart.h:796
void UART1_BaudRate_Set(uint32 baudrate)
Sets the baudrate of UART1.
INLINE void UART2_BaudRateGen_Dis(void)
disables Baud-rate generator (UART2).
Definition: uart.h:236
INLINE void UART1_Buffer_Set(uint8 data)
Sends a Byte via UART1.
Definition: uart.h:288
INLINE void UART2_Send_Byte(uint8 c)
clears the UART2 Transmit interrupt and sends a Byte via UART2.
Definition: uart.h:1054
INLINE uint8 UART1_TX_Sts(void)
reads the transmit interrupt flag of UART1.
Definition: uart.h:418
INLINE void UART2_RX_Int_En(void)
enables receive interrupt of UART2.
Definition: uart.h:773
INLINE uint8 UART2_Get_Byte(void)
Clears the UART2 receive interrupt and returns the UART2 buffer.
Definition: uart.h:1081
INLINE void UART2_TX_Int_En(void)
enables transmit interrupt of UART2.
Definition: uart.h:818
INLINE void UART1_BaudRateGen_En(void)
enables Baud-rate generator (UART1).
Definition: uart.h:178
INLINE uint8 UART2_RX_Sts(void)
reads the receive interrupt flag of UART2.
Definition: uart.h:444
INLINE void UART1_BaudRate_Value_Set(uint16 br_val)
Writes the baudrate timer register (UART1).
Definition: uart.h:120
INLINE void UART1_RX_Int_Clr(void)
clears receive interrupt flag for UART1.
Definition: uart.h:591
INLINE void UART2_Receiver_En(void)
enables Receiver of Serial Port (UART2).
Definition: uart.h:540
INLINE void UART1_RX_Int_Dis(void)
disables receive interrupt of UART1.
Definition: uart.h:706
void UART2_Init(void)
Initializes the UART2 module based on the Config Wizard for MOTIX MCU configuration.
INLINE void UART2_BaudRate_Value_Set(uint16 br_val)
Writes the baudrate timer register (UART2).
Definition: uart.h:207
INLINE void UART2_Buffer_Set(uint8 data)
Sends a Byte via UART2.
Definition: uart.h:312
INLINE uint8 UART2_Buffer_Get(void)
Reads UART2 Buffer.
Definition: uart.h:366
INLINE void UART1_TX_Int_En(void)
enables transmit interrupt of UART1.
Definition: uart.h:728
INLINE bool UART2_isByteReceived(void)
checks if UART2 has received Byte or not.
Definition: uart.h:1109
INLINE bool UART2_isByteTransmitted(void)
checks if UART2 has transmitted a Byte or not.
Definition: uart.h:1140