From 9c4837dad7b46b8c7e67f9e977643fd77a4461cf Mon Sep 17 00:00:00 2001 From: Souko Hiabuto <10909005+Hiabuto-de@users.noreply.github.com> Date: Thu, 29 Oct 2020 22:50:57 +0100 Subject: [PATCH] Added defines for STM32 --- src/PS2KeyAdvanced.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/PS2KeyAdvanced.h b/src/PS2KeyAdvanced.h index 1eba354..0174b87 100644 --- a/src/PS2KeyAdvanced.h +++ b/src/PS2KeyAdvanced.h @@ -155,6 +155,11 @@ #define PS2_CLEAR_PENDING_IRQ 1 #endif +#if defined( ARDUINO_ARCH_STM32 ) +#define PS2_SUPPORTED 1 +#define PS2_CLEAR_PENDING_IRQ 1 +#endif + // Invalid architecture #if !( defined( PS2_SUPPORTED ) ) #warning Library is NOT supported on this board Use at your OWN risk