diff --git a/arch/arm/src/lm3s/lm3s_gpio.c b/arch/arm/src/lm3s/lm3s_gpio.c index 305103143a544343cc09f764b90d19f96f947841..cc1f77c3562c765fe017a00063ab552607555ab9 100644 --- a/arch/arm/src/lm3s/lm3s_gpio.c +++ b/arch/arm/src/lm3s/lm3s_gpio.c @@ -140,18 +140,19 @@ static const struct gpio_func_s g_funcbits[] = {GPIO_INTERRUPT_SETBITS, GPIO_INTERRUPT_CLRBITS}, /* GPIO_FUNC_INTERRUPT */ }; -#ifdef LM3S_GPIOH_BASE -{ - LM3S_GPIOA_BASE, LM3S_GPIOB_BASE, LM3S_GPIOC_BASE, LM3S_GPIOD_BASE, - LM3S_GPIOE_BASE, LM3S_GPIOF_BASE, LM3S_GPIOG_BASE, LM3S_GPIOH_BASE, -}; -#else static const uint32_t g_gpiobase[] = { LM3S_GPIOA_BASE, LM3S_GPIOB_BASE, LM3S_GPIOC_BASE, LM3S_GPIOD_BASE, - LM3S_GPIOE_BASE, LM3S_GPIOF_BASE, LM3S_GPIOG_BASE, 0, -}; + LM3S_GPIOE_BASE, LM3S_GPIOF_BASE, LM3S_GPIOG_BASE, + + /* GPIOH exists on the LM3S6918, but not on the LM3S6965 */ + +#ifdef LM3S_GPIOH_BASE + LM3S_GPIOH_BASE, +#else + 0, #endif +}; /**************************************************************************** * Public Data diff --git a/configs/eagle100/include/board.h b/configs/eagle100/include/board.h index 09d695938bd4cfca657b47789050033e41816f60..af7cc6be8a8962cb44f7d5b36c76404279917eb2 100644 --- a/configs/eagle100/include/board.h +++ b/configs/eagle100/include/board.h @@ -41,8 +41,6 @@ * Included Files ************************************************************************************/ -#include "lm3s_internal.h" - /************************************************************************************ * Definitions ************************************************************************************/ diff --git a/configs/lm3s6965-ek/include/board.h b/configs/lm3s6965-ek/include/board.h index eeb6c6f8c3c5e229579c6c70cb9a771830a62e91..45fa0dfb049cdb6dd8eb2ce8df0d9822f460d86c 100755 --- a/configs/lm3s6965-ek/include/board.h +++ b/configs/lm3s6965-ek/include/board.h @@ -41,8 +41,6 @@ * Included Files ************************************************************************************/ -#include "lm3s_internal.h" - /************************************************************************************ * Definitions ************************************************************************************/ diff --git a/examples/nx/nx_kbdin.c b/examples/nx/nx_kbdin.c index 057f725d2fe7339b4bd2207b841313fcbf78abf3..7d3bcc5fe62e584b910b26b515293d8199970165 100644 --- a/examples/nx/nx_kbdin.c +++ b/examples/nx/nx_kbdin.c @@ -205,7 +205,7 @@ nxeg_renderglyph(FAR struct nxeg_state_s *st, /* Pack 4-bit nibbles into a byte */ pixel &= 0x0f; - pixel = (pixel) << 4 |pixel; + pixel = (pixel) << 4 | pixel; ptr = (FAR nxgl_mxpixel_t *)glyph->bitmap; for (row = 0; row < glyph->height; row++)