Skip to content

Commit

Permalink
Merge pull request betaflight#11006 from SteveCEvans/gyro_startup
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeller authored Oct 10, 2021
2 parents fc45f5f + fb09cdb commit c32a770
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/drivers/system.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ void cycleCounterInit(void)
CoreDebug->DEMCR |= CoreDebug_DEMCR_TRCENA_Msk;

#if defined(DWT_LAR_UNLOCK_VALUE)
#if defined(STM32F7) || defined(STM32H7)
#if defined(STM32H7)
ITM->LAR = DWT_LAR_UNLOCK_VALUE;
#elif defined(STM32F7)
DWT->LAR = DWT_LAR_UNLOCK_VALUE;
#elif defined(STM32F3) || defined(STM32F4)
// Note: DWT_Type does not contain LAR member.
#define DWT_LAR
Expand Down

0 comments on commit c32a770

Please sign in to comment.