sandbox/blue-pill/draugr/bluepill.h

14 lines
230 B
C
Raw Normal View History

2018-03-07 16:06:25 +00:00
#ifndef __BLUEPILL_H__
#define __BLUEPILL_H__
#include "bluepill/gpio.h"
#include "bluepill/rcc.h"
static inline void
delay(unsigned long ms)
{
for (unsigned long i = 0; i < ms; ++i) __asm__("nop");
}
2018-03-07 16:06:25 +00:00
#endif // __BLUEPILL_H__