diff options
| author | Selene ToyKeeper | 2023-12-05 16:47:24 -0700 |
|---|---|---|
| committer | Selene ToyKeeper | 2023-12-05 16:47:24 -0700 |
| commit | 843dc0ba1c06e4a9b1bf034fff0e6ec5f8c12c84 (patch) | |
| tree | fa8fdf09bffa0769312e88e7caa5c4dfb6dad8c2 /hw/hank/emisar-d3aa/hwdef.c | |
| parent | emisar-d3aa: new model number, since this is a new product line (diff) | |
| download | anduril-843dc0ba1c06e4a9b1bf034fff0e6ec5f8c12c84.tar.gz anduril-843dc0ba1c06e4a9b1bf034fff0e6ec5f8c12c84.tar.bz2 anduril-843dc0ba1c06e4a9b1bf034fff0e6ec5f8c12c84.zip | |
d3aa: made it easy to switch between vddio2 and external voltage divider
Diffstat (limited to 'hw/hank/emisar-d3aa/hwdef.c')
| -rw-r--r-- | hw/hank/emisar-d3aa/hwdef.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/hank/emisar-d3aa/hwdef.c b/hw/hank/emisar-d3aa/hwdef.c index 853e84d..5f41d9d 100644 --- a/hw/hank/emisar-d3aa/hwdef.c +++ b/hw/hank/emisar-d3aa/hwdef.c @@ -104,6 +104,7 @@ bool gradual_tick_main(uint8_t gt) { } +#ifdef USE_VOLTAGE_DIVIDER uint8_t voltage_raw2cooked(uint16_t measurement) { // In : 65535 * BATTLVL / 1.024V // Out: uint8_t: Vbat * 40 @@ -115,4 +116,5 @@ uint8_t voltage_raw2cooked(uint16_t measurement) { * 43 / 16128; return result; } +#endif |
