Root/
| Source at commit 121acf6ffad8f1bcd4b08e50e293e597880b68eb created 10 years 11 months ago. By Werner Almesberger, tornado/cpu/cpu.brd: make connection to the MCU's GND pad straighter | |
|---|---|
| 1 | /* |
| 2 | * fw/accel.h - Acceleration sensor |
| 3 | * |
| 4 | * Written 2012 by Werner Almesberger |
| 5 | * Copyright 2012 Werner Almesberger |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; either version 2 of the License, or |
| 10 | * (at your option) any later version. |
| 11 | */ |
| 12 | |
| 13 | |
| 14 | #ifndef ACCEL_H |
| 15 | #define ACCEL_H |
| 16 | |
| 17 | #include <stdbool.h> |
| 18 | #include <stdint.h> |
| 19 | |
| 20 | |
| 21 | extern void (*sample)(bool x, uint16_t v); |
| 22 | |
| 23 | |
| 24 | uint16_t measure_ref(void); |
| 25 | void accel_start(void); |
| 26 | |
| 27 | #endif /* !ACCEL_H */ |
| 28 | |
Branches:
master
tornado-v1
