mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
The M3 Wildfire port is code complete and ready for test
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5125 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -266,7 +266,7 @@
|
|||||||
# errror "USART1 requires CONFIG_STM32_USART1_REMAP=y"
|
# errror "USART1 requires CONFIG_STM32_USART1_REMAP=y"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_STM32_USART2) && defined()
|
#if defined(CONFIG_STM32_USART2) && defined(CONFIG_STM32_USART2_REMAP)
|
||||||
# errror "USART2 requires CONFIG_STM32_USART2_REMAP=n"
|
# errror "USART2 requires CONFIG_STM32_USART2_REMAP=n"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -139,7 +139,7 @@ int nsh_archinitialize(void)
|
|||||||
|
|
||||||
/* Initialize the SDIO-based MMC/SD slot */
|
/* Initialize the SDIO-based MMC/SD slot */
|
||||||
|
|
||||||
ret = stm32_sdinitialze(CONFIG_NSH_MMCSDMINOR);
|
ret = stm32_sdinitialize(CONFIG_NSH_MMCSDMINOR);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
message("nsh_archinitialize: Failed to initialize MMC/SD slot %d: %d\n",
|
message("nsh_archinitialize: Failed to initialize MMC/SD slot %d: %d\n",
|
||||||
|
|||||||
@@ -170,6 +170,7 @@ void stm32_spi1select(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool sele
|
|||||||
stm32_gpiowrite(GPIO_FLASH_CS, !selected);
|
stm32_gpiowrite(GPIO_FLASH_CS, !selected);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
#endif
|
||||||
#ifdef CONFIG_NET_ENC28J60
|
#ifdef CONFIG_NET_ENC28J60
|
||||||
if (devid == SPIDEV_ETHERNET)
|
if (devid == SPIDEV_ETHERNET)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -74,9 +74,11 @@
|
|||||||
|
|
||||||
void stm32_usbinitialize(void)
|
void stm32_usbinitialize(void)
|
||||||
{
|
{
|
||||||
/* USB Soft Connect Pullup: PB.14 */
|
/* USB Soft Connect Pullup */
|
||||||
|
|
||||||
|
#if 0 /* REVISIT */
|
||||||
stm32_configgpio(GPIO_USB_PULLUP);
|
stm32_configgpio(GPIO_USB_PULLUP);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/************************************************************************************
|
/************************************************************************************
|
||||||
@@ -94,7 +96,9 @@ void stm32_usbinitialize(void)
|
|||||||
int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable)
|
int stm32_usbpullup(FAR struct usbdev_s *dev, bool enable)
|
||||||
{
|
{
|
||||||
usbtrace(TRACE_DEVPULLUP, (uint16_t)enable);
|
usbtrace(TRACE_DEVPULLUP, (uint16_t)enable);
|
||||||
|
#if 0 /* REVISIT */
|
||||||
stm32_gpiowrite(GPIO_USB_PULLUP, !enable);
|
stm32_gpiowrite(GPIO_USB_PULLUP, !enable);
|
||||||
|
#endif
|
||||||
return OK;
|
return OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+102
-10
@@ -79,9 +79,16 @@ CONFIG_BOARD_LOOPSPERMSEC=5483
|
|||||||
#
|
#
|
||||||
# STM32 Configuration Options
|
# STM32 Configuration Options
|
||||||
#
|
#
|
||||||
# CONFIG_ARCH_CHIP_STM32F103ZET6 is not set
|
# CONFIG_ARCH_CHIP_STM32F100C8 is not set
|
||||||
|
# CONFIG_ARCH_CHIP_STM32F100CB is not set
|
||||||
|
# CONFIG_ARCH_CHIP_STM32F100R8 is not set
|
||||||
|
# CONFIG_ARCH_CHIP_STM32F100RB is not set
|
||||||
|
# CONFIG_ARCH_CHIP_STM32F100V8 is not set
|
||||||
|
# CONFIG_ARCH_CHIP_STM32F100VB is not set
|
||||||
# CONFIG_ARCH_CHIP_STM32F103RET6 is not set
|
# CONFIG_ARCH_CHIP_STM32F103RET6 is not set
|
||||||
# CONFIG_ARCH_CHIP_STM32F103VCT6 is not set
|
# CONFIG_ARCH_CHIP_STM32F103VCT6 is not set
|
||||||
|
# CONFIG_ARCH_CHIP_STM32F103VET6 is not set
|
||||||
|
# CONFIG_ARCH_CHIP_STM32F103ZET6 is not set
|
||||||
# CONFIG_ARCH_CHIP_STM32F105VBT7 is not set
|
# CONFIG_ARCH_CHIP_STM32F105VBT7 is not set
|
||||||
CONFIG_ARCH_CHIP_STM32F107VC=y
|
CONFIG_ARCH_CHIP_STM32F107VC=y
|
||||||
# CONFIG_ARCH_CHIP_STM32F207IG is not set
|
# CONFIG_ARCH_CHIP_STM32F207IG is not set
|
||||||
@@ -184,6 +191,7 @@ CONFIG_STM32_PHYSR_FULLDUPLEX=0x0004
|
|||||||
# Architecture Options
|
# Architecture Options
|
||||||
#
|
#
|
||||||
# CONFIG_ARCH_NOINTC is not set
|
# CONFIG_ARCH_NOINTC is not set
|
||||||
|
# CONFIG_ARCH_DMA is not set
|
||||||
CONFIG_ARCH_STACKDUMP=y
|
CONFIG_ARCH_STACKDUMP=y
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -292,30 +300,70 @@ CONFIG_PTHREAD_STACK_DEFAULT=2048
|
|||||||
#
|
#
|
||||||
# Device Drivers
|
# Device Drivers
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
|
||||||
# Device Driver Configuration
|
|
||||||
#
|
|
||||||
CONFIG_DEV_NULL=y
|
CONFIG_DEV_NULL=y
|
||||||
# CONFIG_DEV_ZERO is not set
|
# CONFIG_DEV_ZERO is not set
|
||||||
# CONFIG_LOOP is not set
|
# CONFIG_LOOP is not set
|
||||||
# CONFIG_RAMDISK is not set
|
# CONFIG_RAMDISK is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# CAN Driver Options
|
||||||
|
#
|
||||||
# CONFIG_CAN is not set
|
# CONFIG_CAN is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# PWM Driver Options
|
||||||
|
#
|
||||||
# CONFIG_PWM is not set
|
# CONFIG_PWM is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# I2C Driver Options
|
||||||
|
#
|
||||||
# CONFIG_I2C is not set
|
# CONFIG_I2C is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# SPI Driver Options
|
||||||
|
#
|
||||||
CONFIG_SPI=y
|
CONFIG_SPI=y
|
||||||
# CONFIG_SPI_OWNBUS is not set
|
# CONFIG_SPI_OWNBUS is not set
|
||||||
CONFIG_SPI_EXCHANGE=y
|
CONFIG_SPI_EXCHANGE=y
|
||||||
CONFIG_SPI_CMDDATA=y
|
CONFIG_SPI_CMDDATA=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# RTC Driver Options
|
||||||
|
#
|
||||||
CONFIG_RTC=y
|
CONFIG_RTC=y
|
||||||
# CONFIG_RTC_DATETIME is not set
|
# CONFIG_RTC_DATETIME is not set
|
||||||
# CONFIG_RTC_HIRES is not set
|
# CONFIG_RTC_HIRES is not set
|
||||||
# CONFIG_RTC_ALARM is not set
|
# CONFIG_RTC_ALARM is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Watchdog Driver Options
|
||||||
|
#
|
||||||
# CONFIG_WATCHDOG is not set
|
# CONFIG_WATCHDOG is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Analog Driver Options
|
||||||
|
#
|
||||||
# CONFIG_ANALOG is not set
|
# CONFIG_ANALOG is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Block-to-Character Driver Support
|
||||||
|
#
|
||||||
# CONFIG_BCH is not set
|
# CONFIG_BCH is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Input device Driver Options
|
||||||
|
#
|
||||||
# CONFIG_INPUT is not set
|
# CONFIG_INPUT is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# LCD Driver Options
|
||||||
|
#
|
||||||
# CONFIG_LCD is not set
|
# CONFIG_LCD is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# MMCSD Driver Options
|
||||||
|
#
|
||||||
CONFIG_MMCSD=y
|
CONFIG_MMCSD=y
|
||||||
CONFIG_MMCSD_NSLOTS=1
|
CONFIG_MMCSD_NSLOTS=1
|
||||||
# CONFIG_MMCSD_READONLY is not set
|
# CONFIG_MMCSD_READONLY is not set
|
||||||
@@ -325,14 +373,42 @@ CONFIG_MMCSD_HAVECARDDETECT=y
|
|||||||
CONFIG_MMCSD_SPI=y
|
CONFIG_MMCSD_SPI=y
|
||||||
CONFIG_MMCSD_SPICLOCK=12500000
|
CONFIG_MMCSD_SPICLOCK=12500000
|
||||||
# CONFIG_MMCSD_SDIO is not set
|
# CONFIG_MMCSD_SDIO is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# I2C Driver Options
|
||||||
|
#
|
||||||
# CONFIG_MTD is not set
|
# CONFIG_MTD is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Network Device Driver Options
|
||||||
|
#
|
||||||
# CONFIG_NETDEVICES is not set
|
# CONFIG_NETDEVICES is not set
|
||||||
# CONFIG_NET_SLIP is not set
|
# CONFIG_NET_SLIP is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Pipe Options
|
||||||
|
#
|
||||||
# CONFIG_PIPES is not set
|
# CONFIG_PIPES is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Power Management Options
|
||||||
|
#
|
||||||
# CONFIG_PM is not set
|
# CONFIG_PM is not set
|
||||||
# CONFIG_POWER is not set
|
# CONFIG_POWER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Sensor Driver Options
|
||||||
|
#
|
||||||
# CONFIG_SENSORS is not set
|
# CONFIG_SENSORS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Osmocom-bb Sercomm Driver Options
|
||||||
|
#
|
||||||
# CONFIG_SERCOMM_CONSOLE is not set
|
# CONFIG_SERCOMM_CONSOLE is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Serial Driver Options
|
||||||
|
#
|
||||||
CONFIG_SERIAL=y
|
CONFIG_SERIAL=y
|
||||||
# CONFIG_LOWLEVEL_CONSOLE is not set
|
# CONFIG_LOWLEVEL_CONSOLE is not set
|
||||||
# CONFIG_16550_UART is not set
|
# CONFIG_16550_UART is not set
|
||||||
@@ -351,17 +427,33 @@ CONFIG_USART2_BAUD=115200
|
|||||||
CONFIG_USART2_BITS=8
|
CONFIG_USART2_BITS=8
|
||||||
CONFIG_USART2_PARITY=0
|
CONFIG_USART2_PARITY=0
|
||||||
CONFIG_USART2_2STOP=0
|
CONFIG_USART2_2STOP=0
|
||||||
|
|
||||||
|
#
|
||||||
|
# USB Device Driver Options
|
||||||
|
#
|
||||||
# CONFIG_USBDEV is not set
|
# CONFIG_USBDEV is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# USB Host Driver Options
|
||||||
|
#
|
||||||
# CONFIG_USBHOST is not set
|
# CONFIG_USBHOST is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Wireless Device Driver Options
|
||||||
|
#
|
||||||
# CONFIG_WIRELESS is not set
|
# CONFIG_WIRELESS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# System Logging Device Options
|
||||||
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
# System Logging
|
# System Logging
|
||||||
#
|
#
|
||||||
# CONFIG_RAMLOG is not set
|
# CONFIG_RAMLOG is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Networking support
|
# Networking Support
|
||||||
#
|
#
|
||||||
CONFIG_NET=y
|
CONFIG_NET=y
|
||||||
# CONFIG_NET_NOINTS is not set
|
# CONFIG_NET_NOINTS is not set
|
||||||
@@ -393,7 +485,7 @@ CONFIG_NET_ARPTAB_SIZE=16
|
|||||||
# CONFIG_NET_ARP_IPIN is not set
|
# CONFIG_NET_ARP_IPIN is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# File systems
|
# File Systems
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
@@ -415,13 +507,13 @@ CONFIG_FAT_MAXFNAME=32
|
|||||||
# CONFIG_SYSLOG is not set
|
# CONFIG_SYSLOG is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Memory management
|
# Memory Management
|
||||||
#
|
#
|
||||||
# CONFIG_MM_SMALL is not set
|
# CONFIG_MM_SMALL is not set
|
||||||
CONFIG_MM_REGIONS=1
|
CONFIG_MM_REGIONS=1
|
||||||
|
|
||||||
#
|
#
|
||||||
# Library routines
|
# Library Routines
|
||||||
#
|
#
|
||||||
CONFIG_STDIO_BUFFER_SIZE=256
|
CONFIG_STDIO_BUFFER_SIZE=256
|
||||||
CONFIG_STDIO_LINEBUFFER=y
|
CONFIG_STDIO_LINEBUFFER=y
|
||||||
@@ -445,7 +537,7 @@ CONFIG_HAVE_CXX=y
|
|||||||
# CONFIG_CXX_NEWLONG is not set
|
# CONFIG_CXX_NEWLONG is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Application configuration
|
# Application Configuration
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user