mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Review of last PR
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
<tr align="center" bgcolor="#e4e4e4">
|
<tr align="center" bgcolor="#e4e4e4">
|
||||||
<td>
|
<td>
|
||||||
<h1><big><font color="#3c34ec"><i>NuttX README Files</i></font></big></h1>
|
<h1><big><font color="#3c34ec"><i>NuttX README Files</i></font></big></h1>
|
||||||
<p>Last Updated: May 18, 2016</p>
|
<p>Last Updated: May 20, 2016</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@@ -257,6 +257,8 @@ nuttx/
|
|||||||
| | `- <a href="https://bitbucket.org/nuttx/nuttx/configs/src/master/stm32f3discovery/README.txt" target="_blank"><b><i>README.txt</i></b></a>
|
| | `- <a href="https://bitbucket.org/nuttx/nuttx/configs/src/master/stm32f3discovery/README.txt" target="_blank"><b><i>README.txt</i></b></a>
|
||||||
| |- stm32f4discovery/
|
| |- stm32f4discovery/
|
||||||
| | `- <a href="https://bitbucket.org/nuttx/nuttx/configs/src/master/stm32f4discovery/README.txt" target="_blank"><b><i>README.txt</i></b></a>
|
| | `- <a href="https://bitbucket.org/nuttx/nuttx/configs/src/master/stm32f4discovery/README.txt" target="_blank"><b><i>README.txt</i></b></a>
|
||||||
|
| |- stm32f411e-disco/
|
||||||
|
| | `- <a href="https://bitbucket.org/nuttx/nuttx/configs/src/master/stm32f411e-disco/README.txt" target="_blank"><b><i>README.txt</i></b></a>
|
||||||
| |- stm32f429i-disco/
|
| |- stm32f429i-disco/
|
||||||
| | |- <a href="https://bitbucket.org/nuttx/nuttx/configs/src/master/stm32f429i-disco/ide/ltcd/uvision/README.txt" target="_blank"><b><i>ide/ltcd/uvision/README.txt</i></b></a>
|
| | |- <a href="https://bitbucket.org/nuttx/nuttx/configs/src/master/stm32f429i-disco/ide/ltcd/uvision/README.txt" target="_blank"><b><i>ide/ltcd/uvision/README.txt</i></b></a>
|
||||||
| | |- <a href="https://bitbucket.org/nuttx/nuttx/configs/src/master/stm32f429i-disco/ltdc/README.txt" target="_blank"><b><i>ltdc/README.txt</i></b></a>
|
| | |- <a href="https://bitbucket.org/nuttx/nuttx/configs/src/master/stm32f429i-disco/ltdc/README.txt" target="_blank"><b><i>ltdc/README.txt</i></b></a>
|
||||||
|
|||||||
@@ -1432,6 +1432,8 @@ nuttx/
|
|||||||
| | `- README.txt
|
| | `- README.txt
|
||||||
| |- stm32f4discovery/
|
| |- stm32f4discovery/
|
||||||
| | `- README.txt
|
| | `- README.txt
|
||||||
|
| |- stm32f411e-disco/
|
||||||
|
| | `- README.txt
|
||||||
| |- stm32f429i-disco/
|
| |- stm32f429i-disco/
|
||||||
| | |- ide/ltcd/uvision/README.txt
|
| | |- ide/ltcd/uvision/README.txt
|
||||||
| | |- ltdc/README.txt
|
| | |- ltdc/README.txt
|
||||||
|
|||||||
+14
-11
@@ -963,6 +963,16 @@ config ARCH_BOARD_STM32F4_DISCOVERY
|
|||||||
---help---
|
---help---
|
||||||
STMicro STM32F4-Discovery board based on the STMicro STM32F407VGT6 MCU.
|
STMicro STM32F4-Discovery board based on the STMicro STM32F407VGT6 MCU.
|
||||||
|
|
||||||
|
config ARCH_BOARD_STM32F411E_DISCO
|
||||||
|
bool "STMicro STM32F411E-Discovery board"
|
||||||
|
depends on ARCH_CHIP_STM32F411VE
|
||||||
|
select ARCH_HAVE_LEDS
|
||||||
|
select ARCH_HAVE_BUTTONS
|
||||||
|
select ARCH_HAVE_IRQBUTTONS
|
||||||
|
---help---
|
||||||
|
This is a minimal configuration that supports low-level test of the
|
||||||
|
STMicro STM32F411E-Discovery Board.
|
||||||
|
|
||||||
config ARCH_BOARD_STM32F429I_DISCO
|
config ARCH_BOARD_STM32F429I_DISCO
|
||||||
bool "STMicro STM32F429I-Discovery board"
|
bool "STMicro STM32F429I-Discovery board"
|
||||||
depends on ARCH_CHIP_STM32F429Z
|
depends on ARCH_CHIP_STM32F429Z
|
||||||
@@ -994,16 +1004,6 @@ config ARCH_BOARD_STM32L476VG_DISCO
|
|||||||
MCU. The STM32L476VG is a Cortex-M4 optimised for low-power operation
|
MCU. The STM32L476VG is a Cortex-M4 optimised for low-power operation
|
||||||
at up to 80MHz operation with 1024Kb Flash memory and 96+32Kb SRAM.
|
at up to 80MHz operation with 1024Kb Flash memory and 96+32Kb SRAM.
|
||||||
|
|
||||||
config ARCH_BOARD_STM32F411E_DISCO
|
|
||||||
bool "STMicro STM32F411E-Discovery board"
|
|
||||||
depends on ARCH_CHIP_STM32F411VE
|
|
||||||
select ARCH_HAVE_LEDS
|
|
||||||
select ARCH_HAVE_BUTTONS
|
|
||||||
select ARCH_HAVE_IRQBUTTONS
|
|
||||||
---help---
|
|
||||||
This is a minimal configuration that supports low-level test of the
|
|
||||||
STMicro STM32F411E-Discovery Board.
|
|
||||||
|
|
||||||
config ARCH_BOARD_STM32L_DISCOVERY
|
config ARCH_BOARD_STM32L_DISCOVERY
|
||||||
bool "STMicro STM32L-Discovery board"
|
bool "STMicro STM32L-Discovery board"
|
||||||
depends on ARCH_CHIP_STM32L152RB
|
depends on ARCH_CHIP_STM32L152RB
|
||||||
@@ -1422,10 +1422,10 @@ config ARCH_BOARD
|
|||||||
default "stm3240g-eval" if ARCH_BOARD_STM3240G_EVAL
|
default "stm3240g-eval" if ARCH_BOARD_STM3240G_EVAL
|
||||||
default "stm32f3discovery" if ARCH_BOARD_STM32F3_DISCOVERY
|
default "stm32f3discovery" if ARCH_BOARD_STM32F3_DISCOVERY
|
||||||
default "stm32f4discovery" if ARCH_BOARD_STM32F4_DISCOVERY
|
default "stm32f4discovery" if ARCH_BOARD_STM32F4_DISCOVERY
|
||||||
|
default "stm32f411e-disco" if ARCH_BOARD_STM32F411E_DISCO
|
||||||
default "stm32f429i-disco" if ARCH_BOARD_STM32F429I_DISCO
|
default "stm32f429i-disco" if ARCH_BOARD_STM32F429I_DISCO
|
||||||
default "stm32f746g-disco" if ARCH_BOARD_STM32F746G_DISCO
|
default "stm32f746g-disco" if ARCH_BOARD_STM32F746G_DISCO
|
||||||
default "stm32l476vg-disco" if ARCH_BOARD_STM32L476VG_DISCO
|
default "stm32l476vg-disco" if ARCH_BOARD_STM32L476VG_DISCO
|
||||||
default "stm32f411e-disco" if ARCH_BOARD_STM32F411E_DISCO
|
|
||||||
default "stm32ldiscovery" if ARCH_BOARD_STM32L_DISCOVERY
|
default "stm32ldiscovery" if ARCH_BOARD_STM32L_DISCOVERY
|
||||||
default "stm32vldiscovery" if ARCH_BOARD_STM32VL_DISCOVERY
|
default "stm32vldiscovery" if ARCH_BOARD_STM32VL_DISCOVERY
|
||||||
default "mikroe-stm32f4" if ARCH_BOARD_MIKROE_STM32F4
|
default "mikroe-stm32f4" if ARCH_BOARD_MIKROE_STM32F4
|
||||||
@@ -1790,6 +1790,9 @@ endif
|
|||||||
if ARCH_BOARD_STM32F4_DISCOVERY
|
if ARCH_BOARD_STM32F4_DISCOVERY
|
||||||
source "configs/stm32f4discovery/Kconfig"
|
source "configs/stm32f4discovery/Kconfig"
|
||||||
endif
|
endif
|
||||||
|
if ARCH_BOARD_STM32F411E_DISCO
|
||||||
|
source "configs/stm32f411e-disco/Kconfig"
|
||||||
|
endif
|
||||||
if ARCH_BOARD_STM32F429I_DISCO
|
if ARCH_BOARD_STM32F429I_DISCO
|
||||||
source "configs/stm32f429i-disco/Kconfig"
|
source "configs/stm32f429i-disco/Kconfig"
|
||||||
endif
|
endif
|
||||||
|
|||||||
@@ -643,6 +643,10 @@ configs/stm32f103-minimum
|
|||||||
configs/stm32f4discovery
|
configs/stm32f4discovery
|
||||||
STMicro STM32F4-Discovery board based on the STMIcro STM32F407VGT6 MCU.
|
STMicro STM32F4-Discovery board based on the STMIcro STM32F407VGT6 MCU.
|
||||||
|
|
||||||
|
configs/stm32f411e-disco
|
||||||
|
This is a minimal configuration that supports low-level test of the
|
||||||
|
STMicro STM32F411E-Discovery Board.
|
||||||
|
|
||||||
configs/stm32f429i-disco
|
configs/stm32f429i-disco
|
||||||
STMicro STM32F429I-Discovery board based on the STMicro STM32F429ZIT6 MCU.
|
STMicro STM32F429I-Discovery board based on the STMicro STM32F429ZIT6 MCU.
|
||||||
|
|
||||||
|
|||||||
@@ -95,7 +95,6 @@
|
|||||||
* PLL output clock frequency = VCO frequency / PLLP, PLLP = 2, 4, 6, or 8
|
* PLL output clock frequency = VCO frequency / PLLP, PLLP = 2, 4, 6, or 8
|
||||||
* USB OTG FS clock frequency = VCO frequency / PLLQ, 2 <= PLLQ <= 15
|
* USB OTG FS clock frequency = VCO frequency / PLLQ, 2 <= PLLQ <= 15
|
||||||
*
|
*
|
||||||
|
|
||||||
* There is no config for 100 MHz and 48 MHz for usb,
|
* There is no config for 100 MHz and 48 MHz for usb,
|
||||||
* so we would like to have SYSYCLK=96MHz and we must have the USB clock= 48MHz.
|
* so we would like to have SYSYCLK=96MHz and we must have the USB clock= 48MHz.
|
||||||
*
|
*
|
||||||
@@ -112,7 +111,6 @@
|
|||||||
* USB OTG FS and SDIO Clock
|
* USB OTG FS and SDIO Clock
|
||||||
* = PLL_VCO / PLLQ
|
* = PLL_VCO / PLLQ
|
||||||
* = 384,000,000 / 8 = 48,000,000
|
* = 384,000,000 / 8 = 48,000,000
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define STM32_PLLCFG_PLLM RCC_PLLCFG_PLLM(4)
|
#define STM32_PLLCFG_PLLM RCC_PLLCFG_PLLM(4)
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ CONFIG_HOST_LINUX=y
|
|||||||
#
|
#
|
||||||
# Build Configuration
|
# Build Configuration
|
||||||
#
|
#
|
||||||
CONFIG_APPS_DIR="../apps"
|
# CONFIG_APPS_DIR="../apps"
|
||||||
CONFIG_BUILD_FLAT=y
|
CONFIG_BUILD_FLAT=y
|
||||||
# CONFIG_BUILD_2PASS is not set
|
# CONFIG_BUILD_2PASS is not set
|
||||||
|
|
||||||
|
|||||||
@@ -51,9 +51,13 @@ fi
|
|||||||
# toolchain under windows. You will also have to edit this if you install
|
# toolchain under windows. You will also have to edit this if you install
|
||||||
# the CodeSourcery toolchain in any other location
|
# the CodeSourcery toolchain in any other location
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery G++ Lite/bin"
|
||||||
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
#export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/CodeSourcery/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
||||||
#export TOOLCHAIN_BIN="/cygdrive/c/Users/MyName/MentorGraphics/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
#export TOOLCHAIN_BIN="/cygdrive/c/Users/MyName/MentorGraphics/Sourcery_CodeBench_Lite_for_ARM_EABI/bin"
|
||||||
|
|
||||||
|
# This is the location where I installed the ARM "GNU Tools for ARM Embedded Processors"
|
||||||
|
# You can this free toolchain here https://launchpad.net/gcc-arm-embedded
|
||||||
|
export TOOLCHAIN_BIN="/cygdrive/c/Program Files (x86)/GNU Tools ARM Embedded/4.9 2015q2/bin"
|
||||||
|
|
||||||
# This the Cygwin path to the location where I build the buildroot
|
# This the Cygwin path to the location where I build the buildroot
|
||||||
# toolchain.
|
# toolchain.
|
||||||
#export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
#export TOOLCHAIN_BIN="${WD}/../buildroot/build_arm_nofpu/staging_dir/bin"
|
||||||
|
|||||||
@@ -43,8 +43,8 @@
|
|||||||
|
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
flash (rx) : ORIGIN = 0x08000000, LENGTH = 512K
|
flash (rx) : ORIGIN = 0x08000000, LENGTH = 512K
|
||||||
sram (rwx) : ORIGIN = 0x20000000, LENGTH = 128K
|
sram (rwx) : ORIGIN = 0x20000000, LENGTH = 128K
|
||||||
}
|
}
|
||||||
|
|
||||||
OUTPUT_ARCH(arm)
|
OUTPUT_ARCH(arm)
|
||||||
@@ -104,6 +104,7 @@ SECTIONS
|
|||||||
} > sram
|
} > sram
|
||||||
|
|
||||||
/* Stabs debugging sections. */
|
/* Stabs debugging sections. */
|
||||||
|
|
||||||
.stab 0 : { *(.stab) }
|
.stab 0 : { *(.stab) }
|
||||||
.stabstr 0 : { *(.stabstr) }
|
.stabstr 0 : { *(.stabstr) }
|
||||||
.stab.excl 0 : { *(.stab.excl) }
|
.stab.excl 0 : { *(.stab.excl) }
|
||||||
|
|||||||
@@ -53,18 +53,6 @@
|
|||||||
|
|
||||||
#include "stm32f411e-disco.h"
|
#include "stm32f411e-disco.h"
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Pre-processor Definitions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Private Data
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
|
||||||
* Private Functions
|
|
||||||
****************************************************************************/
|
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
@@ -79,9 +67,9 @@
|
|||||||
|
|
||||||
int board_app_initialize(void)
|
int board_app_initialize(void)
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_SCHED_INSTRUMENTATION
|
||||||
/* Configure CPU load estimation */
|
/* Configure CPU load estimation */
|
||||||
|
|
||||||
#ifdef CONFIG_SCHED_INSTRUMENTATION
|
|
||||||
cpuload_initialize_once();
|
cpuload_initialize_once();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -50,14 +50,6 @@
|
|||||||
#include "up_arch.h"
|
#include "up_arch.h"
|
||||||
#include "stm32f411e-disco.h"
|
#include "stm32f411e-disco.h"
|
||||||
|
|
||||||
/************************************************************************************
|
|
||||||
* Pre-processor Definitions
|
|
||||||
************************************************************************************/
|
|
||||||
|
|
||||||
/************************************************************************************
|
|
||||||
* Private Data
|
|
||||||
************************************************************************************/
|
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
* Public Functions
|
* Public Functions
|
||||||
************************************************************************************/
|
************************************************************************************/
|
||||||
@@ -74,26 +66,26 @@
|
|||||||
|
|
||||||
void stm32_boardinitialize(void)
|
void stm32_boardinitialize(void)
|
||||||
{
|
{
|
||||||
|
#ifdef CONFIG_ARCH_LEDS
|
||||||
/* Configure on-board LEDs if LED support has been selected. */
|
/* Configure on-board LEDs if LED support has been selected. */
|
||||||
|
|
||||||
#ifdef CONFIG_ARCH_LEDS
|
|
||||||
board_autoled_initialize();
|
board_autoled_initialize();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || defined(CONFIG_STM32_SPI3)
|
||||||
/* Configure SPI chip selects if 1) SP2 is not disabled, and 2) the weak function
|
/* Configure SPI chip selects if 1) SP2 is not disabled, and 2) the weak function
|
||||||
* stm32_spidev_initialize() has been brought into the link.
|
* stm32_spidev_initialize() has been brought into the link.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(CONFIG_STM32_SPI1) || defined(CONFIG_STM32_SPI2) || defined(CONFIG_STM32_SPI3)
|
|
||||||
stm32_spidev_initialize();
|
stm32_spidev_initialize();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(CONFIG_USBDEV) && defined(CONFIG_STM32_USB)
|
||||||
/* Initialize USB is 1) USBDEV is selected, 2) the USB controller is not
|
/* Initialize USB is 1) USBDEV is selected, 2) the USB controller is not
|
||||||
* disabled, and 3) the weak function stm32_usbinitialize() has been brought
|
* disabled, and 3) the weak function stm32_usbinitialize() has been brought
|
||||||
* into the build.
|
* into the build.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(CONFIG_USBDEV) && defined(CONFIG_STM32_USB)
|
|
||||||
stm32_usbinitialize();
|
stm32_usbinitialize();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@@ -114,12 +106,12 @@ void stm32_boardinitialize(void)
|
|||||||
#ifdef CONFIG_BOARD_INITIALIZE
|
#ifdef CONFIG_BOARD_INITIALIZE
|
||||||
void board_initialize(void)
|
void board_initialize(void)
|
||||||
{
|
{
|
||||||
|
#if defined(CONFIG_NSH_LIBRARY) && !defined(CONFIG_LIB_BOARDCTL)
|
||||||
/* Perform NSH initialization here instead of from the NSH. This
|
/* Perform NSH initialization here instead of from the NSH. This
|
||||||
* alternative NSH initialization is necessary when NSH is ran in user-space
|
* alternative NSH initialization is necessary when NSH is ran in user-space
|
||||||
* but the initialization function must run in kernel space.
|
* but the initialization function must run in kernel space.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#if defined(CONFIG_NSH_LIBRARY) && !defined(CONFIG_LIB_BOARDCTL)
|
|
||||||
board_app_initialize();
|
board_app_initialize();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
@@ -122,16 +122,4 @@ void stm32_spidev_initialize(void);
|
|||||||
|
|
||||||
void stm32_usbinitialize(void);
|
void stm32_usbinitialize(void);
|
||||||
|
|
||||||
/************************************************************************************
|
|
||||||
* Name: board_adc_initialize
|
|
||||||
*
|
|
||||||
* Description:
|
|
||||||
* Initialize and register the ADC driver(s)
|
|
||||||
*
|
|
||||||
************************************************************************************/
|
|
||||||
|
|
||||||
#ifdef CONFIG_ADC
|
|
||||||
int board_adc_initialize(void);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* __CONFIGS_STM32F411E_DISCO_SRC_STM32F411E_DISCO_H */
|
#endif /* __CONFIGS_STM32F411E_DISCO_SRC_STM32F411E_DISCO_H */
|
||||||
|
|||||||
Reference in New Issue
Block a user