~toykeeper/flashlight-firmware/trunk

« back to all changes in this revision

Viewing changes to ToyKeeper/spaghetti-monster/fsm-adc.h

  • Committer: Selene Scriven
  • Date: 2019-08-05 07:44:30 UTC
  • mfrom: (188.12.1 d4v2)
  • mto: (188.17.1 fsm)
  • mto: This revision was merged to the branch mainline in revision 234.
  • Revision ID: bzr@toykeeper.net-20190805074430-sobvfu2kpbbttmwo
merged Emisar D4v2 branch, or at least a sanitized version of it

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
#define VOLTAGE_FUDGE_FACTOR 5
39
39
#endif
40
40
#endif
41
 
volatile uint8_t voltage;
 
41
volatile uint8_t voltage = 0;
42
42
volatile uint8_t adcint_enable;  // kludge, because adc auto-retrigger won't turn off
43
43
void low_voltage();
44
44
#ifdef USE_BATTCHECK
84
84
 
85
85
inline void ADC_on();
86
86
inline void ADC_off();
 
87
inline void ADC_start_measurement();
87
88
 
88
89
 
89
90
#endif