forked from xuos/xiuos
remove default config
This commit is contained in:
parent
52bf15ecac
commit
68e5436aae
|
@ -17,10 +17,10 @@
|
||||||
File name: board.c
|
File name: board.c
|
||||||
Description: support imxrt1052-board init function
|
Description: support imxrt1052-board init function
|
||||||
Others: take SDK_2.6.1_MIMXRT1052xxxxB for references
|
Others: take SDK_2.6.1_MIMXRT1052xxxxB for references
|
||||||
History:
|
History:
|
||||||
1. Date: 2022-01-25
|
1. Date: 2022-01-25
|
||||||
Author: AIIT XUOS Lab
|
Author: AIIT XUOS Lab
|
||||||
Modification:
|
Modification:
|
||||||
1. support imxrt1052-board MPU、clock、memory init
|
1. support imxrt1052-board MPU、clock、memory init
|
||||||
2. support imxrt1052-board uart、semc、sdio driver init
|
2. support imxrt1052-board uart、semc、sdio driver init
|
||||||
3. support imxrt1052-board I2C, SPI, ADC, RTC driver init
|
3. support imxrt1052-board I2C, SPI, ADC, RTC driver init
|
||||||
|
@ -68,9 +68,18 @@ int MountSDCard(void)
|
||||||
|
|
||||||
#include <connect_ethernet.h>
|
#include <connect_ethernet.h>
|
||||||
#include <connect_uart.h>
|
#include <connect_uart.h>
|
||||||
|
|
||||||
|
#ifdef BSP_USING_ADC
|
||||||
#include <connect_adc.h>
|
#include <connect_adc.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef BSP_USING_SPI
|
||||||
#include <connect_spi.h>
|
#include <connect_spi.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef BSP_USING_RTC
|
||||||
#include <connect_rtc.h>
|
#include <connect_rtc.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#define NVIC_PRIORITYGROUP_0 0x00000007U /*!< 0 bits for pre-emption priority
|
#define NVIC_PRIORITYGROUP_0 0x00000007U /*!< 0 bits for pre-emption priority
|
||||||
4 bits for subpriority */
|
4 bits for subpriority */
|
||||||
|
|
|
@ -22,7 +22,7 @@ menuconfig BSP_USING_GPIO
|
||||||
|
|
||||||
menuconfig BSP_USING_I2C
|
menuconfig BSP_USING_I2C
|
||||||
bool "Using I2C device"
|
bool "Using I2C device"
|
||||||
default y
|
default n
|
||||||
select RESOURCES_I2C
|
select RESOURCES_I2C
|
||||||
|
|
||||||
if BSP_USING_I2C
|
if BSP_USING_I2C
|
||||||
|
@ -31,7 +31,7 @@ menuconfig BSP_USING_I2C
|
||||||
|
|
||||||
menuconfig BSP_USING_ADC
|
menuconfig BSP_USING_ADC
|
||||||
bool "Using ADC device"
|
bool "Using ADC device"
|
||||||
default y
|
default n
|
||||||
select RESOURCES_ADC
|
select RESOURCES_ADC
|
||||||
|
|
||||||
if BSP_USING_ADC
|
if BSP_USING_ADC
|
||||||
|
@ -40,7 +40,7 @@ menuconfig BSP_USING_ADC
|
||||||
|
|
||||||
menuconfig BSP_USING_SPI
|
menuconfig BSP_USING_SPI
|
||||||
bool "Using SPI device"
|
bool "Using SPI device"
|
||||||
default y
|
default n
|
||||||
select RESOURCES_SPI
|
select RESOURCES_SPI
|
||||||
|
|
||||||
if BSP_USING_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
|
include $(KERNEL_ROOT)/compiler.mk
|
||||||
|
|
Loading…
Reference in New Issue