Добавлен таргет проект для PY32F002A
This commit is contained in:
@@ -38,6 +38,22 @@ extern "C" {
|
||||
#define GPIO_LED_3 GPIO_PIN_5
|
||||
#define GPIO_LED_4 GPIO_PIN_4
|
||||
|
||||
|
||||
#ifdef PY32F002Bx5
|
||||
#define TIM_MB TIM14
|
||||
#define __HAL_DBGMCU_FREEZE_TIM_MB __HAL_DBGMCU_FREEZE_TIM14
|
||||
#define __HAL_RCC_TIM_MB_CLK_ENABLE __HAL_RCC_TIM14_CLK_ENABLE
|
||||
#define TIM_MB_IRQn TIM14_IRQn
|
||||
#define TIM_MB_IRQHandler TIM14_IRQHandler
|
||||
#endif
|
||||
#ifdef PY32F002Ax5
|
||||
#define TIM_MB TIM16
|
||||
#define __HAL_DBGMCU_FREEZE_TIM_MB __HAL_DBGMCU_FREEZE_TIM16
|
||||
#define __HAL_RCC_TIM_MB_CLK_ENABLE __HAL_RCC_TIM16_CLK_ENABLE
|
||||
#define TIM_MB_IRQn TIM16_IRQn
|
||||
#define TIM_MB_IRQHandler TIM16_IRQHandler
|
||||
#endif
|
||||
|
||||
/* Exported variables prototypes ---------------------------------------------*/
|
||||
/* Exported functions prototypes ---------------------------------------------*/
|
||||
void Error_Handler(void);
|
||||
|
||||
Reference in New Issue
Block a user