From 10af1fa07fe24e3b5e87ba53ef1a0f1b171978e5 Mon Sep 17 00:00:00 2001 From: Nathael Pajani Date: Tue, 20 Apr 2021 00:33:53 +0200 Subject: [PATCH] Add define for PWM_OUT_INIT_SET --- include/drivers/timers.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/drivers/timers.h b/include/drivers/timers.h index 214f4c2..5834178 100644 --- a/include/drivers/timers.h +++ b/include/drivers/timers.h @@ -90,6 +90,7 @@ struct lpc_timer_pwm_config { uint32_t outputs_initial_state; }; +#define PWM_OUT_INIT_SET(x) (0x01 << ((x) & 0x07)) /*******************************************************************************/ -- 2.43.0