configs/nucleo-l432kc: Fix RAM size; STM31L4x2xx has only 64Kb of RAM. Remove references to I2C and SDIO: There is no I2C2 or SDIO on the STM32F4x2xx.
This commit is contained in:
parent
b05f846121
commit
1ef922faac
@ -20,7 +20,6 @@ NucleoL432KC:
|
|||||||
SPIs: Up to 2 SPIs
|
SPIs: Up to 2 SPIs
|
||||||
SAIs: 1 dual-channel audio interface
|
SAIs: 1 dual-channel audio interface
|
||||||
CAN interface
|
CAN interface
|
||||||
SDIO interface
|
|
||||||
QSPI interface
|
QSPI interface
|
||||||
USB: USB 2.0 full-speed device/host/OTG controller with on-chip PHY
|
USB: USB 2.0 full-speed device/host/OTG controller with on-chip PHY
|
||||||
CRC calculation unit
|
CRC calculation unit
|
||||||
|
@ -125,17 +125,6 @@
|
|||||||
(GPIO_OUTPUT | GPIO_OPENDRAIN | GPIO_SPEED_50MHz | GPIO_OUTPUT_SET | \
|
(GPIO_OUTPUT | GPIO_OPENDRAIN | GPIO_SPEED_50MHz | GPIO_OUTPUT_SET | \
|
||||||
GPIO_PORTB | GPIO_PIN7)
|
GPIO_PORTB | GPIO_PIN7)
|
||||||
|
|
||||||
#define GPIO_I2C2_SCL \
|
|
||||||
(GPIO_I2C2_SCL_1 | GPIO_OPENDRAIN | GPIO_SPEED_50MHz | GPIO_OUTPUT_SET)
|
|
||||||
#define GPIO_I2C2_SDA \
|
|
||||||
(GPIO_I2C2_SDA_1 | GPIO_OPENDRAIN | GPIO_SPEED_50MHz | GPIO_OUTPUT_SET)
|
|
||||||
#define GPIO_I2C2_SCL_GPIO \
|
|
||||||
(GPIO_OUTPUT | GPIO_OPENDRAIN | GPIO_SPEED_50MHz | GPIO_OUTPUT_SET | \
|
|
||||||
GPIO_PORTB | GPIO_PIN10)
|
|
||||||
#define GPIO_I2C2_SDA_GPIO \
|
|
||||||
(GPIO_OUTPUT | GPIO_OPENDRAIN | GPIO_SPEED_50MHz | GPIO_OUTPUT_SET | \
|
|
||||||
GPIO_PORTB | GPIO_PIN11)
|
|
||||||
|
|
||||||
/* SPI */
|
/* SPI */
|
||||||
|
|
||||||
/* SPI1 is available on the arduino protocol at positions D11/12/13 */
|
/* SPI1 is available on the arduino protocol at positions D11/12/13 */
|
||||||
|
@ -83,7 +83,7 @@
|
|||||||
* Flash Latency(WS) : 4
|
* Flash Latency(WS) : 4
|
||||||
* Prefetch Buffer : OFF
|
* Prefetch Buffer : OFF
|
||||||
* 48MHz for USB OTG FS, : Doable if required using PLLSAI1 or MSI
|
* 48MHz for USB OTG FS, : Doable if required using PLLSAI1 or MSI
|
||||||
* SDIO and RNG clock
|
* RNG clock
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* HSI - 16 MHz RC factory-trimmed
|
/* HSI - 16 MHz RC factory-trimmed
|
||||||
@ -190,7 +190,6 @@
|
|||||||
* UART5
|
* UART5
|
||||||
* LPUART1
|
* LPUART1
|
||||||
* I2C1
|
* I2C1
|
||||||
* I2C2
|
|
||||||
* I2C3
|
* I2C3
|
||||||
* LPTIM1
|
* LPTIM1
|
||||||
* LPTIM2
|
* LPTIM2
|
||||||
|
@ -38,7 +38,7 @@ CONFIG_NSH_READLINE=y
|
|||||||
CONFIG_PREALLOC_MQ_MSGS=4
|
CONFIG_PREALLOC_MQ_MSGS=4
|
||||||
CONFIG_PREALLOC_TIMERS=4
|
CONFIG_PREALLOC_TIMERS=4
|
||||||
CONFIG_PREALLOC_WDOGS=8
|
CONFIG_PREALLOC_WDOGS=8
|
||||||
CONFIG_RAM_SIZE=98304
|
CONFIG_RAM_SIZE=65536
|
||||||
CONFIG_RAM_START=0x20000000
|
CONFIG_RAM_START=0x20000000
|
||||||
CONFIG_RAW_BINARY=y
|
CONFIG_RAW_BINARY=y
|
||||||
CONFIG_RR_INTERVAL=200
|
CONFIG_RR_INTERVAL=200
|
||||||
|
@ -54,7 +54,6 @@
|
|||||||
|
|
||||||
#define HAVE_PROC 1
|
#define HAVE_PROC 1
|
||||||
#define HAVE_RTC_DRIVER 1
|
#define HAVE_RTC_DRIVER 1
|
||||||
#define HAVE_MMCSD 1
|
|
||||||
|
|
||||||
#if !defined(CONFIG_FS_PROCFS)
|
#if !defined(CONFIG_FS_PROCFS)
|
||||||
# undef HAVE_PROC
|
# undef HAVE_PROC
|
||||||
@ -71,11 +70,6 @@
|
|||||||
# undef HAVE_RTC_DRIVER
|
# undef HAVE_RTC_DRIVER
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(CONFIG_STM32L4_SDIO) || !defined(CONFIG_MMCSD) || \
|
|
||||||
!defined(CONFIG_MMCSD_SDIO)
|
|
||||||
# undef HAVE_MMCSD
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* LED. User LD3: the green LED is a user LED connected to Arduino signal D13
|
/* LED. User LD3: the green LED is a user LED connected to Arduino signal D13
|
||||||
* corresponding to MCU I/O PB3 (pin 26)
|
* corresponding to MCU I/O PB3 (pin 26)
|
||||||
* target.
|
* target.
|
||||||
|
@ -170,37 +170,6 @@ int board_app_initialize(uintptr_t arg)
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef HAVE_MMCSD
|
|
||||||
/* First, get an instance of the SDIO interface */
|
|
||||||
|
|
||||||
g_sdio = sdio_initialize(CONFIG_NSH_MMCSDSLOTNO);
|
|
||||||
if (!g_sdio)
|
|
||||||
{
|
|
||||||
syslog(LOG_ERR, "ERROR: Failed to initialize SDIO slot %d\n",
|
|
||||||
CONFIG_NSH_MMCSDSLOTNO);
|
|
||||||
return -ENODEV;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Now bind the SDIO interface to the MMC/SD driver */
|
|
||||||
|
|
||||||
ret = mmcsd_slotinitialize(CONFIG_NSH_MMCSDMINOR, g_sdio);
|
|
||||||
if (ret != OK)
|
|
||||||
{
|
|
||||||
syslog(LOG_ERR,
|
|
||||||
"ERROR: Failed to bind SDIO to the MMC/SD driver: %d\n",
|
|
||||||
ret);
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Then let's guess and say that there is a card in the slot. There is no
|
|
||||||
* card detect GPIO.
|
|
||||||
*/
|
|
||||||
|
|
||||||
sdio_mediachange(g_sdio, true);
|
|
||||||
|
|
||||||
syslog(LOG_INFO, "[boot] Initialized SDIO\n");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef CONFIG_PWM
|
#ifdef CONFIG_PWM
|
||||||
/* Initialize PWM and register the PWM device. */
|
/* Initialize PWM and register the PWM device. */
|
||||||
|
|
||||||
|
@ -85,10 +85,6 @@ void stm32l4_spiinitialize(void)
|
|||||||
|
|
||||||
g_spi1 = stm32l4_spibus_initialize(1);
|
g_spi1 = stm32l4_spibus_initialize(1);
|
||||||
|
|
||||||
#ifdef HAVE_MMCSD
|
|
||||||
stm32l4_configgpio(GPIO_SPI_CS_SD_CARD);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
spiinfo("SPI1 initialized\n");
|
spiinfo("SPI1 initialized\n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -133,13 +129,6 @@ void stm32l4_spi1select(FAR struct spi_dev_s *dev, uint32_t devid, bool selected
|
|||||||
{
|
{
|
||||||
spiinfo("devid: %08X CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
|
spiinfo("devid: %08X CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
|
||||||
|
|
||||||
#ifdef HAVE_MMCSD
|
|
||||||
if (devid == SPIDEV_MMCSD(0))
|
|
||||||
{
|
|
||||||
stm32l4_gpiowrite(GPIO_SPI_CS_SD_CARD, !selected);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
uint8_t stm32l4_spi1status(FAR struct spi_dev_s *dev, uint32_t devid)
|
uint8_t stm32l4_spi1status(FAR struct spi_dev_s *dev, uint32_t devid)
|
||||||
|
Loading…
Reference in New Issue
Block a user