Skip to content

Commit 47538a9

Browse files
CloudyPadmalbessman
authored andcommitted
refactor: update method calls for timers
1 parent e65a8a9 commit 47538a9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/helpers/interval.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ void INTERVAL_CaptureFour(uint16_t count, uint16_t mode, uint8_t prescaler) {
170170
RPINR8bits.IC4R = PIN_MANAGER_DIGITAL_PINS_LA4;
171171

172172
TMR2_Initialize();
173-
TMR2_PrescalerSet(prescaler & 0xF);
173+
TMR2_SetPrescaler(prescaler & 0xF);
174174
TMR2_Counter16BitSet(1);
175175

176176
IC_PARAMS_SetCaptureTimer(IC_PARAMS_CAPTURE_TIMER2);

src/instruments/multimeter.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ void GetCapacitance_InitCTMU_TMR5(uint8_t current_range, uint8_t trim,
4747
CTMUICONbits.IRNG = current_range;
4848

4949
TMR5_Initialize();
50-
TMR5_PrescalerSet(TMR_PRESCALER_64);
50+
TMR5_SetPrescaler(TMR_PRESCALER_64);
5151
TMR5_Period16BitSet(charge_time);
5252
}
5353

0 commit comments

Comments
 (0)