File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ void set_compare(uint16_t count);
43
43
extern volatile uint32_t SlaveCounter ;
44
44
extern volatile uint32_t oc_int_part ;
45
45
extern volatile uint16_t oc_rem_part ;
46
- extern volatile uint16_t cnt_val ;
47
46
48
47
// Used to increment the slave counter
49
48
void timer_update_irq_handler (void )
@@ -60,7 +59,7 @@ void timer_update_irq_handler(void)
60
59
// Used for mbed timeout (channel 1) and HAL tick (channel 2)
61
60
void timer_oc_irq_handler (void )
62
61
{
63
- cnt_val = TIM_MST -> CNT ;
62
+ uint16_t cval = TIM_MST -> CNT ;
64
63
TimMasterHandle .Instance = TIM_MST ;
65
64
66
65
// Channel 1 for mbed timeout
@@ -72,7 +71,7 @@ void timer_oc_irq_handler(void)
72
71
} else {
73
72
if (oc_int_part > 0 ) {
74
73
set_compare (0xFFFF );
75
- oc_rem_part = cnt_val ; // To finish the counter loop the next time
74
+ oc_rem_part = cval ; // To finish the counter loop the next time
76
75
oc_int_part -- ;
77
76
} else {
78
77
us_ticker_irq_handler ();
You can’t perform that action at this time.
0 commit comments