Jump to content

Leaderboard

Popular Content

Showing content with the highest reputation on 11/15/2018 in Posts

  1. Hi Mike, I'm not sure but 1ms is the smallest rate you can achieve with RTOS Tasks. Use MIOS32 Timer instead, the timer can be set to a multiple of 1us Check this: Best regards Bruno
    1 point
  2. In your App.c #define RESOLUTION 1000 // in uS #define TIMER_NUM 1 // TIM3 #define TIMER_PRIO MIOS32_IRQ_PRIO_MID static void TIMER_TIck(void); ///////////////////////////////////////////////////////////////////////////// // This hook is called after startup to initialize the application ///////////////////////////////////////////////////////////////////////////// void APP_Init(void) { MIOS32_TIMER_Init(TIMER_NUM, RESOLUTION, TIMER_TIck, TIMER_PRIO); } // This function will be called every ms static void TIMER_TIck(void) { // Your function here } This is MIOS32 ready to use Timer function.
    1 point
×
×
  • Create New...