mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 14:55:21 +03:00
Added 'timer show' command to CLI.
This commit is contained in:
parent
025ff572b6
commit
6a0c5836de
16 changed files with 217 additions and 125 deletions
|
@ -270,8 +270,10 @@ uint8_t timerInputIrq(TIM_TypeDef *tim);
|
|||
|
||||
#if defined(USE_TIMER_MGMT)
|
||||
timerIOConfig_t *timerIoConfigByTag(ioTag_t ioTag);
|
||||
resourceOwner_e timerGetOwner(int8_t timerNumber, uint16_t timerChannel);
|
||||
#endif
|
||||
const timerHardware_t *timerGetByTag(ioTag_t ioTag);
|
||||
const timerHardware_t *timerAllocate(ioTag_t ioTag, resourceOwner_e owner);
|
||||
const timerHardware_t *timerGetByTagAndIndex(ioTag_t ioTag, unsigned timerIndex);
|
||||
ioTag_t timerioTagGetByUsage(timerUsageFlag_e usageFlag, uint8_t index);
|
||||
|
||||
|
@ -292,5 +294,6 @@ uint16_t timerGetPrescalerByDesiredHertz(TIM_TypeDef *tim, uint32_t hz);
|
|||
uint16_t timerGetPrescalerByDesiredMhz(TIM_TypeDef *tim, uint16_t mhz);
|
||||
uint16_t timerGetPeriodByPrescaler(TIM_TypeDef *tim, uint16_t prescaler, uint32_t hz);
|
||||
|
||||
int8_t timerGetNumberByIndex(uint8_t index);
|
||||
int8_t timerGetTIMNumber(const TIM_TypeDef *tim);
|
||||
uint8_t timerLookupChannelIndex(const uint16_t channel);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue