Eliminate warnings

This commit is contained in:
Gregory Nutt 2015-09-08 10:19:34 -06:00
parent 7cf823fa97
commit 37111e6b2c
11 changed files with 18 additions and 15 deletions

View File

@ -7,12 +7,12 @@
#include <debug.h> #include <debug.h>
#include <arch/board/board.h> #include <arch/board/board.h>
#include <arch/board/cc3200_utils.h>
#include <chip/cc3200_memorymap.h> #include <chip/cc3200_memorymap.h>
#include "up_arch.h" #include "up_arch.h"
#include "cc3200_launchpad.h" #include "cc3200_launchpad.h"
#include "cc3200_utils.h"
#define LED1_GPIO 9 #define LED1_GPIO 9
#define LED2_GPIO 10 #define LED2_GPIO 10
@ -153,4 +153,4 @@ void cc3200_ledoff(int led)
break; break;
} }
} }

View File

@ -43,8 +43,6 @@
#include "nuttx/arch.h" #include "nuttx/arch.h"
#include "up_arch.h" #include "up_arch.h"
#include "cc3200_utils.h"
/************************************************************************************ /************************************************************************************
* Private Data * Private Data
************************************************************************************/ ************************************************************************************/

View File

@ -44,6 +44,7 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <nuttx/compiler.h> #include <nuttx/compiler.h>
#include <stdint.h> #include <stdint.h>
#include <arch/kinetis/chip.h>
/************************************************************************************ /************************************************************************************
* Pre-processor Definitions * Pre-processor Definitions

View File

@ -147,7 +147,7 @@ struct stm32f4_dev_s
static void stm32_select(FAR struct mio283qt2_lcd_s *dev); static void stm32_select(FAR struct mio283qt2_lcd_s *dev);
static void stm32_deselect(FAR struct mio283qt2_lcd_s *dev); static void stm32_deselect(FAR struct mio283qt2_lcd_s *dev);
static void stm32_index(FAR struct mio283qt2_lcd_s *dev, uint8_t index); static void stm32_index(FAR struct mio283qt2_lcd_s *dev, uint8_t index);
#if !defined(CONFIG_MIO283QT2_WRONLY) && CONFIG_LCD_NOGETRUN != 1 #if !defined(CONFIG_MIO283QT2_WRONLY) && !defined(CONFIG_LCD_NOGETRUN)
static uint16_t stm32_read(FAR struct mio283qt2_lcd_s *dev); static uint16_t stm32_read(FAR struct mio283qt2_lcd_s *dev);
#endif #endif
static void stm32_write(FAR struct mio283qt2_lcd_s *dev, uint16_t data); static void stm32_write(FAR struct mio283qt2_lcd_s *dev, uint16_t data);
@ -165,7 +165,7 @@ static struct stm32f4_dev_s g_stm32f4_lcd =
.select = stm32_select, .select = stm32_select,
.deselect = stm32_deselect, .deselect = stm32_deselect,
.index = stm32_index, .index = stm32_index,
#if !defined(CONFIG_MIO283QT2_WRONLY) && CONFIG_LCD_NOGETRUN != 1 #if !defined(CONFIG_MIO283QT2_WRONLY) && !defined(CONFIG_LCD_NOGETRUN)
.read = stm32_read, .read = stm32_read,
#endif #endif
.write = stm32_write, .write = stm32_write,
@ -308,7 +308,7 @@ static void stm32_index(FAR struct mio283qt2_lcd_s *dev, uint8_t index)
* *
**************************************************************************************/ **************************************************************************************/
#if !defined(CONFIG_MIO283QT2_WRONLY) && CONFIG_LCD_NOGETRUN != 1 #if !defined(CONFIG_MIO283QT2_WRONLY) && !defined(CONFIG_LCD_NOGETRUN)
static uint16_t stm32_read(FAR struct mio283qt2_lcd_s *dev) static uint16_t stm32_read(FAR struct mio283qt2_lcd_s *dev)
{ {
FAR struct stm32f4_dev_s *priv = (FAR struct stm32f4_dev_s *)dev; FAR struct stm32f4_dev_s *priv = (FAR struct stm32f4_dev_s *)dev;

View File

@ -148,7 +148,7 @@ struct stm32f4_dev_s
static void stm32_select(FAR struct mio283qt9a_lcd_s *dev); static void stm32_select(FAR struct mio283qt9a_lcd_s *dev);
static void stm32_deselect(FAR struct mio283qt9a_lcd_s *dev); static void stm32_deselect(FAR struct mio283qt9a_lcd_s *dev);
static void stm32_index(FAR struct mio283qt9a_lcd_s *dev, uint8_t index); static void stm32_index(FAR struct mio283qt9a_lcd_s *dev, uint8_t index);
#if !defined(CONFIG_MIO283QT2_WRONLY) && CONFIG_LCD_NOGETRUN != 1 #if !defined(CONFIG_MIO283QT2_WRONLY) && !defined(CONFIG_LCD_NOGETRUN)
static uint16_t stm32_read(FAR struct mio283qt9a_lcd_s *dev); static uint16_t stm32_read(FAR struct mio283qt9a_lcd_s *dev);
#endif #endif
static void stm32_write(FAR struct mio283qt9a_lcd_s *dev, uint16_t data); static void stm32_write(FAR struct mio283qt9a_lcd_s *dev, uint16_t data);
@ -166,7 +166,7 @@ static struct stm32f4_dev_s g_stm32f4_lcd =
.select = stm32_select, .select = stm32_select,
.deselect = stm32_deselect, .deselect = stm32_deselect,
.index = stm32_index, .index = stm32_index,
#if !defined(CONFIG_MIO283QT2_WRONLY) && CONFIG_LCD_NOGETRUN != 1 #if !defined(CONFIG_MIO283QT2_WRONLY) && !defined(CONFIG_LCD_NOGETRUN)
.read = stm32_read, .read = stm32_read,
#endif #endif
.write = stm32_write, .write = stm32_write,
@ -309,7 +309,7 @@ static void stm32_index(FAR struct mio283qt9a_lcd_s *dev, uint8_t index)
* *
**************************************************************************************/ **************************************************************************************/
#if !defined(CONFIG_MIO283QT2_WRONLY) && CONFIG_LCD_NOGETRUN != 1 #if !defined(CONFIG_MIO283QT2_WRONLY) && !defined(CONFIG_LCD_NOGETRUN)
static uint16_t stm32_read(FAR struct mio283qt9a_lcd_s *dev) static uint16_t stm32_read(FAR struct mio283qt9a_lcd_s *dev)
{ {
FAR struct stm32f4_dev_s *priv = (FAR struct stm32f4_dev_s *)dev; FAR struct stm32f4_dev_s *priv = (FAR struct stm32f4_dev_s *)dev;

View File

@ -412,6 +412,9 @@ CONFIG_ARCH_HAVE_RAMVECTORS=y
# #
CONFIG_BOARD_LOOPSPERMSEC=5483 CONFIG_BOARD_LOOPSPERMSEC=5483
# CONFIG_ARCH_CALIBRATION is not set # CONFIG_ARCH_CALIBRATION is not set
CONFIG_LIB_BOARDCTL=y
CONFIG_BOARDCTL_CANINIT=y
# #
# Interrupt options # Interrupt options

View File

@ -602,6 +602,7 @@ CONFIG_NET_ICMP=y
# CONFIG_NET_IGMP is not set # CONFIG_NET_IGMP is not set
# CONFIG_NET_STATISTICS is not set # CONFIG_NET_STATISTICS is not set
CONFIG_NET_ETH_TCP_RECVWNDO=536 CONFIG_NET_ETH_TCP_RECVWNDO=536
CONFIG_NET_ARP=y
CONFIG_NET_ARPTAB_SIZE=16 CONFIG_NET_ARPTAB_SIZE=16
# CONFIG_NET_ARP_IPIN is not set # CONFIG_NET_ARP_IPIN is not set

View File

@ -295,6 +295,7 @@
# define BOARD_LTDC_HEIGHT 320 # define BOARD_LTDC_HEIGHT 320
#endif #endif
#define BOARD_LTDC_OUTPUT_BPP 16
#define BOARD_LTDC_HFP 10 #define BOARD_LTDC_HFP 10
#define BOARD_LTDC_HBP 20 #define BOARD_LTDC_HBP 20
#define BOARD_LTDC_VFP 4 #define BOARD_LTDC_VFP 4

View File

@ -88,7 +88,7 @@
* Private Data * Private Data
****************************************************************************/ ****************************************************************************/
#if defined(CONFIG_PM) && defined(CONFIG_RTC_ALARM) #if 0 /* Not used */
static void up_alarmcb(void); static void up_alarmcb(void);
#endif #endif
@ -107,9 +107,6 @@ static void up_alarmcb(void);
#ifdef CONFIG_PM #ifdef CONFIG_PM
static void stm32_idlepm(void) static void stm32_idlepm(void)
{ {
#ifdef CONFIG_RTC_ALARM
struct timespec alarmtime;
#endif
static enum pm_state_e oldstate = PM_NORMAL; static enum pm_state_e oldstate = PM_NORMAL;
enum pm_state_e newstate; enum pm_state_e newstate;
irqstate_t flags; irqstate_t flags;
@ -229,7 +226,7 @@ errout:
* *
************************************************************************************/ ************************************************************************************/
#if defined(CONFIG_PM) && defined(CONFIG_RTC_ALARM) #if 0 /* Not used */
static void up_alarmcb(void) static void up_alarmcb(void)
{ {
/* This alarm occurs because there wasn't any EXTI interrupt during the /* This alarm occurs because there wasn't any EXTI interrupt during the

View File

@ -43,6 +43,7 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <nuttx/compiler.h> #include <nuttx/compiler.h>
#include <stdint.h> #include <stdint.h>
#include <arch/kinetis/chip.h>
/************************************************************************************ /************************************************************************************
* Pre-processor Definitions * Pre-processor Definitions

View File

@ -43,6 +43,7 @@
#include <nuttx/config.h> #include <nuttx/config.h>
#include <nuttx/compiler.h> #include <nuttx/compiler.h>
#include <stdint.h> #include <stdint.h>
#include <arch/kinetis/chip.h>
/************************************************************************************ /************************************************************************************
* Pre-processor Definitions * Pre-processor Definitions