Добавлен дефайн для расчета тиков исходя из частоты
* надо добавить дефайн для расчета тиков исъходя из периода
This commit is contained in:
parent
2eae8d34d8
commit
b3f118b074
@ -185,6 +185,9 @@ typedef struct // struct with variables for encoder
|
|||||||
@endcode
|
@endcode
|
||||||
* @{
|
* @{
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define TIM_FreqToTick(_freq_, _timfreqMHz_) ((1000000*_timfreqMHz_)/_freq_)
|
||||||
|
|
||||||
/* Initialize TIM with TIM_SettingsTypeDef structure */
|
/* Initialize TIM with TIM_SettingsTypeDef structure */
|
||||||
HAL_StatusTypeDef TIM_Base_Init(TIM_SettingsTypeDef* stim);
|
HAL_StatusTypeDef TIM_Base_Init(TIM_SettingsTypeDef* stim);
|
||||||
/* Initialize TIMs clock and interrupt */
|
/* Initialize TIMs clock and interrupt */
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user