• long long int for floating average computation
    I want to compute a floating average of third order. Just take a look at my code: void IRQ_Handler()__irq __ram { static long long unsigned int ACC1,ACC2,ACC3,ACC3D; static long long unsigned...
  • long long int for floating average computation
    I want to compute a floating average of third order. Just take a look at my code: void IRQ_Handler()__irq __ram { static long long unsigned int ACC1,ACC2,ACC3,ACC3D; static long long unsigned...
  • long long in interrupts: how to write safe in main? (disable int or semaphore?)
    Hi, please have a look at the following code (STM32F407): volatile long long vllPosition; void TIM1_UP_TIM10_IRQHandler(void){ ... do interrupt stuff ... vllPosition ++; ... do interrupt stuff...
  • long long in interrupts: how to write safe in main? (disable int or semaphore?)
    Hi, please have a look at the following code (STM32F407): volatile long long vllPosition; void TIM1_UP_TIM10_IRQHandler(void){ ... do interrupt stuff ... vllPosition ++; ... do interrupt stuff...
  • long int division
    I need a 100% accurate division of any tow 32 bit numbers. So I am using the following code and the (/) operator. However I notice that results are not accurate when the Den (denominator) is shorter...