make systick-variable volatile
This commit is contained in:
parent
7bce5944d4
commit
ef56025baa
@ -56,7 +56,7 @@ extern "C" void CEC_IRQHandler(void); /* CEC
|
||||
extern std::uint32_t _estack;
|
||||
const uint32_t AHBPrescTable[16UL] = {0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 0UL, 1UL, 2UL, 3UL, 4UL, 6UL, 7UL, 8UL, 9UL};
|
||||
const uint32_t APBPrescTable[8UL] = {0UL, 0UL, 0UL, 0UL, 1UL, 2UL, 3UL, 4UL};
|
||||
std::uint32_t systick;
|
||||
volatile std::uint32_t systick;
|
||||
|
||||
const std::uintptr_t interruptVectorTable[] __attribute__((section(".isr_vector")))
|
||||
{
|
||||
@ -164,7 +164,7 @@ extern "C" void UCPD1_2_IRQHandler(void){} /* UCPD1, UCPD2
|
||||
extern "C" void DMA1_Channel2_3_IRQHandler(void){} /* DMA1 Channel 2 and Channel 3 */
|
||||
extern "C" void DMA1_Ch4_7_DMAMUX1_OVR_IRQHandler(void){} /* DMA1 Channel 4 to Channel 7, DMAMUX1 overrun */
|
||||
extern "C" void ADC1_COMP_IRQHandler(void){} /* ADC1, COMP1 and COMP2 */
|
||||
extern "C" void TIM1_BRK_UP_TRG_COM_IRQHandler(void){} /* TIM1 Break, Update, Trigger and Commutation */
|
||||
extern "C" void TIM1_BRK_UP_TRG_COM_IRQHandler(void){LL_GPIO_TogglePin(GPIOC, LL_GPIO_PIN_6);} /* TIM1 Break, Update, Trigger and Commutation */
|
||||
extern "C" void TIM1_CC_IRQHandler(void){} /* TIM1 Capture Compare */
|
||||
extern "C" void TIM2_IRQHandler(void){} /* TIM2 */
|
||||
extern "C" void TIM3_IRQHandler(void){} /* TIM3 */
|
||||
|
@ -10,6 +10,6 @@
|
||||
|
||||
#include <cstdint>
|
||||
|
||||
extern std::uint32_t systick;
|
||||
extern volatile std::uint32_t systick;
|
||||
|
||||
#endif /* STM32G071KBT6_HPP_ */
|
||||
|
Loading…
x
Reference in New Issue
Block a user