diff --git a/cpu/kinetis/periph/gpio.c b/cpu/kinetis/periph/gpio.c index cad99e38a1c7776ec700d99064f45eaac788cd4a..161359332c2852db780fb375448d86ff3fca36d1 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 */