forked from apache/nuttx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
board/stm32f777zit6-meadow: Add support to F7 Core Compute
This patch add basic support to Meadow F7 Core Compute board. The board profile "f7corecomp" include support to USB Console and SD Card.
- Loading branch information
Showing
8 changed files
with
388 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
boards/arm/stm32f7/stm32f777zit6-meadow/configs/f7corecomp/defconfig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
# | ||
# This file is autogenerated: PLEASE DO NOT EDIT IT. | ||
# | ||
# You can use "make menuconfig" to make any modifications to the installed .config file. | ||
# You can then do "make savedefconfig" to generate a new defconfig file that includes your | ||
# modifications. | ||
# | ||
# CONFIG_MMCSD_SPI is not set | ||
# CONFIG_STM32F7_USE_LEGACY_PINMAP is not set | ||
CONFIG_ARCH="arm" | ||
CONFIG_ARCH_BOARD="stm32f777zit6-meadow" | ||
CONFIG_ARCH_BOARD_MEADOW_F7MICRO=y | ||
CONFIG_ARCH_CHIP="stm32f7" | ||
CONFIG_ARCH_CHIP_STM32F777ZI=y | ||
CONFIG_ARCH_CHIP_STM32F7=y | ||
CONFIG_ARCH_STACKDUMP=y | ||
CONFIG_ARMV7M_DCACHE=y | ||
CONFIG_ARMV7M_DCACHE_WRITETHROUGH=y | ||
CONFIG_ARMV7M_DTCM=y | ||
CONFIG_ARMV7M_ICACHE=y | ||
CONFIG_BOARDCTL_USBDEVCTRL=y | ||
CONFIG_BOARD_LATE_INITIALIZE=y | ||
CONFIG_BOARD_LOOPSPERMSEC=43103 | ||
CONFIG_BOARD_MEADOW_F7_CORE_COMPUTE=y | ||
CONFIG_BUILTIN=y | ||
CONFIG_CDCACM=y | ||
CONFIG_CDCACM_CONSOLE=y | ||
CONFIG_CDCACM_PRODUCTID=0x0001 | ||
CONFIG_CDCACM_PRODUCTSTR="Wilderness Labs" | ||
CONFIG_CDCACM_VENDORID=0x2E6A | ||
CONFIG_CDCACM_VENDORSTR="Meadow F7 Micro" | ||
CONFIG_CRYPTO=y | ||
CONFIG_CRYPTO_RANDOM_POOL=y | ||
CONFIG_DEV_URANDOM=y | ||
CONFIG_DEV_URANDOM_RANDOM_POOL=y | ||
CONFIG_FAT_LCNAMES=y | ||
CONFIG_FAT_LFN=y | ||
CONFIG_FS_FAT=y | ||
CONFIG_FS_LITTLEFS=y | ||
CONFIG_HAVE_CXX=y | ||
CONFIG_HAVE_CXXINITIALIZE=y | ||
CONFIG_INIT_ENTRYPOINT="nsh_main" | ||
CONFIG_INTELHEX_BINARY=y | ||
CONFIG_MMCSD=y | ||
CONFIG_MMCSD_SDIO=y | ||
CONFIG_MM_REGIONS=3 | ||
CONFIG_MTD=y | ||
CONFIG_MTD_BYTE_WRITE=y | ||
CONFIG_MTD_PARTITION=y | ||
CONFIG_MTD_SECT512=y | ||
CONFIG_MTD_W25QXXXJV=y | ||
CONFIG_NSH_ARCHINIT=y | ||
CONFIG_NSH_BUILTIN_APPS=y | ||
CONFIG_NSH_FILEIOSIZE=512 | ||
CONFIG_NSH_LINELEN=64 | ||
CONFIG_NSH_READLINE=y | ||
CONFIG_PREALLOC_TIMERS=4 | ||
CONFIG_RAM_SIZE=245760 | ||
CONFIG_RAM_START=0x20010000 | ||
CONFIG_RAW_BINARY=y | ||
CONFIG_RR_INTERVAL=200 | ||
CONFIG_SCHED_HPWORK=y | ||
CONFIG_SCHED_WAITPID=y | ||
CONFIG_SDMMC2_SDIO_MODE=y | ||
CONFIG_SPI=y | ||
CONFIG_START_DAY=14 | ||
CONFIG_STM32F7_DMA1=y | ||
CONFIG_STM32F7_DMA2=y | ||
CONFIG_STM32F7_OTGFS=y | ||
CONFIG_STM32F7_QSPI_POLLING=y | ||
CONFIG_STM32F7_QUADSPI=y | ||
CONFIG_STM32F7_SDMMC2=y | ||
CONFIG_STM32F7_SDMMC_DMA=y | ||
CONFIG_STM32F7_USART1=y | ||
CONFIG_SYSTEM_FLASH_ERASEALL=y | ||
CONFIG_SYSTEM_NSH=y | ||
CONFIG_TASK_NAME_SIZE=64 | ||
CONFIG_USBDEV=y | ||
CONFIG_W25QXXXJV_QSPI_FREQUENCY=64000000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
boards/arm/stm32f7/stm32f777zit6-meadow/src/board_corecomp.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/**************************************************************************** | ||
* boards/arm/stm32f7/stm32f777zit6-meadow/src/board_corecomp.c | ||
* | ||
* Licensed to the Apache Software Foundation (ASF) under one or more | ||
* contributor license agreements. See the NOTICE file distributed with | ||
* this work for additional information regarding copyright ownership. The | ||
* ASF licenses this file to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance with the | ||
* License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT | ||
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the | ||
* License for the specific language governing permissions and limitations | ||
* under the License. | ||
* | ||
****************************************************************************/ | ||
|
||
/**************************************************************************** | ||
* Included Files | ||
****************************************************************************/ | ||
|
||
#include <nuttx/config.h> | ||
|
||
#include <sys/types.h> | ||
#include <stdbool.h> | ||
#include <stdio.h> | ||
#include <debug.h> | ||
#include <errno.h> | ||
|
||
#include <nuttx/fs/fs.h> | ||
|
||
#include "stm32_bh1750.h" | ||
#include "stm32_bmi270.h" | ||
#include "stm32f777zit6-meadow.h" | ||
|
||
/**************************************************************************** | ||
* Preprocessor definitions | ||
****************************************************************************/ | ||
|
||
/**************************************************************************** | ||
* Public Functions | ||
****************************************************************************/ | ||
|
||
/**************************************************************************** | ||
* Name: init_corecomp | ||
* | ||
* Description: | ||
* Initialize the fixed devices from COre Compute board | ||
* | ||
****************************************************************************/ | ||
|
||
int init_corecomp(void) | ||
{ | ||
int ret = OK; | ||
|
||
/* Initialize SD Card */ | ||
|
||
#ifdef HAVE_SDIO | ||
ret = stm32_sdio_initialize(); | ||
if (ret < 0) | ||
{ | ||
syslog(LOG_ERR, "ERROR: STM32 SDCard failed: %d\n", ret); | ||
} | ||
#endif | ||
|
||
/* Initialize Ethernet */ | ||
|
||
return ret; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.