~gabe/flashlight-firmware/anduril2

« back to all changes in this revision

Viewing changes to ToyKeeper/hwdef-Emisar_D4.h

  • Committer: Selene Scriven
  • Date: 2018-12-18 21:43:52 UTC
  • mto: This revision was merged to the branch mainline in revision 397.
  • Revision ID: bzr@toykeeper.net-20181218214352-gke3b4pg3ms004ei
Reworked the config file include system so it'll include the #defined value
instead of having to hard-code a bunch of specific recognized values.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef HWDEF_EMISAR_D4_H
 
2
#define HWDEF_EMISAR_D4_H
 
3
 
1
4
/* Emisar D4 driver layout
2
5
 *           ----
3
6
 *   Reset -|1  8|- VCC
7
10
 *           ----
8
11
 */
9
12
 
 
13
#define LAYOUT_DEFINED
 
14
 
10
15
#define PWM_CHANNELS 2
11
16
 
12
17
//#define AUXLED_PIN   PB4    // pin 3
42
47
#define FAST 0xA3           // fast PWM both channels
43
48
#define PHASE 0xA1          // phase-correct PWM both channels
44
49
 
 
50
#endif