Skip to content

Commit

Permalink
修正格式以及编译问题
Browse files Browse the repository at this point in the history
  • Loading branch information
QT-one committed Jan 8, 2025
1 parent f0dfad5 commit c60242b
Show file tree
Hide file tree
Showing 19 changed files with 429 additions and 1,804 deletions.
12 changes: 6 additions & 6 deletions bsp/ht32/ht32f12366/board/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ menu "Onboard Peripheral Drivers"
if RT_USING_CONSOLE
config RT_CONSOLE_DEVICE_NAME
string "the device name for console"
default "usart1"
default "usart0"
endif

endmenu
Expand All @@ -130,7 +130,7 @@ menu "On-chip Peripheral Drivers"
if BSP_USING_UART
config BSP_USING_USART0
bool "Enable USART0"
default n
default y
config BSP_USING_USART0_NAME
depends on BSP_USING_USART0
string "usart0 bus name"
Expand Down Expand Up @@ -168,7 +168,7 @@ menu "On-chip Peripheral Drivers"
if BSP_USING_SPI
config BSP_USING_SPI0
bool "Enable SPI0 Bus"
default n
default y
config BSP_USING_SPI0_NAME
depends on BSP_USING_SPI0
string "spi0 bus name"
Expand All @@ -189,12 +189,12 @@ menu "On-chip Peripheral Drivers"
if BSP_USING_I2C
menuconfig BSP_USING_I2C_HW
bool "Enable I2C Bus(hardware)"
default n
default y
select RT_USING_I2C if BSP_USING_I2C_HW
if BSP_USING_I2C_HW
config BSP_USING_I2C0_HW
bool "Enable Hardware I2C0 Bus"
default n
default y
config BSP_USING_I2C0_HW_NAME
depends on BSP_USING_I2C0_HW
string "hardware i2c0 name"
Expand Down Expand Up @@ -282,7 +282,7 @@ menu "On-chip Peripheral Drivers"
if BSP_USING_ADC
config BSP_USING_ADC0
bool "Enable ADC0"
default n
default y
config BSP_USING_ADC0_NAME
depends on BSP_USING_ADC0
string "adc0 device name"
Expand Down
128 changes: 64 additions & 64 deletions bsp/ht32/ht32f12366/project.uvoptx

Large diffs are not rendered by default.

182 changes: 91 additions & 91 deletions bsp/ht32/ht32f12366/project.uvprojx

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion bsp/ht32/ht32f12366/rtconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
CFLAGS = DEVICE + ' -Dgcc'
AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb '
LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rt-thread.map,-cref,-u,Reset_Handler -T board/linker_scripts/link.lds'

CFLAGS += ' -D USE_HT32F12365_66'
CPATH = ''
LPATH = ''

Expand Down
10 changes: 5 additions & 5 deletions bsp/ht32/ht32f52352/board/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ menu "On-chip Peripheral Drivers"

config BSP_USING_USART1
bool "Enable USART1"
default n
default y
config BSP_USING_USART1_NAME
depends on BSP_USING_USART1
string "usart1 bus name"
Expand Down Expand Up @@ -168,7 +168,7 @@ menu "On-chip Peripheral Drivers"
if BSP_USING_SPI
config BSP_USING_SPI0
bool "Enable SPI0 Bus"
default n
default y
config BSP_USING_SPI0_NAME
depends on BSP_USING_SPI0
string "spi0 bus name"
Expand All @@ -189,12 +189,12 @@ menu "On-chip Peripheral Drivers"
if BSP_USING_I2C
menuconfig BSP_USING_I2C_HW
bool "Enable I2C Bus(hardware)"
default n
default y
select RT_USING_I2C if BSP_USING_I2C_HW
if BSP_USING_I2C_HW
config BSP_USING_I2C0_HW
bool "Enable Hardware I2C0 Bus"
default n
default y
config BSP_USING_I2C0_HW_NAME
depends on BSP_USING_I2C0_HW
string "hardware i2c0 name"
Expand Down Expand Up @@ -282,7 +282,7 @@ menu "On-chip Peripheral Drivers"
if BSP_USING_ADC
config BSP_USING_ADC0
bool "Enable ADC0"
default n
default y
config BSP_USING_ADC0_NAME
depends on BSP_USING_ADC0
string "adc0 device name"
Expand Down
Loading

0 comments on commit c60242b

Please sign in to comment.