configs/Kconfig: Fix some breakage inflicted on the Kconfig file by the i.MX RT merge. Fix some coding standard problems in hymini-stm32v board support.

This commit is contained in:
Gregory Nutt
2018-04-19 16:36:35 -06:00
parent 71b8d408e2
commit 82aa7a486c
8 changed files with 53 additions and 53 deletions
+10
View File
@@ -258,6 +258,16 @@ config ARCH_BOARD_FREEDOM_KL26Z
This is the configuration for the NXP/FreeScale Freedom KL26Z board. This This is the configuration for the NXP/FreeScale Freedom KL26Z board. This
board has the K26Z128VLH4 chip with a built-in SDA debugger. board has the K26Z128VLH4 chip with a built-in SDA debugger.
config ARCH_BOARD_HYMINI_STM32V
bool "HY-Mini STM32v board"
depends on ARCH_CHIP_STM32F103VC
select ARCH_HAVE_LEDS
select ARCH_HAVE_BUTTONS
select ARCH_HAVE_IRQBUTTONS
---help---
A configuration for the HY-Mini STM32v board. This board is based on the
STM32F103VCT6 chip.
config ARCH_BOARD_IMXRT1050_EVK config ARCH_BOARD_IMXRT1050_EVK
bool "NXP i.MX RT 1050 EVK" bool "NXP i.MX RT 1050 EVK"
depends on ARCH_CHIP_MIMXRT1052DVL6A depends on ARCH_CHIP_MIMXRT1052DVL6A
+3 -9
View File
@@ -40,20 +40,14 @@
* *
************************************************************************************/ ************************************************************************************/
#ifndef __ARCH_BOARD_BOARD_H #ifndef __CONFIGS_HYMINI_STM32V_INCLUDE_BOARD_H
#define __ARCH_BOARD_BOARD_H #define __CONFIGS_HYMINI_STM32V_INCLUDE_BOARD_H
/************************************************************************************ /************************************************************************************
* Included Files * Included Files
************************************************************************************/ ************************************************************************************/
#include <nuttx/config.h> #include <nuttx/config.h>
#ifndef __ASSEMBLY__
# include <stdint.h>
#endif
#include "stm32_rcc.h"
#include "stm32_sdio.h"
#include "stm32.h"
/************************************************************************************ /************************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
@@ -181,4 +175,4 @@
#define BUTTON_KEYA_BIT (1 << BUTTON_KEYA) #define BUTTON_KEYA_BIT (1 << BUTTON_KEYA)
#define BUTTON_KEYB_BIT (1 << BUTTON_KEYB) #define BUTTON_KEYB_BIT (1 << BUTTON_KEYB)
#endif /* __ARCH_BOARD_BOARD_H */ #endif /* __CONFIGS_HYMINI_STM32V_INCLUDE_BOARD_H */
+1 -8
View File
@@ -43,18 +43,11 @@
#include <debug.h> #include <debug.h>
#include <nuttx/board.h> #include <nuttx/board.h>
#include <arch/board/board.h>
#include "up_arch.h" #include "up_arch.h"
#include "hymini-stm32v.h" #include "hymini-stm32v.h"
/************************************************************************************ #include <arch/board/board.h> /* Should always be included last due to dependencies */
* Pre-processor Definitions
************************************************************************************/
/************************************************************************************
* Private Data
************************************************************************************/
/************************************************************************************ /************************************************************************************
* Public Functions * Public Functions
+2 -4
View File
@@ -44,15 +44,13 @@
#include <nuttx/arch.h> #include <nuttx/arch.h>
#include <nuttx/board.h> #include <nuttx/board.h>
#include <arch/board/board.h>
#include "stm32_gpio.h"
#include "hymini-stm32v.h" #include "hymini-stm32v.h"
#ifdef CONFIG_ARCH_BUTTONS #ifdef CONFIG_ARCH_BUTTONS
/**************************************************************************** #include <arch/board/board.h> /* Should always be included last due to dependencies */
* Pre-processor Definitions
****************************************************************************/
/**************************************************************************** /****************************************************************************
* Public Functions * Public Functions
+20 -17
View File
@@ -45,7 +45,6 @@
#include <debug.h> #include <debug.h>
#include <nuttx/board.h> #include <nuttx/board.h>
#include <arch/board/board.h>
#include "chip.h" #include "chip.h"
#include "up_arch.h" #include "up_arch.h"
@@ -53,6 +52,8 @@
#include "stm32.h" #include "stm32.h"
#include "hymini-stm32v.h" #include "hymini-stm32v.h"
#include <arch/board/board.h> /* Should always be included last due to dependencies */
/**************************************************************************** /****************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
****************************************************************************/ ****************************************************************************/
@@ -138,29 +139,31 @@
****************************************************************************/ ****************************************************************************/
static const uint16_t g_ledbits[8] = static const uint16_t g_ledbits[8] =
{ (LED_STARTED_ON_SETBITS | LED_STARTED_ON_CLRBITS | LED_STARTED_OFF_SETBITS {
| LED_STARTED_OFF_CLRBITS), (LED_STARTED_ON_SETBITS | LED_STARTED_ON_CLRBITS | LED_STARTED_OFF_SETBITS
| LED_STARTED_OFF_CLRBITS),
(LED_HEAPALLOCATE_ON_SETBITS | LED_HEAPALLOCATE_ON_CLRBITS (LED_HEAPALLOCATE_ON_SETBITS | LED_HEAPALLOCATE_ON_CLRBITS
| LED_HEAPALLOCATE_OFF_SETBITS | LED_HEAPALLOCATE_OFF_CLRBITS), | LED_HEAPALLOCATE_OFF_SETBITS | LED_HEAPALLOCATE_OFF_CLRBITS),
(LED_IRQSENABLED_ON_SETBITS | LED_IRQSENABLED_ON_CLRBITS (LED_IRQSENABLED_ON_SETBITS | LED_IRQSENABLED_ON_CLRBITS
| LED_IRQSENABLED_OFF_SETBITS | LED_IRQSENABLED_OFF_CLRBITS), | LED_IRQSENABLED_OFF_SETBITS | LED_IRQSENABLED_OFF_CLRBITS),
(LED_STACKCREATED_ON_SETBITS | LED_STACKCREATED_ON_CLRBITS (LED_STACKCREATED_ON_SETBITS | LED_STACKCREATED_ON_CLRBITS
| LED_STACKCREATED_OFF_SETBITS | LED_STACKCREATED_OFF_CLRBITS), | LED_STACKCREATED_OFF_SETBITS | LED_STACKCREATED_OFF_CLRBITS),
(LED_INIRQ_ON_SETBITS | LED_INIRQ_ON_CLRBITS | LED_INIRQ_OFF_SETBITS (LED_INIRQ_ON_SETBITS | LED_INIRQ_ON_CLRBITS | LED_INIRQ_OFF_SETBITS
| LED_INIRQ_OFF_CLRBITS), | LED_INIRQ_OFF_CLRBITS),
(LED_SIGNAL_ON_SETBITS | LED_SIGNAL_ON_CLRBITS | LED_SIGNAL_OFF_SETBITS (LED_SIGNAL_ON_SETBITS | LED_SIGNAL_ON_CLRBITS | LED_SIGNAL_OFF_SETBITS
| LED_SIGNAL_OFF_CLRBITS), | LED_SIGNAL_OFF_CLRBITS),
(LED_ASSERTION_ON_SETBITS | LED_ASSERTION_ON_CLRBITS | LED_ASSERTION_OFF_SETBITS (LED_ASSERTION_ON_SETBITS | LED_ASSERTION_ON_CLRBITS | LED_ASSERTION_OFF_SETBITS
| LED_ASSERTION_OFF_CLRBITS), | LED_ASSERTION_OFF_CLRBITS),
(LED_PANIC_ON_SETBITS | LED_PANIC_ON_CLRBITS | LED_PANIC_OFF_SETBITS (LED_PANIC_ON_SETBITS | LED_PANIC_ON_CLRBITS | LED_PANIC_OFF_SETBITS
| LED_PANIC_OFF_CLRBITS) }; | LED_PANIC_OFF_CLRBITS)
};
/**************************************************************************** /****************************************************************************
* Private Functions * Private Functions
+6 -7
View File
@@ -54,12 +54,12 @@
#include <nuttx/spi/spi.h> #include <nuttx/spi/spi.h>
#include <nuttx/lcd/lcd.h> #include <nuttx/lcd/lcd.h>
#include <arch/board/board.h>
#include "up_arch.h" #include "up_arch.h"
#include "stm32.h" #include "stm32.h"
#include "hymini-stm32v.h" #include "hymini-stm32v.h"
#include <arch/board/board.h> /* Should always be included last due to dependencies */
/************************************************************************************** /**************************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
**************************************************************************************/ **************************************************************************************/
@@ -344,10 +344,10 @@ static void stm32_selectlcd(void)
/* Bank1 NOR/SRAM timing register configuration */ /* Bank1 NOR/SRAM timing register configuration */
putreg32( putreg32(FSMC_BTR_ADDSET(2) | FSMC_BTR_ADDHLD(0) |FSMC_BTR_DATAST(2) |
FSMC_BTR_ADDSET(2)|FSMC_BTR_ADDHLD(0)|FSMC_BTR_DATAST(2)|FSMC_BTR_BUSTURN(0)| FSMC_BTR_BUSTURN(0) | FSMC_BTR_CLKDIV(0) | FSMC_BTR_DATLAT(0) |
FSMC_BTR_CLKDIV(0)|FSMC_BTR_DATLAT(0)|FSMC_BTR_ACCMODA, FSMC_BTR_ACCMODA,
STM32_FSMC_BTR1); STM32_FSMC_BTR1);
/* As ext mode is not active the write timing is ignored!! */ /* As ext mode is not active the write timing is ignored!! */
@@ -367,7 +367,6 @@ static void stm32_selectlcd(void)
* *
************************************************************************************/ ************************************************************************************/
// FIXME: Check this code !!
static void stm32_deselectlcd(void) static void stm32_deselectlcd(void)
{ {
/* Restore registers to their power up settings */ /* Restore registers to their power up settings */
+2 -1
View File
@@ -45,13 +45,14 @@
#include <debug.h> #include <debug.h>
#include <nuttx/spi/spi.h> #include <nuttx/spi/spi.h>
#include <arch/board/board.h>
#include "up_arch.h" #include "up_arch.h"
#include "chip.h" #include "chip.h"
#include "stm32.h" #include "stm32.h"
#include "hymini-stm32v.h" #include "hymini-stm32v.h"
#include <arch/board/board.h> /* Should always be included last due to dependencies */
#if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) #if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2)
/************************************************************************************ /************************************************************************************
+9 -7
View File
@@ -48,17 +48,18 @@
#include <nuttx/lcd/lcd.h> #include <nuttx/lcd/lcd.h>
#include <nuttx/lcd/ssd1289.h> #include <nuttx/lcd/ssd1289.h>
#include <arch/board/board.h>
#include "up_arch.h" #include "up_arch.h"
#include "stm32.h" #include "stm32.h"
#include "hymini-stm32v.h" #include "hymini-stm32v.h"
#include <arch/board/board.h> /* Should always be included last due to dependencies */
#ifdef CONFIG_LCD_SSD1289 #ifdef CONFIG_LCD_SSD1289
/************************************************************************************** /**************************************************************************************
* Pre-processor Definitions * Pre-processor Definitions
**************************************************************************************/ **************************************************************************************/
/* Configuration **********************************************************************/ /* Configuration **********************************************************************/
#ifndef CONFIG_STM32_FSMC #ifndef CONFIG_STM32_FSMC
@@ -379,9 +380,10 @@ static void stm32_selectlcd(void)
/* Bank1 NOR/SRAM timing register configuration */ /* Bank1 NOR/SRAM timing register configuration */
putreg32( putreg32(FSMC_BTR_ADDSET(1) | FSMC_BTR_ADDHLD(0) | FSMC_BTR_DATAST(2) |
FSMC_BTR_ADDSET(1)|FSMC_BTR_ADDHLD(0)|FSMC_BTR_DATAST(2)|FSMC_BTR_BUSTURN(0)| FSMC_BTR_CLKDIV(0)|FSMC_BTR_DATLAT(0)|FSMC_BTR_ACCMODA, FSMC_BTR_BUSTURN(0) | FSMC_BTR_CLKDIV(0) | FSMC_BTR_DATLAT(0) |
STM32_FSMC_BTR1); FSMC_BTR_ACCMODA,
STM32_FSMC_BTR1);
/* As ext mode is not active the write timing is ignored!! */ /* As ext mode is not active the write timing is ignored!! */
@@ -390,7 +392,7 @@ static void stm32_selectlcd(void)
/* Enable the bank by setting the MBKEN bit */ /* Enable the bank by setting the MBKEN bit */
putreg32(FSMC_BCR_MBKEN | FSMC_BCR_SRAM | FSMC_BCR_MWID16 | FSMC_BCR_WREN, putreg32(FSMC_BCR_MBKEN | FSMC_BCR_SRAM | FSMC_BCR_MWID16 | FSMC_BCR_WREN,
STM32_FSMC_BCR1); STM32_FSMC_BCR1);
} }
/************************************************************************************ /************************************************************************************
@@ -500,7 +502,7 @@ FAR struct lcd_dev_s *board_lcd_getdev(int lcddev)
* Name: board_lcd_uninitialize * Name: board_lcd_uninitialize
* *
* Description: * Description:
* Unitialize the LCD support * Uninitialize the LCD support
* *
**************************************************************************************/ **************************************************************************************/