File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -203,8 +203,6 @@ static void LPTIM1_IRQHandler(void)
203
203
{
204
204
core_util_critical_section_enter ();
205
205
206
- LptimHandle .Instance = LPTIM1 ;
207
-
208
206
if (lp_Fired ) {
209
207
lp_Fired = 0 ;
210
208
/* We're already in handler and interrupt might be pending,
@@ -259,7 +257,6 @@ uint32_t lp_ticker_read(void)
259
257
/* This function should always be called from critical section */
260
258
void lp_ticker_set_interrupt (timestamp_t timestamp )
261
259
{
262
- LptimHandle .Instance = LPTIM1 ;
263
260
core_util_critical_section_enter ();
264
261
265
262
/* Always store the last requested timestamp */
@@ -348,15 +345,13 @@ void lp_ticker_disable_interrupt(void)
348
345
lp_Fired = 0 ;
349
346
NVIC_DisableIRQ (LPTIM1_IRQn );
350
347
NVIC_ClearPendingIRQ (LPTIM1_IRQn );
351
- LptimHandle .Instance = LPTIM1 ;
352
348
353
349
core_util_critical_section_exit ();
354
350
}
355
351
356
352
void lp_ticker_clear_interrupt (void )
357
353
{
358
354
core_util_critical_section_enter ();
359
- LptimHandle .Instance = LPTIM1 ;
360
355
__HAL_LPTIM_CLEAR_FLAG (& LptimHandle , LPTIM_FLAG_CMPM );
361
356
NVIC_ClearPendingIRQ (LPTIM1_IRQn );
362
357
core_util_critical_section_exit ();
You can’t perform that action at this time.
0 commit comments