Skip to content

Commit 389e9e9

Browse files
shanggltcddddDusKing1
committed
add at32 bsp driver lib
Co-Authored-By: EMSR <[email protected]> Co-Authored-By: carl <[email protected]> Co-Authored-By: Hugo Chiang <[email protected]>
1 parent b355551 commit 389e9e9

File tree

139 files changed

+135899
-1
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+135899
-1
lines changed

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ set(COMMON_COMPILE_DEFINITIONS
7171
include(openocd)
7272
include(svd)
7373
include(stm32)
74+
include(at32)
7475

7576
add_subdirectory(src)
7677

board/at32fc.cfg

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Boardconfig for AT-LINK for AT32F4-FC
2+
3+
source [find interface/atlink.cfg]
4+
5+
#transport select hla_swd
6+
7+
source [find target/at32f437xM.cfg]
8+
9+
reset_config none separate

cmake/at32-bootloader.cmake

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
main_sources(BOOTLOADER_SOURCES
2+
common/log.c
3+
common/log.h
4+
common/printf.c
5+
common/printf.h
6+
common/string_light.c
7+
common/string_light.h
8+
common/typeconversion.c
9+
common/typeconversion.h
10+
11+
drivers/bus.c
12+
drivers/bus_busdev_i2c.c
13+
drivers/bus_busdev_spi.c
14+
drivers/bus_i2c_soft.c
15+
drivers/io.c
16+
drivers/light_led.c
17+
drivers/persistent.c
18+
drivers/rcc.c
19+
drivers/serial.c
20+
drivers/system.c
21+
drivers/time.c
22+
drivers/timer.c
23+
drivers/flash_m25p16.c
24+
drivers/flash_w25n01g.c
25+
drivers/flash.c
26+
27+
fc/firmware_update_common.c
28+
fc/firmware_update_common.h
29+
30+
target/common_hardware.c
31+
)
32+
33+
list(APPEND BOOTLOADER_SOURCES ${MAIN_DIR}/src/bl/bl_main.c)

cmake/at32-stdperiph.cmake

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
main_sources(AT32_STDPERIPH_SRC
2+
drivers/bus_spi_at32f43x.c
3+
drivers/serial_uart_hal_at32f43x.c
4+
)

0 commit comments

Comments
 (0)