~toykeeper/flashlight-firmware/trunk

« back to all changes in this revision

Viewing changes to ToyKeeper/spaghetti-monster/anduril/cfg-fw3a-nofet.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:
 
1
// FW3A with the FET disabled
 
2
#include "cfg-fw3a.h"
 
3
 
 
4
// don't use channel 3 (FET)
 
5
#undef PWM_CHANNELS
 
6
#undef PWM3_PIN
 
7
#undef PWM3_LVL
 
8
#define PWM_CHANNELS 2
 
9
 
 
10
// reconfigure the ramp
 
11
#undef PWM1_LEVELS
 
12
#undef PWM2_LEVELS
 
13
#undef PWM3_LEVELS
 
14
// copied from Emisar D4, mostly
 
15
#define PWM1_LEVELS 1,1,2,2,3,3,4,4,5,6,7,8,9,10,12,13,14,15,17,19,20,22,24,26,29,31,34,36,39,42,45,48,51,55,59,62,66,70,75,79,84,89,93,99,104,110,115,121,127,134,140,147,154,161,168,176,184,192,200,209,217,226,236,245,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255
 
16
#define PWM2_LEVELS 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,3,4,5,7,8,9,11,12,14,15,17,19,20,22,24,25,27,29,31,33,35,37,39,41,43,45,48,50,52,55,57,59,62,64,67,70,72,75,78,81,84,87,90,93,96,99,102,105,109,112,115,119,122,126,129,133,137,141,144,148,152,156,160,165,169,173,177,182,186,191,195,200,205,209,214,219,224,229,234,239,244,250,255
 
17
#undef MAX_1x7135
 
18
#define MAX_1x7135 65
 
19
#undef HALFSPEED_LEVEL
 
20
#define HALFSPEED_LEVEL 14
 
21
#undef QUARTERSPEED_LEVEL
 
22
#define QUARTERSPEED_LEVEL 6
 
23
 
 
24
#undef RAMP_SMOOTH_FLOOR
 
25
#undef RAMP_SMOOTH_CEIL
 
26
#undef RAMP_DISCRETE_FLOOR
 
27
#undef RAMP_DISCRETE_CEIL
 
28
#undef RAMP_DISCRETE_STEPS
 
29
 
 
30
#define RAMP_SMOOTH_FLOOR 1
 
31
#define RAMP_SMOOTH_CEIL 150
 
32
// 10, 33, 56, 80, 103, 126, 150
 
33
#define RAMP_DISCRETE_FLOOR 10
 
34
#define RAMP_DISCRETE_CEIL RAMP_SMOOTH_CEIL
 
35
#define RAMP_DISCRETE_STEPS 7
 
36