main: use header file
This commit is contained in:
parent
1d2be7ceb2
commit
5879b0309e
8
main.c
8
main.c
|
@ -4,10 +4,12 @@
|
|||
*/
|
||||
#include <stdint.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)
|
||||
static void wait_10us(uint32_t us10)
|
||||
|
|
Loading…
Reference in New Issue