parent
2530ee3804
commit
93dae2698b
@ -0,0 +1,16 @@
|
|||||||
|
#ifndef _DELAY_H_
|
||||||
|
#define _DELAY_H_
|
||||||
|
|
||||||
|
#include <stdint.h>
|
||||||
|
|
||||||
|
class Delay
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
Delay();
|
||||||
|
~Delay();
|
||||||
|
void us(uint16_t delay);
|
||||||
|
private:
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
@ -0,0 +1,19 @@
|
|||||||
|
#include "delay.hpp"
|
||||||
|
#include "../Inc/stm32f0xx_csl.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Delay::Delay()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
Delay::~Delay()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void Delay::us(uint16_t delay)
|
||||||
|
{
|
||||||
|
LL_mDelay(delay);
|
||||||
|
}
|
Loading…
Reference in new issue