From 2b64452c331d40ab204248208a4925c319e8a62d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= <joakim.nohlgard@eistec.se> Date: Wed, 22 Mar 2017 09:00:50 +0100 Subject: [PATCH] kinetis: GPIO workaround for missing open drain support --- cpu/kinetis/periph/gpio.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cpu/kinetis/periph/gpio.c b/cpu/kinetis/periph/gpio.c index cad99e38a1..161359332c 100644 --- a/cpu/kinetis/periph/gpio.c +++ b/cpu/kinetis/periph/gpio.c @@ -31,6 +31,11 @@ #include "bit.h" #include "periph/gpio.h" +#ifndef PORT_PCR_ODE_MASK +/* For compatibility with Kinetis CPUs without open drain GPIOs (e.g. KW41Z) */ +#define PORT_PCR_ODE_MASK 0 +#endif + /** * @brief Get the OCR reg value from the gpio_mode_t value */ -- GitLab