ext: nordic: Fix PWM related nrfx_config entries for nRF52840

Change #ifndef to #ifdef in the entries that enable the PWM driver
and particular hardware instances so that the enabling is done
properly.

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
Andrzej Głąbek 2018-07-05 10:41:09 +02:00 committed by Carles Cufí
commit f0abb24a51

View file

@ -956,34 +956,34 @@
// <e> NRFX_PWM_ENABLED - nrfx_pwm - PWM peripheral driver // <e> NRFX_PWM_ENABLED - nrfx_pwm - PWM peripheral driver
//========================================================== //==========================================================
#ifndef CONFIG_NRFX_PWM #ifdef CONFIG_NRFX_PWM
#define NRFX_PWM_ENABLED 1 #define NRFX_PWM_ENABLED 1
#endif #endif
// <q> NRFX_PWM0_ENABLED - Enable PWM0 instance // <q> NRFX_PWM0_ENABLED - Enable PWM0 instance
#ifndef CONFIG_PWM_0 #ifdef CONFIG_PWM_0
#define NRFX_PWM0_ENABLED 1 #define NRFX_PWM0_ENABLED 1
#endif #endif
// <q> NRFX_PWM1_ENABLED - Enable PWM1 instance // <q> NRFX_PWM1_ENABLED - Enable PWM1 instance
#ifndef CONFIG_PWM_1 #ifdef CONFIG_PWM_1
#define NRFX_PWM1_ENABLED 1 #define NRFX_PWM1_ENABLED 1
#endif #endif
// <q> NRFX_PWM2_ENABLED - Enable PWM2 instance // <q> NRFX_PWM2_ENABLED - Enable PWM2 instance
#ifndef CONFIG_PWM_2 #ifdef CONFIG_PWM_2
#define NRFX_PWM2_ENABLED 1 #define NRFX_PWM2_ENABLED 1
#endif #endif
// <q> NRFX_PWM3_ENABLED - Enable PWM3 instance // <q> NRFX_PWM3_ENABLED - Enable PWM3 instance
#ifndef CONFIG_PWM_3 #ifdef CONFIG_PWM_3
#define NRFX_PWM3_ENABLED 1 #define NRFX_PWM3_ENABLED 1
#endif #endif