File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,9 @@ extern const uint8_t PROGMEM digital_pin_to_interrupt[];
117117#define TIMERB2 4
118118#define TIMERB3 5
119119
120+ #define PWM_TIMER_PERIOD 0xFF /* For frequency */
121+ #define PWM_TIMER_COMPARE 0x80 /* For duty cycle */
122+
120123#define digitalPinToPort (pin ) ( (pin < NUM_TOTAL_PINS) ? pgm_read_byte(digital_pin_to_port + pin) : NOT_A_PIN )
121124#define digitalPinToBitPosition (pin ) ( (pin < NUM_TOTAL_PINS) ? pgm_read_byte(digital_pin_to_bit_position + pin) : NOT_A_PIN )
122125#define analogPinToBitPosition (pin ) ( (pin < NUM_ANALOG_INPUTS) ? pgm_read_byte(digital_pin_to_bit_position + pin + 14) : NOT_A_PIN )
Original file line number Diff line number Diff line change @@ -28,9 +28,6 @@ uint16_t microseconds_per_timerb3_overflow;
2828
2929uint32_t F_CPU_CORRECTED = F_CPU ;
3030
31- #define PWM_TIMER_PERIOD 0xFF /* For frequency */
32- #define PWM_TIMER_COMPARE 0x80 /* For duty cycle */
33-
3431#define TIME_TRACKING_TIMER_PERIOD 0xFF
3532#define TIME_TRACKING_TICKS_PER_OVF (TIME_TRACKING_TIMER_PERIOD + 1) /* Timer ticks per overflow of TCB3 */
3633#define TIME_TRACKING_TIMER_DIVIDER 64 /* Clock divider for TCB3 */
You can’t perform that action at this time.
0 commit comments