Change pre-processor symbol names to make them generic.

This commit is contained in:
Michael Banther
2019-10-02 15:24:28 +01:00
parent 17317093d5
commit 0440020c2f
2 changed files with 7 additions and 7 deletions

View File

@@ -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 )

View File

@@ -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;