support control json file

This commit is contained in:
wlyu
2022-03-17 15:33:37 +08:00
parent 52bf15ecac
commit 4843ff9e61
42 changed files with 2857 additions and 346 deletions
+15 -2
View File
@@ -17,10 +17,10 @@
File name: board.c
Description: support imxrt1052-board init function
Others: take SDK_2.6.1_MIMXRT1052xxxxB for references
History:
History:
1. Date: 2022-01-25
Author: AIIT XUOS Lab
Modification:
Modification:
1. support imxrt1052-board MPU、clock、memory init
2. support imxrt1052-board uart、semc、sdio driver init
3. support imxrt1052-board I2C, SPI, ADC, RTC driver init
@@ -66,11 +66,24 @@ int MountSDCard(void)
#include "fsl_gpio.h"
#include "fsl_lpuart.h"
#ifdef BSP_USING_LWIP
#include <connect_ethernet.h>
#endif
#ifdef BSP_USING_LPUART
#include <connect_uart.h>
#endif
#ifdef BSP_USING_ADC
#include <connect_adc.h>
#endif
#ifdef BSP_USING_SPI
#include <connect_spi.h>
#endif
#ifdef BSP_USING_RTC
#include <connect_rtc.h>
#endif
#define NVIC_PRIORITYGROUP_0 0x00000007U /*!< 0 bits for pre-emption priority
4 bits for subpriority */
@@ -22,7 +22,7 @@ menuconfig BSP_USING_GPIO
menuconfig BSP_USING_I2C
bool "Using I2C device"
default y
default n
select RESOURCES_I2C
if BSP_USING_I2C
@@ -31,7 +31,7 @@ menuconfig BSP_USING_I2C
menuconfig BSP_USING_ADC
bool "Using ADC device"
default y
default n
select RESOURCES_ADC
if BSP_USING_ADC
@@ -40,7 +40,7 @@ menuconfig BSP_USING_ADC
menuconfig BSP_USING_SPI
bool "Using SPI device"
default y
default n
select RESOURCES_SPI
if BSP_USING_SPI
@@ -1,3 +1,7 @@
SRC_FILES := fsl_lpspi.c connect_spi.c connect_flash_spi.c
SRC_FILES := fsl_lpspi.c connect_spi.c
ifeq ($(CONFIG_RESOURCES_SPI_SFUD),y)
SRC_FILES += connect_flash_spi.c
endif
include $(KERNEL_ROOT)/compiler.mk