Add HAL_timer_start to HAL.h
Co-Authored-By: ejtagle <ejtagle@hotmail.com>
This commit is contained in:
parent
1b1e15623a
commit
63af814d4d
3 changed files with 34 additions and 20 deletions
|
|
@ -1209,9 +1209,7 @@ void Temperature::init() {
|
|||
HAL_ANALOG_SELECT(FILWIDTH_PIN);
|
||||
#endif
|
||||
|
||||
// Use timer0 for temperature measurement
|
||||
// Interleave temperature interrupt with millies interrupt
|
||||
OCR0B = 128;
|
||||
HAL_timer_start(TEMP_TIMER_NUM, TEMP_TIMER_FREQUENCY);
|
||||
ENABLE_TEMPERATURE_INTERRUPT();
|
||||
|
||||
#if HAS_AUTO_FAN_0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue