Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Mozi
rt-thread
提交
f9825299
R
rt-thread
项目概览
Mozi
/
rt-thread
与 Fork 源项目一致
Fork自
RT-Thread / rt-thread
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
rt-thread
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f9825299
编写于
6月 29, 2020
作者:
W
Wayne Lin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Append full-name of M480 peripheral.
Correct format and typo.
上级
dba0b1f3
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
40 addition
and
44 deletion
+40
-44
bsp/nuvoton/libraries/m480/rtt_port/Kconfig
bsp/nuvoton/libraries/m480/rtt_port/Kconfig
+31
-31
bsp/nuvoton/libraries/m480/rtt_port/drv_uart.c
bsp/nuvoton/libraries/m480/rtt_port/drv_uart.c
+1
-1
bsp/nuvoton/numaker-iot-m487/board/board.c
bsp/nuvoton/numaker-iot-m487/board/board.c
+4
-6
bsp/nuvoton/numaker-pfm-m487/board/board.c
bsp/nuvoton/numaker-pfm-m487/board/board.c
+4
-6
未找到文件。
bsp/nuvoton/libraries/m480/rtt_port/Kconfig
浏览文件 @
f9825299
...
...
@@ -11,7 +11,7 @@ config SOC_SERIES_M480
default n
menuconfig BSP_USING_PDMA
bool "Enable P
DMA
"
bool "Enable P
eripheral Direct Memory Access Controller(PDMA)
"
default y
if BSP_USING_PDMA
...
...
@@ -27,17 +27,17 @@ config SOC_SERIES_M480
endif
config BSP_USING_FMC
bool "Enable F
MC
"
bool "Enable F
lash Memory Controller(FMC)
"
select PKG_USING_FAL
default n
config BSP_USING_GPIO
bool "Enable G
PIO
"
bool "Enable G
eneral Purpose I/O(GPIO)
"
select RT_USING_PIN
default y
menuconfig BSP_USING_CLK
bool "Enable C
LK
"
bool "Enable C
lock Controller(CLK)
"
select RT_USING_PM
select BSP_USING_TMR
default y
...
...
@@ -52,7 +52,7 @@ config SOC_SERIES_M480
endif
menuconfig BSP_USING_EMAC
bool "Enable E
MAC
"
bool "Enable E
thernet MAC Controller(EMAC)
"
select RT_USING_LWIP
select RT_USING_NETDEV
...
...
@@ -69,7 +69,7 @@ config SOC_SERIES_M480
depends on NU_EMAC_PDMA_MEMCOPY
menuconfig BSP_USING_RTC
bool "Enable R
TC
"
bool "Enable R
eal Time Clock(RTC)
"
select RT_USING_RTC
config NU_RTC_SUPPORT_IO_RW
...
...
@@ -81,7 +81,7 @@ config SOC_SERIES_M480
depends on BSP_USING_RTC && RT_USING_RTC
menuconfig BSP_USING_EADC
bool "Enable E
ADC
"
bool "Enable E
nhanced Analog-to-Digital Converter(EADC)
"
config BSP_USING_EADC0
bool "Enable EADC0"
...
...
@@ -92,7 +92,7 @@ config SOC_SERIES_M480
depends on BSP_USING_EADC && RT_USING_ADC
menuconfig BSP_USING_TMR
bool "Enable T
IMER
"
bool "Enable T
imer Controller(TIMER)
"
config BSP_USING_TIMER
bool
...
...
@@ -229,7 +229,7 @@ config SOC_SERIES_M480
endif
menuconfig BSP_USING_UART
bool "Enable U
ART
"
bool "Enable U
niversal Asynchronous Receiver/Transmitters(UART)
"
select RT_USING_SERIAL
if BSP_USING_UART
...
...
@@ -323,7 +323,7 @@ config SOC_SERIES_M480
endif
menuconfig BSP_USING_I2C
bool "Enable I2C"
bool "Enable I2C
Serial Interface Controller(I2C)
"
select RT_USING_I2C
if BSP_USING_I2C
...
...
@@ -338,7 +338,7 @@ config SOC_SERIES_M480
endif
menuconfig BSP_USING_USCI
bool "Enable U
SCI
"
bool "Enable U
niversal Serial Control Interface Controller(USCI)
"
if BSP_USING_USCI
...
...
@@ -442,7 +442,7 @@ config SOC_SERIES_M480
endif
menuconfig BSP_USING_SDH
bool "Enable S
DH
"
bool "Enable S
ecure Digital Host Controller(SDH)
"
select RT_USING_DFS
if BSP_USING_SDH
...
...
@@ -462,7 +462,7 @@ config SOC_SERIES_M480
endif
menuconfig BSP_USING_CAN
bool "Enable C
AN
"
bool "Enable C
ontroller Area Network(CAN)
"
select RT_USING_CAN
if BSP_USING_CAN
...
...
@@ -474,7 +474,7 @@ config SOC_SERIES_M480
endif
menuconfig BSP_USING_BPWM
bool "Enable B
PWM
"
bool "Enable B
asic PWM Generator and Capture Timer(BPWM)
"
select RT_USING_PWM
if BSP_USING_BPWM
...
...
@@ -531,7 +531,7 @@ config SOC_SERIES_M480
endif
menuconfig BSP_USING_EPWM
bool "Enable EPWM"
bool "Enable EPWM
Generator and Capture Timer(EPWM)
"
if BSP_USING_EPWM
...
...
@@ -587,7 +587,7 @@ config SOC_SERIES_M480
endif
menuconfig BSP_USING_SPI
bool "Enable S
PI
"
bool "Enable S
erial Peripheral Interface(SPI)
"
select RT_USING_SPI
if BSP_USING_SPI
...
...
@@ -710,7 +710,7 @@ config SOC_SERIES_M480
endif
config BSP_USING_I2S
bool "Enable I2S"
bool "Enable I2S
Controller(I2S)
"
select RT_USING_AUDIO
if BSP_USING_I2S || BSP_USING_SPII2S
...
...
@@ -721,7 +721,7 @@ config SOC_SERIES_M480
endif
menuconfig BSP_USING_QSPI
bool "Enable Q
SPI
"
bool "Enable Q
uad Serial Peripheral Interface(QSPI)
"
select RT_USING_SPI
select RT_USING_QSPI
...
...
@@ -742,7 +742,7 @@ config SOC_SERIES_M480
endif
menuconfig BSP_USING_SCUART
bool "Enable S
CUART
"
bool "Enable S
mart Card Host Interface - UART(SCUART)
"
if BSP_USING_SCUART
config BSP_USING_SCUART0
...
...
@@ -756,7 +756,7 @@ config SOC_SERIES_M480
endif
menuconfig BSP_USING_ECAP
bool "Enable E
CAP
"
bool "Enable E
nhanced Input Capture Timer(ECAP)
"
if BSP_USING_ECAP
...
...
@@ -789,7 +789,7 @@ config SOC_SERIES_M480
endif
menuconfig BSP_USING_QEI
bool "Enable Q
EI
"
bool "Enable Q
uadrature Encoder Interface(QEI)
"
if BSP_USING_QEI
config BSP_USING_QEI0
...
...
@@ -802,7 +802,7 @@ config SOC_SERIES_M480
endif
menuconfig BSP_USING_CRYPTO
bool "Enable C
RPT
"
bool "Enable C
ryptographic Accelerator(CRYPTO)
"
select RT_USING_HWCRYPTO
select RT_HWCRYPTO_USING_AES
select RT_HWCRYPTO_USING_AES_ECB
...
...
@@ -840,13 +840,13 @@ config SOC_SERIES_M480
endif
config BSP_USING_TRNG
bool "Enable T
RNG
"
bool "Enable T
rue Random Number Generator(TRNG)
"
select BSP_USING_CRYPTO
select RT_USING_HWCRYPTO
select RT_HWCRYPTO_USING_RNG
menuconfig BSP_USING_CRC
bool "Enable C
RC
"
bool "Enable C
yclic Redundancy Check Generator(CRC)
"
select BSP_USING_CRYPTO
select RT_USING_HWCRYPTO
select RT_HWCRYPTO_USING_CRC
...
...
@@ -905,33 +905,33 @@ config SOC_SERIES_M480
endif
config BSP_USING_WDT
bool "Enable W
DT
"
bool "Enable W
atchdog Timer(WDT)
"
select RT_USING_WDT
default y
config BSP_USING_EBI
bool "Enable E
BI
"
bool "Enable E
xternal Bus Interface(EBI)
"
default n
config BSP_USING_USBD
bool "Enable
USBD
"
bool "Enable
Full-Speed USB Device Controller(USBD)
"
select RT_USING_USB_DEVICE
config BSP_USING_HSUSBD
bool "Enable H
SUSBD
"
bool "Enable H
igh-Speed USB Device Controller(HSUSBD)
"
select RT_USING_USB_DEVICE
config BSP_USING_USBH
bool "Enable
USBH
"
bool "Enable
Full-Speed USB Host Controller(USBH)
"
select RT_USING_USB_HOST
select RT_USBH_MSTORAGE
config BSP_USING_HSUSBH
bool "Enable H
SUSBH
"
bool "Enable H
igh-Speed USB Host Controller(HSUSBH)
"
select RT_USING_USB_HOST
select RT_USBH_MSTORAGE
config BSP_USING_HSOTG
bool "Enable H
SOTG
"
bool "Enable H
igh-Speed USB On-The-Go(HSOTG)
"
select BSP_USING_HSUSBH
select BSP_USING_HSUSBD
bsp/nuvoton/libraries/m480/rtt_port/drv_uart.c
浏览文件 @
f9825299
...
...
@@ -562,7 +562,7 @@ static rt_err_t nu_pdma_uart_rx_config(struct rt_serial_device *serial, uint8_t
static
void
nu_pdma_uart_rx_cb
(
void
*
pvOwner
,
uint32_t
u32Events
)
{
rt_size_t
recv_len
=
0
;
rt_size_t
transferred_rxbyte
=
0
;
rt_size_t
transferred_rxbyte
=
0
;
struct
rt_serial_device
*
serial
=
(
struct
rt_serial_device
*
)
pvOwner
;
nu_uart_t
puart
=
(
nu_uart_t
)
serial
;
RT_ASSERT
(
serial
!=
RT_NULL
);
...
...
bsp/nuvoton/numaker-iot-m487/board/board.c
浏览文件 @
f9825299
...
...
@@ -40,7 +40,7 @@ void rt_hw_board_init(void)
/* Init all pin function setting */
nutool_pincfg_init
();
/* Configur
at
e SysTick */
/* Configure SysTick */
SysTick_Config
(
SystemCoreClock
/
RT_TICK_PER_SECOND
);
/* Update System Core Clock */
...
...
@@ -104,11 +104,9 @@ void rt_hw_cpu_reset(void)
SYS
->
IPRST0
|=
SYS_IPRST0_CHIPRST_Msk
;
}
#ifdef RT_USING_FINSH
#include <finsh.h>
static
void
reboot
(
uint8_t
argc
,
char
**
argv
)
int
reboot
(
int
argc
,
char
**
argv
)
{
rt_hw_cpu_reset
();
return
0
;
}
FINSH_FUNCTION_EXPORT_ALIAS
(
reboot
,
__cmd_reboot
,
Reboot
System
);
#endif
/* RT_USING_FINSH */
MSH_CMD_EXPORT
(
reboot
,
Reboot
System
);
bsp/nuvoton/numaker-pfm-m487/board/board.c
浏览文件 @
f9825299
...
...
@@ -40,7 +40,7 @@ void rt_hw_board_init(void)
/* Init all pin function setting */
nutool_pincfg_init
();
/* Configur
at
e SysTick */
/* Configure SysTick */
SysTick_Config
(
SystemCoreClock
/
RT_TICK_PER_SECOND
);
/* Update System Core Clock */
...
...
@@ -104,11 +104,9 @@ void rt_hw_cpu_reset(void)
SYS
->
IPRST0
|=
SYS_IPRST0_CHIPRST_Msk
;
}
#ifdef RT_USING_FINSH
#include <finsh.h>
static
void
reboot
(
uint8_t
argc
,
char
**
argv
)
int
reboot
(
int
argc
,
char
**
argv
)
{
rt_hw_cpu_reset
();
return
0
;
}
FINSH_FUNCTION_EXPORT_ALIAS
(
reboot
,
__cmd_reboot
,
Reboot
System
);
#endif
/* RT_USING_FINSH */
MSH_CMD_EXPORT
(
reboot
,
Reboot
System
);
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录