Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions zephyr/modules/owntech_hrtim_driver/zephyr/src/hrtim.c
Original file line number Diff line number Diff line change
Expand Up @@ -1319,11 +1319,11 @@ void hrtim_burst_mode_init(void){
}

void hrtim_burst_set(int bm_cmp, int bm_per){
/* Set the number of period active in burst mode*/
LL_HRTIM_BM_SetCompare(HRTIM1, bm_cmp);
/* Set the number of period inactive in burst mode*/
LL_HRTIM_BM_SetCompare(HRTIM1, bm_cmp - 1 );
/* Set the number of period of the burst pattern
(active + inactive periods)*/
LL_HRTIM_BM_SetPeriod(HRTIM1, bm_per);
LL_HRTIM_BM_SetPeriod(HRTIM1, bm_per - 1);
}

void hrtim_burst_start(void){
Expand Down Expand Up @@ -1619,4 +1619,4 @@ uint32_t hrtim_get_max_frequency(hrtim_tu_number_t tu_number)
uint32_t hrtim_get_min_frequency(hrtim_tu_number_t tu_number)
{
return tu_channel[tu_number]->pwm_conf.min_frequency;
}
}
Loading