You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
KED/bsl/nucleo_f042k6/bsl_nucleo_f042k6.cpp

23 lines
275 B

#include "bsl_nucleo_f042k6.hpp"
#include "../csl/interfaces/pin.hpp"
#include "../csl/interfaces/delay.hpp"
int startBSL()
{
stmStart();
Pin pin;
Delay delay;
while(1)
{
delay.us(500);
pin.write(true);
delay.us(500);
pin.write(false);
}
return 1;
}