Demo application for using the AT&T IoT Starter Kit Powered by AWS.
Dependencies: SDFileSystem
Fork of ATT_AWS_IoT_demo by
MODSERIAL_KL05Z.h
00001 #if defined(TARGET_KL05Z) 00002 00003 #define MODSERIAL_IRQ_REG ((UARTLP_Type*)_base)->C2 00004 #define DISABLE_TX_IRQ MODSERIAL_IRQ_REG &= ~(1UL << UARTLP_C2_TIE_SHIFT) 00005 #define DISABLE_RX_IRQ MODSERIAL_IRQ_REG &= ~(1UL << UARTLP_C2_RIE_SHIFT) 00006 #define ENABLE_TX_IRQ MODSERIAL_IRQ_REG |= (1UL << UARTLP_C2_TIE_SHIFT) 00007 #define ENABLE_RX_IRQ MODSERIAL_IRQ_REG |= (1UL << UARTLP_C2_RIE_SHIFT) 00008 00009 #define MODSERIAL_READ_REG ((UARTLP_Type*)_base)->D 00010 #define MODSERIAL_WRITE_REG ((UARTLP_Type*)_base)->D 00011 #define MODSERIAL_READABLE ((((UARTLP_Type*)_base)->S1 & (1UL<<5)) != 0) 00012 #define MODSERIAL_WRITABLE ((((UARTLP_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 << UARTLP_C2_RIE_SHIFT)) != 0 ) 00018 #define TX_IRQ_ENABLED ((MODSERIAL_IRQ_REG & (1UL << UARTLP_C2_TIE_SHIFT)) != 0 ) 00019 00020 #endif
Generated on Tue Jul 12 2022 22:13:21 by 1.7.2