Hallo,
Ich versuche ein GPIO HIGH zu setzen, in dem das Update Event (UEV) des
Timer (TIM3) aktiviert wird , also
1 | void TIM3_IRQHandler(void)
|
2 | {
|
3 | int CountEvent;
|
4 |
|
5 | if(__HAL_TIM_GET_FLAG(&htim3, TIM_FLAG_UPDATE)){
|
6 |
|
7 |
|
8 | CountEvent++;
|
9 | HAL_GPIO_TogglePin(GPIOD,GPIO_PIN_0);
|
10 |
|
11 | if(CountEvent == 8){
|
12 | HAL_GPIO_WritePin(GPIOD,GPIO_PIN_1,GPIO_PIN_SET);
|
13 | CountResolution = 0;
|
14 | }
|
15 | }
|
16 |
|
17 | HAL_GPIO_WritePin(GPIOD,GPIO_PIN_1,GPIO_PIN_RESET);
|
18 | HAL_TIM_IRQHandler(&htim3);
|
19 | }
|
Irgendwie kriege ich das nicht ....