Append full-name of M480 peripheral.

Correct format and typo.
This commit is contained in:
Wayne Lin 2020-06-29 14:09:57 +08:00
parent dba0b1f3ca
commit f9825299b9
4 changed files with 40 additions and 44 deletions

View File

@ -11,7 +11,7 @@ config SOC_SERIES_M480
default n default n
menuconfig BSP_USING_PDMA menuconfig BSP_USING_PDMA
bool "Enable PDMA" bool "Enable Peripheral Direct Memory Access Controller(PDMA)"
default y default y
if BSP_USING_PDMA if BSP_USING_PDMA
@ -27,17 +27,17 @@ config SOC_SERIES_M480
endif endif
config BSP_USING_FMC config BSP_USING_FMC
bool "Enable FMC" bool "Enable Flash Memory Controller(FMC)"
select PKG_USING_FAL select PKG_USING_FAL
default n default n
config BSP_USING_GPIO config BSP_USING_GPIO
bool "Enable GPIO" bool "Enable General Purpose I/O(GPIO)"
select RT_USING_PIN select RT_USING_PIN
default y default y
menuconfig BSP_USING_CLK menuconfig BSP_USING_CLK
bool "Enable CLK" bool "Enable Clock Controller(CLK)"
select RT_USING_PM select RT_USING_PM
select BSP_USING_TMR select BSP_USING_TMR
default y default y
@ -52,7 +52,7 @@ config SOC_SERIES_M480
endif endif
menuconfig BSP_USING_EMAC menuconfig BSP_USING_EMAC
bool "Enable EMAC" bool "Enable Ethernet MAC Controller(EMAC)"
select RT_USING_LWIP select RT_USING_LWIP
select RT_USING_NETDEV select RT_USING_NETDEV
@ -69,7 +69,7 @@ config SOC_SERIES_M480
depends on NU_EMAC_PDMA_MEMCOPY depends on NU_EMAC_PDMA_MEMCOPY
menuconfig BSP_USING_RTC menuconfig BSP_USING_RTC
bool "Enable RTC" bool "Enable Real Time Clock(RTC)"
select RT_USING_RTC select RT_USING_RTC
config NU_RTC_SUPPORT_IO_RW config NU_RTC_SUPPORT_IO_RW
@ -81,7 +81,7 @@ config SOC_SERIES_M480
depends on BSP_USING_RTC && RT_USING_RTC depends on BSP_USING_RTC && RT_USING_RTC
menuconfig BSP_USING_EADC menuconfig BSP_USING_EADC
bool "Enable EADC" bool "Enable Enhanced Analog-to-Digital Converter(EADC)"
config BSP_USING_EADC0 config BSP_USING_EADC0
bool "Enable EADC0" bool "Enable EADC0"
@ -92,7 +92,7 @@ config SOC_SERIES_M480
depends on BSP_USING_EADC && RT_USING_ADC depends on BSP_USING_EADC && RT_USING_ADC
menuconfig BSP_USING_TMR menuconfig BSP_USING_TMR
bool "Enable TIMER" bool "Enable Timer Controller(TIMER)"
config BSP_USING_TIMER config BSP_USING_TIMER
bool bool
@ -229,7 +229,7 @@ config SOC_SERIES_M480
endif endif
menuconfig BSP_USING_UART menuconfig BSP_USING_UART
bool "Enable UART" bool "Enable Universal Asynchronous Receiver/Transmitters(UART)"
select RT_USING_SERIAL select RT_USING_SERIAL
if BSP_USING_UART if BSP_USING_UART
@ -323,7 +323,7 @@ config SOC_SERIES_M480
endif endif
menuconfig BSP_USING_I2C menuconfig BSP_USING_I2C
bool "Enable I2C" bool "Enable I2C Serial Interface Controller(I2C)"
select RT_USING_I2C select RT_USING_I2C
if BSP_USING_I2C if BSP_USING_I2C
@ -338,7 +338,7 @@ config SOC_SERIES_M480
endif endif
menuconfig BSP_USING_USCI menuconfig BSP_USING_USCI
bool "Enable USCI" bool "Enable Universal Serial Control Interface Controller(USCI)"
if BSP_USING_USCI if BSP_USING_USCI
@ -442,7 +442,7 @@ config SOC_SERIES_M480
endif endif
menuconfig BSP_USING_SDH menuconfig BSP_USING_SDH
bool "Enable SDH" bool "Enable Secure Digital Host Controller(SDH)"
select RT_USING_DFS select RT_USING_DFS
if BSP_USING_SDH if BSP_USING_SDH
@ -462,7 +462,7 @@ config SOC_SERIES_M480
endif endif
menuconfig BSP_USING_CAN menuconfig BSP_USING_CAN
bool "Enable CAN" bool "Enable Controller Area Network(CAN)"
select RT_USING_CAN select RT_USING_CAN
if BSP_USING_CAN if BSP_USING_CAN
@ -474,7 +474,7 @@ config SOC_SERIES_M480
endif endif
menuconfig BSP_USING_BPWM menuconfig BSP_USING_BPWM
bool "Enable BPWM" bool "Enable Basic PWM Generator and Capture Timer(BPWM)"
select RT_USING_PWM select RT_USING_PWM
if BSP_USING_BPWM if BSP_USING_BPWM
@ -531,7 +531,7 @@ config SOC_SERIES_M480
endif endif
menuconfig BSP_USING_EPWM menuconfig BSP_USING_EPWM
bool "Enable EPWM" bool "Enable EPWM Generator and Capture Timer(EPWM)"
if BSP_USING_EPWM if BSP_USING_EPWM
@ -587,7 +587,7 @@ config SOC_SERIES_M480
endif endif
menuconfig BSP_USING_SPI menuconfig BSP_USING_SPI
bool "Enable SPI" bool "Enable Serial Peripheral Interface(SPI)"
select RT_USING_SPI select RT_USING_SPI
if BSP_USING_SPI if BSP_USING_SPI
@ -710,7 +710,7 @@ config SOC_SERIES_M480
endif endif
config BSP_USING_I2S config BSP_USING_I2S
bool "Enable I2S" bool "Enable I2S Controller(I2S)"
select RT_USING_AUDIO select RT_USING_AUDIO
if BSP_USING_I2S || BSP_USING_SPII2S if BSP_USING_I2S || BSP_USING_SPII2S
@ -721,7 +721,7 @@ config SOC_SERIES_M480
endif endif
menuconfig BSP_USING_QSPI menuconfig BSP_USING_QSPI
bool "Enable QSPI" bool "Enable Quad Serial Peripheral Interface(QSPI)"
select RT_USING_SPI select RT_USING_SPI
select RT_USING_QSPI select RT_USING_QSPI
@ -742,7 +742,7 @@ config SOC_SERIES_M480
endif endif
menuconfig BSP_USING_SCUART menuconfig BSP_USING_SCUART
bool "Enable SCUART" bool "Enable Smart Card Host Interface - UART(SCUART)"
if BSP_USING_SCUART if BSP_USING_SCUART
config BSP_USING_SCUART0 config BSP_USING_SCUART0
@ -756,7 +756,7 @@ config SOC_SERIES_M480
endif endif
menuconfig BSP_USING_ECAP menuconfig BSP_USING_ECAP
bool "Enable ECAP" bool "Enable Enhanced Input Capture Timer(ECAP)"
if BSP_USING_ECAP if BSP_USING_ECAP
@ -789,7 +789,7 @@ config SOC_SERIES_M480
endif endif
menuconfig BSP_USING_QEI menuconfig BSP_USING_QEI
bool "Enable QEI" bool "Enable Quadrature Encoder Interface(QEI)"
if BSP_USING_QEI if BSP_USING_QEI
config BSP_USING_QEI0 config BSP_USING_QEI0
@ -802,7 +802,7 @@ config SOC_SERIES_M480
endif endif
menuconfig BSP_USING_CRYPTO menuconfig BSP_USING_CRYPTO
bool "Enable CRPT" bool "Enable Cryptographic Accelerator(CRYPTO)"
select RT_USING_HWCRYPTO select RT_USING_HWCRYPTO
select RT_HWCRYPTO_USING_AES select RT_HWCRYPTO_USING_AES
select RT_HWCRYPTO_USING_AES_ECB select RT_HWCRYPTO_USING_AES_ECB
@ -840,13 +840,13 @@ config SOC_SERIES_M480
endif endif
config BSP_USING_TRNG config BSP_USING_TRNG
bool "Enable TRNG" bool "Enable True Random Number Generator(TRNG)"
select BSP_USING_CRYPTO select BSP_USING_CRYPTO
select RT_USING_HWCRYPTO select RT_USING_HWCRYPTO
select RT_HWCRYPTO_USING_RNG select RT_HWCRYPTO_USING_RNG
menuconfig BSP_USING_CRC menuconfig BSP_USING_CRC
bool "Enable CRC" bool "Enable Cyclic Redundancy Check Generator(CRC)"
select BSP_USING_CRYPTO select BSP_USING_CRYPTO
select RT_USING_HWCRYPTO select RT_USING_HWCRYPTO
select RT_HWCRYPTO_USING_CRC select RT_HWCRYPTO_USING_CRC
@ -905,33 +905,33 @@ config SOC_SERIES_M480
endif endif
config BSP_USING_WDT config BSP_USING_WDT
bool "Enable WDT" bool "Enable Watchdog Timer(WDT)"
select RT_USING_WDT select RT_USING_WDT
default y default y
config BSP_USING_EBI config BSP_USING_EBI
bool "Enable EBI" bool "Enable External Bus Interface(EBI)"
default n default n
config BSP_USING_USBD config BSP_USING_USBD
bool "Enable USBD" bool "Enable Full-Speed USB Device Controller(USBD)"
select RT_USING_USB_DEVICE select RT_USING_USB_DEVICE
config BSP_USING_HSUSBD config BSP_USING_HSUSBD
bool "Enable HSUSBD" bool "Enable High-Speed USB Device Controller(HSUSBD)"
select RT_USING_USB_DEVICE select RT_USING_USB_DEVICE
config BSP_USING_USBH config BSP_USING_USBH
bool "Enable USBH" bool "Enable Full-Speed USB Host Controller(USBH)"
select RT_USING_USB_HOST select RT_USING_USB_HOST
select RT_USBH_MSTORAGE select RT_USBH_MSTORAGE
config BSP_USING_HSUSBH config BSP_USING_HSUSBH
bool "Enable HSUSBH" bool "Enable High-Speed USB Host Controller(HSUSBH)"
select RT_USING_USB_HOST select RT_USING_USB_HOST
select RT_USBH_MSTORAGE select RT_USBH_MSTORAGE
config BSP_USING_HSOTG config BSP_USING_HSOTG
bool "Enable HSOTG" bool "Enable High-Speed USB On-The-Go(HSOTG)"
select BSP_USING_HSUSBH select BSP_USING_HSUSBH
select BSP_USING_HSUSBD select BSP_USING_HSUSBD

