~toykeeper/flashlight-firmware/trunk

« back to all changes in this revision

Viewing changes to ToyKeeper/s7/brass-edc.c

  • Committer: Selene Scriven
  • Date: 2018-07-05 10:22:48 UTC
  • mto: This revision was merged to the branch mainline in revision 209.
  • Revision ID: bzr@toykeeper.net-20180705102248-4157s7ly7ascx0w3
Forked Bistro as a base for Dragon.

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 *     GND -|   |- Star 2
16
16
 *           ---
17
17
 *
 
18
 * CPU speed is 4.8Mhz without the 8x divider when low fuse is 0x79
 
19
 *
 
20
 * define F_CPU 4800000  CPU: 4.8MHz  PWM: 9.4kHz       ####### use low fuse: 0x79  #######
 
21
 * 
 
22
 * Above PWM speeds are for phase-correct PWM.  This program uses Fast-PWM,
 
23
 * which when the CPU is 4.8MHz will be 18.75 kHz
 
24
 *
18
25
 * FUSES
19
 
 *      (check bin/flash*.sh for recommended values)
 
26
 *      I use these fuse settings
 
27
 *      Low:  0x79
 
28
 *      High: 0xed
 
29
 *      (flash-noinit.sh has an example)
20
30
 *
21
31
 * STARS (not used)
22
32
 *
59
69
 
60
70
#define VOLTAGE_MON                 // Comment out to disable
61
71
#define OWN_DELAY                   // Should we use the built-in delay or our own?
62
 
#define USE_DELAY_MS
63
72
#define USE_FINE_DELAY
64
73
 
65
74
#define FAST_PWM_START      10      // Anything under this will use phase-correct