From e7e8b58275f37337e01b31655c4a94fc4d79ac67 Mon Sep 17 00:00:00 2001 From: Michael Banther Date: Wed, 2 Oct 2019 16:54:38 +0100 Subject: [PATCH] Move user_hid.xc from lib_xua to the application (sw_xvf3510). --- lib_xua/src/core/user/user_hid.xc | 36 ------------------------------- 1 file changed, 36 deletions(-) delete mode 100644 lib_xua/src/core/user/user_hid.xc diff --git a/lib_xua/src/core/user/user_hid.xc b/lib_xua/src/core/user/user_hid.xc deleted file mode 100644 index 75cb8df6..00000000 --- a/lib_xua/src/core/user/user_hid.xc +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) 2019, XMOS Ltd, All rights reserved -#include -#include -#include -#include "user_hid.h" - -#if( 0 < HID_CONTROLS ) -#define HID_REPORT_INTERRUPT_ASSERTED 0x01 -#define HID_REPORT_INTERRUPT_DEASSERTED 0x00 - -static unsigned char s_hidData; - -void UserInitHIDData( void ) -{ - s_hidData = HID_REPORT_INTERRUPT_DEASSERTED; -} - -void UserReadHIDData( unsigned char hidData[ HID_DATA_SIZE ]) -{ - hidData[ 0 ] = s_hidData; - - for( unsigned i = 1; i < HID_DATA_SIZE; ++i ) { - hidData[ i ] = 0U; - } -} - -void UserSetHIDData( const unsigned hidData ) -{ - if( hidData == INT_ASSERT_LEVEL ) { - s_hidData = HID_REPORT_INTERRUPT_ASSERTED; - } else { - s_hidData = HID_REPORT_INTERRUPT_DEASSERTED; - } -} - -#endif /* ( 0 < HID_CONTROLS ) */