View File

@ -40,7 +40,7 @@ void rt_hw_board_init(void)
/* Init all pin function setting */ /* Init all pin function setting */
nutool_pincfg_init(); nutool_pincfg_init();
/* Configurate SysTick */ /* Configure SysTick */
SysTick_Config(SystemCoreClock / RT_TICK_PER_SECOND); SysTick_Config(SystemCoreClock / RT_TICK_PER_SECOND);
/* Update System Core Clock */ /* Update System Core Clock */
@ -104,11 +104,9 @@ void rt_hw_cpu_reset(void)
SYS->IPRST0 |= SYS_IPRST0_CHIPRST_Msk; SYS->IPRST0 |= SYS_IPRST0_CHIPRST_Msk;
} }
#ifdef RT_USING_FINSH int reboot(int argc, char** argv)
#include <finsh.h>
static void reboot(uint8_t argc, char **argv)
{ {
rt_hw_cpu_reset(); rt_hw_cpu_reset();
return 0;
} }
FINSH_FUNCTION_EXPORT_ALIAS(reboot, __cmd_reboot, Reboot System); MSH_CMD_EXPORT(reboot, Reboot System);
#endif /* RT_USING_FINSH */

View File

@ -40,7 +40,7 @@ void rt_hw_board_init(void)
/* Init all pin function setting */ /* Init all pin function setting */
nutool_pincfg_init(); nutool_pincfg_init();
/* Configurate SysTick */ /* Configure SysTick */
SysTick_Config(SystemCoreClock / RT_TICK_PER_SECOND); SysTick_Config(SystemCoreClock / RT_TICK_PER_SECOND);
/* Update System Core Clock */ /* Update System Core Clock */
@ -104,11 +104,9 @@ void rt_hw_cpu_reset(void)
SYS->IPRST0 |= SYS_IPRST0_CHIPRST_Msk; SYS->IPRST0 |= SYS_IPRST0_CHIPRST_Msk;
} }
#ifdef RT_USING_FINSH int reboot(int argc, char** argv)
#include <finsh.h>
static void reboot(uint8_t argc, char **argv)
{ {
rt_hw_cpu_reset(); rt_hw_cpu_reset();
return 0;
} }
FINSH_FUNCTION_EXPORT_ALIAS(reboot, __cmd_reboot, Reboot System); MSH_CMD_EXPORT(reboot, Reboot System);
#endif /* RT_USING_FINSH */