trying to toggle output on output compare and in interrupt, not working

This commit is contained in:
Wolfgang Hottgenroth
2016-10-23 00:34:06 +02:00
parent f8490e32a5
commit 07b99a9f23
15 changed files with 850 additions and 13 deletions

View File

@ -41,6 +41,12 @@
/* Private define ------------------------------------------------------------*/
#define LED2_PIN_Pin GPIO_PIN_4
#define LED2_PIN_GPIO_Port GPIOE
#define LED3_PIN_Pin GPIO_PIN_5
#define LED3_PIN_GPIO_Port GPIOE
#define LED4_PIN_Pin GPIO_PIN_6
#define LED4_PIN_GPIO_Port GPIOE
#define LED_PIN_Pin GPIO_PIN_13
#define LED_PIN_GPIO_Port GPIOC
/* USER CODE BEGIN Private defines */

View File

@ -77,7 +77,7 @@
/*#define HAL_SMARTCARD_MODULE_ENABLED */
/*#define HAL_SPI_MODULE_ENABLED */
/*#define HAL_SRAM_MODULE_ENABLED */
/*#define HAL_TIM_MODULE_ENABLED */
#define HAL_TIM_MODULE_ENABLED
/*#define HAL_UART_MODULE_ENABLED */
/*#define HAL_USART_MODULE_ENABLED */
/*#define HAL_WWDG_MODULE_ENABLED */

View File

@ -54,6 +54,7 @@ void SVC_Handler(void);
void DebugMon_Handler(void);
void PendSV_Handler(void);
void SysTick_Handler(void);
void TIM1_CC_IRQHandler(void);
#ifdef __cplusplus
}