![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
V.06 11/3
Dependencies: FT6206 SDFileSystem SPI_TFT_ILI9341 TFT_fonts
Fork of ATT_AWS_IoT_demo by
MODSERIAL_KSDK.h
00001 #if defined (TARGET_KPSDK_MCUS) 00002 00003 #define MODSERIAL_IRQ_REG ((UART_Type*)_base)->C2 00004 #define DISABLE_TX_IRQ MODSERIAL_IRQ_REG &= ~(1UL << UART_C2_TIE_SHIFT) 00005 #define DISABLE_RX_IRQ MODSERIAL_IRQ_REG &= ~(1UL << UART_C2_RIE_SHIFT) 00006 #define ENABLE_TX_IRQ MODSERIAL_IRQ_REG |= (1UL << UART_C2_TIE_SHIFT) 00007 #define ENABLE_RX_IRQ MODSERIAL_IRQ_REG |= (1UL << UART_C2_RIE_SHIFT) 00008 00009 #define MODSERIAL_READ_REG ((UART_Type*)_base)->D 00010 #define MODSERIAL_WRITE_REG ((UART_Type*)_base)->D 00011 #define MODSERIAL_READABLE ((((UART_Type*)_base)->S1 & (1UL<<5)) != 0) 00012 #define MODSERIAL_WRITABLE ((((UART_Type*)_base)->S1 & (1UL<<7)) != 0) 00013 00014 #define RESET_TX_FIFO while(0 == 1) 00015 #define RESET_RX_FIFO while(MODSERIAL_READABLE) char dummy = MODSERIAL_READ_REG 00016 00017 #define RX_IRQ_ENABLED ((MODSERIAL_IRQ_REG & (1UL << UART_C2_RIE_SHIFT)) != 0 ) 00018 #define TX_IRQ_ENABLED ((MODSERIAL_IRQ_REG & (1UL << UART_C2_TIE_SHIFT)) != 0 ) 00019 00020 #endif
Generated on Tue Jul 12 2022 14:16:19 by
![doxygen](doxygen.png)