|
HRI board firmware
v2.1
Microcontroller firmware of the board used during the HRI labs.
|
#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... | |
| #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)) |
| typedef void(* cbt_PeriodicTaskFunc) (void) |
1.8.13