Skip to content

Commit

Permalink
add at32 bsp driver lib
Browse files Browse the repository at this point in the history
Co-Authored-By: EMSR <[email protected]>
Co-Authored-By: carl <[email protected]>
Co-Authored-By: Hugo Chiang <[email protected]>
  • Loading branch information
4 people committed Feb 12, 2023
1 parent b355551 commit 389e9e9
Show file tree
Hide file tree
Showing 139 changed files with 135,899 additions and 1 deletion.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ set(COMMON_COMPILE_DEFINITIONS
include(openocd)
include(svd)
include(stm32)
include(at32)

add_subdirectory(src)

Expand Down
9 changes: 9 additions & 0 deletions board/at32fc.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Boardconfig for AT-LINK for AT32F4-FC

source [find interface/atlink.cfg]

#transport select hla_swd

source [find target/at32f437xM.cfg]

reset_config none separate
33 changes: 33 additions & 0 deletions cmake/at32-bootloader.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
main_sources(BOOTLOADER_SOURCES
common/log.c
common/log.h
common/printf.c
common/printf.h
common/string_light.c
common/string_light.h
common/typeconversion.c
common/typeconversion.h

drivers/bus.c
drivers/bus_busdev_i2c.c
drivers/bus_busdev_spi.c
drivers/bus_i2c_soft.c
drivers/io.c
drivers/light_led.c
drivers/persistent.c
drivers/rcc.c
drivers/serial.c
drivers/system.c
drivers/time.c
drivers/timer.c
drivers/flash_m25p16.c
drivers/flash_w25n01g.c
drivers/flash.c

fc/firmware_update_common.c
fc/firmware_update_common.h

target/common_hardware.c
)

list(APPEND BOOTLOADER_SOURCES ${MAIN_DIR}/src/bl/bl_main.c)
4 changes: 4 additions & 0 deletions cmake/at32-stdperiph.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
main_sources(AT32_STDPERIPH_SRC
drivers/bus_spi_at32f43x.c
drivers/serial_uart_hal_at32f43x.c
)
Loading

0 comments on commit 389e9e9

Please sign in to comment.