main: use header file
This commit is contained in:
parent
6eca312035
commit
729e73e705
8
main.c
8
main.c
|
@ -4,10 +4,12 @@
|
||||||
*/
|
*/
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "stm8s.h"
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
#include "stm8s.h"
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
|
||||||
// get length of array
|
|
||||||
#define ARRAY_LENGTH(x) (sizeof(x) / sizeof((x)[0]))
|
|
||||||
|
|
||||||
// blocking wait (in 10 us steps, up to UINT32_MAX / 10)
|
// blocking wait (in 10 us steps, up to UINT32_MAX / 10)
|
||||||
static void wait_10us(uint32_t us10)
|
static void wait_10us(uint32_t us10)
|
||||||
|
|
Loading…
Reference in New Issue