-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathChibiOS_AVR.h
33 lines (30 loc) · 837 Bytes
/
ChibiOS_AVR.h
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
28
29
30
31
32
33
/**
* \file
* \brief ChibiOS for AVR Arduinos
*/
#ifndef ChibiOS_AVR_h
#define ChibiOS_AVR_h
#ifndef __AVR__
#error avr based board required
#else // __AVR__
#include <utility/ch.h>
#include <utility/hal.h>
#endif // __AVR__
#if !defined(ARDUINO) || ARDUINO < 100
#error Arduino 1.0 or greater required
#endif // ARDUINO
#ifdef __cplusplus
extern "C"{
#endif // __cplusplus
//------------------------------------------------------------------------------
/** ChibiOS_AVR version YYYYMMDD */
#define CHIBIOS_AVR_VERSION 20140811
//------------------------------------------------------------------------------
void chBegin(void (*mainThread)());
size_t chHeapMainSize();
size_t chUnusedHeapMain();
size_t chUnusedStack(void *wsp, size_t size);
#ifdef __cplusplus
} // extern "C"
#endif // __cplusplus
#endif // ChibiOS_AVR_h