drivers: pwm: rpi_pico: Configuring the divide ratio adaptively #152592
Annotations
1 error, 1 warning, and 4 notices
Run Compliance Tests
Process completed with exit code 1.
|
check-warns:
ClangFormat.txt#L1
See https://docs.zephyrproject.org/latest/contribute/guidelines.html#clang-format for more details.
You may want to run clang-format on this change:
- pwm_set_clkdiv_int_frac(slice_idx,
- cfg->slice_configs[slice_idx].integral,
+ pwm_set_clkdiv_int_frac(slice_idx, cfg->slice_configs[slice_idx].integral,
File:drivers/pwm/pwm_rpi_pico.c
Line:195
You may want to run clang-format on this change:
-#define PWM_INST_RPI_SLICE_DIVIDER(idx, n) \
- { \
- .integral = DT_INST_PROP_OR(idx, UTIL_CAT(divider_int_, n), 0), \
- .frac = DT_INST_PROP_OR(idx, UTIL_CAT(divider_frac_, n), 0), \
+#define PWM_INST_RPI_SLICE_DIVIDER(idx, n) \
+ { \
+ .integral = DT_INST_PROP_OR(idx, UTIL_CAT(divider_int_, n), 0), \
+ .frac = DT_INST_PROP_OR(idx, UTIL_CAT(divider_frac_, n), 0), \
File:drivers/pwm/pwm_rpi_pico.c
Line:207
You may want to run clang-format on this change:
- "off: " STRINGIFY(CONFIG_BLINK_DELAY_SHORT) " msec");
+ "off: " STRINGIFY(CONFIG_BLINK_DELAY_SHORT) " msec");
File:samples/drivers/led/pwm/src/main.c
Line:80
You may want to run clang-format on this change:
- "off: " STRINGIFY(CONFIG_BLINK_DELAY_LONG) " msec");
+ "off: " STRINGIFY(CONFIG_BLINK_DELAY_LONG) " msec");
} else {
LOG_INF(" Blinking "
"on: " STRINGIFY(CONFIG_BLINK_DELAY_LONG) " msec, "
- "off: " STRINGIFY(CONFIG_BLINK_DELAY_LONG) " msec");
+ "off: " STRINGIFY(CONFIG_BLINK_DELAY_LONG) " msec");
File:samples/drivers/led/pwm/src/main.c
Line:95
|
Run Compliance Tests:
drivers/pwm/pwm_rpi_pico.c#L195
drivers/pwm/pwm_rpi_pico.c:195
- pwm_set_clkdiv_int_frac(slice_idx,
- cfg->slice_configs[slice_idx].integral,
+ pwm_set_clkdiv_int_frac(slice_idx, cfg->slice_configs[slice_idx].integral,
|
Run Compliance Tests:
drivers/pwm/pwm_rpi_pico.c#L207
drivers/pwm/pwm_rpi_pico.c:207
-#define PWM_INST_RPI_SLICE_DIVIDER(idx, n) \
- { \
- .integral = DT_INST_PROP_OR(idx, UTIL_CAT(divider_int_, n), 0), \
- .frac = DT_INST_PROP_OR(idx, UTIL_CAT(divider_frac_, n), 0), \
+#define PWM_INST_RPI_SLICE_DIVIDER(idx, n) \
+ { \
+ .integral = DT_INST_PROP_OR(idx, UTIL_CAT(divider_int_, n), 0), \
+ .frac = DT_INST_PROP_OR(idx, UTIL_CAT(divider_frac_, n), 0), \
|
Run Compliance Tests:
samples/drivers/led/pwm/src/main.c#L80
samples/drivers/led/pwm/src/main.c:80
- "off: " STRINGIFY(CONFIG_BLINK_DELAY_SHORT) " msec");
+ "off: " STRINGIFY(CONFIG_BLINK_DELAY_SHORT) " msec");
|
Run Compliance Tests:
samples/drivers/led/pwm/src/main.c#L95
samples/drivers/led/pwm/src/main.c:95
- "off: " STRINGIFY(CONFIG_BLINK_DELAY_LONG) " msec");
+ "off: " STRINGIFY(CONFIG_BLINK_DELAY_LONG) " msec");
} else {
LOG_INF(" Blinking "
"on: " STRINGIFY(CONFIG_BLINK_DELAY_LONG) " msec, "
- "off: " STRINGIFY(CONFIG_BLINK_DELAY_LONG) " msec");
+ "off: " STRINGIFY(CONFIG_BLINK_DELAY_LONG) " msec");
|
Loading