From 18908667a38d63e7fc55716904091f327cac0295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Nohlg=C3=A5rd?= <joakim.nohlgard@eistec.se> Date: Sat, 18 Mar 2017 17:47:29 +0100 Subject: [PATCH] kinetis: Make open drain GPIO availability depend on CPU header --- cpu/kinetis/include/periph_cpu.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cpu/kinetis/include/periph_cpu.h b/cpu/kinetis/include/periph_cpu.h index f183be37fc..07115b31d6 100644 --- a/cpu/kinetis/include/periph_cpu.h +++ b/cpu/kinetis/include/periph_cpu.h @@ -135,7 +135,9 @@ typedef enum { GPIO_AF_5 = PORT_PCR_MUX(5), /**< use alternate function 5 */ GPIO_AF_6 = PORT_PCR_MUX(6), /**< use alternate function 6 */ GPIO_AF_7 = PORT_PCR_MUX(7), /**< use alternate function 7 */ +#ifdef PORT_PCR_ODE_MASK GPIO_PCR_OD = (PORT_PCR_ODE_MASK), /**< open-drain mode */ +#endif GPIO_PCR_PD = (PORT_PCR_PE_MASK), /**< enable pull-down */ GPIO_PCR_PU = (PORT_PCR_PE_MASK | PORT_PCR_PS_MASK) /**< enable PU */ } gpio_pcr_t; -- GitLab