1
0
mirror of https://github.com/MarlinFirmware/Marlin.git synced 2024-11-30 23:30:16 +00:00

DUE HAL cleanup (#14126)

This commit is contained in:
Giuliano Zaro 2019-05-26 21:51:32 +02:00 committed by Scott Lahteine
parent df7733425c
commit 7b838f31be
2 changed files with 17 additions and 3 deletions

View File

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

View File

@ -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;