From 0440020c2f2de5cf693e5cf5afead62e17b521c3 Mon Sep 17 00:00:00 2001 From: Michael Banther Date: Wed, 2 Oct 2019 15:24:28 +0100 Subject: [PATCH] Change pre-processor symbol names to make them generic. --- lib_xua/src/core/user/user_hid.h | 12 ++++++------ lib_xua/src/core/user/user_hid.xc | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/lib_xua/src/core/user/user_hid.h b/lib_xua/src/core/user/user_hid.h index 24699c14..afcbb2e9 100644 --- a/lib_xua/src/core/user/user_hid.h +++ b/lib_xua/src/core/user/user_hid.h @@ -15,18 +15,18 @@ #define HID_SIMULATE_INTERRUPTS 0 #endif -#ifndef NDP_ASSERT_LEVEL -#define NDP_ASSERT_LEVEL 0 +#ifndef INTERRUPT_ASSERT_LEVEL +#define INTERRUPT_ASSERT_LEVEL 0 #endif #if( 0 < HID_CONTROLS ) #if( 0 < NDP_ASSERT_LEVEL ) -#define NDP10X_ASSERT_LEVEL 1 -#define NDP10X_DEASSERT_LEVEL 0 +#define INT_ASSERT_LEVEL 1 +#define INT_DEASSERT_LEVEL 0 #else -#define NDP10X_ASSERT_LEVEL 0 -#define NDP10X_DEASSERT_LEVEL 1 +#define INT_ASSERT_LEVEL 0 +#define INT_DEASSERT_LEVEL 1 #endif #if( 0 < HID_SIMULATE_INTERRUPTS ) diff --git a/lib_xua/src/core/user/user_hid.xc b/lib_xua/src/core/user/user_hid.xc index dfba7fed..75cb8df6 100644 --- a/lib_xua/src/core/user/user_hid.xc +++ b/lib_xua/src/core/user/user_hid.xc @@ -26,7 +26,7 @@ void UserReadHIDData( unsigned char hidData[ HID_DATA_SIZE ]) void UserSetHIDData( const unsigned hidData ) { - if( hidData == NDP10X_ASSERT_LEVEL ) { + if( hidData == INT_ASSERT_LEVEL ) { s_hidData = HID_REPORT_INTERRUPT_ASSERTED; } else { s_hidData = HID_REPORT_INTERRUPT_DEASSERTED;