git.ucc.asn.au
/
matches
/
MCTX3420.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
modified version to get control key
[matches/MCTX3420.git]
/
server
/
bbb_pin_defines.h
diff --git
a/server/bbb_pin_defines.h
b/server/bbb_pin_defines.h
index
2eb2d08
..
cb77dac
100644
(file)
--- a/
server/bbb_pin_defines.h
+++ b/
server/bbb_pin_defines.h
@@
-136,6
+136,9
@@
extern const unsigned char g_pin_index_to_gpio[GPIO_NUM_PINS];
#define ADC5 5
#define ADC6 6
#define ADC7 7
+#define ADC_VOLTAGE_MAX 1800
+#define ADC_RAW_MAX (2 << ADC_BITS)
+#define ADC_TO_MVOLTS(x) ((double)((x)/2 << ADC_BITS) * (double)ADC_VOLTAGE_MAX)
/** Number of ADC pins **/
#define ADC_NUM_PINS 8
UCC
git Repository :: git.ucc.asn.au