stm32g0: add stm32g0b0 support

Signed-off-by: Alex Voinea <voinea.dragos.alexandru@gmail.com>
This commit is contained in:
Alex Voinea
2022-12-12 22:14:09 +01:00
committed by KevinOConnor
parent 9d668d63a7
commit e33b41abaa
4 changed files with 32 additions and 15 deletions

View File

@@ -20,14 +20,17 @@
****************************************************************/
// Use 32bit TIM2 timer if available (otherwise use 16bit TIM3 timer)
#ifdef TIM2
#define TIMx TIM2
#define TIMx_IRQn TIM2_IRQn
#define HAVE_TIMER_32BIT 1
#else
#define TIMx TIM3
#define TIMx_IRQn TIM3_IRQn
#define HAVE_TIMER_32BIT 0
#if defined(TIM2)
#define TIMx TIM2
#define TIMx_IRQn TIM2_IRQn
#define HAVE_TIMER_32BIT 1
#elif defined(TIM3)
#define TIMx TIM3
#define TIMx_IRQn TIM3_IRQn
#define HAVE_TIMER_32BIT 0
#ifdef TIM4
#define TIM3_IRQn TIM3_TIM4_IRQn
#endif
#endif
static inline uint32_t