From 53c4324c9c3605b6fa7e0ce1ce2c6930c7ff32e8 Mon Sep 17 00:00:00 2001 From: Vovanium Date: Thu, 21 Mar 2024 19:20:03 +0300 Subject: [PATCH] + tasking example for black pill --- examples/led_flasher/Makefile | 2 +- .../led_flasher_401c_blackpill.gpr | 25 +++++++++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 examples/led_flasher/led_flasher_401c_blackpill.gpr diff --git a/examples/led_flasher/Makefile b/examples/led_flasher/Makefile index 051c5fe..6e9734d 100644 --- a/examples/led_flasher/Makefile +++ b/examples/led_flasher/Makefile @@ -2,7 +2,7 @@ X = led_flasher # Supported board list -BOARDS = 407z_piswords 429disco +BOARDS = 401c_blackpill 407z_piswords 429disco O = objects diff --git a/examples/led_flasher/led_flasher_401c_blackpill.gpr b/examples/led_flasher/led_flasher_401c_blackpill.gpr new file mode 100644 index 0000000..a2985f4 --- /dev/null +++ b/examples/led_flasher/led_flasher_401c_blackpill.gpr @@ -0,0 +1,25 @@ +with "../../library/gpr/light_tasking_stm32f4_library.gpr"; + +project LED_Flasher_401c_BlackPill is + for Languages use("Ada"); + for Main use("led_flasher.adb"); + for Object_Dir use "objects/401c_blackpill"; + for Target use "arm-eabi"; + for Runtime("Ada") use "light-tasking-stm32f401"; + for Source_Dirs use(".", "../common/401c_blackpill"); + + package Compiler is + for Default_Switches("Ada") use ("-gnatwa.X", "-gnatQ", "-gnatn", "-O2"); + end Compiler; + + package Builder is + for Default_Switches("Ada") use ("-ggdb"); + end Builder; + + package IDE is + for Program_Host use "localhost:4242"; + for Communication_Protocol use "remote"; + for Connection_Tool use "st-util"; + end IDE; + +end LED_Flasher_401c_BlackPill; \ No newline at end of file