Home
last modified time | relevance | path

Searched refs:LPUART (Results 1 – 2 of 2) sorted by relevance

/hal_gigadevice-latest/gd32l23x/standard_peripheral/include/
Dgd32l23x_lpuart.h41 #define LPUART LPUART_BASE macro
44 #define LPUART_CTL0 REG32(LPUART + 0x00000000U) /*!< LPUART control regis…
45 #define LPUART_CTL1 REG32(LPUART + 0x00000004U) /*!< LPUART control regis…
46 #define LPUART_CTL2 REG32(LPUART + 0x00000008U) /*!< LPUART control regis…
47 #define LPUART_BAUD REG32(LPUART + 0x0000000CU) /*!< LPUART baud rate reg…
48 #define LPUART_CMD REG32(LPUART + 0x00000018U) /*!< LPUART command regis…
49 #define LPUART_STAT REG32(LPUART + 0x0000001CU) /*!< LPUART status regist…
50 #define LPUART_INTC REG32(LPUART + 0x00000020U) /*!< LPUART status clear …
51 #define LPUART_RDATA REG32(LPUART + 0x00000024U) /*!< LPUART receive data …
52 #define LPUART_TDATA REG32(LPUART + 0x00000028U) /*!< LPUART transmit data…
[all …]
/hal_gigadevice-latest/gd32l23x/standard_peripheral/source/
Dgd32l23x_lpuart.c660 if(RESET != (LPUART_REG_VAL(LPUART, flag) & BIT(LPUART_BIT_POS(flag)))) { in lpuart_flag_get()
708 LPUART_REG_VAL(LPUART, interrupt) |= BIT(LPUART_BIT_POS(interrupt)); in lpuart_interrupt_enable()
731 LPUART_REG_VAL(LPUART, interrupt) &= ~BIT(LPUART_BIT_POS(interrupt)); in lpuart_interrupt_disable()
757 intenable = (LPUART_REG_VAL(LPUART, int_flag) & BIT(LPUART_BIT_POS(int_flag))); in lpuart_interrupt_flag_get()
759 flagstatus = (LPUART_REG_VAL2(LPUART, int_flag) & BIT(LPUART_BIT_POS2(int_flag))); in lpuart_interrupt_flag_get()