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.
28 lines
514 B
28 lines
514 B
#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"
|
|
|
|
class Nucleo_f042k6
|
|
{
|
|
public:
|
|
|
|
Nucleo_f042k6();
|
|
~Nucleo_f042k6();
|
|
|
|
void init();
|
|
void running();
|
|
|
|
private :
|
|
Delay delay;
|
|
|
|
STM_Pin<Pin_no::pin_3, GPIO_Port::Port_B_base_address> ledPin;
|
|
STM_Pin<Pin_no::pin_0, GPIO_Port::Port_A_base_address> pin_a0;
|
|
|
|
};
|
|
|
|
#endif /* BSL_NUCLEO_F042K6_H */
|