├── .platformio └── platforms │ └── at32 │ ├── .gitignore │ ├── examples │ ├── AT32F421 │ │ └── led_toggle │ │ │ ├── .gitignore │ │ │ ├── readme.txt │ │ │ ├── platformio.ini │ │ │ ├── .travis.yml │ │ │ ├── include │ │ │ ├── at32f421_clock.h │ │ │ ├── at32f421_int.h │ │ │ └── at32f421_conf.h │ │ │ └── src │ │ │ ├── main.c │ │ │ ├── at32f421_clock.c │ │ │ └── at32f421_int.c │ ├── AT32F425 │ │ └── led_toggle │ │ │ ├── .gitignore │ │ │ ├── readme.txt │ │ │ ├── platformio.ini │ │ │ ├── .travis.yml │ │ │ ├── include │ │ │ ├── at32f425_clock.h │ │ │ ├── at32f425_int.h │ │ │ └── at32f425_conf.h │ │ │ └── src │ │ │ ├── main.c │ │ │ ├── at32f425_clock.c │ │ │ └── at32f425_int.c │ ├── AT32F435 │ │ ├── cmsis-blink │ │ │ ├── .gitignore │ │ │ ├── src │ │ │ │ ├── main.h │ │ │ │ ├── main.c │ │ │ │ ├── at32f435_437_int.c │ │ │ │ └── at32f435_437_clock.c │ │ │ ├── lib │ │ │ │ ├── Delay │ │ │ │ │ ├── delay.h │ │ │ │ │ └── delay.c │ │ │ │ └── README │ │ │ ├── test │ │ │ │ └── README │ │ │ ├── platformio.ini │ │ │ ├── README.rst │ │ │ ├── include │ │ │ │ ├── README │ │ │ │ ├── at32f435_437_clock.h │ │ │ │ └── at32f435_437_int.h │ │ │ └── .travis.yml │ │ ├── adc │ │ │ └── current_vref_value_check │ │ │ │ ├── .gitignore │ │ │ │ ├── readme.txt │ │ │ │ ├── platformio.ini │ │ │ │ ├── .travis.yml │ │ │ │ ├── inc │ │ │ │ ├── at32f435_437_clock.h │ │ │ │ └── at32f435_437_int.h │ │ │ │ └── src │ │ │ │ ├── at32f435_437_clock.c │ │ │ │ └── at32f435_437_int.c │ │ └── usb_device │ │ │ └── vcp_loopback │ │ │ ├── .gitignore │ │ │ ├── readme.txt │ │ │ ├── lib │ │ │ ├── README │ │ │ └── cdc │ │ │ │ ├── cdc_class.h │ │ │ │ └── cdc_desc.h │ │ │ ├── platformio.ini │ │ │ ├── .travis.yml │ │ │ ├── include │ │ │ ├── at32f435_437_clock.h │ │ │ └── at32f435_437_int.h │ │ │ └── src │ │ │ ├── at32f435_437_int.c │ │ │ └── at32f435_437_clock.c │ └── AT32F437 │ │ └── led_toggle │ │ ├── .gitignore │ │ ├── readme.txt │ │ ├── lib │ │ ├── Delay │ │ │ ├── delay.h │ │ │ └── delay.c │ │ └── README │ │ ├── platformio.ini │ │ ├── include │ │ ├── at32f435_437_clock.h │ │ └── at32f435_437_int.h │ │ └── src │ │ ├── main.c │ │ ├── at32f435_437_int.c │ │ └── at32f435_437_clock.c │ ├── .github │ ├── FUNDING.yml │ └── workflows │ │ └── examples.yml │ ├── tools │ ├── at32flash │ │ └── at32flash.exe │ └── stm32flash │ │ └── stm32flash.exe │ ├── .piopm_ │ ├── .gitmodules │ ├── README.md │ ├── boards │ ├── AT-START-F425.json │ ├── generic_f403a.json │ ├── generic_f421.json │ ├── generic_f435.json │ └── generic_f437.json │ ├── builder │ ├── compat.py │ └── frameworks │ │ └── _bare.py │ └── platform.json ├── .gitattributes ├── Docs ├── AT32F435.jpg ├── MCU_Comparison.jpg ├── MCU_Comparison.pdf ├── VSCode_PlatformIO_1.jpg └── VSCode_PlatformIO_2.jpg ├── at32flash ├── at32flash.exe └── README.md ├── JLinkDevices └── AT │ ├── AT32F421x8x │ ├── AT32F421_16.FLM │ ├── AT32F421_32.FLM │ ├── AT32F421_64.FLM │ ├── AT32F421_USD.FLM │ ├── AT32F421_BOOTMEM_AP.FLM │ └── Devices.xml │ ├── AT32F435xGx │ ├── AT32F435_192.FLM │ ├── AT32F435_256.FLM │ ├── AT32F435_448.FLM │ ├── AT32F435_960.FLM │ ├── AT32F435_1024.FLM │ ├── AT32F435_4032.FLM │ ├── AT32F435_USD_4096.FLM │ ├── AT32F435_USD_512.FLM │ └── Devices.xml │ └── AT32F437xGx │ ├── AT32F437_192.FLM │ ├── AT32F437_256.FLM │ ├── AT32F437_448.FLM │ ├── AT32F437_960.FLM │ ├── AT32F437_1024.FLM │ ├── AT32F437_4032.FLM │ ├── AT32F437_USD_4096.FLM │ ├── AT32F437_USD_512.FLM │ └── Devices.xml ├── old-jlink ├── .platformio │ └── packages │ │ └── tool-jlink │ │ └── Devices │ │ └── AT │ │ └── AT32F4xx │ │ ├── AT32F403A_256.FLM │ │ ├── AT32F403A_512.FLM │ │ ├── AT32F403A_UOB.FLM │ │ ├── AT32F403_1024.FLM │ │ ├── AT32F403_128.FLM │ │ ├── AT32F403_256.FLM │ │ ├── AT32F403_512.FLM │ │ ├── AT32F403_UOB.FLM │ │ ├── AT32F407_1024.FLM │ │ ├── AT32F407_256.FLM │ │ ├── AT32F407_512.FLM │ │ ├── AT32F407_UOB.FLM │ │ ├── AT32F413_128.FLM │ │ ├── AT32F413_256.FLM │ │ ├── AT32F413_64.FLM │ │ ├── AT32F413_UOB.FLM │ │ ├── AT32F415_128.FLM │ │ ├── AT32F415_256.FLM │ │ ├── AT32F415_64.FLM │ │ ├── AT32F415_UOB.FLM │ │ ├── AT32F421_16.FLM │ │ ├── AT32F421_32.FLM │ │ ├── AT32F421_64.FLM │ │ ├── AT32F421_USD.FLM │ │ ├── AT32F423_128.FLM │ │ ├── AT32F423_256.FLM │ │ ├── AT32F423_64.FLM │ │ ├── AT32F423_USD.FLM │ │ ├── AT32F425_16.FLM │ │ ├── AT32F425_32.FLM │ │ ├── AT32F425_64.FLM │ │ ├── AT32F425_USD.FLM │ │ ├── AT32F435_1024.FLM │ │ ├── AT32F435_192.FLM │ │ ├── AT32F435_256.FLM │ │ ├── AT32F435_4032.FLM │ │ ├── AT32F435_960.FLM │ │ ├── AT32F437_1024.FLM │ │ ├── AT32F437_192.FLM │ │ ├── AT32F437_256.FLM │ │ ├── AT32F437_4032.FLM │ │ ├── AT32F437_960.FLM │ │ ├── AT32F403A_1024.FLM │ │ ├── AT32F415_SYSMEM_AP.FLM │ │ ├── AT32F421_BOOTMEM_AP.FLM │ │ ├── AT32F423_BOOTMEM_AP.FLM │ │ ├── AT32F425_BOOTMEM_AP.FLM │ │ ├── AT32F403_EXT_TYPE1_16MB.FLM │ │ ├── AT32F403_EXT_TYPE1_1MB.FLM │ │ ├── AT32F403_EXT_TYPE1_2MB.FLM │ │ ├── AT32F403_EXT_TYPE1_4MB.FLM │ │ ├── AT32F403_EXT_TYPE1_8MB.FLM │ │ ├── AT32F403_EXT_TYPE2_16MB.FLM │ │ ├── AT32F403_EXT_TYPE2_1MB.FLM │ │ ├── AT32F403_EXT_TYPE2_2MB.FLM │ │ ├── AT32F403_EXT_TYPE2_4MB.FLM │ │ ├── AT32F403_EXT_TYPE2_8MB.FLM │ │ ├── AT32F403A_EXT_TYPE1_REAMP0_1MB.FLM │ │ ├── AT32F403A_EXT_TYPE1_REAMP0_2MB.FLM │ │ ├── AT32F403A_EXT_TYPE1_REAMP0_4MB.FLM │ │ ├── AT32F403A_EXT_TYPE1_REAMP0_8MB.FLM │ │ ├── AT32F403A_EXT_TYPE1_REAMP1_1MB.FLM │ │ ├── AT32F403A_EXT_TYPE1_REAMP1_2MB.FLM │ │ ├── AT32F403A_EXT_TYPE1_REAMP1_4MB.FLM │ │ ├── AT32F403A_EXT_TYPE1_REAMP1_8MB.FLM │ │ ├── AT32F403A_EXT_TYPE2_REAMP0_1MB.FLM │ │ ├── AT32F403A_EXT_TYPE2_REAMP0_2MB.FLM │ │ ├── AT32F403A_EXT_TYPE2_REAMP0_4MB.FLM │ │ ├── AT32F403A_EXT_TYPE2_REAMP0_8MB.FLM │ │ ├── AT32F403A_EXT_TYPE2_REAMP1_1MB.FLM │ │ ├── AT32F403A_EXT_TYPE2_REAMP1_2MB.FLM │ │ ├── AT32F403A_EXT_TYPE2_REAMP1_4MB.FLM │ │ ├── AT32F403A_EXT_TYPE2_REAMP1_8MB.FLM │ │ ├── AT32F407_EXT_TYPE1_REAMP0_16MB.FLM │ │ ├── AT32F407_EXT_TYPE1_REAMP0_1MB.FLM │ │ ├── AT32F407_EXT_TYPE1_REAMP0_2MB.FLM │ │ ├── AT32F407_EXT_TYPE1_REAMP0_4MB.FLM │ │ ├── AT32F407_EXT_TYPE1_REAMP0_8MB.FLM │ │ ├── AT32F407_EXT_TYPE1_REAMP1_16MB.FLM │ │ ├── AT32F407_EXT_TYPE1_REAMP1_1MB.FLM │ │ ├── AT32F407_EXT_TYPE1_REAMP1_2MB.FLM │ │ ├── AT32F407_EXT_TYPE1_REAMP1_4MB.FLM │ │ ├── AT32F407_EXT_TYPE1_REAMP1_8MB.FLM │ │ ├── AT32F407_EXT_TYPE2_REAMP0_16MB.FLM │ │ ├── AT32F407_EXT_TYPE2_REAMP0_1MB.FLM │ │ ├── AT32F407_EXT_TYPE2_REAMP0_2MB.FLM │ │ ├── AT32F407_EXT_TYPE2_REAMP0_4MB.FLM │ │ ├── AT32F407_EXT_TYPE2_REAMP0_8MB.FLM │ │ ├── AT32F407_EXT_TYPE2_REAMP1_16MB.FLM │ │ ├── AT32F407_EXT_TYPE2_REAMP1_1MB.FLM │ │ ├── AT32F407_EXT_TYPE2_REAMP1_2MB.FLM │ │ ├── AT32F407_EXT_TYPE2_REAMP1_4MB.FLM │ │ ├── AT32F407_EXT_TYPE2_REAMP1_8MB.FLM │ │ ├── AT32F413_EXT_TYPE1_REAMP0_16MB.FLM │ │ ├── AT32F413_EXT_TYPE1_REAMP0_1MB.FLM │ │ ├── AT32F413_EXT_TYPE1_REAMP0_2MB.FLM │ │ ├── AT32F413_EXT_TYPE1_REAMP0_4MB.FLM │ │ ├── AT32F413_EXT_TYPE1_REAMP0_8MB.FLM │ │ ├── AT32F413_EXT_TYPE1_REAMP1_16MB.FLM │ │ ├── AT32F413_EXT_TYPE1_REAMP1_1MB.FLM │ │ ├── AT32F413_EXT_TYPE1_REAMP1_2MB.FLM │ │ ├── AT32F413_EXT_TYPE1_REAMP1_4MB.FLM │ │ ├── AT32F413_EXT_TYPE1_REAMP1_8MB.FLM │ │ ├── AT32F413_EXT_TYPE2_REAMP0_16MB.FLM │ │ ├── AT32F413_EXT_TYPE2_REAMP0_1MB.FLM │ │ ├── AT32F413_EXT_TYPE2_REAMP0_2MB.FLM │ │ ├── AT32F413_EXT_TYPE2_REAMP0_4MB.FLM │ │ ├── AT32F413_EXT_TYPE2_REAMP0_8MB.FLM │ │ ├── AT32F413_EXT_TYPE2_REAMP1_16MB.FLM │ │ ├── AT32F413_EXT_TYPE2_REAMP1_1MB.FLM │ │ ├── AT32F413_EXT_TYPE2_REAMP1_2MB.FLM │ │ ├── AT32F413_EXT_TYPE2_REAMP1_4MB.FLM │ │ ├── AT32F413_EXT_TYPE2_REAMP1_8MB.FLM │ │ ├── AT32F403A_EXT_TYPE1_REAMP0_16MB.FLM │ │ ├── AT32F403A_EXT_TYPE1_REAMP1_16MB.FLM │ │ ├── AT32F403A_EXT_TYPE2_REAMP0_16MB.FLM │ │ ├── AT32F403A_EXT_TYPE2_REAMP1_16MB.FLM │ │ └── AT32F4xx.JLinkScript └── JLINK.md ├── .gitignore └── README.md /.platformio/platforms/at32/.gitignore: -------------------------------------------------------------------------------- 1 | *.pyc 2 | .piolibdeps 3 | .pio 4 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F421/led_toggle/.gitignore: -------------------------------------------------------------------------------- 1 | .pio 2 | .vscode -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F425/led_toggle/.gitignore: -------------------------------------------------------------------------------- 1 | .pio 2 | .vscode -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/cmsis-blink/.gitignore: -------------------------------------------------------------------------------- 1 | .pio 2 | .vscode -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F437/led_toggle/.gitignore: -------------------------------------------------------------------------------- 1 | .pio 2 | .vscode -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | custom: https://platformio.org/donate 2 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/adc/current_vref_value_check/.gitignore: -------------------------------------------------------------------------------- 1 | .pio 2 | .vscode -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/usb_device/vcp_loopback/.gitignore: -------------------------------------------------------------------------------- 1 | .pio 2 | .vscode 3 | -------------------------------------------------------------------------------- /Docs/AT32F435.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/Docs/AT32F435.jpg -------------------------------------------------------------------------------- /Docs/MCU_Comparison.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/Docs/MCU_Comparison.jpg -------------------------------------------------------------------------------- /Docs/MCU_Comparison.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/Docs/MCU_Comparison.pdf -------------------------------------------------------------------------------- /at32flash/at32flash.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/at32flash/at32flash.exe -------------------------------------------------------------------------------- /Docs/VSCode_PlatformIO_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/Docs/VSCode_PlatformIO_1.jpg -------------------------------------------------------------------------------- /Docs/VSCode_PlatformIO_2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/Docs/VSCode_PlatformIO_2.jpg -------------------------------------------------------------------------------- /JLinkDevices/AT/AT32F421x8x/AT32F421_16.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/JLinkDevices/AT/AT32F421x8x/AT32F421_16.FLM -------------------------------------------------------------------------------- /JLinkDevices/AT/AT32F421x8x/AT32F421_32.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/JLinkDevices/AT/AT32F421x8x/AT32F421_32.FLM -------------------------------------------------------------------------------- /JLinkDevices/AT/AT32F421x8x/AT32F421_64.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/JLinkDevices/AT/AT32F421x8x/AT32F421_64.FLM -------------------------------------------------------------------------------- /JLinkDevices/AT/AT32F421x8x/AT32F421_USD.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/JLinkDevices/AT/AT32F421x8x/AT32F421_USD.FLM -------------------------------------------------------------------------------- /JLinkDevices/AT/AT32F435xGx/AT32F435_192.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/JLinkDevices/AT/AT32F435xGx/AT32F435_192.FLM -------------------------------------------------------------------------------- /JLinkDevices/AT/AT32F435xGx/AT32F435_256.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/JLinkDevices/AT/AT32F435xGx/AT32F435_256.FLM -------------------------------------------------------------------------------- /JLinkDevices/AT/AT32F435xGx/AT32F435_448.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/JLinkDevices/AT/AT32F435xGx/AT32F435_448.FLM -------------------------------------------------------------------------------- /JLinkDevices/AT/AT32F435xGx/AT32F435_960.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/JLinkDevices/AT/AT32F435xGx/AT32F435_960.FLM -------------------------------------------------------------------------------- /JLinkDevices/AT/AT32F437xGx/AT32F437_192.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/JLinkDevices/AT/AT32F437xGx/AT32F437_192.FLM -------------------------------------------------------------------------------- /JLinkDevices/AT/AT32F437xGx/AT32F437_256.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/JLinkDevices/AT/AT32F437xGx/AT32F437_256.FLM -------------------------------------------------------------------------------- /JLinkDevices/AT/AT32F437xGx/AT32F437_448.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/JLinkDevices/AT/AT32F437xGx/AT32F437_448.FLM -------------------------------------------------------------------------------- /JLinkDevices/AT/AT32F437xGx/AT32F437_960.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/JLinkDevices/AT/AT32F437xGx/AT32F437_960.FLM -------------------------------------------------------------------------------- /JLinkDevices/AT/AT32F435xGx/AT32F435_1024.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/JLinkDevices/AT/AT32F435xGx/AT32F435_1024.FLM -------------------------------------------------------------------------------- /JLinkDevices/AT/AT32F435xGx/AT32F435_4032.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/JLinkDevices/AT/AT32F435xGx/AT32F435_4032.FLM -------------------------------------------------------------------------------- /JLinkDevices/AT/AT32F437xGx/AT32F437_1024.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/JLinkDevices/AT/AT32F437xGx/AT32F437_1024.FLM -------------------------------------------------------------------------------- /JLinkDevices/AT/AT32F437xGx/AT32F437_4032.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/JLinkDevices/AT/AT32F437xGx/AT32F437_4032.FLM -------------------------------------------------------------------------------- /JLinkDevices/AT/AT32F435xGx/AT32F435_USD_4096.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/JLinkDevices/AT/AT32F435xGx/AT32F435_USD_4096.FLM -------------------------------------------------------------------------------- /JLinkDevices/AT/AT32F435xGx/AT32F435_USD_512.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/JLinkDevices/AT/AT32F435xGx/AT32F435_USD_512.FLM -------------------------------------------------------------------------------- /JLinkDevices/AT/AT32F437xGx/AT32F437_USD_4096.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/JLinkDevices/AT/AT32F437xGx/AT32F437_USD_4096.FLM -------------------------------------------------------------------------------- /JLinkDevices/AT/AT32F437xGx/AT32F437_USD_512.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/JLinkDevices/AT/AT32F437xGx/AT32F437_USD_512.FLM -------------------------------------------------------------------------------- /JLinkDevices/AT/AT32F421x8x/AT32F421_BOOTMEM_AP.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/JLinkDevices/AT/AT32F421x8x/AT32F421_BOOTMEM_AP.FLM -------------------------------------------------------------------------------- /.platformio/platforms/at32/tools/at32flash/at32flash.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/.platformio/platforms/at32/tools/at32flash/at32flash.exe -------------------------------------------------------------------------------- /.platformio/platforms/at32/.piopm_: -------------------------------------------------------------------------------- 1 | {"type": "platform", "name": "at32", "version": "1.0.0", "spec": {"owner": "platformio", "id": 8020, "name": "at32", "requirements": null, "url": null}} -------------------------------------------------------------------------------- /.platformio/platforms/at32/tools/stm32flash/stm32flash.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/.platformio/platforms/at32/tools/stm32flash/stm32flash.exe -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_256.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_256.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_512.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_512.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_UOB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_UOB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_1024.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_1024.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_128.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_128.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_256.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_256.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_512.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_512.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_UOB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_UOB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_1024.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_1024.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_256.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_256.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_512.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_512.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_UOB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_UOB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_128.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_128.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_256.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_256.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_64.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_64.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_UOB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_UOB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F415_128.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F415_128.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F415_256.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F415_256.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F415_64.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F415_64.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F415_UOB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F415_UOB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F421_16.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F421_16.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F421_32.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F421_32.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F421_64.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F421_64.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F421_USD.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F421_USD.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F423_128.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F423_128.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F423_256.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F423_256.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F423_64.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F423_64.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F423_USD.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F423_USD.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F425_16.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F425_16.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F425_32.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F425_32.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F425_64.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F425_64.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F425_USD.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F425_USD.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F435_1024.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F435_1024.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F435_192.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F435_192.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F435_256.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F435_256.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F435_4032.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F435_4032.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F435_960.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F435_960.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F437_1024.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F437_1024.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F437_192.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F437_192.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F437_256.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F437_256.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F437_4032.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F437_4032.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F437_960.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F437_960.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_1024.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_1024.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F415_SYSMEM_AP.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F415_SYSMEM_AP.FLM -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/cmsis-blink/src/main.h: -------------------------------------------------------------------------------- 1 | /* Define to prevent recursive inclusion -------------------------------------*/ 2 | #ifndef __MAIN_H 3 | #define __MAIN_H 4 | 5 | 6 | #endif /* __MAIN_H */ 7 | 8 | 9 | -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F421_BOOTMEM_AP.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F421_BOOTMEM_AP.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F423_BOOTMEM_AP.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F423_BOOTMEM_AP.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F425_BOOTMEM_AP.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F425_BOOTMEM_AP.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_EXT_TYPE1_16MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_EXT_TYPE1_16MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_EXT_TYPE1_1MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_EXT_TYPE1_1MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_EXT_TYPE1_2MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_EXT_TYPE1_2MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_EXT_TYPE1_4MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_EXT_TYPE1_4MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_EXT_TYPE1_8MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_EXT_TYPE1_8MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_EXT_TYPE2_16MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_EXT_TYPE2_16MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_EXT_TYPE2_1MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_EXT_TYPE2_1MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_EXT_TYPE2_2MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_EXT_TYPE2_2MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_EXT_TYPE2_4MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_EXT_TYPE2_4MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_EXT_TYPE2_8MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403_EXT_TYPE2_8MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE1_REAMP0_1MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE1_REAMP0_1MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE1_REAMP0_2MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE1_REAMP0_2MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE1_REAMP0_4MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE1_REAMP0_4MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE1_REAMP0_8MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE1_REAMP0_8MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE1_REAMP1_1MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE1_REAMP1_1MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE1_REAMP1_2MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE1_REAMP1_2MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE1_REAMP1_4MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE1_REAMP1_4MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE1_REAMP1_8MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE1_REAMP1_8MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE2_REAMP0_1MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE2_REAMP0_1MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE2_REAMP0_2MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE2_REAMP0_2MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE2_REAMP0_4MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE2_REAMP0_4MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE2_REAMP0_8MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE2_REAMP0_8MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE2_REAMP1_1MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE2_REAMP1_1MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE2_REAMP1_2MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE2_REAMP1_2MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE2_REAMP1_4MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE2_REAMP1_4MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE2_REAMP1_8MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE2_REAMP1_8MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE1_REAMP0_16MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE1_REAMP0_16MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE1_REAMP0_1MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE1_REAMP0_1MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE1_REAMP0_2MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE1_REAMP0_2MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE1_REAMP0_4MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE1_REAMP0_4MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE1_REAMP0_8MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE1_REAMP0_8MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE1_REAMP1_16MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE1_REAMP1_16MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE1_REAMP1_1MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE1_REAMP1_1MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE1_REAMP1_2MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE1_REAMP1_2MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE1_REAMP1_4MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE1_REAMP1_4MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE1_REAMP1_8MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE1_REAMP1_8MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE2_REAMP0_16MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE2_REAMP0_16MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE2_REAMP0_1MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE2_REAMP0_1MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE2_REAMP0_2MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE2_REAMP0_2MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE2_REAMP0_4MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE2_REAMP0_4MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE2_REAMP0_8MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE2_REAMP0_8MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE2_REAMP1_16MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE2_REAMP1_16MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE2_REAMP1_1MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE2_REAMP1_1MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE2_REAMP1_2MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE2_REAMP1_2MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE2_REAMP1_4MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE2_REAMP1_4MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE2_REAMP1_8MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F407_EXT_TYPE2_REAMP1_8MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE1_REAMP0_16MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE1_REAMP0_16MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE1_REAMP0_1MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE1_REAMP0_1MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE1_REAMP0_2MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE1_REAMP0_2MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE1_REAMP0_4MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE1_REAMP0_4MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE1_REAMP0_8MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE1_REAMP0_8MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE1_REAMP1_16MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE1_REAMP1_16MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE1_REAMP1_1MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE1_REAMP1_1MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE1_REAMP1_2MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE1_REAMP1_2MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE1_REAMP1_4MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE1_REAMP1_4MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE1_REAMP1_8MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE1_REAMP1_8MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE2_REAMP0_16MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE2_REAMP0_16MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE2_REAMP0_1MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE2_REAMP0_1MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE2_REAMP0_2MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE2_REAMP0_2MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE2_REAMP0_4MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE2_REAMP0_4MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE2_REAMP0_8MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE2_REAMP0_8MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE2_REAMP1_16MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE2_REAMP1_16MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE2_REAMP1_1MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE2_REAMP1_1MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE2_REAMP1_2MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE2_REAMP1_2MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE2_REAMP1_4MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE2_REAMP1_4MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE2_REAMP1_8MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F413_EXT_TYPE2_REAMP1_8MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE1_REAMP0_16MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE1_REAMP0_16MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE1_REAMP1_16MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE1_REAMP1_16MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE2_REAMP0_16MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE2_REAMP0_16MB.FLM -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE2_REAMP1_16MB.FLM: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/martinloren/Artery-AT32-PlatformIO/HEAD/old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F403A_EXT_TYPE2_REAMP1_16MB.FLM -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F437/led_toggle/readme.txt: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file readme.txt 4 | * @brief readme 5 | ************************************************************************** 6 | */ 7 | 8 | Light on/off pin PB12, 1Hz frequency for complete cycle. 9 | 10 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "builder/frameworks/libopencm3"] 2 | path = builder/frameworks/libopencm3 3 | url = https://github.com/platformio/builder-framework-libopencm3.git 4 | [submodule "builder/frameworks/arduino/mbed-core"] 5 | path = builder/frameworks/arduino/mbed-core 6 | url = https://github.com/platformio/builder-framework-arduino-core-mbed.git 7 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/cmsis-blink/lib/Delay/delay.h: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * File : delay.h 4 | */ 5 | 6 | #ifndef __DELAY_H 7 | #define __DELAY_H 8 | #include "at32f435_437.h" 9 | 10 | /*Delay function*/ 11 | void delay_init(void); 12 | void delay_us(u32 nus); 13 | void delay_ms(u16 nms); 14 | void delay_sec(u16 sec); 15 | 16 | #endif -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F437/led_toggle/lib/Delay/delay.h: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * File : delay.h 4 | */ 5 | 6 | #ifndef __DELAY_H 7 | #define __DELAY_H 8 | #include "at32f435_437.h" 9 | 10 | /*Delay function*/ 11 | void delay_init(void); 12 | void delay_us(u32 nus); 13 | void delay_ms(u16 nms); 14 | void delay_sec(u16 sec); 15 | 16 | #endif -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Prerequisites 2 | *.d 3 | 4 | # Compiled Object files 5 | *.slo 6 | *.lo 7 | *.o 8 | *.obj 9 | 10 | # Precompiled Headers 11 | *.gch 12 | *.pch 13 | 14 | # Compiled Dynamic libraries 15 | *.so 16 | *.dylib 17 | *.dll 18 | 19 | # Fortran module files 20 | *.mod 21 | *.smod 22 | 23 | # Compiled Static libraries 24 | *.lai 25 | *.la 26 | *.a 27 | *.lib 28 | 29 | # Executables 30 | *.out 31 | *.app 32 | 33 | #Other 34 | *.xlsx 35 | -------------------------------------------------------------------------------- /JLinkDevices/AT/AT32F421x8x/Devices.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /JLinkDevices/AT/AT32F435xGx/Devices.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /JLinkDevices/AT/AT32F437xGx/Devices.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F421/led_toggle/readme.txt: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file readme.txt 4 | * @version v2.0.0 5 | * @date 2021-12-31 6 | * @brief readme 7 | ************************************************************************** 8 | */ 9 | 10 | this demo is based on the at-start board, in this demo, configure systick 11 | timer used for delay function. 12 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F425/led_toggle/readme.txt: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file readme.txt 4 | * @version v2.0.0 5 | * @date 2021-12-31 6 | * @brief readme 7 | ************************************************************************** 8 | */ 9 | 10 | this demo is based on the at-start board, in this demo, configure systick 11 | timer used for delay function. 12 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/usb_device/vcp_loopback/readme.txt: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file readme.txt 4 | * @version v2.0.4 5 | * @date 2021-12-31 6 | * @brief readme 7 | ************************************************************************** 8 | */ 9 | 10 | this demo is based on the at-start board, in this demo, show how to build 11 | a device of usb cdc class protocol. 12 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/cmsis-blink/test/README: -------------------------------------------------------------------------------- 1 | 2 | This directory is intended for PIO Unit Testing and project tests. 3 | 4 | Unit Testing is a software testing method by which individual units of 5 | source code, sets of one or more MCU program modules together with associated 6 | control data, usage procedures, and operating procedures, are tested to 7 | determine whether they are fit for use. Unit testing finds problems early 8 | in the development cycle. 9 | 10 | More information about PIO Unit Testing: 11 | - https://docs.platformio.org/page/plus/unit-testing.html 12 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/adc/current_vref_value_check/readme.txt: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file readme.txt 4 | * @version v2.0.4 5 | * @date 2021-12-31 6 | * @brief readme 7 | ************************************************************************** 8 | */ 9 | 10 | this demo is based on the at-start board, in this demo, shows how to use 11 | the adc1 internal channel17 to check vref value. 12 | the trigger source is software 13 | the convert data as follow: 14 | - adc1_ordinary_value ---> adc1_channel_17 15 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F437/led_toggle/platformio.ini: -------------------------------------------------------------------------------- 1 | ; PlatformIO Project Configuration File 2 | ; 3 | ; Build options: build flags, source filter, extra scripting 4 | ; Upload options: custom port, speed and extra flags 5 | ; Library options: dependencies, extra library storages 6 | ; 7 | ; Please visit documentation for the other options and examples 8 | ; http://docs.platformio.org/page/projectconf.html 9 | 10 | [env:led_togle] 11 | platform = at32 12 | framework = cmsis 13 | board = generic_f437 14 | build_flags = -I include 15 | monitor_speed = 921600 16 | ;upload_protocol = serial 17 | upload_protocol = jlink 18 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/README.md: -------------------------------------------------------------------------------- 1 | # Artery AT32: development platform for [PlatformIO](http://platformio.org) 2 | 3 | [![Build Status](https://github.com/platformio/platform-ststm32/workflows/Examples/badge.svg)](https://github.com/platformio/platform-ststm32/actions) 4 | 5 | The AT32 family of 32-bit Flash MCUs based on the ARM Cortex-M processor is designed to offer new degrees of freedom to MCU users. It offers a 32-bit product range that combines very high performance, real-time capabilities, digital signal processing, and low-power, low-voltage operation, while maintaining full integration and ease of development. 6 | 7 | * [Home](http://platformio.org/platforms/ststm32) (home page in PlatformIO Platform Registry) 8 | * [Documentation](http://docs.platformio.org/page/platforms/ststm32.html) (advanced usage, packages, boards, frameworks, etc.) 9 | 10 | ## How to use 11 | The platform can be installed manually using `pio platform install https://github.com/martinloren/platform-at32.git` on [the CLI](https://docs.platformio.org/en/latest/integration/ide/vscode.html#platformio-core-cli). -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F421/led_toggle/platformio.ini: -------------------------------------------------------------------------------- 1 | ; PlatformIO Project Configuration File 2 | ; 3 | ; Build options: build flags, source filter, extra scripting 4 | ; Upload options: custom port, speed and extra flags 5 | ; Library options: dependencies, extra library storages 6 | ; 7 | ; Please visit documentation for the other options and examples 8 | ; http://docs.platformio.org/page/projectconf.html 9 | 10 | [env:led_toggle] 11 | platform = at32 12 | framework = cmsis 13 | board = generic_f421 14 | build_flags = -I include 15 | monitor_speed = 115200 ;serial monitor baudrate 16 | 17 | ;Use the following for jlink upload 18 | upload_protocol = jlink 19 | 20 | ;Use the following for serial upload via bootloader (PA9, PA10) 21 | ;upload_protocol = serial 22 | ;upload_speed = 115200 ;default: 115200 23 | 24 | ;Use the following for custom uploader 25 | ;upload_protocol = custom 26 | ;upload_port = COM16 27 | ;upload_speed = 115200 28 | ;upload_command = ${platformio.packages_dir}/framework-cmsis-at32f40/tools/stm32flash/stm32flash -b $UPLOAD_SPEED -w $SOURCE -g 0x8000000 $UPLOAD_PORT -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F425/led_toggle/platformio.ini: -------------------------------------------------------------------------------- 1 | ; PlatformIO Project Configuration File 2 | ; 3 | ; Build options: build flags, source filter, extra scripting 4 | ; Upload options: custom port, speed and extra flags 5 | ; Library options: dependencies, extra library storages 6 | ; 7 | ; Please visit documentation for the other options and examples 8 | ; http://docs.platformio.org/page/projectconf.html 9 | 10 | [env:led_toggle] 11 | platform = at32 12 | framework = cmsis 13 | board = AT-START-F425 14 | build_flags = -I include 15 | monitor_speed = 115200 ;serial monitor baudrate 16 | 17 | ;Use the following for jlink upload 18 | upload_protocol = jlink 19 | 20 | ;Use the following for serial upload via bootloader (PA9, PA10) 21 | ;upload_protocol = serial 22 | ;upload_speed = 115200 ;default: 115200 23 | 24 | ;Use the following for custom uploader 25 | ;upload_protocol = custom 26 | ;upload_port = COM16 27 | ;upload_speed = 115200 28 | ;upload_command = ${platformio.packages_dir}/framework-cmsis-at32f40/tools/stm32flash/stm32flash -b $UPLOAD_SPEED -w $SOURCE -g 0x8000000 $UPLOAD_PORT -------------------------------------------------------------------------------- /.platformio/platforms/at32/boards/AT-START-F425.json: -------------------------------------------------------------------------------- 1 | { 2 | "build": { 3 | "core": "at32", 4 | "cpu": "cortex-m4", 5 | "extra_flags": "-DAT32F425R8T7 -DAT_START_F425_V1", 6 | "f_cpu": "96000000L", 7 | "hwids": [ 8 | [ 9 | "0x2E3C", 10 | "0xDF11" 11 | ] 12 | ], 13 | "mcu": "at32f425x8", 14 | "product_line": "AT32F425", 15 | "variant": "AT32F4xx/F425(T-U)" 16 | }, 17 | "debug": { 18 | "default_tools": [ 19 | "stlink" 20 | ], 21 | "jlink_device": "AT32F425x8x", 22 | "openocd_extra_args": [ 23 | "-c", 24 | "reset_config none" 25 | ], 26 | "openocd_target": "stm32f4x", 27 | "svd_path": "STM32F425xx.svd" 28 | }, 29 | "frameworks": [ 30 | "cmsis" 31 | ], 32 | "name": "AT-START-F425", 33 | "upload": { 34 | "maximum_ram_size": 20480, 35 | "maximum_size": 65536, 36 | "protocol": "serial", 37 | "protocols": [ 38 | "jlink", 39 | "cmsis-dap", 40 | "stlink", 41 | "serial", 42 | "blackmagic" 43 | ] 44 | }, 45 | "url": "https://www.arterychip.com/en/product/AT32F425.jsp", 46 | "vendor": "Artery" 47 | } 48 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/boards/generic_f403a.json: -------------------------------------------------------------------------------- 1 | { 2 | "build": { 3 | "core": "at32", 4 | "cpu": "cortex-m4", 5 | "extra_flags": "-DAT32F403ACGT7", 6 | "f_cpu": "240000000L", 7 | "hwids": [ 8 | [ 9 | "0x2E3C", 10 | "0xDF11" 11 | ] 12 | ], 13 | "mcu": "at32f403aAgx", 14 | "product_line": "AT32F403ACGT7", 15 | "variant": "AT32F4xx/F403A_F403A(T-U)" 16 | }, 17 | "debug": { 18 | "default_tools": [ 19 | "stlink" 20 | ], 21 | "jlink_device": "AT32F403AxGx", 22 | "openocd_extra_args": [ 23 | "-c", 24 | "reset_config none" 25 | ], 26 | "openocd_target": "stm32f4x", 27 | "svd_path": "STM32F403xx.svd" 28 | }, 29 | "frameworks": [ 30 | "cmsis" 31 | ], 32 | "name": "Generic_F403A", 33 | "upload": { 34 | "maximum_ram_size": 229376, 35 | "maximum_size": 262144, 36 | "protocol": "serial", 37 | "protocols": [ 38 | "jlink", 39 | "cmsis-dap", 40 | "stlink", 41 | "serial", 42 | "blackmagic" 43 | ] 44 | }, 45 | "url": "https://www.arterychip.com/en/product/AT32F403A.jsp", 46 | "vendor": "Artery" 47 | } 48 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/boards/generic_f421.json: -------------------------------------------------------------------------------- 1 | { 2 | "build": { 3 | "core": "at32", 4 | "cpu": "cortex-m4", 5 | "extra_flags": "-DAT32F421G8U7 -DAT_START_F421_V1", 6 | "f_cpu": "120000000L", 7 | "hwids": [ 8 | [ 9 | "0x2E3C", 10 | "0xDF11" 11 | ] 12 | ], 13 | "mcu": "at32f421x8", 14 | "product_line": "AT32F421", 15 | "variant": "AT32F4xx/F421(T-U)" 16 | }, 17 | "debug": { 18 | "default_tools": [ 19 | "stlink" 20 | ], 21 | "jlink_device": "AT32F421x8x", 22 | "openocd_extra_args": [ 23 | "-c", 24 | "reset_config none" 25 | ], 26 | "openocd_target": "stm32f4x", 27 | "svd_path": "STM32F421xx.svd" 28 | }, 29 | "frameworks": [ 30 | "cmsis" 31 | ], 32 | "name": "Generic_F421", 33 | "upload": { 34 | "maximum_ram_size": 16384, 35 | "maximum_size": 65536, 36 | "protocol": "serial", 37 | "protocols": [ 38 | "jlink", 39 | "cmsis-dap", 40 | "stlink", 41 | "serial", 42 | "blackmagic" 43 | ] 44 | }, 45 | "url": "https://www.arterychip.com/en/product/AT32F421.jsp", 46 | "vendor": "Artery" 47 | } 48 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/boards/generic_f435.json: -------------------------------------------------------------------------------- 1 | { 2 | "build": { 3 | "core": "at32", 4 | "cpu": "cortex-m4", 5 | "extra_flags": "-DAT32F435CGT7 -DAT_START_F435_V1", 6 | "f_cpu": "288000000L", 7 | "hwids": [ 8 | [ 9 | "0x2E3C", 10 | "0xDF11" 11 | ] 12 | ], 13 | "mcu": "at32f43xxg", 14 | "product_line": "AT32F435_437", 15 | "variant": "AT32F4xx/F435_F435(T-U)" 16 | }, 17 | "debug": { 18 | "default_tools": [ 19 | "stlink" 20 | ], 21 | "jlink_device": "AT32F435xGx", 22 | "openocd_extra_args": [ 23 | "-c", 24 | "reset_config none" 25 | ], 26 | "openocd_target": "stm32f4x", 27 | "svd_path": "STM32F435xx.svd" 28 | }, 29 | "frameworks": [ 30 | "cmsis" 31 | ], 32 | "name": "Generic_F435", 33 | "upload": { 34 | "maximum_ram_size": 524288, 35 | "maximum_size": 1048576, 36 | "protocol": "serial", 37 | "protocols": [ 38 | "jlink", 39 | "cmsis-dap", 40 | "stlink", 41 | "serial", 42 | "blackmagic" 43 | ] 44 | }, 45 | "url": "https://www.arterychip.com/en/product/AT32F435.jsp", 46 | "vendor": "Artery" 47 | } 48 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/boards/generic_f437.json: -------------------------------------------------------------------------------- 1 | { 2 | "build": { 3 | "core": "at32", 4 | "cpu": "cortex-m4", 5 | "extra_flags": "-DAT32F437RGT7 -DAT_START_F437_V1", 6 | "f_cpu": "288000000L", 7 | "hwids": [ 8 | [ 9 | "0x2E3C", 10 | "0xDF11" 11 | ] 12 | ], 13 | "mcu": "at32f43xxg", 14 | "product_line": "AT32F435_437", 15 | "variant": "AT32F4xx/F437_F437(T-U)" 16 | }, 17 | "debug": { 18 | "default_tools": [ 19 | "stlink" 20 | ], 21 | "jlink_device": "AT32F437xGx", 22 | "openocd_extra_args": [ 23 | "-c", 24 | "reset_config none" 25 | ], 26 | "openocd_target": "stm32f4x", 27 | "svd_path": "STM32F437xx.svd" 28 | }, 29 | "frameworks": [ 30 | "cmsis" 31 | ], 32 | "name": "Generic_F437", 33 | "upload": { 34 | "maximum_ram_size": 524288, 35 | "maximum_size": 1048576, 36 | "protocol": "serial", 37 | "protocols": [ 38 | "jlink", 39 | "cmsis-dap", 40 | "stlink", 41 | "serial", 42 | "blackmagic" 43 | ] 44 | }, 45 | "url": "https://www.arterychip.com/en/product/AT32F437.jsp", 46 | "vendor": "Artery" 47 | } 48 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/builder/compat.py: -------------------------------------------------------------------------------- 1 | # Copyright 2014-present PlatformIO 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | from SCons.Script import AlwaysBuild, Import 16 | 17 | 18 | Import("env") 19 | 20 | 21 | # Added in PIO Core 4.4.0 22 | if not hasattr(env, "AddPlatformTarget"): 23 | 24 | def AddPlatformTarget( 25 | env, 26 | name, 27 | dependencies, 28 | actions, 29 | title=None, 30 | description=None, 31 | always_build=True, 32 | ): 33 | target = env.Alias(name, dependencies, actions) 34 | if always_build: 35 | AlwaysBuild(target) 36 | return target 37 | 38 | env.AddMethod(AddPlatformTarget) 39 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/cmsis-blink/lib/README: -------------------------------------------------------------------------------- 1 | 2 | This directory is intended for project specific (private) libraries. 3 | PlatformIO will compile them to static libraries and link into executable file. 4 | 5 | The source code of each library should be placed in a an own separate directory 6 | ("lib/your_library_name/[here are source files]"). 7 | 8 | For example, see a structure of the following two libraries `Foo` and `Bar`: 9 | 10 | |--lib 11 | | | 12 | | |--Bar 13 | | | |--docs 14 | | | |--examples 15 | | | |--src 16 | | | |- Bar.c 17 | | | |- Bar.h 18 | | | |- library.json (optional, custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html 19 | | | 20 | | |--Foo 21 | | | |- Foo.c 22 | | | |- Foo.h 23 | | | 24 | | |- README --> THIS FILE 25 | | 26 | |- platformio.ini 27 | |--src 28 | |- main.c 29 | 30 | and a contents of `src/main.c`: 31 | ``` 32 | #include 33 | #include 34 | 35 | int main (void) 36 | { 37 | ... 38 | } 39 | 40 | ``` 41 | 42 | PlatformIO Library Dependency Finder will find automatically dependent 43 | libraries scanning project source files. 44 | 45 | More information about PlatformIO Library Dependency Finder 46 | - https://docs.platformio.org/page/librarymanager/ldf.html 47 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F437/led_toggle/lib/README: -------------------------------------------------------------------------------- 1 | 2 | This directory is intended for project specific (private) libraries. 3 | PlatformIO will compile them to static libraries and link into executable file. 4 | 5 | The source code of each library should be placed in a an own separate directory 6 | ("lib/your_library_name/[here are source files]"). 7 | 8 | For example, see a structure of the following two libraries `Foo` and `Bar`: 9 | 10 | |--lib 11 | | | 12 | | |--Bar 13 | | | |--docs 14 | | | |--examples 15 | | | |--src 16 | | | |- Bar.c 17 | | | |- Bar.h 18 | | | |- library.json (optional, custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html 19 | | | 20 | | |--Foo 21 | | | |- Foo.c 22 | | | |- Foo.h 23 | | | 24 | | |- README --> THIS FILE 25 | | 26 | |- platformio.ini 27 | |--src 28 | |- main.c 29 | 30 | and a contents of `src/main.c`: 31 | ``` 32 | #include 33 | #include 34 | 35 | int main (void) 36 | { 37 | ... 38 | } 39 | 40 | ``` 41 | 42 | PlatformIO Library Dependency Finder will find automatically dependent 43 | libraries scanning project source files. 44 | 45 | More information about PlatformIO Library Dependency Finder 46 | - https://docs.platformio.org/page/librarymanager/ldf.html 47 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/usb_device/vcp_loopback/lib/README: -------------------------------------------------------------------------------- 1 | 2 | This directory is intended for project specific (private) libraries. 3 | PlatformIO will compile them to static libraries and link into executable file. 4 | 5 | The source code of each library should be placed in a an own separate directory 6 | ("lib/your_library_name/[here are source files]"). 7 | 8 | For example, see a structure of the following two libraries `Foo` and `Bar`: 9 | 10 | |--lib 11 | | | 12 | | |--Bar 13 | | | |--docs 14 | | | |--examples 15 | | | |--src 16 | | | |- Bar.c 17 | | | |- Bar.h 18 | | | |- library.json (optional, custom build options, etc) https://docs.platformio.org/page/librarymanager/config.html 19 | | | 20 | | |--Foo 21 | | | |- Foo.c 22 | | | |- Foo.h 23 | | | 24 | | |- README --> THIS FILE 25 | | 26 | |- platformio.ini 27 | |--src 28 | |- main.c 29 | 30 | and a contents of `src/main.c`: 31 | ``` 32 | #include 33 | #include 34 | 35 | int main (void) 36 | { 37 | ... 38 | } 39 | 40 | ``` 41 | 42 | PlatformIO Library Dependency Finder will find automatically dependent 43 | libraries scanning project source files. 44 | 45 | More information about PlatformIO Library Dependency Finder 46 | - https://docs.platformio.org/page/librarymanager/ldf.html 47 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/cmsis-blink/platformio.ini: -------------------------------------------------------------------------------- 1 | ; PlatformIO Project Configuration File 2 | ; 3 | ; Build options: build flags, source filter, extra scripting 4 | ; Upload options: custom port, speed and extra flags 5 | ; Library options: dependencies, extra library storages 6 | ; 7 | ; Please visit documentation for the other options and examples 8 | ; http://docs.platformio.org/page/projectconf.html 9 | 10 | [env:generic_f435] 11 | platform = at32 12 | framework = cmsis 13 | board = generic_f435 14 | monitor_speed = 115200 ;serial monitor baudrate 15 | build_flags = -I include 16 | ;Use the following for jlink upload 17 | upload_protocol = jlink 18 | 19 | ;Use the following for serial upload via bootloader (PA9, PA10) 20 | ;upload_protocol = serial 21 | ;upload_speed = 115200 ;default: 115200 22 | 23 | ;Use the following for DFU upload via USB port 24 | ;upload_protocol = dfu 25 | ;build_flags = 26 | ; -DDFU_MODE 27 | ; -UVECT_TAB_OFFSET 28 | ; -DUSER_VECT_TAB_ADDRESS 29 | ; -DVECT_TAB_OFFSET=0x2000 ; override default vector tale to support ISR table for DFU mode 30 | 31 | ;Use the following for custom uploader 32 | ;upload_protocol = custom 33 | ;upload_port = COM16 34 | ;upload_speed = 115200 35 | ;upload_command = ${platformio.packages_dir}/framework-cmsis-at32f40/tools/stm32flash/stm32flash -b $UPLOAD_SPEED -w $SOURCE -g 0x8000000 $UPLOAD_PORT -------------------------------------------------------------------------------- /old-jlink/.platformio/packages/tool-jlink/Devices/AT/AT32F4xx/AT32F4xx.JLinkScript: -------------------------------------------------------------------------------- 1 | /********************************************************************* 2 | * (c) SEGGER Microcontroller GmbH & Co. KG * 3 | * The Embedded Experts * 4 | * www.segger.com * 5 | **********************************************************************/ 6 | 7 | 8 | 9 | /* 10 | * ConfigTargetSettings() 11 | * - called before InitTarget() 12 | * - set some global DLL variables to customize the normal connect procedure 13 | */ 14 | int ConfigTargetSettings(void) 15 | { 16 | JLINK_SYS_Report("[ConfigTargetSettings]"); 17 | 18 | JLINK_CORESIGHT_AddAP(0, CORESIGHT_AHB_AP); 19 | JLINK_CORESIGHT_IndexAHBAPToUse = 0; 20 | 21 | CPU=CORTEX_M4; 22 | 23 | // force RESET to low 24 | JTAG_ResetPin = 0; // issue a reset of the CPU 25 | 26 | return 0; 27 | } 28 | 29 | 30 | 31 | /* 32 | * InitTarget() 33 | * - Replace the target-CPU-auto-find procedure of the J-Link DLL. 34 | * 35 | */ 36 | int InitTarget(void) 37 | { 38 | JLINK_CORESIGHT_WriteAP(JLINK_CORESIGHT_AP_REG_ADDR, 0xE000EDFC); 39 | JLINK_CORESIGHT_WriteAP(JLINK_CORESIGHT_AP_REG_DATA, 0x01000001); 40 | 41 | // release RESET 42 | JTAG_ResetPin = 1; 43 | 44 | return 0; 45 | } -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/usb_device/vcp_loopback/platformio.ini: -------------------------------------------------------------------------------- 1 | ; PlatformIO Project Configuration File 2 | ; 3 | ; Build options: build flags, source filter, extra scripting 4 | ; Upload options: custom port, speed and extra flags 5 | ; Library options: dependencies, extra library storages 6 | ; 7 | ; Please visit documentation for the other options and examples 8 | ; http://docs.platformio.org/page/projectconf.html 9 | 10 | [env:vcp_loopback] 11 | platform = at32 12 | framework = cmsis 13 | board = generic_f435 14 | build_flags = -I include 15 | monitor_speed = 115200 ;serial monitor baudrate 16 | 17 | ;Use the following for jlink upload 18 | upload_protocol = jlink 19 | 20 | ;Use the following for serial upload via bootloader (PA9, PA10) 21 | ;upload_protocol = serial 22 | ;upload_speed = 115200 ;default: 115200 23 | 24 | ;Use the following for DFU upload via USB port 25 | ;upload_protocol = dfu 26 | ;build_flags = 27 | ; -DDFU_MODE 28 | ; -UVECT_TAB_OFFSET 29 | ; -DUSER_VECT_TAB_ADDRESS 30 | ; -DVECT_TAB_OFFSET=0x2000 ; override default vector tale to support ISR table for DFU mode 31 | 32 | ;Use the following for custom uploader 33 | ;upload_protocol = custom 34 | ;upload_port = COM16 35 | ;upload_speed = 115200 36 | ;upload_command = ${platformio.packages_dir}/framework-cmsis-at32f40/tools/stm32flash/stm32flash -b $UPLOAD_SPEED -w $SOURCE -g 0x8000000 $UPLOAD_PORT -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/adc/current_vref_value_check/platformio.ini: -------------------------------------------------------------------------------- 1 | ; PlatformIO Project Configuration File 2 | ; 3 | ; Build options: build flags, source filter, extra scripting 4 | ; Upload options: custom port, speed and extra flags 5 | ; Library options: dependencies, extra library storages 6 | ; 7 | ; Please visit documentation for the other options and examples 8 | ; http://docs.platformio.org/page/projectconf.html 9 | 10 | [env:current_vref_value_check] 11 | platform = at32 12 | framework = cmsis 13 | board = generic_f435 14 | build_flags = -I include 15 | monitor_speed = 115200 ;serial monitor baudrate 16 | 17 | ;Use the following for jlink upload 18 | upload_protocol = jlink 19 | 20 | ;Use the following for serial upload via bootloader (PA9, PA10) 21 | ;upload_protocol = serial 22 | ;upload_speed = 115200 ;default: 115200 23 | 24 | ;Use the following for DFU upload via USB port 25 | ;upload_protocol = dfu 26 | ;build_flags = 27 | ; -DDFU_MODE 28 | ; -UVECT_TAB_OFFSET 29 | ; -DUSER_VECT_TAB_ADDRESS 30 | ; -DVECT_TAB_OFFSET=0x2000 ; override default vector tale to support ISR table for DFU mode 31 | 32 | ;Use the following for custom uploader 33 | ;upload_protocol = custom 34 | ;upload_port = COM16 35 | ;upload_speed = 115200 36 | ;upload_command = ${platformio.packages_dir}/framework-cmsis-at32f40/tools/stm32flash/stm32flash -b $UPLOAD_SPEED -w $SOURCE -g 0x8000000 $UPLOAD_PORT -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/cmsis-blink/README.rst: -------------------------------------------------------------------------------- 1 | .. Copyright 2014-present PlatformIO 2 | Licensed under the Apache License, Version 2.0 (the "License"); 3 | you may not use this file except in compliance with the License. 4 | You may obtain a copy of the License at 5 | http://www.apache.org/licenses/LICENSE-2.0 6 | Unless required by applicable law or agreed to in writing, software 7 | distributed under the License is distributed on an "AS IS" BASIS, 8 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 9 | See the License for the specific language governing permissions and 10 | limitations under the License. 11 | 12 | How to build PlatformIO based project 13 | ===================================== 14 | 15 | 1. `Install PlatformIO Core `_ 16 | 2. Download `development platform with examples `_ 17 | 3. Extract ZIP archive 18 | 4. Run these commands: 19 | 20 | .. code-block:: bash 21 | 22 | # Change directory to example 23 | > cd platform-at32/examples/cmsis-blink 24 | 25 | # Build project 26 | > platformio run 27 | 28 | # Upload firmware 29 | > platformio run --target upload 30 | 31 | # Build specific environment 32 | > platformio run -e disco_f407vg 33 | 34 | # Upload firmware for the specific environment 35 | > platformio run -e disco_f407vg --target upload 36 | 37 | # Clean build files 38 | > platformio run --target clean 39 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/cmsis-blink/include/README: -------------------------------------------------------------------------------- 1 | 2 | This directory is intended for project header files. 3 | 4 | A header file is a file containing C declarations and macro definitions 5 | to be shared between several project source files. You request the use of a 6 | header file in your project source file (C, C++, etc) located in `src` folder 7 | by including it, with the C preprocessing directive `#include'. 8 | 9 | ```src/main.c 10 | 11 | #include "header.h" 12 | 13 | int main (void) 14 | { 15 | ... 16 | } 17 | ``` 18 | 19 | Including a header file produces the same results as copying the header file 20 | into each source file that needs it. Such copying would be time-consuming 21 | and error-prone. With a header file, the related declarations appear 22 | in only one place. If they need to be changed, they can be changed in one 23 | place, and programs that include the header file will automatically use the 24 | new version when next recompiled. The header file eliminates the labor of 25 | finding and changing all the copies as well as the risk that a failure to 26 | find one copy will result in inconsistencies within a program. 27 | 28 | In C, the usual convention is to give header files names that end with `.h'. 29 | It is most portable to use only letters, digits, dashes, and underscores in 30 | header file names, and at most one dot. 31 | 32 | Read more about using header files in official GCC documentation: 33 | 34 | * Include Syntax 35 | * Include Operation 36 | * Once-Only Headers 37 | * Computed Includes 38 | 39 | https://gcc.gnu.org/onlinedocs/cpp/Header-Files.html 40 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/cmsis-blink/src/main.c: -------------------------------------------------------------------------------- 1 | /** Light on/off pin PB12, 1Hz frequency */ 2 | #include "at32f435_437_clock.h" 3 | #include "delay.h" 4 | 5 | #define BLACKPILL // BLUEPILL BLACKPILL QFP48_FLASHER 6 | 7 | #ifdef BLUEPILL 8 | #define LEDPERIPH CRM_GPIOC_PERIPH_CLOCK 9 | #define LEDPORT (GPIOC) 10 | #define LEDPIN (GPIO_PINS_13) 11 | #endif 12 | #ifdef BLACKPILL 13 | #define LEDPERIPH CRM_GPIOB_PERIPH_CLOCK 14 | #define LEDPORT (GPIOB) 15 | #define LEDPIN (GPIO_PINS_12) 16 | #endif 17 | #ifdef QFP48_FLASHER 18 | #define LEDPERIPH CRM_GPIOB_PERIPH_CLOCK 19 | #define LEDPORT (GPIOB) 20 | #define LEDPIN (GPIO_PINS_14) 21 | #endif 22 | 23 | /** 24 | * @brief gpio configuration. 25 | * @param none 26 | * @retval none 27 | */ 28 | static void gpio_config(void) 29 | { 30 | gpio_init_type gpio_init_struct; 31 | crm_periph_clock_enable(LEDPERIPH, TRUE); 32 | 33 | gpio_default_para_init(&gpio_init_struct); 34 | 35 | //configure the led gpio 36 | gpio_init_struct.gpio_drive_strength = GPIO_DRIVE_STRENGTH_STRONGER; 37 | gpio_init_struct.gpio_out_type = GPIO_OUTPUT_PUSH_PULL; 38 | gpio_init_struct.gpio_mode = GPIO_MODE_OUTPUT; 39 | gpio_init_struct.gpio_pins = LEDPIN; 40 | gpio_init_struct.gpio_pull = GPIO_PULL_NONE; 41 | gpio_init(LEDPORT, &gpio_init_struct); 42 | } 43 | 44 | //Flash LEDs quickly 45 | int main(void) 46 | { 47 | system_clock_config(); 48 | delay_init(); 49 | 50 | gpio_config(); 51 | 52 | gpio_bits_reset(LEDPORT, LEDPIN); 53 | 54 | for (;;) { 55 | delay_ms(500); 56 | LEDPORT->odt ^= LEDPIN; // toggle pin 57 | } 58 | 59 | return 0; 60 | } 61 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F421/led_toggle/.travis.yml: -------------------------------------------------------------------------------- 1 | # Continuous Integration (CI) is the practice, in software 2 | # engineering, of merging all developer working copies with a shared mainline 3 | # several times a day < https://docs.platformio.org/page/ci/index.html > 4 | # 5 | # Documentation: 6 | # 7 | # * Travis CI Embedded Builds with PlatformIO 8 | # < https://docs.travis-ci.com/user/integration/platformio/ > 9 | # 10 | # * PlatformIO integration with Travis CI 11 | # < https://docs.platformio.org/page/ci/travis.html > 12 | # 13 | # * User Guide for `platformio ci` command 14 | # < https://docs.platformio.org/page/userguide/cmd_ci.html > 15 | # 16 | # 17 | # Please choose one of the following templates (proposed below) and uncomment 18 | # it (remove "# " before each line) or use own configuration according to the 19 | # Travis CI documentation (see above). 20 | # 21 | 22 | 23 | # 24 | # Template #1: General project. Test it using existing `platformio.ini`. 25 | # 26 | 27 | # language: python 28 | # python: 29 | # - "2.7" 30 | # 31 | # sudo: false 32 | # cache: 33 | # directories: 34 | # - "~/.platformio" 35 | # 36 | # install: 37 | # - pip install -U platformio 38 | # - platformio update 39 | # 40 | # script: 41 | # - platformio run 42 | 43 | 44 | # 45 | # Template #2: The project is intended to be used as a library with examples. 46 | # 47 | 48 | # language: python 49 | # python: 50 | # - "2.7" 51 | # 52 | # sudo: false 53 | # cache: 54 | # directories: 55 | # - "~/.platformio" 56 | # 57 | # env: 58 | # - PLATFORMIO_CI_SRC=path/to/test/file.c 59 | # - PLATFORMIO_CI_SRC=examples/file.ino 60 | # - PLATFORMIO_CI_SRC=path/to/test/directory 61 | # 62 | # install: 63 | # - pip install -U platformio 64 | # - platformio update 65 | # 66 | # script: 67 | # - platformio ci --lib="." --board=ID_1 --board=ID_2 --board=ID_N 68 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F425/led_toggle/.travis.yml: -------------------------------------------------------------------------------- 1 | # Continuous Integration (CI) is the practice, in software 2 | # engineering, of merging all developer working copies with a shared mainline 3 | # several times a day < https://docs.platformio.org/page/ci/index.html > 4 | # 5 | # Documentation: 6 | # 7 | # * Travis CI Embedded Builds with PlatformIO 8 | # < https://docs.travis-ci.com/user/integration/platformio/ > 9 | # 10 | # * PlatformIO integration with Travis CI 11 | # < https://docs.platformio.org/page/ci/travis.html > 12 | # 13 | # * User Guide for `platformio ci` command 14 | # < https://docs.platformio.org/page/userguide/cmd_ci.html > 15 | # 16 | # 17 | # Please choose one of the following templates (proposed below) and uncomment 18 | # it (remove "# " before each line) or use own configuration according to the 19 | # Travis CI documentation (see above). 20 | # 21 | 22 | 23 | # 24 | # Template #1: General project. Test it using existing `platformio.ini`. 25 | # 26 | 27 | # language: python 28 | # python: 29 | # - "2.7" 30 | # 31 | # sudo: false 32 | # cache: 33 | # directories: 34 | # - "~/.platformio" 35 | # 36 | # install: 37 | # - pip install -U platformio 38 | # - platformio update 39 | # 40 | # script: 41 | # - platformio run 42 | 43 | 44 | # 45 | # Template #2: The project is intended to be used as a library with examples. 46 | # 47 | 48 | # language: python 49 | # python: 50 | # - "2.7" 51 | # 52 | # sudo: false 53 | # cache: 54 | # directories: 55 | # - "~/.platformio" 56 | # 57 | # env: 58 | # - PLATFORMIO_CI_SRC=path/to/test/file.c 59 | # - PLATFORMIO_CI_SRC=examples/file.ino 60 | # - PLATFORMIO_CI_SRC=path/to/test/directory 61 | # 62 | # install: 63 | # - pip install -U platformio 64 | # - platformio update 65 | # 66 | # script: 67 | # - platformio ci --lib="." --board=ID_1 --board=ID_2 --board=ID_N 68 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/cmsis-blink/.travis.yml: -------------------------------------------------------------------------------- 1 | # Continuous Integration (CI) is the practice, in software 2 | # engineering, of merging all developer working copies with a shared mainline 3 | # several times a day < https://docs.platformio.org/page/ci/index.html > 4 | # 5 | # Documentation: 6 | # 7 | # * Travis CI Embedded Builds with PlatformIO 8 | # < https://docs.travis-ci.com/user/integration/platformio/ > 9 | # 10 | # * PlatformIO integration with Travis CI 11 | # < https://docs.platformio.org/page/ci/travis.html > 12 | # 13 | # * User Guide for `platformio ci` command 14 | # < https://docs.platformio.org/page/userguide/cmd_ci.html > 15 | # 16 | # 17 | # Please choose one of the following templates (proposed below) and uncomment 18 | # it (remove "# " before each line) or use own configuration according to the 19 | # Travis CI documentation (see above). 20 | # 21 | 22 | 23 | # 24 | # Template #1: General project. Test it using existing `platformio.ini`. 25 | # 26 | 27 | # language: python 28 | # python: 29 | # - "2.7" 30 | # 31 | # sudo: false 32 | # cache: 33 | # directories: 34 | # - "~/.platformio" 35 | # 36 | # install: 37 | # - pip install -U platformio 38 | # - platformio update 39 | # 40 | # script: 41 | # - platformio run 42 | 43 | 44 | # 45 | # Template #2: The project is intended to be used as a library with examples. 46 | # 47 | 48 | # language: python 49 | # python: 50 | # - "2.7" 51 | # 52 | # sudo: false 53 | # cache: 54 | # directories: 55 | # - "~/.platformio" 56 | # 57 | # env: 58 | # - PLATFORMIO_CI_SRC=path/to/test/file.c 59 | # - PLATFORMIO_CI_SRC=examples/file.ino 60 | # - PLATFORMIO_CI_SRC=path/to/test/directory 61 | # 62 | # install: 63 | # - pip install -U platformio 64 | # - platformio update 65 | # 66 | # script: 67 | # - platformio ci --lib="." --board=ID_1 --board=ID_2 --board=ID_N 68 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/usb_device/vcp_loopback/.travis.yml: -------------------------------------------------------------------------------- 1 | # Continuous Integration (CI) is the practice, in software 2 | # engineering, of merging all developer working copies with a shared mainline 3 | # several times a day < https://docs.platformio.org/page/ci/index.html > 4 | # 5 | # Documentation: 6 | # 7 | # * Travis CI Embedded Builds with PlatformIO 8 | # < https://docs.travis-ci.com/user/integration/platformio/ > 9 | # 10 | # * PlatformIO integration with Travis CI 11 | # < https://docs.platformio.org/page/ci/travis.html > 12 | # 13 | # * User Guide for `platformio ci` command 14 | # < https://docs.platformio.org/page/userguide/cmd_ci.html > 15 | # 16 | # 17 | # Please choose one of the following templates (proposed below) and uncomment 18 | # it (remove "# " before each line) or use own configuration according to the 19 | # Travis CI documentation (see above). 20 | # 21 | 22 | 23 | # 24 | # Template #1: General project. Test it using existing `platformio.ini`. 25 | # 26 | 27 | # language: python 28 | # python: 29 | # - "2.7" 30 | # 31 | # sudo: false 32 | # cache: 33 | # directories: 34 | # - "~/.platformio" 35 | # 36 | # install: 37 | # - pip install -U platformio 38 | # - platformio update 39 | # 40 | # script: 41 | # - platformio run 42 | 43 | 44 | # 45 | # Template #2: The project is intended to be used as a library with examples. 46 | # 47 | 48 | # language: python 49 | # python: 50 | # - "2.7" 51 | # 52 | # sudo: false 53 | # cache: 54 | # directories: 55 | # - "~/.platformio" 56 | # 57 | # env: 58 | # - PLATFORMIO_CI_SRC=path/to/test/file.c 59 | # - PLATFORMIO_CI_SRC=examples/file.ino 60 | # - PLATFORMIO_CI_SRC=path/to/test/directory 61 | # 62 | # install: 63 | # - pip install -U platformio 64 | # - platformio update 65 | # 66 | # script: 67 | # - platformio ci --lib="." --board=ID_1 --board=ID_2 --board=ID_N 68 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/adc/current_vref_value_check/.travis.yml: -------------------------------------------------------------------------------- 1 | # Continuous Integration (CI) is the practice, in software 2 | # engineering, of merging all developer working copies with a shared mainline 3 | # several times a day < https://docs.platformio.org/page/ci/index.html > 4 | # 5 | # Documentation: 6 | # 7 | # * Travis CI Embedded Builds with PlatformIO 8 | # < https://docs.travis-ci.com/user/integration/platformio/ > 9 | # 10 | # * PlatformIO integration with Travis CI 11 | # < https://docs.platformio.org/page/ci/travis.html > 12 | # 13 | # * User Guide for `platformio ci` command 14 | # < https://docs.platformio.org/page/userguide/cmd_ci.html > 15 | # 16 | # 17 | # Please choose one of the following templates (proposed below) and uncomment 18 | # it (remove "# " before each line) or use own configuration according to the 19 | # Travis CI documentation (see above). 20 | # 21 | 22 | 23 | # 24 | # Template #1: General project. Test it using existing `platformio.ini`. 25 | # 26 | 27 | # language: python 28 | # python: 29 | # - "2.7" 30 | # 31 | # sudo: false 32 | # cache: 33 | # directories: 34 | # - "~/.platformio" 35 | # 36 | # install: 37 | # - pip install -U platformio 38 | # - platformio update 39 | # 40 | # script: 41 | # - platformio run 42 | 43 | 44 | # 45 | # Template #2: The project is intended to be used as a library with examples. 46 | # 47 | 48 | # language: python 49 | # python: 50 | # - "2.7" 51 | # 52 | # sudo: false 53 | # cache: 54 | # directories: 55 | # - "~/.platformio" 56 | # 57 | # env: 58 | # - PLATFORMIO_CI_SRC=path/to/test/file.c 59 | # - PLATFORMIO_CI_SRC=examples/file.ino 60 | # - PLATFORMIO_CI_SRC=path/to/test/directory 61 | # 62 | # install: 63 | # - pip install -U platformio 64 | # - platformio update 65 | # 66 | # script: 67 | # - platformio ci --lib="." --board=ID_1 --board=ID_2 --board=ID_N 68 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F437/led_toggle/include/at32f435_437_clock.h: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file at32f435_437_clock.h 4 | * @brief header file of clock program 5 | ************************************************************************** 6 | * Copyright notice & Disclaimer 7 | * 8 | * The software Board Support Package (BSP) that is made available to 9 | * download from Artery official website is the copyrighted work of Artery. 10 | * Artery authorizes customers to use, copy, and distribute the BSP 11 | * software and its related documentation for the purpose of design and 12 | * development in conjunction with Artery microcontrollers. Use of the 13 | * software is governed by this copyright notice and the following disclaimer. 14 | * 15 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 16 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 17 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 18 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 19 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 20 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 21 | * 22 | ************************************************************************** 23 | */ 24 | 25 | /* define to prevent recursive inclusion -------------------------------------*/ 26 | #ifndef __AT32F435_437_CLOCK_H 27 | #define __AT32F435_437_CLOCK_H 28 | 29 | #ifdef __cplusplus 30 | extern "C" { 31 | #endif 32 | 33 | /* includes ------------------------------------------------------------------*/ 34 | #include "at32f435_437.h" 35 | 36 | /* exported functions ------------------------------------------------------- */ 37 | void system_clock_config(void); 38 | 39 | #ifdef __cplusplus 40 | } 41 | #endif 42 | 43 | #endif 44 | 45 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F421/led_toggle/include/at32f421_clock.h: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file at32f421_clock.h 4 | * @brief header file of clock program 5 | ************************************************************************** 6 | * Copyright notice & Disclaimer 7 | * 8 | * The software Board Support Package (BSP) that is made available to 9 | * download from Artery official website is the copyrighted work of Artery. 10 | * Artery authorizes customers to use, copy, and distribute the BSP 11 | * software and its related documentation for the purpose of design and 12 | * development in conjunction with Artery microcontrollers. Use of the 13 | * software is governed by this copyright notice and the following disclaimer. 14 | * 15 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 16 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 17 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 18 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 19 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 20 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 21 | * 22 | ************************************************************************** 23 | */ 24 | 25 | /* define to prevent recursive inclusion -------------------------------------*/ 26 | #ifndef __AT32F421_CLOCK_H 27 | #define __AT32F421_CLOCK_H 28 | 29 | #ifdef __cplusplus 30 | extern "C" { 31 | #endif 32 | 33 | /* includes ------------------------------------------------------------------*/ 34 | #include "at32f421.h" 35 | 36 | /* exported functions ------------------------------------------------------- */ 37 | void system_clock_config(void); 38 | 39 | #ifdef __cplusplus 40 | } 41 | #endif 42 | 43 | #endif /* __AT32F421_CLOCK_H */ 44 | 45 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/cmsis-blink/include/at32f435_437_clock.h: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file at32f435_437_clock.h 4 | * @version v2.0.4 5 | * @date 2021-12-31 6 | * @brief header file of clock program 7 | ************************************************************************** 8 | * Copyright notice & Disclaimer 9 | * 10 | * The software Board Support Package (BSP) that is made available to 11 | * download from Artery official website is the copyrighted work of Artery. 12 | * Artery authorizes customers to use, copy, and distribute the BSP 13 | * software and its related documentation for the purpose of design and 14 | * development in conjunction with Artery microcontrollers. Use of the 15 | * software is governed by this copyright notice and the following disclaimer. 16 | * 17 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 18 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 19 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 20 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 21 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 23 | * 24 | ************************************************************************** 25 | */ 26 | 27 | /* define to prevent recursive inclusion -------------------------------------*/ 28 | #ifndef __AT32F435_437_CLOCK_H 29 | #define __AT32F435_437_CLOCK_H 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | /* includes ------------------------------------------------------------------*/ 36 | #include "at32f435_437.h" 37 | 38 | /* exported functions ------------------------------------------------------- */ 39 | void system_clock_config(void); 40 | 41 | #ifdef __cplusplus 42 | } 43 | #endif 44 | 45 | #endif 46 | 47 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F425/led_toggle/include/at32f425_clock.h: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file at32f425_clock.h 4 | * @version v2.0.0 5 | * @date 2021-12-31 6 | * @brief header file of clock program 7 | ************************************************************************** 8 | * Copyright notice & Disclaimer 9 | * 10 | * The software Board Support Package (BSP) that is made available to 11 | * download from Artery official website is the copyrighted work of Artery. 12 | * Artery authorizes customers to use, copy, and distribute the BSP 13 | * software and its related documentation for the purpose of design and 14 | * development in conjunction with Artery microcontrollers. Use of the 15 | * software is governed by this copyright notice and the following disclaimer. 16 | * 17 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 18 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 19 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 20 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 21 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 23 | * 24 | ************************************************************************** 25 | */ 26 | 27 | /* define to prevent recursive inclusion -------------------------------------*/ 28 | #ifndef __AT32F425_CLOCK_H 29 | #define __AT32F425_CLOCK_H 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | /* includes ------------------------------------------------------------------*/ 36 | #include "at32f425.h" 37 | 38 | /* exported functions ------------------------------------------------------- */ 39 | void system_clock_config(void); 40 | 41 | #ifdef __cplusplus 42 | } 43 | #endif 44 | 45 | #endif /* __AT32F425_CLOCK_H */ 46 | 47 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/usb_device/vcp_loopback/include/at32f435_437_clock.h: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file at32f435_437_clock.h 4 | * @version v2.0.4 5 | * @date 2021-12-31 6 | * @brief header file of clock program 7 | ************************************************************************** 8 | * Copyright notice & Disclaimer 9 | * 10 | * The software Board Support Package (BSP) that is made available to 11 | * download from Artery official website is the copyrighted work of Artery. 12 | * Artery authorizes customers to use, copy, and distribute the BSP 13 | * software and its related documentation for the purpose of design and 14 | * development in conjunction with Artery microcontrollers. Use of the 15 | * software is governed by this copyright notice and the following disclaimer. 16 | * 17 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 18 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 19 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 20 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 21 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 23 | * 24 | ************************************************************************** 25 | */ 26 | 27 | /* define to prevent recursive inclusion -------------------------------------*/ 28 | #ifndef __AT32F435_437_CLOCK_H 29 | #define __AT32F435_437_CLOCK_H 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | /* includes ------------------------------------------------------------------*/ 36 | #include "at32f435_437.h" 37 | 38 | /* exported functions ------------------------------------------------------- */ 39 | void system_clock_config(void); 40 | 41 | #ifdef __cplusplus 42 | } 43 | #endif 44 | 45 | #endif 46 | 47 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/adc/current_vref_value_check/inc/at32f435_437_clock.h: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file at32f435_437_clock.h 4 | * @version v2.0.4 5 | * @date 2021-12-31 6 | * @brief header file of clock program 7 | ************************************************************************** 8 | * Copyright notice & Disclaimer 9 | * 10 | * The software Board Support Package (BSP) that is made available to 11 | * download from Artery official website is the copyrighted work of Artery. 12 | * Artery authorizes customers to use, copy, and distribute the BSP 13 | * software and its related documentation for the purpose of design and 14 | * development in conjunction with Artery microcontrollers. Use of the 15 | * software is governed by this copyright notice and the following disclaimer. 16 | * 17 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 18 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 19 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 20 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 21 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 23 | * 24 | ************************************************************************** 25 | */ 26 | 27 | /* define to prevent recursive inclusion -------------------------------------*/ 28 | #ifndef __AT32F435_437_CLOCK_H 29 | #define __AT32F435_437_CLOCK_H 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | /* includes ------------------------------------------------------------------*/ 36 | #include "at32f435_437.h" 37 | 38 | /* exported functions ------------------------------------------------------- */ 39 | void system_clock_config(void); 40 | 41 | #ifdef __cplusplus 42 | } 43 | #endif 44 | 45 | #endif 46 | 47 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F421/led_toggle/src/main.c: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file main.c 4 | * @version v2.0.0 5 | * @date 2021-12-31 6 | * @brief main program 7 | ************************************************************************** 8 | * Copyright notice & Disclaimer 9 | * 10 | * The software Board Support Package (BSP) that is made available to 11 | * download from Artery official website is the copyrighted work of Artery. 12 | * Artery authorizes customers to use, copy, and distribute the BSP 13 | * software and its related documentation for the purpose of design and 14 | * development in conjunction with Artery microcontrollers. Use of the 15 | * software is governed by this copyright notice and the following disclaimer. 16 | * 17 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 18 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 19 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 20 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 21 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 23 | * 24 | ************************************************************************** 25 | */ 26 | 27 | #include "at32f421_board.h" 28 | #include "at32f421_clock.h" 29 | 30 | /** @addtogroup AT32F425_periph_examples 31 | * @{ 32 | */ 33 | 34 | /** @addtogroup 425_GPIO_led_toggle GPIO_led_toggle 35 | * @{ 36 | */ 37 | 38 | 39 | /** 40 | * @brief main function. 41 | * @param none 42 | * @retval none 43 | */ 44 | int main(void) 45 | { 46 | system_clock_config(); 47 | 48 | at32_board_init(); 49 | 50 | while(1) 51 | { 52 | at32_led_toggle(LED2); 53 | delay_ms(200); 54 | at32_led_toggle(LED3); 55 | delay_ms(200); 56 | at32_led_toggle(LED4); 57 | delay_ms(200); 58 | } 59 | } 60 | 61 | /** 62 | * @} 63 | */ 64 | 65 | /** 66 | * @} 67 | */ 68 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F425/led_toggle/src/main.c: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file main.c 4 | * @version v2.0.0 5 | * @date 2021-12-31 6 | * @brief main program 7 | ************************************************************************** 8 | * Copyright notice & Disclaimer 9 | * 10 | * The software Board Support Package (BSP) that is made available to 11 | * download from Artery official website is the copyrighted work of Artery. 12 | * Artery authorizes customers to use, copy, and distribute the BSP 13 | * software and its related documentation for the purpose of design and 14 | * development in conjunction with Artery microcontrollers. Use of the 15 | * software is governed by this copyright notice and the following disclaimer. 16 | * 17 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 18 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 19 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 20 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 21 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 23 | * 24 | ************************************************************************** 25 | */ 26 | 27 | #include "at32f425_board.h" 28 | #include "at32f425_clock.h" 29 | 30 | /** @addtogroup AT32F425_periph_examples 31 | * @{ 32 | */ 33 | 34 | /** @addtogroup 425_GPIO_led_toggle GPIO_led_toggle 35 | * @{ 36 | */ 37 | 38 | 39 | /** 40 | * @brief main function. 41 | * @param none 42 | * @retval none 43 | */ 44 | int main(void) 45 | { 46 | system_clock_config(); 47 | 48 | at32_board_init(); 49 | 50 | while(1) 51 | { 52 | at32_led_toggle(LED2); 53 | delay_ms(200); 54 | at32_led_toggle(LED3); 55 | delay_ms(200); 56 | at32_led_toggle(LED4); 57 | delay_ms(200); 58 | } 59 | } 60 | 61 | /** 62 | * @} 63 | */ 64 | 65 | /** 66 | * @} 67 | */ 68 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/cmsis-blink/lib/Delay/delay.c: -------------------------------------------------------------------------------- 1 | /*DO NOT USE - DON'T WORK*/ 2 | 3 | #include "delay.h" 4 | #include "stdio.h" 5 | 6 | 7 | /*delay macros*/ 8 | #define STEP_DELAY_MS 500 9 | 10 | /*delay variable*/ 11 | static __IO float fac_us; 12 | static __IO float fac_ms; 13 | 14 | 15 | /** 16 | * @brief initialize Delay function 17 | * @param None 18 | * @retval None 19 | */ 20 | void delay_init() 21 | { 22 | /* configure systick */ 23 | systick_clock_source_config(SYSTICK_CLOCK_SOURCE_AHBCLK_DIV8); 24 | fac_us = system_core_clock / (1000000U); 25 | fac_ms = fac_us * (1000U); 26 | } 27 | 28 | /** 29 | * @brief inserts a delay time. 30 | * @param nus: specifies the delay time length, in microsecond. 31 | * @retval none 32 | */ 33 | void delay_us(uint32_t nus) 34 | { 35 | uint32_t temp = 0; 36 | SysTick->LOAD = (uint32_t)(nus * fac_us); 37 | SysTick->VAL = 0x00; 38 | SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk ; 39 | do 40 | { 41 | temp = SysTick->CTRL; 42 | }while((temp & 0x01) && !(temp & (1 << 16))); 43 | 44 | SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk; 45 | SysTick->VAL = 0x00; 46 | } 47 | 48 | /** 49 | * @brief inserts a delay time. 50 | * @param nms: specifies the delay time length, in milliseconds. 51 | * @retval none 52 | */ 53 | void delay_ms(uint16_t nms) 54 | { 55 | uint32_t temp = 0; 56 | while(nms) 57 | { 58 | if(nms > STEP_DELAY_MS) 59 | { 60 | SysTick->LOAD = (uint32_t)(STEP_DELAY_MS * fac_ms); 61 | nms -= STEP_DELAY_MS; 62 | } 63 | else 64 | { 65 | SysTick->LOAD = (uint32_t)(nms * fac_ms); 66 | nms = 0; 67 | } 68 | SysTick->VAL = 0x00; 69 | SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk; 70 | do 71 | { 72 | temp = SysTick->CTRL; 73 | }while((temp & 0x01) && !(temp & (1 << 16))); 74 | 75 | SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk; 76 | SysTick->VAL = 0x00; 77 | } 78 | } 79 | 80 | /** 81 | * @brief inserts a delay time. 82 | * @param sec: specifies the delay time, in seconds. 83 | * @retval none 84 | */ 85 | void delay_sec(uint16_t sec) 86 | { 87 | uint16_t index; 88 | for(index = 0; index < sec; index++) 89 | { 90 | delay_ms(500); 91 | delay_ms(500); 92 | } 93 | } 94 | 95 | 96 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F437/led_toggle/lib/Delay/delay.c: -------------------------------------------------------------------------------- 1 | /*DO NOT USE - DON'T WORK*/ 2 | 3 | #include "delay.h" 4 | #include "stdio.h" 5 | 6 | 7 | /*delay macros*/ 8 | #define STEP_DELAY_MS 500 9 | 10 | /*delay variable*/ 11 | static __IO float fac_us; 12 | static __IO float fac_ms; 13 | 14 | 15 | /** 16 | * @brief initialize Delay function 17 | * @param None 18 | * @retval None 19 | */ 20 | void delay_init() 21 | { 22 | /* configure systick */ 23 | systick_clock_source_config(SYSTICK_CLOCK_SOURCE_AHBCLK_DIV8); 24 | fac_us = system_core_clock / (1000000U); 25 | fac_ms = fac_us * (1000U); 26 | } 27 | 28 | /** 29 | * @brief inserts a delay time. 30 | * @param nus: specifies the delay time length, in microsecond. 31 | * @retval none 32 | */ 33 | void delay_us(uint32_t nus) 34 | { 35 | uint32_t temp = 0; 36 | SysTick->LOAD = (uint32_t)(nus * fac_us); 37 | SysTick->VAL = 0x00; 38 | SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk ; 39 | do 40 | { 41 | temp = SysTick->CTRL; 42 | }while((temp & 0x01) && !(temp & (1 << 16))); 43 | 44 | SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk; 45 | SysTick->VAL = 0x00; 46 | } 47 | 48 | /** 49 | * @brief inserts a delay time. 50 | * @param nms: specifies the delay time length, in milliseconds. 51 | * @retval none 52 | */ 53 | void delay_ms(uint16_t nms) 54 | { 55 | uint32_t temp = 0; 56 | while(nms) 57 | { 58 | if(nms > STEP_DELAY_MS) 59 | { 60 | SysTick->LOAD = (uint32_t)(STEP_DELAY_MS * fac_ms); 61 | nms -= STEP_DELAY_MS; 62 | } 63 | else 64 | { 65 | SysTick->LOAD = (uint32_t)(nms * fac_ms); 66 | nms = 0; 67 | } 68 | SysTick->VAL = 0x00; 69 | SysTick->CTRL |= SysTick_CTRL_ENABLE_Msk; 70 | do 71 | { 72 | temp = SysTick->CTRL; 73 | }while((temp & 0x01) && !(temp & (1 << 16))); 74 | 75 | SysTick->CTRL &= ~SysTick_CTRL_ENABLE_Msk; 76 | SysTick->VAL = 0x00; 77 | } 78 | } 79 | 80 | /** 81 | * @brief inserts a delay time. 82 | * @param sec: specifies the delay time, in seconds. 83 | * @retval none 84 | */ 85 | void delay_sec(uint16_t sec) 86 | { 87 | uint16_t index; 88 | for(index = 0; index < sec; index++) 89 | { 90 | delay_ms(500); 91 | delay_ms(500); 92 | } 93 | } 94 | 95 | 96 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/builder/frameworks/_bare.py: -------------------------------------------------------------------------------- 1 | # Copyright 2014-present PlatformIO 2 | # 3 | # Licensed under the Apache License, Version 2.0 (the "License"); 4 | # you may not use this file except in compliance with the License. 5 | # You may obtain a copy of the License at 6 | # 7 | # http://www.apache.org/licenses/LICENSE-2.0 8 | # 9 | # Unless required by applicable law or agreed to in writing, software 10 | # distributed under the License is distributed on an "AS IS" BASIS, 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 | # See the License for the specific language governing permissions and 13 | # limitations under the License. 14 | 15 | # 16 | # Default flags for bare-metal programming (without any framework layers) 17 | # 18 | 19 | from SCons.Script import DefaultEnvironment 20 | 21 | env = DefaultEnvironment() 22 | 23 | env.Append( 24 | ASFLAGS=["-x", "assembler-with-cpp"], 25 | 26 | CCFLAGS=[ 27 | "-O3", # optimize for size 28 | "-ffunction-sections", # place each function in its own section 29 | "-fdata-sections", 30 | "-Wall", 31 | "-mthumb" 32 | ], 33 | 34 | CXXFLAGS=[ 35 | "-fno-rtti", 36 | "-fno-exceptions", 37 | ], 38 | 39 | CPPDEFINES=[ 40 | ("F_CPU", "$BOARD_F_CPU") 41 | ], 42 | 43 | LINKFLAGS=[ 44 | "-O3", 45 | "-Wl,--gc-sections,--relax", 46 | "-mthumb", 47 | ], 48 | 49 | LIBS=["c", "gcc", "m", "stdc++"] 50 | ) 51 | 52 | #Floating point unit: hard (hardware) | softfp (software) 53 | 54 | #if ( 55 | # any(cpu in board_config.get("build.cpu") for cpu in ("cortex-m4")) 56 | #): 57 | # env.Append( 58 | # CFLAGS=["-mfpu=fpv4-sp-d16", "-mfloat-abi=hard"], 59 | # CCFLAGS=["-mfpu=fpv4-sp-d16", "-mfloat-abi=hard"], 60 | # LINKFLAGS=["-mfpu=fpv4-sp-d16", "-mfloat-abi=hard", "-u _printf_float"], 61 | # ) 62 | 63 | if "BOARD" in env: 64 | env.Append( 65 | CCFLAGS=[ 66 | "-mcpu=%s" % env.BoardConfig().get("build.cpu") 67 | ], 68 | LINKFLAGS=[ 69 | "-mcpu=%s" % env.BoardConfig().get("build.cpu") 70 | ] 71 | ) 72 | 73 | # copy CCFLAGS to ASFLAGS (-x assembler-with-cpp mode) 74 | env.Append(ASFLAGS=env.get("CCFLAGS", [])[:]) 75 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F421/led_toggle/include/at32f421_int.h: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file at32f421_int.h 4 | * @brief header file of main interrupt service routines. 5 | ************************************************************************** 6 | * Copyright notice & Disclaimer 7 | * 8 | * The software Board Support Package (BSP) that is made available to 9 | * download from Artery official website is the copyrighted work of Artery. 10 | * Artery authorizes customers to use, copy, and distribute the BSP 11 | * software and its related documentation for the purpose of design and 12 | * development in conjunction with Artery microcontrollers. Use of the 13 | * software is governed by this copyright notice and the following disclaimer. 14 | * 15 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 16 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 17 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 18 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 19 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 20 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 21 | * 22 | ************************************************************************** 23 | */ 24 | 25 | /* define to prevent recursive inclusion -------------------------------------*/ 26 | #ifndef __AT32F421_INT_H 27 | #define __AT32F421_INT_H 28 | 29 | #ifdef __cplusplus 30 | extern "C" { 31 | #endif 32 | 33 | /* includes ------------------------------------------------------------------*/ 34 | #include "at32f421.h" 35 | 36 | /* exported types ------------------------------------------------------------*/ 37 | /* exported constants --------------------------------------------------------*/ 38 | /* exported macro ------------------------------------------------------------*/ 39 | /* exported functions ------------------------------------------------------- */ 40 | 41 | void NMI_Handler(void); 42 | void HardFault_Handler(void); 43 | void MemManage_Handler(void); 44 | void BusFault_Handler(void); 45 | void UsageFault_Handler(void); 46 | void SVC_Handler(void); 47 | void DebugMon_Handler(void); 48 | void PendSV_Handler(void); 49 | void SysTick_Handler(void); 50 | 51 | #ifdef __cplusplus 52 | } 53 | #endif 54 | 55 | #endif 56 | 57 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F437/led_toggle/include/at32f435_437_int.h: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file at32f435_437_int.h 4 | * @brief header file of main interrupt service routines. 5 | ************************************************************************** 6 | * Copyright notice & Disclaimer 7 | * 8 | * The software Board Support Package (BSP) that is made available to 9 | * download from Artery official website is the copyrighted work of Artery. 10 | * Artery authorizes customers to use, copy, and distribute the BSP 11 | * software and its related documentation for the purpose of design and 12 | * development in conjunction with Artery microcontrollers. Use of the 13 | * software is governed by this copyright notice and the following disclaimer. 14 | * 15 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 16 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 17 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 18 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 19 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 20 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 21 | * 22 | ************************************************************************** 23 | */ 24 | 25 | /* define to prevent recursive inclusion -------------------------------------*/ 26 | #ifndef __AT32F435_437_INT_H 27 | #define __AT32F435_437_INT_H 28 | 29 | #ifdef __cplusplus 30 | extern "C" { 31 | #endif 32 | 33 | /* includes ------------------------------------------------------------------*/ 34 | #include "at32f435_437.h" 35 | 36 | /* exported types ------------------------------------------------------------*/ 37 | /* exported constants --------------------------------------------------------*/ 38 | /* exported macro ------------------------------------------------------------*/ 39 | /* exported functions ------------------------------------------------------- */ 40 | 41 | void NMI_Handler(void); 42 | void HardFault_Handler(void); 43 | void MemManage_Handler(void); 44 | void BusFault_Handler(void); 45 | void UsageFault_Handler(void); 46 | void SVC_Handler(void); 47 | void DebugMon_Handler(void); 48 | void PendSV_Handler(void); 49 | void SysTick_Handler(void); 50 | 51 | #ifdef __cplusplus 52 | } 53 | #endif 54 | 55 | #endif 56 | 57 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F425/led_toggle/include/at32f425_int.h: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file at32f425_int.h 4 | * @version v2.0.0 5 | * @date 2021-12-31 6 | * @brief header file of main interrupt service routines. 7 | ************************************************************************** 8 | * Copyright notice & Disclaimer 9 | * 10 | * The software Board Support Package (BSP) that is made available to 11 | * download from Artery official website is the copyrighted work of Artery. 12 | * Artery authorizes customers to use, copy, and distribute the BSP 13 | * software and its related documentation for the purpose of design and 14 | * development in conjunction with Artery microcontrollers. Use of the 15 | * software is governed by this copyright notice and the following disclaimer. 16 | * 17 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 18 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 19 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 20 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 21 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 23 | * 24 | ************************************************************************** 25 | */ 26 | 27 | /* define to prevent recursive inclusion -------------------------------------*/ 28 | #ifndef __AT32F425_INT_H 29 | #define __AT32F425_INT_H 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | /* includes ------------------------------------------------------------------*/ 36 | #include "at32f425.h" 37 | 38 | /* exported types ------------------------------------------------------------*/ 39 | /* exported constants --------------------------------------------------------*/ 40 | /* exported macro ------------------------------------------------------------*/ 41 | /* exported functions ------------------------------------------------------- */ 42 | 43 | void NMI_Handler(void); 44 | void HardFault_Handler(void); 45 | void MemManage_Handler(void); 46 | void BusFault_Handler(void); 47 | void UsageFault_Handler(void); 48 | void SVC_Handler(void); 49 | void DebugMon_Handler(void); 50 | void PendSV_Handler(void); 51 | void SysTick_Handler(void); 52 | 53 | #ifdef __cplusplus 54 | } 55 | #endif 56 | 57 | #endif 58 | 59 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/cmsis-blink/include/at32f435_437_int.h: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file at32f435_437_int.h 4 | * @version v2.0.4 5 | * @date 2021-12-31 6 | * @brief header file of main interrupt service routines. 7 | ************************************************************************** 8 | * Copyright notice & Disclaimer 9 | * 10 | * The software Board Support Package (BSP) that is made available to 11 | * download from Artery official website is the copyrighted work of Artery. 12 | * Artery authorizes customers to use, copy, and distribute the BSP 13 | * software and its related documentation for the purpose of design and 14 | * development in conjunction with Artery microcontrollers. Use of the 15 | * software is governed by this copyright notice and the following disclaimer. 16 | * 17 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 18 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 19 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 20 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 21 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 23 | * 24 | ************************************************************************** 25 | */ 26 | 27 | /* define to prevent recursive inclusion -------------------------------------*/ 28 | #ifndef __AT32F435_437_INT_H 29 | #define __AT32F435_437_INT_H 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | /* includes ------------------------------------------------------------------*/ 36 | #include "at32f435_437.h" 37 | 38 | /* exported types ------------------------------------------------------------*/ 39 | /* exported constants --------------------------------------------------------*/ 40 | /* exported macro ------------------------------------------------------------*/ 41 | /* exported functions ------------------------------------------------------- */ 42 | 43 | void NMI_Handler(void); 44 | void HardFault_Handler(void); 45 | void MemManage_Handler(void); 46 | void BusFault_Handler(void); 47 | void UsageFault_Handler(void); 48 | void SVC_Handler(void); 49 | void DebugMon_Handler(void); 50 | void PendSV_Handler(void); 51 | void SysTick_Handler(void); 52 | 53 | #ifdef __cplusplus 54 | } 55 | #endif 56 | 57 | #endif 58 | 59 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/usb_device/vcp_loopback/include/at32f435_437_int.h: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file at32f435_437_int.h 4 | * @version v2.0.4 5 | * @date 2021-12-31 6 | * @brief header file of main interrupt service routines. 7 | ************************************************************************** 8 | * Copyright notice & Disclaimer 9 | * 10 | * The software Board Support Package (BSP) that is made available to 11 | * download from Artery official website is the copyrighted work of Artery. 12 | * Artery authorizes customers to use, copy, and distribute the BSP 13 | * software and its related documentation for the purpose of design and 14 | * development in conjunction with Artery microcontrollers. Use of the 15 | * software is governed by this copyright notice and the following disclaimer. 16 | * 17 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 18 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 19 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 20 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 21 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 23 | * 24 | ************************************************************************** 25 | */ 26 | 27 | /* define to prevent recursive inclusion -------------------------------------*/ 28 | #ifndef __AT32F435_437_INT_H 29 | #define __AT32F435_437_INT_H 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | /* includes ------------------------------------------------------------------*/ 36 | #include "at32f435_437.h" 37 | 38 | /* exported types ------------------------------------------------------------*/ 39 | /* exported constants --------------------------------------------------------*/ 40 | /* exported macro ------------------------------------------------------------*/ 41 | /* exported functions ------------------------------------------------------- */ 42 | 43 | void NMI_Handler(void); 44 | void HardFault_Handler(void); 45 | void MemManage_Handler(void); 46 | void BusFault_Handler(void); 47 | void UsageFault_Handler(void); 48 | void SVC_Handler(void); 49 | void DebugMon_Handler(void); 50 | void PendSV_Handler(void); 51 | void SysTick_Handler(void); 52 | 53 | #ifdef __cplusplus 54 | } 55 | #endif 56 | 57 | #endif 58 | 59 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/adc/current_vref_value_check/inc/at32f435_437_int.h: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file at32f435_437_int.h 4 | * @version v2.0.4 5 | * @date 2021-12-31 6 | * @brief header file of main interrupt service routines. 7 | ************************************************************************** 8 | * Copyright notice & Disclaimer 9 | * 10 | * The software Board Support Package (BSP) that is made available to 11 | * download from Artery official website is the copyrighted work of Artery. 12 | * Artery authorizes customers to use, copy, and distribute the BSP 13 | * software and its related documentation for the purpose of design and 14 | * development in conjunction with Artery microcontrollers. Use of the 15 | * software is governed by this copyright notice and the following disclaimer. 16 | * 17 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 18 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 19 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 20 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 21 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 23 | * 24 | ************************************************************************** 25 | */ 26 | 27 | /* define to prevent recursive inclusion -------------------------------------*/ 28 | #ifndef __AT32F435_437_INT_H 29 | #define __AT32F435_437_INT_H 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | /* includes ------------------------------------------------------------------*/ 36 | #include "at32f435_437.h" 37 | 38 | /* exported types ------------------------------------------------------------*/ 39 | /* exported constants --------------------------------------------------------*/ 40 | /* exported macro ------------------------------------------------------------*/ 41 | /* exported functions ------------------------------------------------------- */ 42 | 43 | void NMI_Handler(void); 44 | void HardFault_Handler(void); 45 | void MemManage_Handler(void); 46 | void BusFault_Handler(void); 47 | void UsageFault_Handler(void); 48 | void SVC_Handler(void); 49 | void DebugMon_Handler(void); 50 | void PendSV_Handler(void); 51 | void SysTick_Handler(void); 52 | 53 | #ifdef __cplusplus 54 | } 55 | #endif 56 | 57 | #endif 58 | 59 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F437/led_toggle/src/main.c: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file main.c 4 | * @brief main program 5 | ************************************************************************** 6 | * Copyright notice & Disclaimer 7 | * 8 | * The software Board Support Package (BSP) that is made available to 9 | * download from Artery official website is the copyrighted work of Artery. 10 | * Artery authorizes customers to use, copy, and distribute the BSP 11 | * software and its related documentation for the purpose of design and 12 | * development in conjunction with Artery microcontrollers. Use of the 13 | * software is governed by this copyright notice and the following disclaimer. 14 | * 15 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 16 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 17 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 18 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 19 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 20 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 21 | * 22 | ************************************************************************** 23 | */ 24 | 25 | /* includes */ 26 | #include "at32f435_437_clock.h" 27 | #include "delay.h" 28 | 29 | #define LEDPERIPH CRM_GPIOB_PERIPH_CLOCK 30 | #define LEDPORT (GPIOB) 31 | #define LEDPIN (GPIO_PINS_12) 32 | 33 | /** @addtogroup AT32F437_periph_examples 34 | * @{ 35 | */ 36 | 37 | /** @addtogroup 437_GPIO_led_toggle GPIO_led_toggle 38 | * @{ 39 | */ 40 | 41 | /** 42 | * @brief gpio configuration. 43 | * @param none 44 | * @retval none 45 | */ 46 | static void gpio_config(void) 47 | { 48 | gpio_init_type gpio_init_struct; 49 | crm_periph_clock_enable(LEDPERIPH, TRUE); 50 | 51 | gpio_default_para_init(&gpio_init_struct); 52 | 53 | //configure the led gpio 54 | gpio_init_struct.gpio_drive_strength = GPIO_DRIVE_STRENGTH_STRONGER; 55 | gpio_init_struct.gpio_out_type = GPIO_OUTPUT_PUSH_PULL; 56 | gpio_init_struct.gpio_mode = GPIO_MODE_OUTPUT; 57 | gpio_init_struct.gpio_pins = LEDPIN; 58 | gpio_init_struct.gpio_pull = GPIO_PULL_NONE; 59 | gpio_init(LEDPORT, &gpio_init_struct); 60 | } 61 | 62 | /** 63 | * @brief main function. 64 | * @param none 65 | * @retval none 66 | */ 67 | int main(void) 68 | { 69 | system_clock_config(); 70 | delay_init(); 71 | 72 | gpio_config(); 73 | 74 | gpio_bits_reset(LEDPORT, LEDPIN); 75 | 76 | for (;;) { 77 | delay_ms(500); 78 | LEDPORT->odt ^= LEDPIN; // toggle pin 79 | } 80 | 81 | return 0; 82 | } 83 | 84 | /** 85 | * @} 86 | */ 87 | 88 | /** 89 | * @} 90 | */ 91 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/.github/workflows/examples.yml: -------------------------------------------------------------------------------- 1 | name: Examples 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | build: 7 | strategy: 8 | fail-fast: false 9 | matrix: 10 | os: [ubuntu-18.04, windows-latest, macos-latest] 11 | python-version: [3.7] 12 | example: 13 | - "examples/arduino-blink" 14 | - "examples/arduino-external-libs" 15 | - "examples/arduino-internal-libs" 16 | - "examples/arduino-mbed-doom" 17 | - "examples/arduino-mbed-rpc" 18 | - "examples/arduino-mxchip-azureiot" 19 | - "examples/arduino-mxchip-filesystem" 20 | - "examples/arduino-mxchip-sensors" 21 | - "examples/arduino-mxchip-wifiscan" 22 | - "examples/cmsis-blink" 23 | - "examples/libopencm3-1bitsy" 24 | - "examples/libopencm3-blink" 25 | - "examples/libopencm3-usb-cdcacm" 26 | - "examples/mbed-rtos-blink-baremetal" 27 | - "examples/mbed-rtos-custom-target" 28 | - "examples/mbed-rtos-ethernet-tls" 29 | - "examples/mbed-rtos-events" 30 | - "examples/mbed-rtos-filesystem" 31 | - "examples/mbed-rtos-mesh-minimal" 32 | - "examples/mbed-rtos-serial" 33 | - "examples/mbed-rtos-usb-keyboard" 34 | - "examples/mbed-rtos-wifi" 35 | - "examples/mbed-legacy-examples/mbed-blink" 36 | - "examples/mbed-legacy-examples/mbed-custom-target" 37 | - "examples/mbed-legacy-examples/mbed-dsp" 38 | - "examples/mbed-legacy-examples/mbed-events" 39 | - "examples/mbed-legacy-examples/mbed-filesystem" 40 | - "examples/mbed-legacy-examples/mbed-rtos" 41 | - "examples/mbed-legacy-examples/mbed-rtos-ethernet-tls" 42 | - "examples/mbed-legacy-examples/mbed-rtos-mesh-minimal" 43 | - "examples/mbed-legacy-examples/mbed-serial" 44 | - "examples/spl-blink" 45 | - "examples/stm32cube-hal-blink" 46 | - "examples/stm32cube-hal-eeprom-emulation" 47 | - "examples/stm32cube-hal-extmem-boot" 48 | - "examples/stm32cube-hal-iap" 49 | - "examples/stm32cube-hal-lcd" 50 | - "examples/stm32cube-hal-usb-device-dfu" 51 | - "examples/stm32cube-hal-wifi-client" 52 | - "examples/stm32cube-ll-blink" 53 | - "examples/zephyr-blink" 54 | - "examples/zephyr-cpp-synchronization" 55 | - "examples/zephyr-drivers-can" 56 | - "examples/zephyr-net-civetweb" 57 | - "examples/zephyr-net-https-client" 58 | - "examples/zephyr-subsys-usb-hid-mouse" 59 | - "tests/arduino-blink-different-cores" 60 | runs-on: ${{ matrix.os }} 61 | steps: 62 | - uses: actions/checkout@v2 63 | with: 64 | submodules: "recursive" 65 | - name: Set up Python ${{ matrix.python-version }} 66 | uses: actions/setup-python@v1 67 | with: 68 | python-version: ${{ matrix.python-version }} 69 | - name: Install dependencies 70 | run: | 71 | python -m pip install --upgrade pip 72 | pip install -U https://github.com/platformio/platformio/archive/develop.zip 73 | platformio platform install file://. 74 | - name: Build examples 75 | run: | 76 | platformio run -d ${{ matrix.example }} 77 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F425/led_toggle/src/at32f425_clock.c: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file at32f425_clock.c 4 | * @version v2.0.0 5 | * @date 2021-12-31 6 | * @brief system clock config program 7 | ************************************************************************** 8 | * Copyright notice & Disclaimer 9 | * 10 | * The software Board Support Package (BSP) that is made available to 11 | * download from Artery official website is the copyrighted work of Artery. 12 | * Artery authorizes customers to use, copy, and distribute the BSP 13 | * software and its related documentation for the purpose of design and 14 | * development in conjunction with Artery microcontrollers. Use of the 15 | * software is governed by this copyright notice and the following disclaimer. 16 | * 17 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 18 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 19 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 20 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 21 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 23 | * 24 | ************************************************************************** 25 | */ 26 | 27 | /* includes ------------------------------------------------------------------*/ 28 | #include "at32f425_clock.h" 29 | 30 | /** 31 | * @brief system clock config program 32 | * @note the system clock is configured as follow: 33 | * - system clock = hext * pll_mult 34 | * - system clock source = pll (hext) 35 | * - hext = 8000000 36 | * - sclk = 96000000 37 | * - ahbdiv = 1 38 | * - ahbclk = 96000000 39 | * - apb2div = 1 40 | * - apb2clk = 96000000 41 | * - apb1div = 1 42 | * - apb1clk = 96000000 43 | * - pll_mult = 12 44 | * - flash_wtcyc = 2 cycle 45 | * @param none 46 | * @retval none 47 | */ 48 | void system_clock_config(void) 49 | { 50 | /* config flash psr register */ 51 | flash_psr_set(FLASH_WAIT_CYCLE_2); 52 | 53 | /* reset crm */ 54 | crm_reset(); 55 | 56 | crm_clock_source_enable(CRM_CLOCK_SOURCE_HEXT, TRUE); 57 | 58 | /* wait till hext is ready */ 59 | while(crm_hext_stable_wait() == ERROR) 60 | { 61 | } 62 | 63 | /* config pll clock resource */ 64 | crm_pll_config(CRM_PLL_SOURCE_HEXT, CRM_PLL_MULT_12); 65 | 66 | /* enable pll */ 67 | crm_clock_source_enable(CRM_CLOCK_SOURCE_PLL, TRUE); 68 | 69 | /* wait till pll is ready */ 70 | while(crm_flag_get(CRM_PLL_STABLE_FLAG) != SET) 71 | { 72 | } 73 | 74 | /* config ahbclk */ 75 | crm_ahb_div_set(CRM_AHB_DIV_1); 76 | 77 | /* config apb2clk */ 78 | crm_apb2_div_set(CRM_APB2_DIV_1); 79 | 80 | /* config apb1clk */ 81 | crm_apb1_div_set(CRM_APB1_DIV_1); 82 | 83 | /* select pll as system clock source */ 84 | crm_sysclk_switch(CRM_SCLK_PLL); 85 | 86 | /* wait till pll is used as system clock source */ 87 | while(crm_sysclk_switch_status_get() != CRM_SCLK_PLL) 88 | { 89 | } 90 | 91 | /* update system_core_clock global variable */ 92 | system_core_clock_update(); 93 | } 94 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/usb_device/vcp_loopback/lib/cdc/cdc_class.h: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file cdc_class.h 4 | * @version v2.0.4 5 | * @date 2021-12-31 6 | * @brief usb cdc class file 7 | ************************************************************************** 8 | * Copyright notice & Disclaimer 9 | * 10 | * The software Board Support Package (BSP) that is made available to 11 | * download from Artery official website is the copyrighted work of Artery. 12 | * Artery authorizes customers to use, copy, and distribute the BSP 13 | * software and its related documentation for the purpose of design and 14 | * development in conjunction with Artery microcontrollers. Use of the 15 | * software is governed by this copyright notice and the following disclaimer. 16 | * 17 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 18 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 19 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 20 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 21 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 23 | * 24 | ************************************************************************** 25 | */ 26 | 27 | /* define to prevent recursive inclusion -------------------------------------*/ 28 | #ifndef __CDC_CLASS_H 29 | #define __CDC_CLASS_H 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | #include "usb_std.h" 36 | #include "usbd_core.h" 37 | 38 | /** @addtogroup AT32F435_437_middlewares_usbd_class 39 | * @{ 40 | */ 41 | 42 | /** @addtogroup USB_cdc_class 43 | * @{ 44 | */ 45 | 46 | /** @defgroup USB_cdc_class_definition 47 | * @{ 48 | */ 49 | 50 | /** 51 | * @brief usb cdc use endpoint define 52 | */ 53 | #define USBD_CDC_INT_EPT 0x82 54 | #define USBD_CDC_BULK_IN_EPT 0x81 55 | #define USBD_CDC_BULK_OUT_EPT 0x01 56 | 57 | /** 58 | * @brief usb cdc in and out max packet size define 59 | */ 60 | #define USBD_IN_MAXPACKET_SIZE 0x40 61 | #define USBD_OUT_MAXPACKET_SIZE 0x40 62 | #define USBD_CMD_MAXPACKET_SIZE 0x08 63 | 64 | /** 65 | * @brief usb cdc class request code define 66 | */ 67 | #define SET_LINE_CODING 0x20 68 | #define GET_LINE_CODING 0x21 69 | 70 | /** 71 | * @} 72 | */ 73 | 74 | /** @defgroup USB_cdc_class_exported_types 75 | * @{ 76 | */ 77 | 78 | /** 79 | * @brief usb cdc class set line coding struct 80 | */ 81 | typedef struct 82 | { 83 | uint32_t bitrate; /* line coding baud rate */ 84 | uint8_t format; /* line coding foramt */ 85 | uint8_t parity; /* line coding parity */ 86 | uint8_t data; /* line coding data bit */ 87 | }linecoding_type; 88 | 89 | /** 90 | * @} 91 | */ 92 | 93 | /** @defgroup USB_cdc_class_exported_functions 94 | * @{ 95 | */ 96 | extern usbd_class_handler class_handler; 97 | uint16_t usb_vcp_get_rxdata(void *udev, uint8_t *recv_data); 98 | error_status usb_vcp_send_data(void *udev, uint8_t *send_data, uint16_t len); 99 | 100 | /** 101 | * @} 102 | */ 103 | 104 | /** 105 | * @} 106 | */ 107 | 108 | /** 109 | * @} 110 | */ 111 | #ifdef __cplusplus 112 | } 113 | #endif 114 | 115 | #endif 116 | 117 | 118 | 119 | 120 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F421/led_toggle/src/at32f421_clock.c: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file at32f421_clock.c 4 | * @brief system clock config program 5 | ************************************************************************** 6 | * Copyright notice & Disclaimer 7 | * 8 | * The software Board Support Package (BSP) that is made available to 9 | * download from Artery official website is the copyrighted work of Artery. 10 | * Artery authorizes customers to use, copy, and distribute the BSP 11 | * software and its related documentation for the purpose of design and 12 | * development in conjunction with Artery microcontrollers. Use of the 13 | * software is governed by this copyright notice and the following disclaimer. 14 | * 15 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 16 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 17 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 18 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 19 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 20 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 21 | * 22 | ************************************************************************** 23 | */ 24 | 25 | /* includes ------------------------------------------------------------------*/ 26 | #include "at32f421_clock.h" 27 | 28 | /** 29 | * @brief system clock config program 30 | * @note the system clock is configured as follow: 31 | * system clock (sclk) = hext * pll_mult 32 | * system clock source = pll (hext) 33 | * - hext = HEXT_VALUE 34 | * - sclk = 120000000 35 | * - ahbdiv = 1 36 | * - ahbclk = 120000000 37 | * - apb2div = 1 38 | * - apb2clk = 120000000 39 | * - apb1div = 1 40 | * - apb1clk = 120000000 41 | * - pll_mult = 15 42 | * - flash_wtcyc = 3 cycle 43 | * @param none 44 | * @retval none 45 | */ 46 | void system_clock_config(void) 47 | { 48 | /* reset crm */ 49 | crm_reset(); 50 | 51 | /* config flash psr register */ 52 | flash_psr_set(FLASH_WAIT_CYCLE_3); 53 | 54 | crm_clock_source_enable(CRM_CLOCK_SOURCE_HEXT, TRUE); 55 | 56 | /* wait till hext is ready */ 57 | while(crm_hext_stable_wait() == ERROR) 58 | { 59 | } 60 | 61 | /* config pll clock resource */ 62 | crm_pll_config(CRM_PLL_SOURCE_HEXT, CRM_PLL_MULT_15); 63 | 64 | /* enable pll */ 65 | crm_clock_source_enable(CRM_CLOCK_SOURCE_PLL, TRUE); 66 | 67 | /* wait till pll is ready */ 68 | while(crm_flag_get(CRM_PLL_STABLE_FLAG) != SET) 69 | { 70 | } 71 | 72 | /* config ahbclk */ 73 | crm_ahb_div_set(CRM_AHB_DIV_1); 74 | 75 | /* config apb2clk, the maximum frequency of APB1/APB2 clock is 120 MHz */ 76 | crm_apb2_div_set(CRM_APB2_DIV_1); 77 | 78 | /* config apb1clk, the maximum frequency of APB1/APB2 clock is 120 MHz */ 79 | crm_apb1_div_set(CRM_APB1_DIV_1); 80 | 81 | /* enable auto step mode */ 82 | crm_auto_step_mode_enable(TRUE); 83 | 84 | /* select pll as system clock source */ 85 | crm_sysclk_switch(CRM_SCLK_PLL); 86 | 87 | /* wait till pll is used as system clock source */ 88 | while(crm_sysclk_switch_status_get() != CRM_SCLK_PLL) 89 | { 90 | } 91 | 92 | /* disable auto step mode */ 93 | crm_auto_step_mode_enable(FALSE); 94 | 95 | /* update system_core_clock global variable */ 96 | system_core_clock_update(); 97 | } 98 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F421/led_toggle/src/at32f421_int.c: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file at32f421_int.c 4 | * @brief main interrupt service routines. 5 | ************************************************************************** 6 | * Copyright notice & Disclaimer 7 | * 8 | * The software Board Support Package (BSP) that is made available to 9 | * download from Artery official website is the copyrighted work of Artery. 10 | * Artery authorizes customers to use, copy, and distribute the BSP 11 | * software and its related documentation for the purpose of design and 12 | * development in conjunction with Artery microcontrollers. Use of the 13 | * software is governed by this copyright notice and the following disclaimer. 14 | * 15 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 16 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 17 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 18 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 19 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 20 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 21 | * 22 | ************************************************************************** 23 | */ 24 | 25 | /* includes ------------------------------------------------------------------*/ 26 | #include "at32f421_int.h" 27 | 28 | /** @addtogroup AT32F421_periph_examples 29 | * @{ 30 | */ 31 | 32 | /** @addtogroup 421_GPIO_led_toggle 33 | * @{ 34 | */ 35 | 36 | /** 37 | * @brief this function handles nmi exception. 38 | * @param none 39 | * @retval none 40 | */ 41 | void NMI_Handler(void) 42 | { 43 | } 44 | 45 | /** 46 | * @brief this function handles hard fault exception. 47 | * @param none 48 | * @retval none 49 | */ 50 | void HardFault_Handler(void) 51 | { 52 | /* go to infinite loop when hard fault exception occurs */ 53 | while(1) 54 | { 55 | } 56 | } 57 | 58 | /** 59 | * @brief this function handles memory manage exception. 60 | * @param none 61 | * @retval none 62 | */ 63 | void MemManage_Handler(void) 64 | { 65 | /* go to infinite loop when memory manage exception occurs */ 66 | while(1) 67 | { 68 | } 69 | } 70 | 71 | /** 72 | * @brief this function handles bus fault exception. 73 | * @param none 74 | * @retval none 75 | */ 76 | void BusFault_Handler(void) 77 | { 78 | /* go to infinite loop when bus fault exception occurs */ 79 | while(1) 80 | { 81 | } 82 | } 83 | 84 | /** 85 | * @brief this function handles usage fault exception. 86 | * @param none 87 | * @retval none 88 | */ 89 | void UsageFault_Handler(void) 90 | { 91 | /* go to infinite loop when usage fault exception occurs */ 92 | while(1) 93 | { 94 | } 95 | } 96 | 97 | /** 98 | * @brief this function handles svcall exception. 99 | * @param none 100 | * @retval none 101 | */ 102 | void SVC_Handler(void) 103 | { 104 | } 105 | 106 | /** 107 | * @brief this function handles debug monitor exception. 108 | * @param none 109 | * @retval none 110 | */ 111 | void DebugMon_Handler(void) 112 | { 113 | } 114 | 115 | /** 116 | * @brief this function handles pendsv_handler exception. 117 | * @param none 118 | * @retval none 119 | */ 120 | void PendSV_Handler(void) 121 | { 122 | } 123 | 124 | /** 125 | * @brief this function handles systick handler. 126 | * @param none 127 | * @retval none 128 | */ 129 | void SysTick_Handler(void) 130 | { 131 | } 132 | 133 | 134 | /** 135 | * @} 136 | */ 137 | 138 | /** 139 | * @} 140 | */ 141 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F437/led_toggle/src/at32f435_437_int.c: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file at32f435_437_int.c 4 | * @brief main interrupt service routines. 5 | ************************************************************************** 6 | * Copyright notice & Disclaimer 7 | * 8 | * The software Board Support Package (BSP) that is made available to 9 | * download from Artery official website is the copyrighted work of Artery. 10 | * Artery authorizes customers to use, copy, and distribute the BSP 11 | * software and its related documentation for the purpose of design and 12 | * development in conjunction with Artery microcontrollers. Use of the 13 | * software is governed by this copyright notice and the following disclaimer. 14 | * 15 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 16 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 17 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 18 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 19 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 20 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 21 | * 22 | ************************************************************************** 23 | */ 24 | 25 | /* includes ------------------------------------------------------------------*/ 26 | #include "at32f435_437_int.h" 27 | 28 | /** @addtogroup AT32F437_periph_examples 29 | * @{ 30 | */ 31 | 32 | /** @addtogroup 437_GPIO_led_toggle 33 | * @{ 34 | */ 35 | 36 | /** 37 | * @brief this function handles nmi exception. 38 | * @param none 39 | * @retval none 40 | */ 41 | void NMI_Handler(void) 42 | { 43 | } 44 | 45 | /** 46 | * @brief this function handles hard fault exception. 47 | * @param none 48 | * @retval none 49 | */ 50 | void HardFault_Handler(void) 51 | { 52 | /* go to infinite loop when hard fault exception occurs */ 53 | while(1) 54 | { 55 | } 56 | } 57 | 58 | /** 59 | * @brief this function handles memory manage exception. 60 | * @param none 61 | * @retval none 62 | */ 63 | void MemManage_Handler(void) 64 | { 65 | /* go to infinite loop when memory manage exception occurs */ 66 | while(1) 67 | { 68 | } 69 | } 70 | 71 | /** 72 | * @brief this function handles bus fault exception. 73 | * @param none 74 | * @retval none 75 | */ 76 | void BusFault_Handler(void) 77 | { 78 | /* go to infinite loop when bus fault exception occurs */ 79 | while(1) 80 | { 81 | } 82 | } 83 | 84 | /** 85 | * @brief this function handles usage fault exception. 86 | * @param none 87 | * @retval none 88 | */ 89 | void UsageFault_Handler(void) 90 | { 91 | /* go to infinite loop when usage fault exception occurs */ 92 | while(1) 93 | { 94 | } 95 | } 96 | 97 | /** 98 | * @brief this function handles svcall exception. 99 | * @param none 100 | * @retval none 101 | */ 102 | void SVC_Handler(void) 103 | { 104 | } 105 | 106 | /** 107 | * @brief this function handles debug monitor exception. 108 | * @param none 109 | * @retval none 110 | */ 111 | void DebugMon_Handler(void) 112 | { 113 | } 114 | 115 | /** 116 | * @brief this function handles pendsv_handler exception. 117 | * @param none 118 | * @retval none 119 | */ 120 | void PendSV_Handler(void) 121 | { 122 | } 123 | 124 | /** 125 | * @brief this function handles systick handler. 126 | * @param none 127 | * @retval none 128 | */ 129 | void SysTick_Handler(void) 130 | { 131 | } 132 | 133 | /** 134 | * @} 135 | */ 136 | 137 | /** 138 | * @} 139 | */ 140 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F425/led_toggle/src/at32f425_int.c: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file at32f425_int.c 4 | * @version v2.0.0 5 | * @date 2021-12-31 6 | * @brief main interrupt service routines. 7 | ************************************************************************** 8 | * Copyright notice & Disclaimer 9 | * 10 | * The software Board Support Package (BSP) that is made available to 11 | * download from Artery official website is the copyrighted work of Artery. 12 | * Artery authorizes customers to use, copy, and distribute the BSP 13 | * software and its related documentation for the purpose of design and 14 | * development in conjunction with Artery microcontrollers. Use of the 15 | * software is governed by this copyright notice and the following disclaimer. 16 | * 17 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 18 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 19 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 20 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 21 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 23 | * 24 | ************************************************************************** 25 | */ 26 | 27 | /* includes ------------------------------------------------------------------*/ 28 | #include "at32f425_int.h" 29 | 30 | /** @addtogroup AT32F425_periph_examples 31 | * @{ 32 | */ 33 | 34 | /** @addtogroup 425_GPIO_led_toggle 35 | * @{ 36 | */ 37 | 38 | /** 39 | * @brief this function handles nmi exception. 40 | * @param none 41 | * @retval none 42 | */ 43 | void NMI_Handler(void) 44 | { 45 | } 46 | 47 | /** 48 | * @brief this function handles hard fault exception. 49 | * @param none 50 | * @retval none 51 | */ 52 | void HardFault_Handler(void) 53 | { 54 | /* go to infinite loop when hard fault exception occurs */ 55 | while(1) 56 | { 57 | } 58 | } 59 | 60 | /** 61 | * @brief this function handles memory manage exception. 62 | * @param none 63 | * @retval none 64 | */ 65 | void MemManage_Handler(void) 66 | { 67 | /* go to infinite loop when memory manage exception occurs */ 68 | while(1) 69 | { 70 | } 71 | } 72 | 73 | /** 74 | * @brief this function handles bus fault exception. 75 | * @param none 76 | * @retval none 77 | */ 78 | void BusFault_Handler(void) 79 | { 80 | /* go to infinite loop when bus fault exception occurs */ 81 | while(1) 82 | { 83 | } 84 | } 85 | 86 | /** 87 | * @brief this function handles usage fault exception. 88 | * @param none 89 | * @retval none 90 | */ 91 | void UsageFault_Handler(void) 92 | { 93 | /* go to infinite loop when usage fault exception occurs */ 94 | while(1) 95 | { 96 | } 97 | } 98 | 99 | /** 100 | * @brief this function handles svcall exception. 101 | * @param none 102 | * @retval none 103 | */ 104 | void SVC_Handler(void) 105 | { 106 | } 107 | 108 | /** 109 | * @brief this function handles debug monitor exception. 110 | * @param none 111 | * @retval none 112 | */ 113 | void DebugMon_Handler(void) 114 | { 115 | } 116 | 117 | /** 118 | * @brief this function handles pendsv_handler exception. 119 | * @param none 120 | * @retval none 121 | */ 122 | void PendSV_Handler(void) 123 | { 124 | } 125 | 126 | /** 127 | * @brief this function handles systick handler. 128 | * @param none 129 | * @retval none 130 | */ 131 | void SysTick_Handler(void) 132 | { 133 | } 134 | 135 | 136 | /** 137 | * @} 138 | */ 139 | 140 | /** 141 | * @} 142 | */ 143 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/cmsis-blink/src/at32f435_437_int.c: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file at32f435_437_int.c 4 | * @version v2.0.4 5 | * @date 2021-12-31 6 | * @brief main interrupt service routines. 7 | ************************************************************************** 8 | * Copyright notice & Disclaimer 9 | * 10 | * The software Board Support Package (BSP) that is made available to 11 | * download from Artery official website is the copyrighted work of Artery. 12 | * Artery authorizes customers to use, copy, and distribute the BSP 13 | * software and its related documentation for the purpose of design and 14 | * development in conjunction with Artery microcontrollers. Use of the 15 | * software is governed by this copyright notice and the following disclaimer. 16 | * 17 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 18 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 19 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 20 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 21 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 23 | * 24 | ************************************************************************** 25 | */ 26 | 27 | /* includes ------------------------------------------------------------------*/ 28 | #include "at32f435_437_int.h" 29 | 30 | /** @addtogroup AT32F435_periph_examples 31 | * @{ 32 | */ 33 | 34 | /** @addtogroup 435_GPIO_led_toggle 35 | * @{ 36 | */ 37 | 38 | /** 39 | * @brief this function handles nmi exception. 40 | * @param none 41 | * @retval none 42 | */ 43 | void NMI_Handler(void) 44 | { 45 | } 46 | 47 | /** 48 | * @brief this function handles hard fault exception. 49 | * @param none 50 | * @retval none 51 | */ 52 | void HardFault_Handler(void) 53 | { 54 | /* go to infinite loop when hard fault exception occurs */ 55 | while(1) 56 | { 57 | } 58 | } 59 | 60 | /** 61 | * @brief this function handles memory manage exception. 62 | * @param none 63 | * @retval none 64 | */ 65 | void MemManage_Handler(void) 66 | { 67 | /* go to infinite loop when memory manage exception occurs */ 68 | while(1) 69 | { 70 | } 71 | } 72 | 73 | /** 74 | * @brief this function handles bus fault exception. 75 | * @param none 76 | * @retval none 77 | */ 78 | void BusFault_Handler(void) 79 | { 80 | /* go to infinite loop when bus fault exception occurs */ 81 | while(1) 82 | { 83 | } 84 | } 85 | 86 | /** 87 | * @brief this function handles usage fault exception. 88 | * @param none 89 | * @retval none 90 | */ 91 | void UsageFault_Handler(void) 92 | { 93 | /* go to infinite loop when usage fault exception occurs */ 94 | while(1) 95 | { 96 | } 97 | } 98 | 99 | /** 100 | * @brief this function handles svcall exception. 101 | * @param none 102 | * @retval none 103 | */ 104 | void SVC_Handler(void) 105 | { 106 | } 107 | 108 | /** 109 | * @brief this function handles debug monitor exception. 110 | * @param none 111 | * @retval none 112 | */ 113 | void DebugMon_Handler(void) 114 | { 115 | } 116 | 117 | /** 118 | * @brief this function handles pendsv_handler exception. 119 | * @param none 120 | * @retval none 121 | */ 122 | void PendSV_Handler(void) 123 | { 124 | } 125 | 126 | /** 127 | * @brief this function handles systick handler. 128 | * @param none 129 | * @retval none 130 | */ 131 | void SysTick_Handler(void) 132 | { 133 | } 134 | 135 | /** 136 | * @} 137 | */ 138 | 139 | /** 140 | * @} 141 | */ 142 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/usb_device/vcp_loopback/src/at32f435_437_int.c: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file at32f435_437_int.c 4 | * @version v2.0.4 5 | * @date 2021-12-31 6 | * @brief main interrupt service routines. 7 | ************************************************************************** 8 | * Copyright notice & Disclaimer 9 | * 10 | * The software Board Support Package (BSP) that is made available to 11 | * download from Artery official website is the copyrighted work of Artery. 12 | * Artery authorizes customers to use, copy, and distribute the BSP 13 | * software and its related documentation for the purpose of design and 14 | * development in conjunction with Artery microcontrollers. Use of the 15 | * software is governed by this copyright notice and the following disclaimer. 16 | * 17 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 18 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 19 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 20 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 21 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 23 | * 24 | ************************************************************************** 25 | */ 26 | 27 | /* includes ------------------------------------------------------------------*/ 28 | #include "at32f435_437_int.h" 29 | 30 | /** @addtogroup AT32F435_periph_examples 31 | * @{ 32 | */ 33 | 34 | /** @addtogroup 435_USB_device_vcp_loopback 35 | * @{ 36 | */ 37 | 38 | /** 39 | * @brief this function handles nmi exception. 40 | * @param none 41 | * @retval none 42 | */ 43 | void NMI_Handler(void) 44 | { 45 | } 46 | 47 | /** 48 | * @brief this function handles hard fault exception. 49 | * @param none 50 | * @retval none 51 | */ 52 | void HardFault_Handler(void) 53 | { 54 | /* go to infinite loop when hard fault exception occurs */ 55 | while(1) 56 | { 57 | } 58 | } 59 | 60 | /** 61 | * @brief this function handles memory manage exception. 62 | * @param none 63 | * @retval none 64 | */ 65 | void MemManage_Handler(void) 66 | { 67 | /* go to infinite loop when memory manage exception occurs */ 68 | while(1) 69 | { 70 | } 71 | } 72 | 73 | /** 74 | * @brief this function handles bus fault exception. 75 | * @param none 76 | * @retval none 77 | */ 78 | void BusFault_Handler(void) 79 | { 80 | /* go to infinite loop when bus fault exception occurs */ 81 | while(1) 82 | { 83 | } 84 | } 85 | 86 | /** 87 | * @brief this function handles usage fault exception. 88 | * @param none 89 | * @retval none 90 | */ 91 | void UsageFault_Handler(void) 92 | { 93 | /* go to infinite loop when usage fault exception occurs */ 94 | while(1) 95 | { 96 | } 97 | } 98 | 99 | /** 100 | * @brief this function handles svcall exception. 101 | * @param none 102 | * @retval none 103 | */ 104 | void SVC_Handler(void) 105 | { 106 | } 107 | 108 | /** 109 | * @brief this function handles debug monitor exception. 110 | * @param none 111 | * @retval none 112 | */ 113 | void DebugMon_Handler(void) 114 | { 115 | } 116 | 117 | /** 118 | * @brief this function handles pendsv_handler exception. 119 | * @param none 120 | * @retval none 121 | */ 122 | void PendSV_Handler(void) 123 | { 124 | } 125 | 126 | /** 127 | * @brief this function handles systick handler. 128 | * @param none 129 | * @retval none 130 | */ 131 | void SysTick_Handler(void) 132 | { 133 | } 134 | 135 | /** 136 | * @} 137 | */ 138 | 139 | /** 140 | * @} 141 | */ 142 | 143 | -------------------------------------------------------------------------------- /old-jlink/JLINK.md: -------------------------------------------------------------------------------- 1 | # Instructions for JLINK Configuration 2 | (Dismissed, not valid with latest version of tool-jlink package) 3 | 4 | ## 1. Add AT .FLM Files 5 | Copy the `.platformio\packages\tool-jlink\Devices\AT\AT32F4xx` folder from Github here to your .platformio folder. 6 | 7 | ## 2. AT MCU Configurations 8 | Add the following lines to the `JLinkDevices.xml` file under `.platformio/packages/tool-jlink/` 9 | 10 | ``` 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | ``` 50 | 51 | ## 3. Use JLINK upload in the Project 52 | In the `platformio.ini` file in the Project folder, use this configuration line: 53 | ``` 54 | upload_protocol = jlink 55 | ``` 56 | 57 | # How to Configure JLINK for a new Board 58 | To configure a new board use the `.json` template file from another AT32 board, then in the `debug` section you can configure the `jlink_device` as one of the followings: 59 | 60 | ``` 61 | AT32F403AxCx, AT32F403AxEx, AT32F403AxGx 62 | AT32F435xCx, AT32F435xGx, AT32F435xMx 63 | ``` 64 | Example: 65 | ``` 66 | ... 67 | "debug": { 68 | "default_tools": [ 69 | "stlink" 70 | ], 71 | "jlink_device": "AT32F435xGx", 72 | "openocd_extra_args": [ 73 | "-c", 74 | "reset_config none" 75 | ], 76 | "openocd_target": "stm32f4x", 77 | "svd_path": "STM32F435xx.svd" 78 | }, 79 | ... 80 | ``` -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Artery-AT32-PlatformIO 2 | PlatformIO platform and framework for developing the new Artery AT32 MCU.
雅特力科技AT32芯片 PlatformIO 平台和框架。 3 | 4 | MCUs Supported: **[AT32F403A](https://www.arterychip.com/en/product/AT32F403A.jsp)**, **[AT32F435](https://www.arterychip.com/en/product/AT32F435.jsp)**, **[AT32F437](https://www.arterychip.com/en/product/AT32F437.jsp)**. 5 |
Version 版本: 2024-12 6 | 7 | ## AT32 VS STM32 8 | ![MCU Comparison](Docs/MCU_Comparison.jpg "MCU Comparison") 9 | 10 | 11 | ## Installation 安装 12 | You need to have Visual Studio Code with PlatformIO installed (tested with PlatformIO Core v.6.1.16). 13 | 1) Copy the folders under `.platformio` into your .platformio folder (ie: `C:\Users\\.platformio`) 14 |
将 .platformio 下的文件夹复制到您的 .platformio 文件夹中(即:`C:\Users\<用户名>\.platformio`) 15 | 16 | #### Install AT32 Configurations for J-Link (last update from ArteryICPProgrammer V3.0.19) 17 | In order to make the J-Link software aware of the new device, copy the folder `JLinkDevices` in the the central JLinkDevices folder (Windows): `C:\Users\\AppData\Roaming\SEGGER\` 18 | 19 | Currently available: 20 | - AT32F435xGx 21 | - AT32F437xGx 22 | 23 | More details about custom device configuration for J-Link are available [here](https://wiki.segger.com/J-Link_Device_Support_Kit). 24 | 25 | 26 | ## Usage Instructions 使用说明 27 | 3) Open Visual Studio Code, you should see AT32 Platform among the available platforms 28 |
打开 Visual Studio Code,在可用平台中应该可以看到 AT32 平台 29 | 1) Open one of the example folder and try to compile / upload 30 |
打开示例文件夹之一并尝试编译代码/上传到 MCU 31 | 32 | # Upload Firmware on MCU 上传固件 33 | Available upload methods: `serial bootloader` (PA9, PA10), `dfu`, `jlink` (check the configuration guide [here](https://github.com/martinloren/Artery-AT32-PlatformIO/blob/main/JLINK.md) )
34 | 可用的上传方法:串行引导加载程序(PA9、PA10)、dfu、jlink 35 | 1) Set it in the file `platformio.ini` in the Project folder, complete configuration options as in example project *cmsis-blink*
36 | 设置在项目文件夹的platformio.ini文件中,完整的配置选项在示例项目*cmsis-blink*中 37 | 2) Run the Upload
38 | 运行上传 39 | 40 | Notes 备注: 41 | 1) Serial bootloader speed seems to work up to 115200 (at higher speed it often doesn't work)
42 | 串行引导加载程序的速度似乎可以达到 115200(在更高的速度下通常不起作用) 43 | 2) Serial bootloader works only when USB port is disconnected (otherwise the MCU starts in DFU mode). So, in case you put this MCU on a Bluepill PCB, you need to power the MCU from 5V or 3V3 pin and not with USB cable.
44 | 串行引导加载程序仅在 USB 端口断开连接时工作(否则 MCU 以 DFU 模式启动)。 因此,如果您将此 MCU 放在 Bluepill PCB 上,则需要从 5V 或 3V3 引脚而不是 USB 电缆为 MCU 供电。 45 | 46 | # Supported 支持 47 | - Hardware Floating point unit (FPU)
48 | 硬件浮点单元 (FPU) 49 | - C/C++ compilation
50 | C/C++ 编译 51 | - 224K Max SRAM (for AT32F403A)
52 | 224K 最大SRAM (AT32F403A) 53 | 54 | # TO-DO List 待办事项清单 55 | - none 56 | 57 | # Screenshots 屏幕截图 58 | ![VSCode Platform](Docs/VSCode_PlatformIO_2.jpg "VSCode Platform") 59 | ![VSCode Platform](Docs/VSCode_PlatformIO_1.jpg "VSCode Platform") 60 | 61 | # Available Examples 62 | **AT32F437** 63 | - LED Blink 64 | 65 | **AT32F435** 66 | - LED Blink 67 | - USB vcp loopback 68 | - ADC Vref value check 69 | 70 | **AT32F403A** 71 | - LED BLink 72 | 73 | # AT32F403A on Bluepill PCB - 在 Bluepill PCB 上使用 AT32F403A 74 | You can replace the MCU on the Bluepill board with the AT32F403A. It is pin fully compatible. 75 | Just need to replace BOOT0 resistor from the present value of 100K with the value of 10K. This will allow the MCU to enter in Bootloader mode and flash it via UART1.
76 | 你可以用 AT32F403A 替换 Bluepill 板上的 MCU。 它是引脚完全兼容的。 77 | 只需要将BOOT0电阻从现在的100K值换成10K的值即可。 这将允许 MCU 进入引导加载程序模式并通过 UART1 对其进行闪存。 78 | 79 | # AT32F435 on Blackpill PCB 80 | You can mount the AT32F435 on the [Blackpill PCB](https://item.taobao.com/item.htm?spm=a230r.1.14.44.458014682yTbFh&id=661526858750&ns=1&abbucket=11#detail) for STM32F103. It works without any other modification requied. 81 | 82 | ![AT32F435](Docs/AT32F435.jpg "AT32F435 on Blackpill board") 83 | 84 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/usb_device/vcp_loopback/src/at32f435_437_clock.c: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file at32f435_437_clock.c 4 | * @version v2.0.4 5 | * @date 2021-12-31 6 | * @brief system clock config program 7 | ************************************************************************** 8 | * Copyright notice & Disclaimer 9 | * 10 | * The software Board Support Package (BSP) that is made available to 11 | * download from Artery official website is the copyrighted work of Artery. 12 | * Artery authorizes customers to use, copy, and distribute the BSP 13 | * software and its related documentation for the purpose of design and 14 | * development in conjunction with Artery microcontrollers. Use of the 15 | * software is governed by this copyright notice and the following disclaimer. 16 | * 17 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 18 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 19 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 20 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 21 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 23 | * 24 | ************************************************************************** 25 | */ 26 | 27 | /* includes ------------------------------------------------------------------*/ 28 | #include "at32f435_437_clock.h" 29 | 30 | /** 31 | * @brief system clock config program 32 | * @note the system clock is configured as follow: 33 | * - system clock = (hext * pll_ns)/(pll_ms * pll_fr) 34 | * - system clock source = pll (hext) 35 | * - hext = 8000000 36 | * - sclk = 288000000 37 | * - ahbdiv = 1 38 | * - ahbclk = 288000000 39 | * - apb2div = 2 40 | * - apb2clk = 144000000 41 | * - apb1div = 2 42 | * - apb1clk = 144000000 43 | * - pll_ns = 72 44 | * - pll_ms = 1 45 | * - pll_fr = 2 46 | * @param none 47 | * @retval none 48 | */ 49 | void system_clock_config(void) 50 | { 51 | /* enable pwc periph clock */ 52 | crm_periph_clock_enable(CRM_PWC_PERIPH_CLOCK, TRUE); 53 | 54 | /* config ldo voltage */ 55 | pwc_ldo_output_voltage_set(PWC_LDO_OUTPUT_1V3); 56 | 57 | /* set the flash clock divider */ 58 | flash_clock_divider_set(FLASH_CLOCK_DIV_3); 59 | 60 | /* reset crm */ 61 | crm_reset(); 62 | 63 | crm_clock_source_enable(CRM_CLOCK_SOURCE_HEXT, TRUE); 64 | 65 | /* wait till hext is ready */ 66 | while(crm_hext_stable_wait() == ERROR) 67 | { 68 | } 69 | 70 | /* config pll clock resource */ 71 | crm_pll_config(CRM_PLL_SOURCE_HEXT, 72, 1, CRM_PLL_FR_2); 72 | 73 | /* enable pll */ 74 | crm_clock_source_enable(CRM_CLOCK_SOURCE_PLL, TRUE); 75 | 76 | /* wait till pll is ready */ 77 | while(crm_flag_get(CRM_PLL_STABLE_FLAG) != SET) 78 | { 79 | } 80 | 81 | /* config ahbclk */ 82 | crm_ahb_div_set(CRM_AHB_DIV_1); 83 | 84 | /* config apb2clk */ 85 | crm_apb2_div_set(CRM_APB2_DIV_2); 86 | 87 | /* config apb1clk */ 88 | crm_apb1_div_set(CRM_APB1_DIV_2); 89 | 90 | /* enable auto step mode */ 91 | crm_auto_step_mode_enable(TRUE); 92 | 93 | /* select pll as system clock source */ 94 | crm_sysclk_switch(CRM_SCLK_PLL); 95 | 96 | /* wait till pll is used as system clock source */ 97 | while(crm_sysclk_switch_status_get() != CRM_SCLK_PLL) 98 | { 99 | } 100 | 101 | /* disable auto step mode */ 102 | crm_auto_step_mode_enable(FALSE); 103 | 104 | /* update system_core_clock global variable */ 105 | system_core_clock_update(); 106 | } 107 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/adc/current_vref_value_check/src/at32f435_437_clock.c: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file at32f435_437_clock.c 4 | * @version v2.0.4 5 | * @date 2021-12-31 6 | * @brief system clock config program 7 | ************************************************************************** 8 | * Copyright notice & Disclaimer 9 | * 10 | * The software Board Support Package (BSP) that is made available to 11 | * download from Artery official website is the copyrighted work of Artery. 12 | * Artery authorizes customers to use, copy, and distribute the BSP 13 | * software and its related documentation for the purpose of design and 14 | * development in conjunction with Artery microcontrollers. Use of the 15 | * software is governed by this copyright notice and the following disclaimer. 16 | * 17 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 18 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 19 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 20 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 21 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 23 | * 24 | ************************************************************************** 25 | */ 26 | 27 | /* includes ------------------------------------------------------------------*/ 28 | #include "at32f435_437_clock.h" 29 | 30 | /** 31 | * @brief system clock config program 32 | * @note the system clock is configured as follow: 33 | * - system clock = (hext * pll_ns)/(pll_ms * pll_fr) 34 | * - system clock source = pll (hext) 35 | * - hext = 8000000 36 | * - sclk = 288000000 37 | * - ahbdiv = 1 38 | * - ahbclk = 288000000 39 | * - apb2div = 2 40 | * - apb2clk = 144000000 41 | * - apb1div = 2 42 | * - apb1clk = 144000000 43 | * - pll_ns = 72 44 | * - pll_ms = 1 45 | * - pll_fr = 2 46 | * @param none 47 | * @retval none 48 | */ 49 | void system_clock_config(void) 50 | { 51 | /* enable pwc periph clock */ 52 | crm_periph_clock_enable(CRM_PWC_PERIPH_CLOCK, TRUE); 53 | 54 | /* config ldo voltage */ 55 | pwc_ldo_output_voltage_set(PWC_LDO_OUTPUT_1V3); 56 | 57 | /* set the flash clock divider */ 58 | flash_clock_divider_set(FLASH_CLOCK_DIV_3); 59 | 60 | /* reset crm */ 61 | crm_reset(); 62 | 63 | crm_clock_source_enable(CRM_CLOCK_SOURCE_HEXT, TRUE); 64 | 65 | /* wait till hext is ready */ 66 | while(crm_hext_stable_wait() == ERROR) 67 | { 68 | } 69 | 70 | /* config pll clock resource */ 71 | crm_pll_config(CRM_PLL_SOURCE_HEXT, 72, 1, CRM_PLL_FR_2); 72 | 73 | /* enable pll */ 74 | crm_clock_source_enable(CRM_CLOCK_SOURCE_PLL, TRUE); 75 | 76 | /* wait till pll is ready */ 77 | while(crm_flag_get(CRM_PLL_STABLE_FLAG) != SET) 78 | { 79 | } 80 | 81 | /* config ahbclk */ 82 | crm_ahb_div_set(CRM_AHB_DIV_1); 83 | 84 | /* config apb2clk */ 85 | crm_apb2_div_set(CRM_APB2_DIV_2); 86 | 87 | /* config apb1clk */ 88 | crm_apb1_div_set(CRM_APB1_DIV_2); 89 | 90 | /* enable auto step mode */ 91 | crm_auto_step_mode_enable(TRUE); 92 | 93 | /* select pll as system clock source */ 94 | crm_sysclk_switch(CRM_SCLK_PLL); 95 | 96 | /* wait till pll is used as system clock source */ 97 | while(crm_sysclk_switch_status_get() != CRM_SCLK_PLL) 98 | { 99 | } 100 | 101 | /* disable auto step mode */ 102 | crm_auto_step_mode_enable(FALSE); 103 | 104 | /* update system_core_clock global variable */ 105 | system_core_clock_update(); 106 | } 107 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/usb_device/vcp_loopback/lib/cdc/cdc_desc.h: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file cdc_desc.h 4 | * @version v2.0.4 5 | * @date 2021-12-31 6 | * @brief usb cdc descriptor header file 7 | ************************************************************************** 8 | * Copyright notice & Disclaimer 9 | * 10 | * The software Board Support Package (BSP) that is made available to 11 | * download from Artery official website is the copyrighted work of Artery. 12 | * Artery authorizes customers to use, copy, and distribute the BSP 13 | * software and its related documentation for the purpose of design and 14 | * development in conjunction with Artery microcontrollers. Use of the 15 | * software is governed by this copyright notice and the following disclaimer. 16 | * 17 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 18 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 19 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 20 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 21 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 23 | * 24 | ************************************************************************** 25 | */ 26 | 27 | /* define to prevent recursive inclusion -------------------------------------*/ 28 | #ifndef __CDC_DESC_H 29 | #define __CDC_DESC_H 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | #include "cdc_class.h" 36 | #include "usbd_core.h" 37 | 38 | /** @addtogroup AT32F435_437_middlewares_usbd_class 39 | * @{ 40 | */ 41 | 42 | /** @addtogroup USB_cdc_desc 43 | * @{ 44 | */ 45 | 46 | /** @defgroup USB_cdc_desc_definition 47 | * @{ 48 | */ 49 | 50 | /** 51 | * @brief usb bcd number define 52 | */ 53 | #define BCD_NUM 0x0110 54 | 55 | /** 56 | * @brief usb vendor id and product id define 57 | */ 58 | #define USBD_VENDOR_ID 0x2E3C 59 | #define USBD_PRODUCT_ID 0x5740 60 | 61 | /** 62 | * @brief usb descriptor size define 63 | */ 64 | #define USBD_CONFIG_DESC_SIZE 67 65 | #define USBD_SIZ_STRING_LANGID 4 66 | #define USBD_SIZ_STRING_SERIAL 0x1A 67 | 68 | /** 69 | * @brief usb string define(vendor, product configuration, interface) 70 | */ 71 | #define USBD_DESC_MANUFACTURER_STRING "Artery" 72 | #define USBD_DESC_PRODUCT_STRING "AT32 Virtual Com Port " 73 | #define USBD_DESC_CONFIGURATION_STRING "Virtual ComPort Config" 74 | #define USBD_DESC_INTERFACE_STRING "Virtual ComPort Interface" 75 | 76 | /** 77 | * @brief usb endpoint interval define 78 | */ 79 | #define HID_BINTERVAL_TIME 0xFF 80 | 81 | /** 82 | * @brief usb hid class descriptor define 83 | */ 84 | #define USBD_CDC_CS_INTERFACE 0x24 85 | #define USBD_CDC_CS_ENDPOINT 0x25 86 | 87 | /** 88 | * @brief usb hid class sub-type define 89 | */ 90 | #define USBD_CDC_SUBTYPE_HEADER 0x00 91 | #define USBD_CDC_SUBTYPE_CMF 0x01 92 | #define USBD_CDC_SUBTYPE_ACM 0x02 93 | #define USBD_CDC_SUBTYPE_UFD 0x06 94 | 95 | /** 96 | * @brief usb mcu id address deine 97 | */ 98 | #define MCU_ID1 (0x1FFFF7E8) 99 | #define MCU_ID2 (0x1FFFF7EC) 100 | #define MCU_ID3 (0x1FFFF7F0) 101 | 102 | /** 103 | * @} 104 | */ 105 | 106 | extern uint8_t g_usbd_descriptor[USB_DEVICE_DESC_LEN]; 107 | extern uint8_t g_usbd_configuration[USBD_CONFIG_DESC_SIZE]; 108 | extern usbd_desc_handler desc_handler; 109 | 110 | 111 | /** 112 | * @} 113 | */ 114 | 115 | /** 116 | * @} 117 | */ 118 | #ifdef __cplusplus 119 | } 120 | #endif 121 | 122 | #endif 123 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/cmsis-blink/src/at32f435_437_clock.c: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file at32f435_437_clock.c 4 | * @version v2.0.4 5 | * @date 2021-12-31 6 | * @brief system clock config program 7 | ************************************************************************** 8 | * Copyright notice & Disclaimer 9 | * 10 | * The software Board Support Package (BSP) that is made available to 11 | * download from Artery official website is the copyrighted work of Artery. 12 | * Artery authorizes customers to use, copy, and distribute the BSP 13 | * software and its related documentation for the purpose of design and 14 | * development in conjunction with Artery microcontrollers. Use of the 15 | * software is governed by this copyright notice and the following disclaimer. 16 | * 17 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 18 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 19 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 20 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 21 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 23 | * 24 | ************************************************************************** 25 | */ 26 | 27 | /* includes ------------------------------------------------------------------*/ 28 | #include "at32f435_437_clock.h" 29 | 30 | /** 31 | * @brief system clock config program 32 | * @note the system clock is configured as follow: 33 | * - system clock = (hext * pll_ns)/(pll_ms * pll_fr) 34 | * - system clock source = pll (hext) 35 | * - hext = 8000000 36 | * - sclk = 288000000 37 | * - ahbdiv = 1 38 | * - ahbclk = 288000000 39 | * - apb2div = 2 40 | * - apb2clk = 144000000 41 | * - apb1div = 2 42 | * - apb1clk = 144000000 43 | * - pll_ns = 72 44 | * - pll_ms = 1 45 | * - pll_fr = 2 46 | * @param none 47 | * @retval none 48 | */ 49 | void system_clock_config(void) 50 | { 51 | /* enable pwc periph clock */ 52 | crm_periph_clock_enable(CRM_PWC_PERIPH_CLOCK, TRUE); 53 | 54 | /* config ldo voltage */ 55 | pwc_ldo_output_voltage_set(PWC_LDO_OUTPUT_1V3); 56 | 57 | /* set the flash clock divider */ 58 | flash_clock_divider_set(FLASH_CLOCK_DIV_3); 59 | 60 | /* reset crm */ 61 | //crm_reset(); 62 | 63 | //crm_clock_source_enable(CRM_CLOCK_SOURCE_HEXT, TRUE); 64 | crm_clock_source_enable(CRM_CLOCK_SOURCE_HICK, TRUE); 65 | 66 | /* wait till hext is ready */ 67 | //while(crm_hext_stable_wait() == ERROR) 68 | while(crm_flag_get(CRM_HICK_STABLE_FLAG) != SET) 69 | { 70 | } 71 | 72 | /* config pll clock resource */ 73 | //crm_pll_config(CRM_PLL_SOURCE_HEXT, 72, 1, CRM_PLL_FR_2); 74 | crm_pll_config(CRM_PLL_SOURCE_HICK, 72, 1, CRM_PLL_FR_2); 75 | 76 | /* enable pll */ 77 | crm_clock_source_enable(CRM_CLOCK_SOURCE_PLL, TRUE); 78 | 79 | /* wait till pll is ready */ 80 | while(crm_flag_get(CRM_PLL_STABLE_FLAG) != SET) 81 | { 82 | } 83 | 84 | /* config ahbclk */ 85 | crm_ahb_div_set(CRM_AHB_DIV_1); 86 | 87 | /* config apb2clk */ 88 | crm_apb2_div_set(CRM_APB2_DIV_2); 89 | 90 | /* config apb1clk */ 91 | crm_apb1_div_set(CRM_APB1_DIV_2); 92 | 93 | /* enable auto step mode */ 94 | crm_auto_step_mode_enable(TRUE); 95 | 96 | /* select pll as system clock source */ 97 | crm_sysclk_switch(CRM_SCLK_PLL); 98 | 99 | /* wait till pll is used as system clock source */ 100 | while(crm_sysclk_switch_status_get() != CRM_SCLK_PLL) 101 | { 102 | } 103 | 104 | /* disable auto step mode */ 105 | crm_auto_step_mode_enable(FALSE); 106 | 107 | /* update system_core_clock global variable */ 108 | system_core_clock_update(); 109 | } 110 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F435/adc/current_vref_value_check/src/at32f435_437_int.c: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file at32f435_437_int.c 4 | * @version v2.0.4 5 | * @date 2021-12-31 6 | * @brief main interrupt service routines. 7 | ************************************************************************** 8 | * Copyright notice & Disclaimer 9 | * 10 | * The software Board Support Package (BSP) that is made available to 11 | * download from Artery official website is the copyrighted work of Artery. 12 | * Artery authorizes customers to use, copy, and distribute the BSP 13 | * software and its related documentation for the purpose of design and 14 | * development in conjunction with Artery microcontrollers. Use of the 15 | * software is governed by this copyright notice and the following disclaimer. 16 | * 17 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 18 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 19 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 20 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 21 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 23 | * 24 | ************************************************************************** 25 | */ 26 | 27 | /* includes ------------------------------------------------------------------*/ 28 | #include "at32f435_437_int.h" 29 | 30 | /** @addtogroup AT32F435_periph_examples 31 | * @{ 32 | */ 33 | 34 | /** @addtogroup 435_ADC_current_vref_value_check 35 | * @{ 36 | */ 37 | 38 | 39 | extern __IO uint32_t adc1_overflow_flag; 40 | 41 | /** 42 | * @brief this function handles nmi exception. 43 | * @param none 44 | * @retval none 45 | */ 46 | void NMI_Handler(void) 47 | { 48 | } 49 | 50 | /** 51 | * @brief this function handles hard fault exception. 52 | * @param none 53 | * @retval none 54 | */ 55 | void HardFault_Handler(void) 56 | { 57 | /* go to infinite loop when hard fault exception occurs */ 58 | while(1) 59 | { 60 | } 61 | } 62 | 63 | /** 64 | * @brief this function handles memory manage exception. 65 | * @param none 66 | * @retval none 67 | */ 68 | void MemManage_Handler(void) 69 | { 70 | /* go to infinite loop when memory manage exception occurs */ 71 | while(1) 72 | { 73 | } 74 | } 75 | 76 | /** 77 | * @brief this function handles bus fault exception. 78 | * @param none 79 | * @retval none 80 | */ 81 | void BusFault_Handler(void) 82 | { 83 | /* go to infinite loop when bus fault exception occurs */ 84 | while(1) 85 | { 86 | } 87 | } 88 | 89 | /** 90 | * @brief this function handles usage fault exception. 91 | * @param none 92 | * @retval none 93 | */ 94 | void UsageFault_Handler(void) 95 | { 96 | /* go to infinite loop when usage fault exception occurs */ 97 | while(1) 98 | { 99 | } 100 | } 101 | 102 | /** 103 | * @brief this function handles svcall exception. 104 | * @param none 105 | * @retval none 106 | */ 107 | void SVC_Handler(void) 108 | { 109 | } 110 | 111 | /** 112 | * @brief this function handles debug monitor exception. 113 | * @param none 114 | * @retval none 115 | */ 116 | void DebugMon_Handler(void) 117 | { 118 | } 119 | 120 | /** 121 | * @brief this function handles pendsv_handler exception. 122 | * @param none 123 | * @retval none 124 | */ 125 | void PendSV_Handler(void) 126 | { 127 | } 128 | 129 | /** 130 | * @brief this function handles systick handler. 131 | * @param none 132 | * @retval none 133 | */ 134 | void SysTick_Handler(void) 135 | { 136 | } 137 | 138 | /** 139 | * @brief this function handles adc1_2_3 handler. 140 | * @param none 141 | * @retval none 142 | */ 143 | void ADC1_2_3_IRQHandler(void) 144 | { 145 | if(adc_flag_get(ADC1, ADC_OCCO_FLAG) != RESET) 146 | { 147 | adc_flag_clear(ADC1, ADC_OCCO_FLAG); 148 | adc1_overflow_flag++; 149 | } 150 | } 151 | 152 | /** 153 | * @} 154 | */ 155 | 156 | /** 157 | * @} 158 | */ 159 | 160 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/platform.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "at32", 3 | "title": "Artery AT32", 4 | "description": "The AT32 family of 32-bit Flash MCUs based on the ARM Cortex-M processor is designed to offer new degrees of freedom to MCU users. It offers a 32-bit product range that combines very high performance, real-time capabilities, digital signal processing, and low-power, low-voltage operation, while maintaining full integration and ease of development.", 5 | "homepage": "https://www.arterychip.com/en/index.jsp", 6 | "license": "Apache-2.0", 7 | "keywords": [ 8 | "dev-platform", 9 | "arm", 10 | "cortex-m", 11 | "artery", 12 | "at32" 13 | ], 14 | "engines": { 15 | "platformio": "^5" 16 | }, 17 | "repository": { 18 | "type": "git", 19 | "url": "https://github.com/platformio/platform-at32.git" 20 | }, 21 | "version": "1.0.2", 22 | "frameworks": { 23 | "cmsis": { 24 | "package": "framework-cmsis", 25 | "script": "builder/frameworks/cmsis.py", 26 | "description": "The ARM Cortex Microcontroller Software Interface Standard (CMSIS) is a vendor-independent hardware abstraction layer for the Cortex-M processor series and specifies debugger interfaces. The CMSIS enables consistent and simple software interfaces to the processor for interface peripherals, real-time operating systems, and middleware. It simplifies software re-use, reducing the learning curve for new microcontroller developers and cutting the time-to-market for devices", 27 | "homepage": "https://developer.arm.com/tools-and-software/embedded/cmsis", 28 | "title": "CMSIS" 29 | } 30 | }, 31 | "packages": { 32 | "toolchain-gccarmnoneeabi": { 33 | "type": "toolchain", 34 | "owner": "platformio", 35 | "version": ">=1.60301.0,<1.80000.0", 36 | "optionalVersions": [ 37 | "~1.60301.0", 38 | "~1.80201.0", 39 | "~1.90201.0" 40 | ] 41 | }, 42 | "framework-cmsis": { 43 | "type": "framework", 44 | "optional": true, 45 | "owner": "platformio", 46 | "version": "~2.50501.0", 47 | "optionalVersions": [ 48 | "~2.50700.0" 49 | ] 50 | }, 51 | "framework-cmsis-at32f421": { 52 | "type": "framework", 53 | "optional": false, 54 | "owner": "martinloren", 55 | "version": "https://github.com/martinloren/framework-cmsis-at32f421.git" 56 | }, 57 | "framework-cmsis-at32f425": { 58 | "type": "framework", 59 | "optional": false, 60 | "owner": "martinloren", 61 | "version": "https://github.com/martinloren/framework-cmsis-at32f425.git" 62 | }, 63 | "framework-cmsis-at32f403": { 64 | "type": "framework", 65 | "optional": false, 66 | "owner": "martinloren", 67 | "version": "https://github.com/martinloren/framework-cmsis-at32f403.git" 68 | }, 69 | "framework-cmsis-at32f43x": { 70 | "type": "framework", 71 | "optional": false, 72 | "owner": "martinloren", 73 | "version": "https://github.com/martinloren/framework-cmsis-at32f43x.git" 74 | }, 75 | "tool-openocd": { 76 | "type": "uploader", 77 | "optional": true, 78 | "owner": "platformio", 79 | "version": "~2.1100.0" 80 | }, 81 | "tool-jlink": { 82 | "type": "uploader", 83 | "optional": true, 84 | "owner": "platformio", 85 | "version": "^1.63208.0" 86 | }, 87 | "tool-dfuutil": { 88 | "type": "uploader", 89 | "optional": true, 90 | "owner": "platformio", 91 | "version": "~1.9.190708" 92 | }, 93 | "tool-cmake": { 94 | "optional": true, 95 | "owner": "platformio", 96 | "version": "~3.21.0" 97 | }, 98 | "tool-dtc": { 99 | "optional": true, 100 | "owner": "platformio", 101 | "version": "~1.4.7" 102 | }, 103 | "tool-ninja": { 104 | "optional": true, 105 | "owner": "platformio", 106 | "version": "^1.7.0" 107 | }, 108 | "tool-gperf": { 109 | "optional": true, 110 | "owner": "platformio", 111 | "version": "^3.0.0" 112 | }, 113 | "tool-ldscripts-at32": { 114 | "optional": false, 115 | "owner": "martinloren", 116 | "version": "^0.1.3", 117 | "version": "https://github.com/martinloren/tool-ldscripts-at32.git" 118 | } 119 | } 120 | } 121 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F421/led_toggle/include/at32f421_conf.h: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file at32f421_conf.h 4 | * @brief at32f421 config header file 5 | ************************************************************************** 6 | * Copyright notice & Disclaimer 7 | * 8 | * The software Board Support Package (BSP) that is made available to 9 | * download from Artery official website is the copyrighted work of Artery. 10 | * Artery authorizes customers to use, copy, and distribute the BSP 11 | * software and its related documentation for the purpose of design and 12 | * development in conjunction with Artery microcontrollers. Use of the 13 | * software is governed by this copyright notice and the following disclaimer. 14 | * 15 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 16 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 17 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 18 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 19 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 20 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 21 | * 22 | ************************************************************************** 23 | */ 24 | 25 | /* define to prevent recursive inclusion -------------------------------------*/ 26 | #ifndef __AT32F421_CONF_H 27 | #define __AT32F421_CONF_H 28 | 29 | #ifdef __cplusplus 30 | extern "C" { 31 | #endif 32 | 33 | /** 34 | * @brief in the following line adjust the value of high speed external crystal (hext) 35 | * used in your application 36 | * 37 | * tip: to avoid modifying this file each time you need to use different hext, you 38 | * can define the hext value in your toolchain compiler preprocessor. 39 | * 40 | */ 41 | #if !defined HEXT_VALUE 42 | #define HEXT_VALUE ((uint32_t)8000000) /*!< value of the high speed external crystal in hz */ 43 | #endif 44 | 45 | /** 46 | * @brief in the following line adjust the high speed external crystal (hext) startup 47 | * timeout value 48 | */ 49 | #define HEXT_STARTUP_TIMEOUT ((uint16_t)0x3000) /*!< time out for hext start up */ 50 | #define HICK_VALUE ((uint32_t)8000000) /*!< value of the high speed internal clock in hz */ 51 | #define LEXT_VALUE ((uint32_t)32768) /*!< value of the low speed external clock in hz */ 52 | 53 | /* module define -------------------------------------------------------------*/ 54 | #define CRM_MODULE_ENABLED 55 | #define CMP_MODULE_ENABLED 56 | #define TMR_MODULE_ENABLED 57 | #define ERTC_MODULE_ENABLED 58 | #define GPIO_MODULE_ENABLED 59 | #define I2C_MODULE_ENABLED 60 | #define USART_MODULE_ENABLED 61 | #define PWC_MODULE_ENABLED 62 | #define ADC_MODULE_ENABLED 63 | #define SPI_MODULE_ENABLED 64 | #define DMA_MODULE_ENABLED 65 | #define DEBUG_MODULE_ENABLED 66 | #define FLASH_MODULE_ENABLED 67 | #define CRC_MODULE_ENABLED 68 | #define WWDT_MODULE_ENABLED 69 | #define WDT_MODULE_ENABLED 70 | #define EXINT_MODULE_ENABLED 71 | #define MISC_MODULE_ENABLED 72 | #define SCFG_MODULE_ENABLED 73 | 74 | /* includes ------------------------------------------------------------------*/ 75 | #ifdef CRM_MODULE_ENABLED 76 | #include "at32f421_crm.h" 77 | #endif 78 | #ifdef CMP_MODULE_ENABLED 79 | #include "at32f421_cmp.h" 80 | #endif 81 | #ifdef TMR_MODULE_ENABLED 82 | #include "at32f421_tmr.h" 83 | #endif 84 | #ifdef ERTC_MODULE_ENABLED 85 | #include "at32f421_ertc.h" 86 | #endif 87 | #ifdef GPIO_MODULE_ENABLED 88 | #include "at32f421_gpio.h" 89 | #endif 90 | #ifdef I2C_MODULE_ENABLED 91 | #include "at32f421_i2c.h" 92 | #endif 93 | #ifdef USART_MODULE_ENABLED 94 | #include "at32f421_usart.h" 95 | #endif 96 | #ifdef PWC_MODULE_ENABLED 97 | #include "at32f421_pwc.h" 98 | #endif 99 | #ifdef ADC_MODULE_ENABLED 100 | #include "at32f421_adc.h" 101 | #endif 102 | #ifdef SPI_MODULE_ENABLED 103 | #include "at32f421_spi.h" 104 | #endif 105 | #ifdef DMA_MODULE_ENABLED 106 | #include "at32f421_dma.h" 107 | #endif 108 | #ifdef DEBUG_MODULE_ENABLED 109 | #include "at32f421_debug.h" 110 | #endif 111 | #ifdef FLASH_MODULE_ENABLED 112 | #include "at32f421_flash.h" 113 | #endif 114 | #ifdef CRC_MODULE_ENABLED 115 | #include "at32f421_crc.h" 116 | #endif 117 | #ifdef WWDT_MODULE_ENABLED 118 | #include "at32f421_wwdt.h" 119 | #endif 120 | #ifdef WDT_MODULE_ENABLED 121 | #include "at32f421_wdt.h" 122 | #endif 123 | #ifdef EXINT_MODULE_ENABLED 124 | #include "at32f421_exint.h" 125 | #endif 126 | #ifdef MISC_MODULE_ENABLED 127 | #include "at32f421_misc.h" 128 | #endif 129 | #ifdef SCFG_MODULE_ENABLED 130 | #include "at32f421_scfg.h" 131 | #endif 132 | 133 | #ifdef __cplusplus 134 | } 135 | #endif 136 | 137 | #endif 138 | -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F425/led_toggle/include/at32f425_conf.h: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file at32f425_conf.h 4 | * @version v2.0.0 5 | * @date 2021-12-31 6 | * @brief at32f425 config header file 7 | ************************************************************************** 8 | * Copyright notice & Disclaimer 9 | * 10 | * The software Board Support Package (BSP) that is made available to 11 | * download from Artery official website is the copyrighted work of Artery. 12 | * Artery authorizes customers to use, copy, and distribute the BSP 13 | * software and its related documentation for the purpose of design and 14 | * development in conjunction with Artery microcontrollers. Use of the 15 | * software is governed by this copyright notice and the following disclaimer. 16 | * 17 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 18 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 19 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 20 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 21 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 22 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 23 | * 24 | ************************************************************************** 25 | */ 26 | 27 | /* define to prevent recursive inclusion -------------------------------------*/ 28 | #ifndef __AT32F425_CONF_H 29 | #define __AT32F425_CONF_H 30 | 31 | #ifdef __cplusplus 32 | extern "C" { 33 | #endif 34 | 35 | /** 36 | * @brief in the following line adjust the value of high speed exernal crystal (hext) 37 | * used in your application 38 | * 39 | * tip: to avoid modifying this file each time you need to use different hext, you 40 | * can define the hext value in your toolchain compiler preprocessor. 41 | * 42 | */ 43 | #if !defined HEXT_VALUE 44 | #define HEXT_VALUE ((uint32_t)8000000) /*!< value of the high speed exernal crystal in hz */ 45 | #endif 46 | 47 | /** 48 | * @brief in the following line adjust the high speed exernal crystal (hext) startup 49 | * timeout value 50 | */ 51 | #define HEXT_STARTUP_TIMEOUT ((uint16_t)0x3000) /*!< time out for hext start up */ 52 | #define HICK_VALUE ((uint32_t)8000000) /*!< value of the high speed internal clock in hz */ 53 | 54 | /* module define -------------------------------------------------------------*/ 55 | #define ACC_MODULE_ENABLED 56 | #define CRM_MODULE_ENABLED 57 | #define TMR_MODULE_ENABLED 58 | #define ERTC_MODULE_ENABLED 59 | #define GPIO_MODULE_ENABLED 60 | #define I2C_MODULE_ENABLED 61 | #define CAN_MODULE_ENABLED 62 | #define USB_MODULE_ENABLED 63 | #define USART_MODULE_ENABLED 64 | #define PWC_MODULE_ENABLED 65 | #define ADC_MODULE_ENABLED 66 | #define SPI_MODULE_ENABLED 67 | #define DMA_MODULE_ENABLED 68 | #define DEBUG_MODULE_ENABLED 69 | #define FLASH_MODULE_ENABLED 70 | #define CRC_MODULE_ENABLED 71 | #define WWDT_MODULE_ENABLED 72 | #define WDT_MODULE_ENABLED 73 | #define EXINT_MODULE_ENABLED 74 | #define MISC_MODULE_ENABLED 75 | #define SCFG_MODULE_ENABLED 76 | 77 | /* includes ------------------------------------------------------------------*/ 78 | #ifdef ACC_MODULE_ENABLED 79 | #include "at32f425_acc.h" 80 | #endif 81 | #ifdef CRM_MODULE_ENABLED 82 | #include "at32f425_crm.h" 83 | #endif 84 | #ifdef CAN_MODULE_ENABLED 85 | #include "at32f425_can.h" 86 | #endif 87 | #ifdef USB_MODULE_ENABLED 88 | #include "at32f425_usb.h" 89 | #endif 90 | #ifdef TMR_MODULE_ENABLED 91 | #include "at32f425_tmr.h" 92 | #endif 93 | #ifdef ERTC_MODULE_ENABLED 94 | #include "at32f425_ertc.h" 95 | #endif 96 | #ifdef GPIO_MODULE_ENABLED 97 | #include "at32f425_gpio.h" 98 | #endif 99 | #ifdef I2C_MODULE_ENABLED 100 | #include "at32f425_i2c.h" 101 | #endif 102 | #ifdef USART_MODULE_ENABLED 103 | #include "at32f425_usart.h" 104 | #endif 105 | #ifdef PWC_MODULE_ENABLED 106 | #include "at32f425_pwc.h" 107 | #endif 108 | #ifdef ADC_MODULE_ENABLED 109 | #include "at32f425_adc.h" 110 | #endif 111 | #ifdef SPI_MODULE_ENABLED 112 | #include "at32f425_spi.h" 113 | #endif 114 | #ifdef DMA_MODULE_ENABLED 115 | #include "at32f425_dma.h" 116 | #endif 117 | #ifdef DEBUG_MODULE_ENABLED 118 | #include "at32f425_debug.h" 119 | #endif 120 | #ifdef FLASH_MODULE_ENABLED 121 | #include "at32f425_flash.h" 122 | #endif 123 | #ifdef CRC_MODULE_ENABLED 124 | #include "at32f425_crc.h" 125 | #endif 126 | #ifdef WWDT_MODULE_ENABLED 127 | #include "at32f425_wwdt.h" 128 | #endif 129 | #ifdef WDT_MODULE_ENABLED 130 | #include "at32f425_wdt.h" 131 | #endif 132 | #ifdef EXINT_MODULE_ENABLED 133 | #include "at32f425_exint.h" 134 | #endif 135 | #ifdef MISC_MODULE_ENABLED 136 | #include "at32f425_misc.h" 137 | #endif 138 | #ifdef SCFG_MODULE_ENABLED 139 | #include "at32f425_scfg.h" 140 | #endif 141 | 142 | #ifdef __cplusplus 143 | } 144 | #endif 145 | 146 | #endif 147 | -------------------------------------------------------------------------------- /at32flash/README.md: -------------------------------------------------------------------------------- 1 | # at32flash 2 | Flash program for AT32 using the AT serial bootloader, based on [stm32flash](https://github.com/stm32duino/stm32flash). 3 | 4 | **at32flash 0.2** is a release with these highlights: 5 | - Added support for **AT32F425** 6 | 7 | **at32flash 0.1** is a release with these highlights: 8 | - Support for **AT32F435** beside the STM32 MCUs 9 | 10 | ## Features 11 | - UART and I2C transports supported 12 | - device identification 13 | - write to flash/ram 14 | - read from flash/ram 15 | - auto-detect Intel HEX or raw binary input format with option to force binary 16 | - flash from binary file 17 | - save flash to binary file 18 | - verify & retry up to N times on failed writes 19 | - start execution at specified address 20 | - software reset the device when finished if -R is specified 21 | - resume already initialized connection (for when reset fails, UART only) 22 | - GPIO signalling to enter bootloader mode (hardware dependent) 23 | 24 | 25 | ## Usage synopsis: 26 | ``` 27 | Usage: ./at32flash [-bvngfhc] [-[rw] filename] [tty_device | i2c_device] 28 | -a bus_address Bus address (e.g. for I2C port) 29 | -b rate Baud rate (default 57600) 30 | -m mode Serial port mode (default 8e1) 31 | -r filename Read flash to file (or - stdout) 32 | -w filename Write flash from file (or - stdout) 33 | -C Compute CRC of flash content 34 | -u Disable the flash write-protection 35 | -j Enable the flash read-protection 36 | -k Disable the flash read-protection 37 | -o Erase only 38 | -e n Only erase n pages before writing the flash 39 | -v Verify writes 40 | -n count Retry failed writes up to count times (default 10) 41 | -g address Start execution at specified address (0 = flash start) 42 | -S address[:length] Specify start address and optionally length for 43 | read/write/erase operations 44 | -F RX_length[:TX_length] Specify the max length of RX and TX frame 45 | -s start_page Flash at specified page (0 = flash start) 46 | -f Force binary parser 47 | -h Show this help 48 | -c Resume the connection (don't send initial INIT) 49 | *Baud rate must be kept the same as the first init* 50 | This is useful if the reset fails 51 | -R Reset device at exit. 52 | -i GPIO_string GPIO sequence to enter/exit bootloader mode 53 | GPIO_string=[entry_seq][:[exit_seq]] 54 | sequence=[[-]signal]&|,[sequence] 55 | ``` 56 | 57 | ## GPIO sequence 58 | The following signals can appear in a sequence: 59 | Integer number representing GPIO pin 60 | 'dtr', 'rts' or 'brk' representing serial port signal 61 | The sequence can use the following delimiters: 62 | ',' adds 100 ms delay between signals 63 | '&' adds no delay between signals 64 | The following modifiers can be prepended to a signal: 65 | '-' reset signal (low) instead of setting it (high) 66 | 67 | ## Examples 68 | ``` 69 | Get device information: 70 | ./at32flash /dev/ttyS0 71 | or: 72 | ./at32flash /dev/i2c-0 73 | 74 | Write with verify and then start execution: 75 | ./at32flash -w filename -v -g 0x0 /dev/ttyS0 76 | 77 | Read flash to file: 78 | ./at32flash -r filename /dev/ttyS0 79 | 80 | Read 100 bytes of flash from 0x1000 to stdout: 81 | ./at32flash -r - -S 0x1000:100 /dev/ttyS0 82 | 83 | Start execution: 84 | ./at32flash -g 0x0 /dev/ttyS0 85 | 86 | GPIO sequence: 87 | - entry sequence: GPIO_3=low, GPIO_2=low, 100ms delay, GPIO_2=high 88 | - exit sequence: GPIO_3=high, GPIO_2=low, 300ms delay, GPIO_2=high 89 | ./at32flash -i '-3&-2,2:3&-2,,,2' /dev/ttyS0 90 | GPIO sequence adding delay after port opening: 91 | - entry sequence: delay 500ms 92 | - exit sequence: rts=high, dtr=low, 300ms delay, GPIO_2=high 93 | ./at32flash -R -i ',,,,,:rts&-dtr,,,2' /dev/ttyS0 94 | ``` 95 | 96 | ## Bug reports and patches 97 | Please file bugs and post patches here in GitHub. 98 | 99 | # How to compile for Windows 100 | (internal notes) 101 | - Get the latest version of Mingw-w64 via [MSYS2](https://www.msys2.org/), which provides up-to-date native builds of GCC, Mingw-w64, and other helpful C++ tools and libraries. You can download the latest installer from the MSYS2 page or use this [link to the installer](https://github.com/msys2/msys2-installer/releases/download/2022-01-18/msys2-x86_64-20220118.exe). 102 | - Follow the Installation instructions on the MSYS2 website to install Mingw-w64. Commands to be lunched in MinGW: 103 | ``` 104 | pacman -Syu 105 | pacman -Su 106 | pacman -S --needed base-devel mingw-w64-x86_64-toolchain 107 | pacman -S make 108 | pacman -S mingw-w64-x86_64-gcc 109 | ``` 110 | - In MinGW shell, enter the project folder and lunch `make` 111 | - (optional) Add the path to your Mingw-w64 bin folder (ie. `C:\msys64\mingw64\bin`) to the Windows PATH environment variable. -------------------------------------------------------------------------------- /.platformio/platforms/at32/examples/AT32F437/led_toggle/src/at32f435_437_clock.c: -------------------------------------------------------------------------------- 1 | /** 2 | ************************************************************************** 3 | * @file at32f435_437_clock.c 4 | * @brief system clock config program 5 | ************************************************************************** 6 | * Copyright notice & Disclaimer 7 | * 8 | * The software Board Support Package (BSP) that is made available to 9 | * download from Artery official website is the copyrighted work of Artery. 10 | * Artery authorizes customers to use, copy, and distribute the BSP 11 | * software and its related documentation for the purpose of design and 12 | * development in conjunction with Artery microcontrollers. Use of the 13 | * software is governed by this copyright notice and the following disclaimer. 14 | * 15 | * THIS SOFTWARE IS PROVIDED ON "AS IS" BASIS WITHOUT WARRANTIES, 16 | * GUARANTEES OR REPRESENTATIONS OF ANY KIND. ARTERY EXPRESSLY DISCLAIMS, 17 | * TO THE FULLEST EXTENT PERMITTED BY LAW, ALL EXPRESS, IMPLIED OR 18 | * STATUTORY OR OTHER WARRANTIES, GUARANTEES OR REPRESENTATIONS, 19 | * INCLUDING BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, 20 | * FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 21 | * 22 | ************************************************************************** 23 | */ 24 | 25 | /* includes ------------------------------------------------------------------*/ 26 | #include "at32f435_437_clock.h" 27 | 28 | /** 29 | * @brief system clock config program 30 | * @note the system clock is configured as follow: 31 | * system clock (sclk) = (hext * pll_ns)/(pll_ms * pll_fr) 32 | * system clock source = pll (hext) 33 | * - hext = HEXT_VALUE 34 | * - sclk = 288000000 35 | * - ahbdiv = 1 36 | * - ahbclk = 288000000 37 | * - apb2div = 2 38 | * - apb2clk = 144000000 39 | * - apb1div = 2 40 | * - apb1clk = 144000000 41 | * - pll_ns = 144 42 | * - pll_ms = 1 43 | * - pll_fr = 4 44 | * @param none 45 | * @retval none 46 | */ 47 | void system_clock_config(void) 48 | { 49 | /* reset crm */ 50 | //crm_reset(); 51 | 52 | /* enable pwc periph clock */ 53 | crm_periph_clock_enable(CRM_PWC_PERIPH_CLOCK, TRUE); 54 | 55 | /* config ldo voltage */ 56 | pwc_ldo_output_voltage_set(PWC_LDO_OUTPUT_1V3); 57 | 58 | /* set the flash clock divider */ 59 | flash_clock_divider_set(FLASH_CLOCK_DIV_3); 60 | 61 | crm_clock_source_enable(CRM_CLOCK_SOURCE_HEXT, TRUE); 62 | 63 | /* wait till hext is ready */ 64 | while(crm_hext_stable_wait() == ERROR) 65 | { 66 | } 67 | 68 | /* config pll clock resource 69 | common frequency config list: pll source selected hick or hext(8mhz) 70 | _________________________________________________________________________________________________ 71 | | | | | | | | | | | | 72 | |pll(mhz)| 288 | 252 | 216 | 192 | 180 | 144 | 108 | 72 | 36 | 73 | |________|_________|_________|_________|_________|_________|_________|_________|_________________| 74 | | | | | | | | | | | | 75 | |pll_ns | 144 | 126 | 108 | 96 | 90 | 72 | 108 | 72 | 72 | 76 | | | | | | | | | | | | 77 | |pll_ms | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 78 | | | | | | | | | | | | 79 | |pll_fr | FR_4 | FR_4 | FR_4 | FR_4 | FR_4 | FR_4 | FR_8 | FR_8 | FR_16| 80 | |________|_________|_________|_________|_________|_________|_________|_________|________|________| 81 | 82 | if pll clock source selects hext with other frequency values, or configure pll to other 83 | frequency values, please use the at32 new clock configuration tool for configuration. */ 84 | crm_pll_config(CRM_PLL_SOURCE_HEXT, 144, 1, CRM_PLL_FR_4); 85 | 86 | /* enable pll */ 87 | crm_clock_source_enable(CRM_CLOCK_SOURCE_PLL, TRUE); 88 | 89 | /* wait till pll is ready */ 90 | while(crm_flag_get(CRM_PLL_STABLE_FLAG) != SET) 91 | { 92 | } 93 | 94 | /* config ahbclk */ 95 | crm_ahb_div_set(CRM_AHB_DIV_1); 96 | 97 | /* config apb2clk, the maximum frequency of APB1/APB2 clock is 144 MHz */ 98 | crm_apb2_div_set(CRM_APB2_DIV_2); 99 | 100 | /* config apb1clk, the maximum frequency of APB1/APB2 clock is 144 MHz */ 101 | crm_apb1_div_set(CRM_APB1_DIV_2); 102 | 103 | /* enable auto step mode */ 104 | crm_auto_step_mode_enable(TRUE); 105 | 106 | /* select pll as system clock source */ 107 | crm_sysclk_switch(CRM_SCLK_PLL); 108 | 109 | /* wait till pll is used as system clock source */ 110 | while(crm_sysclk_switch_status_get() != CRM_SCLK_PLL) 111 | { 112 | } 113 | 114 | /* disable auto step mode */ 115 | crm_auto_step_mode_enable(FALSE); 116 | 117 | /* update system_core_clock global variable */ 118 | system_core_clock_update(); 119 | } 120 | --------------------------------------------------------------------------------