Browse Source

DUE HAL cleanup (#14126)

pull/1/head
Giuliano Zaro 6 years ago
committed by Scott Lahteine
parent
commit
7b838f31be
  1. 1
      Marlin/src/HAL/HAL_DUE/HAL_timers_Due.cpp
  2. 19
      Marlin/src/HAL/HAL_DUE/ServoTimers.h

1
Marlin/src/HAL/HAL_DUE/HAL_timers_Due.cpp

@ -46,7 +46,6 @@
#define NUM_HARDWARE_TIMERS 9 #define NUM_HARDWARE_TIMERS 9
#define PRESCALER 2
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------
// Types // Types
// -------------------------------------------------------------------------- // --------------------------------------------------------------------------

19
Marlin/src/HAL/HAL_DUE/ServoTimers.h

@ -87,5 +87,20 @@
#define HANDLER_FOR_TIMER5 TC0_Handler #define HANDLER_FOR_TIMER5 TC0_Handler
#endif #endif
//typedef enum { _timer1, _timer2, _timer3, _timer4, _timer5, _Nbr_16timers } timer16_Sequence_t; typedef enum {
typedef enum { _timer3, _timer5, _Nbr_16timers } timer16_Sequence_t; #ifdef _useTimer1
_timer1,
#endif
#ifdef _useTimer2
_timer2,
#endif
#ifdef _useTimer3
_timer3,
#endif
#ifdef _useTimer4
_timer4,
#endif
#ifdef _useTimer5
_timer5,
#endif
_Nbr_16timers } timer16_Sequence_t;

Loading…
Cancel
Save