Add define for PWM_OUT_INIT_SET
authorNathael Pajani <nathael.pajani@ed3l.fr>
Mon, 19 Apr 2021 22:33:53 +0000 (00:33 +0200)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Fri, 10 Feb 2023 18:02:59 +0000 (19:02 +0100)
include/drivers/timers.h

index 214f4c2..5834178 100644 (file)
@@ -90,6 +90,7 @@ struct lpc_timer_pwm_config {
        uint32_t outputs_initial_state;
 };
 
+#define PWM_OUT_INIT_SET(x)   (0x01 << ((x) & 0x07))
 
 
 /*******************************************************************************/