blob: 5142a5151fe590f3ec9f0059b83ad42e984e9e5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/*
* Copyright 2020 Daniel Friesel
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#ifndef ARCH_H
#define ARCH_H
class Arch {
private:
Arch(const Arch ©);
public:
Arch () {}
void setup();
void idle_loop();
void idle();
// Delay functions are not exact
void delay_us(unsigned int const us);
void delay_ms(unsigned int const ms);
void sleep_ms(unsigned int const ms);
};
extern Arch arch;
#endif
|