Demo application for using the AT&T IoT Starter Kit Powered by AWS.
Dependencies: SDFileSystem
Fork of ATT_AWS_IoT_demo by
MODSERIAL_LPC1768.h
00001 #if defined(TARGET_LPC1768) 00002 00003 #define MODSERIAL_IRQ_REG ((LPC_UART_TypeDef*)_base)->IER 00004 #define DISABLE_TX_IRQ MODSERIAL_IRQ_REG &= ~(1UL << 1) 00005 #define DISABLE_RX_IRQ MODSERIAL_IRQ_REG &= ~(1UL << 0) 00006 #define ENABLE_TX_IRQ MODSERIAL_IRQ_REG |= (1UL << 1) 00007 #define ENABLE_RX_IRQ MODSERIAL_IRQ_REG |= (1UL << 0) 00008 00009 #define RESET_TX_FIFO ((LPC_UART_TypeDef*)_base)->FCR |= (1UL<<2) 00010 #define RESET_RX_FIFO ((LPC_UART_TypeDef*)_base)->FCR |= (1UL<<1) 00011 00012 #define MODSERIAL_READ_REG ((LPC_UART_TypeDef*)_base)->RBR 00013 #define MODSERIAL_WRITE_REG ((LPC_UART_TypeDef*)_base)->THR 00014 #define MODSERIAL_READABLE ((((LPC_UART_TypeDef*)_base)->LSR & (1UL<<0)) != 0) 00015 #define MODSERIAL_WRITABLE ((((LPC_UART_TypeDef*)_base)->LSR & (1UL<<5)) != 0) 00016 00017 #define RX_IRQ_ENABLED true 00018 #define TX_IRQ_ENABLED true 00019 00020 #endif
Generated on Tue Jul 12 2022 22:13:21 by 1.7.2