From: Nathael Pajani Date: Mon, 19 Apr 2021 22:33:53 +0000 (+0200) Subject: Add define for PWM_OUT_INIT_SET X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=10af1fa07fe24e3b5e87ba53ef1a0f1b171978e5;p=soft%2Flpc82x%2Fcore Add define for PWM_OUT_INIT_SET --- 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)) /*******************************************************************************/