~toykeeper/flashlight-firmware/trunk

« back to all changes in this revision

Viewing changes to ToyKeeper/hwdef-Emisar_D18.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:
33
33
#ifndef AUXLED_PIN
34
34
#define AUXLED_PIN PB2      // pin 7
35
35
#endif
36
 
#define ADC_PRSCL   0x06    // clk/64
 
36
#define ADC_PRSCL   0x07    // clk/128
37
37
 
38
38
// average drop across diode on this hardware
39
39
#ifndef VOLTAGE_FUDGE_FACTOR
40
40
#define VOLTAGE_FUDGE_FACTOR 5  // add 0.25V
41
41
#endif
42
42
 
43
 
//#define TEMP_DIDR   ADC4D
44
 
#define TEMP_CHANNEL 0b00001111
45
 
 
46
43
#define FAST 0xA3           // fast PWM both channels
47
44
#define PHASE 0xA1          // phase-correct PWM both channels
48
45