HRI board firmware v2.1 Microcontroller firmware of the board used during the HRI labs.

Macros | Typedefs | Functions
callback_timers.h File Reference
`#include "../main.h"`

Go to the source code of this file.

## Macros
#define | TIM10_PRESCALER ((uint16_t)(SystemCoreClock/APB2_PRESCALER*TIM_MULTIPLIER/1000000-1))
#define | TIM6_PRESCALER ((uint16_t)(SystemCoreClock/APB1_PRESCALER*TIM_MULTIPLIER/1000000-1))
#define | TIM7_PRESCALER ((uint16_t)(SystemCoreClock/APB1_PRESCALER*TIM_MULTIPLIER/1000000-1))

## Typedefs
typedef void(* | cbt_PeriodicTaskFunc) (void)

## Functions
void | cbt_Init (void)
| Initialize the timers to call an interrupt routine periodically. More...
void | cbt_SetCurrentLoopTimer (cbt_PeriodicTaskFunc f, uint32_t period)
| Set the function to call periodically by the timer 1. More...
void | cbt_SetHapticControllerTimer (cbt_PeriodicTaskFunc f, uint32_t period)
| Set the function to call periodically by the timer 6. More...
void | cbt_SetCommLoopTimer (cbt_PeriodicTaskFunc f, uint32_t period)
| Set the function to call periodically by the timer 7. More...
void | cbt_SetHapticControllerPeriod (uint32_t period)
| Set the period of the position loop. More...
void | cbt_SetCommLoopPeriod (uint32_t period)
| Set the period of the communication loop. More...
uint32_t | cbt_GetCurrentLoopPeriod (void)
| Get the period of the current loop. More...
uint32_t | cbt_GetHapticControllerPeriod (void)
| Get the period of the position loop. More...
uint32_t | cbt_GetCommLoopPeriod (void)
| Get the period of the communication loop. More...

## Macro Definition Documentation

## ◆ TIM10_PRESCALER

#define TIM10_PRESCALER ((uint16_t)(SystemCoreClock/APB2_PRESCALER*TIM_MULTIPLIER/1000000-1))

## ◆ TIM6_PRESCALER

#define TIM6_PRESCALER ((uint16_t)(SystemCoreClock/APB1_PRESCALER*TIM_MULTIPLIER/1000000-1))

## ◆ TIM7_PRESCALER

#define TIM7_PRESCALER ((uint16_t)(SystemCoreClock/APB1_PRESCALER*TIM_MULTIPLIER/1000000-1))

## Typedef Documentation

## ◆ cbt_PeriodicTaskFunc

typedef void(* cbt_PeriodicTaskFunc) (void)