~toykeeper/flashlight-firmware/trunk

« back to all changes in this revision

Viewing changes to ToyKeeper/hwdef-Emisar_D4.h

  • Committer: Selene Scriven
  • Date: 2020-07-06 20:24:28 UTC
  • mfrom: (188.1.294 fsm)
  • Revision ID: bzr@toykeeper.net-20200706202428-7pyen2ow9q2rtd9p
merged nearly a year of updates from the fsm branch, including the new product map

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
//#define VOLTAGE_PIN PB2     // pin 7, voltage ADC
35
35
//#define ADC_CHANNEL 0x01    // MUX 01 corresponds with PB2
36
36
//#define ADC_DIDR    ADC1D   // Digital input disable bit corresponding with PB2
37
 
#define ADC_PRSCL   0x06    // clk/64
 
37
#define ADC_PRSCL   0x07    // clk/128
38
38
 
39
39
// average drop across diode on this hardware
40
40
#ifndef VOLTAGE_FUDGE_FACTOR
41
41
#define VOLTAGE_FUDGE_FACTOR 5  // add 0.25V
42
42
#endif
43
43
 
44
 
//#define TEMP_DIDR   ADC4D
45
 
#define TEMP_CHANNEL 0b00001111
46
 
 
47
44
#define FAST 0xA3           // fast PWM both channels
48
45
#define PHASE 0xA1          // phase-correct PWM both channels
49
46