~toykeeper/flashlight-firmware/fsm

« back to all changes in this revision

Viewing changes to ToyKeeper/hwdef-noctigon-kr4.h

  • Committer: Selene ToyKeeper
  • Date: 2023-07-21 21:47:52 UTC
  • mto: (483.1.175 anduril2)
  • mto: This revision was merged to the branch mainline in revision 491.
  • Revision ID: bzr@toykeeper.net-20230721214752-o95ojcz2zteh8g8q
converted noctigon-k1 to multi-channel

Show diffs side-by-side

added added

removed removed

Lines of Context:
72
72
#define PWM2_DATATYPE uint8_t   // DD FET ramp
73
73
 
74
74
// PWM parameters of both channels are tied together because they share a counter
75
 
#define PWM_TOP       ICR1   // holds the TOP value for for variable-resolution PWM
 
75
#define PWM_TOP       ICR1   // holds the TOP value for variable-resolution PWM
76
76
#define PWM_TOP_INIT  255    // highest value used in top half of ramp
77
77
#define PWM_CNT       TCNT1  // for dynamic PWM, reset phase
78
78