forked from PAWPAW-Mirror/lib_xua
Change pre-processor symbol names to make them generic.
This commit is contained in:
@@ -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 )
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user