From 67d67dbfefc2b9eaf01206899ea56f564d1fe213 Mon Sep 17 00:00:00 2001 From: kerem Date: Tue, 20 Jun 2023 15:52:14 +0200 Subject: [PATCH] Double declaration if PINX6_BOTH_EDGE corrected --- csl/stm32f042k6t6/HardwareDescription/hwd_interrupt.h | 1 - csl/stm32f042k6t6/implementation/imp_pin.c | 3 --- peripherals/pin/pin.h | 1 + 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/csl/stm32f042k6t6/HardwareDescription/hwd_interrupt.h b/csl/stm32f042k6t6/HardwareDescription/hwd_interrupt.h index 5cbb1ea..fed1f7b 100644 --- a/csl/stm32f042k6t6/HardwareDescription/hwd_interrupt.h +++ b/csl/stm32f042k6t6/HardwareDescription/hwd_interrupt.h @@ -48,7 +48,6 @@ typedef enum { PINX6_RISING_EDGE, PINX6_FALLING_EDGE, PINX6_BOTH_EDGE, - PINX6_BOTH_EDGE, PINX7_RISING_EDGE, PINX7_FALLING_EDGE, PINX7_BOTH_EDGE, diff --git a/csl/stm32f042k6t6/implementation/imp_pin.c b/csl/stm32f042k6t6/implementation/imp_pin.c index 35b29a3..53a4c81 100644 --- a/csl/stm32f042k6t6/implementation/imp_pin.c +++ b/csl/stm32f042k6t6/implementation/imp_pin.c @@ -205,6 +205,3 @@ void pinThrowError(pinErrors_t error) { while(1); } - - - diff --git a/peripherals/pin/pin.h b/peripherals/pin/pin.h index 2020c7d..fda5c83 100644 --- a/peripherals/pin/pin.h +++ b/peripherals/pin/pin.h @@ -31,6 +31,7 @@ extern "C" { #include // include the target device definitions -> CMAKE chooses the correct file #include "hwd_pin.h" +#include "interrupt.h" #ifdef RASPBERRY #endif