Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Known4225 committed Dec 6, 2024
1 parent f6a42d5 commit 8e45f09
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sdk/app_cpu1/common/drv/pwm.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ typedef enum {

typedef enum {
PWM_LATCH_MODE_TIMING_MANAGER = 0, // Update duty ratios at next timing manager trigger (default)
PWM_LATCH_MODE_PWM, // Update duty ratios at next PWM carrier peak/valley
PWM_LATCH_MODE_IMMEDIATE // Update duty ratios immediately (next FPGA clock rise)
PWM_LATCH_MODE_PWM, // Update duty ratios at next PWM carrier peak/valley
PWM_LATCH_MODE_IMMEDIATE // Update duty ratios immediately (next FPGA clock rise)
} pwm_latch_mode;

static inline bool pwm_is_valid_channel(pwm_channel_e channel)
Expand Down
3 changes: 2 additions & 1 deletion sdk/app_cpu1/common/drv/timing_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,7 +444,8 @@ double timing_manager_get_time_per_sensor(sensor_e sensor)
/*
* Get the time since the sensor value was gathered for the requested sensor, in nanoseconds
*/
double timing_manager_get_time_since_sensor_poll(sensor_e sensor) {
double timing_manager_get_time_since_sensor_poll(sensor_e sensor)
{
uint32_t clock_cycles = Xil_In32(TM_BASE_ADDR + TM_INT_TIME_REG_OFFSET);
double time = 0;

Expand Down

0 comments on commit 8e45f09

Please sign in to comment.