More general 'stm32_timer_t'

2.0.x
Scott Lahteine 5 years ago
parent 828cc71847
commit f7de453da8

@ -19,8 +19,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>. * along with this program. If not, see <http://www.gnu.org/licenses/>.
* *
*/ */
#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC)
#if defined(ARDUINO_ARCH_STM32) && !defined(STM32GENERIC)
#include "HAL.h" #include "HAL.h"
@ -38,7 +38,7 @@
// Private Variables // Private Variables
// ------------------------ // ------------------------
stm32f4_timer_t TimerHandle[NUM_HARDWARE_TIMERS]; stm32_timer_t TimerHandle[NUM_HARDWARE_TIMERS];
// ------------------------ // ------------------------
// Public functions // Public functions

@ -128,13 +128,13 @@ extern void Temp_Handler(stimer_t *htim);
// Types // Types
// ------------------------ // ------------------------
typedef stimer_t stm32f4_timer_t; typedef stimer_t stm32_timer_t;
// ------------------------ // ------------------------
// Public Variables // Public Variables
// ------------------------ // ------------------------
extern stm32f4_timer_t TimerHandle[]; extern stm32_timer_t TimerHandle[];
// ------------------------ // ------------------------
// Public functions // Public functions

@ -39,7 +39,7 @@
// Private Variables // Private Variables
// ------------------------ // ------------------------
stm32f4_timer_t TimerHandle[NUM_HARDWARE_TIMERS]; stm32_timer_t TimerHandle[NUM_HARDWARE_TIMERS];
// ------------------------ // ------------------------
// Public functions // Public functions

@ -80,16 +80,16 @@
TIM_HandleTypeDef handle; TIM_HandleTypeDef handle;
uint32_t callback; uint32_t callback;
} tTimerConfig; } tTimerConfig;
typedef tTimerConfig stm32f4_timer_t; typedef tTimerConfig stm32_timer_t;
#else #else
typedef stimer_t stm32f4_timer_t; typedef stimer_t stm32_timer_t;
#endif #endif
// ------------------------ // ------------------------
// Public Variables // Public Variables
// ------------------------ // ------------------------
extern stm32f4_timer_t TimerHandle[]; extern stm32_timer_t TimerHandle[];
// ------------------------ // ------------------------
// Public functions // Public functions

Loading…
Cancel
Save