#ifndef BSL_NUCLEO_F042K6_H #define BSL_NUCLEO_F042K6_H #include "../csl/interfaces/pin.hpp" #include "../csl/interfaces/delay.hpp" #include "../csl/stm32f042/Inc/stm_pin.hpp" #include "stm32f0xx_csl.h" int startBSL(); #define PORT_A Port_A_base_address #define PORT_B Port_B_base_address #define PORT_C Port_C_base_address #define PORT_F Port_F_base_address #define D0_PORT PORT_A #define D0_PIN 10 #define D1_PORT PORT_A #define D1_PIN 9 #define D2_PORT PORT_A #define D2_PIN 12 #define D3_PORT PORT_B #define D3_PIN 0 #define D4_PORT PORT_B #define D4_PIN 7 #define D5_PORT PORT_B #define D5_PIN 6 #define D6_PORT PORT_B #define D6_PIN 1 #define D7_PORT PORT_F #define D7_PIN 0 #define D8_PORT PORT_F #define D8_PIN 1 #define D10_PORT PORT_A #define D10_PIN 11 #define D11_PORT PORT_B #define D11_PIN 5 #define D12_PORT PORT_B #define D12_PIN 4 #define D13_PORT PORT_B #define D13_PIN 3 #define A0_PORT PORT_A #define A0_PIN 0 #define A1_PORT PORT_A #define A1_PIN 1 #define A2_PORT PORT_A #define A2_PIN 3 #define A3_PORT PORT_A #define A3_PIN 4 #define A4_PORT PORT_A #define A4_PIN 5 #define A5_PORT PORT_A #define A5_PIN 6 #define A6_PORT PORT_A #define A6_PIN 7 #define A7_PORT PORT_A #define A7_PIN 2 #define LED_PORT D13_PORT #define LED_PIN D13_PIN #endif /* BSL_NUCLEO_F042K6_H */