96 #include "uart_defines.h"
912 #if ((UART1_STD_EN == 1) || (UART2_STD_EN == 1))
928 sint32 stdin_getchar(
void);
929 void ttywrch(
int ch);
#define UART2
Definition: tle987x.h:6105
#define UART1
Definition: tle987x.h:6104
#define SCU
Definition: tle987x.h:6097
#define UART2_SCON_RI_Msk
Definition: tle987x.h:10136
#define UART1_SCON_REN_Msk
Definition: tle987x.h:10113
#define SCU_MODIEN1_TIEN1_Pos
Definition: tle987x.h:9133
#define UART1_SBUF_VAL_Msk
Definition: tle987x.h:10102
#define SCU_MODIEN2_TIEN2_Pos
Definition: tle987x.h:9144
#define SCU_MODIEN2_RIEN2_Pos
Definition: tle987x.h:9146
#define UART2_SBUF_VAL_Pos
Definition: tle987x.h:10132
#define UART2_SCON_TI_Pos
Definition: tle987x.h:10137
#define SCU_MODIEN1_TIEN1_Msk
Definition: tle987x.h:9134
#define UART1_SCON_REN_Pos
Definition: tle987x.h:10112
#define UART2_SCONCLR_TICLR_Msk
Definition: tle987x.h:10155
#define UART2_SBUF_VAL_Msk
Definition: tle987x.h:10133
#define UART2_SCON_REN_Pos
Definition: tle987x.h:10143
#define UART2_SCON_RI_Pos
Definition: tle987x.h:10135
#define SCU_MODIEN2_TIEN2_Msk
Definition: tle987x.h:9145
#define UART2_SCONCLR_TICLR_Pos
Definition: tle987x.h:10154
#define SCU_BCON2_R_Msk
Definition: tle987x.h:8767
#define UART1_SCON_RI_Pos
Definition: tle987x.h:10104
#define SCU_MODIEN2_RIEN2_Msk
Definition: tle987x.h:9147
#define SCU_BCON1_R_Msk
Definition: tle987x.h:8762
#define UART2_SCONCLR_RICLR_Msk
Definition: tle987x.h:10153
#define UART1_SBUF_VAL_Pos
Definition: tle987x.h:10101
#define SCU_MODIEN1_RIEN1_Pos
Definition: tle987x.h:9135
#define UART1_SCONCLR_TICLR_Pos
Definition: tle987x.h:10123
#define UART1_SCON_TI_Msk
Definition: tle987x.h:10107
#define UART1_SCON_RI_Msk
Definition: tle987x.h:10105
#define SCU_MODIEN1_RIEN1_Msk
Definition: tle987x.h:9136
#define UART1_SCONCLR_RICLR_Pos
Definition: tle987x.h:10121
#define UART1_SCONCLR_TICLR_Msk
Definition: tle987x.h:10124
#define UART1_SCON_TI_Pos
Definition: tle987x.h:10106
#define UART1_SCONCLR_RICLR_Msk
Definition: tle987x.h:10122
#define SCU_BCON2_R_Pos
Definition: tle987x.h:8766
#define UART2_SCON_REN_Msk
Definition: tle987x.h:10144
#define SCU_BCON1_R_Pos
Definition: tle987x.h:8761
#define UART2_SCONCLR_RICLR_Pos
Definition: tle987x.h:10152
#define UART2_SCON_TI_Msk
Definition: tle987x.h:10138
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:337
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:412
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:332
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:397
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:352
uint32 clock
Definition: uart.h:107
CMSIS register HeaderFile.
General type declarations.
#define INLINE
Definition: types.h:148
uint8_t uint8
8 bit unsigned value
Definition: types.h:153
int32_t sint32
32 bit signed value
Definition: types.h:160
uint16_t uint16
16 bit unsigned value
Definition: types.h:154
uint32_t uint32
32 bit unsigned value
Definition: types.h:155
INLINE uint8 UART2_TX_Sts(void)
reads the transmit interrupt flag of UART2.
Definition: uart.h:483
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:954
INLINE void UART1_Receiver_Dis(void)
disables Receiver of Serial Port (UART1).
Definition: uart.h:532
INLINE void UART2_TX_Int_Dis(void)
disables transmit interrupt of UART2.
Definition: uart.h:857
INLINE void UART1_Receiver_En(void)
enables Receiver of Serial Port (UART1).
Definition: uart.h:507
INLINE void UART2_RX_Int_Clr(void)
clears receive interrupt flag of UART2.
Definition: uart.h:654
INLINE void UART1_TX_Int_Dis(void)
disables transmit interrupt of UART1.
Definition: uart.h:767
INLINE uint8 UART1_RX_Sts(void)
reads the receive interrupt flag of UART1.
Definition: uart.h:408
INLINE void UART2_BaudRateGen_En(void)
enables Baud-rate generator (UART2).
Definition: uart.h:280
INLINE void UART1_TX_Int_Clr(void)
clears transmit interrupt flag of UART1.
Definition: uart.h:629
INLINE void UART1_RX_Int_En(void)
enables receive interrupt of UART1.
Definition: uart.h:699
INLINE bool UART1_isByteTransmitted(void)
checks if UART1 has transmitted a Byte or not.
Definition: uart.h:1040
INLINE uint8 UART1_Get_Byte(void)
Clears the UART1 receive interrupt and returns the UART1 buffer.
Definition: uart.h:981
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:355
INLINE bool UART1_isByteReceived(void)
checks if UART1 has received Byte or not.
Definition: uart.h:1009
INLINE void UART2_Receiver_Dis(void)
disables Receiver of Serial Port (UART2).
Definition: uart.h:581
INLINE void UART1_BaudRateGen_Dis(void)
disables Baud-rate generator (UART1).
Definition: uart.h:165
INLINE void UART2_TX_Int_Clr(void)
clears transmit interrupt flag of UART2.
Definition: uart.h:676
INLINE void UART2_RX_Int_Dis(void)
disables receive interrupt of UART2.
Definition: uart.h:812
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:252
INLINE void UART1_Buffer_Set(uint8 data)
Sends a Byte via UART1.
Definition: uart.h:304
INLINE void UART2_Send_Byte(uint8 c)
clears the UART2 Transmit interrupt and sends a Byte via UART2.
Definition: uart.h:1070
INLINE uint8 UART1_TX_Sts(void)
reads the transmit interrupt flag of UART1.
Definition: uart.h:434
INLINE void UART2_RX_Int_En(void)
enables receive interrupt of UART2.
Definition: uart.h:789
INLINE uint8 UART2_Get_Byte(void)
Clears the UART2 receive interrupt and returns the UART2 buffer.
Definition: uart.h:1097
INLINE void UART2_TX_Int_En(void)
enables transmit interrupt of UART2.
Definition: uart.h:834
INLINE void UART1_BaudRateGen_En(void)
enables Baud-rate generator (UART1).
Definition: uart.h:194
INLINE uint8 UART2_RX_Sts(void)
reads the receive interrupt flag of UART2.
Definition: uart.h:460
INLINE void UART1_BaudRate_Value_Set(uint16 br_val)
Writes the baudrate timer register (UART1).
Definition: uart.h:136
INLINE void UART1_RX_Int_Clr(void)
clears receive interrupt flag for UART1.
Definition: uart.h:607
INLINE void UART2_Receiver_En(void)
enables Receiver of Serial Port (UART2).
Definition: uart.h:556
INLINE void UART1_RX_Int_Dis(void)
disables receive interrupt of UART1.
Definition: uart.h:722
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:223
INLINE void UART2_Buffer_Set(uint8 data)
Sends a Byte via UART2.
Definition: uart.h:328
INLINE uint8 UART2_Buffer_Get(void)
Reads UART2 Buffer.
Definition: uart.h:382
INLINE void UART1_TX_Int_En(void)
enables transmit interrupt of UART1.
Definition: uart.h:744
INLINE bool UART2_isByteReceived(void)
checks if UART2 has received Byte or not.
Definition: uart.h:1125
INLINE bool UART2_isByteTransmitted(void)
checks if UART2 has transmitted a Byte or not.
Definition: uart.h:1156