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
|
#define HID_SIMULATE_INTERRUPTS 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef NDP_ASSERT_LEVEL
|
#ifndef INTERRUPT_ASSERT_LEVEL
|
||||||
#define NDP_ASSERT_LEVEL 0
|
#define INTERRUPT_ASSERT_LEVEL 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if( 0 < HID_CONTROLS )
|
#if( 0 < HID_CONTROLS )
|
||||||
|
|
||||||
#if( 0 < NDP_ASSERT_LEVEL )
|
#if( 0 < NDP_ASSERT_LEVEL )
|
||||||
#define NDP10X_ASSERT_LEVEL 1
|
#define INT_ASSERT_LEVEL 1
|
||||||
#define NDP10X_DEASSERT_LEVEL 0
|
#define INT_DEASSERT_LEVEL 0
|
||||||
#else
|
#else
|
||||||
#define NDP10X_ASSERT_LEVEL 0
|
#define INT_ASSERT_LEVEL 0
|
||||||
#define NDP10X_DEASSERT_LEVEL 1
|
#define INT_DEASSERT_LEVEL 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if( 0 < HID_SIMULATE_INTERRUPTS )
|
#if( 0 < HID_SIMULATE_INTERRUPTS )
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ void UserReadHIDData( unsigned char hidData[ HID_DATA_SIZE ])
|
|||||||
|
|
||||||
void UserSetHIDData( const unsigned hidData )
|
void UserSetHIDData( const unsigned hidData )
|
||||||
{
|
{
|
||||||
if( hidData == NDP10X_ASSERT_LEVEL ) {
|
if( hidData == INT_ASSERT_LEVEL ) {
|
||||||
s_hidData = HID_REPORT_INTERRUPT_ASSERTED;
|
s_hidData = HID_REPORT_INTERRUPT_ASSERTED;
|
||||||
} else {
|
} else {
|
||||||
s_hidData = HID_REPORT_INTERRUPT_DEASSERTED;
|
s_hidData = HID_REPORT_INTERRUPT_DEASSERTED;
|
||||||
|
|||||||
Reference in New Issue
Block a user