Remove unnecessary HID functionality (#243)

* Include HID report functionality only when the HID feature is enabled
* Define HID_CONTROLS=1 so HID unit tests work correctly
This commit is contained in:
Michael Banther
2022-02-21 13:20:52 +00:00
committed by GitHub
parent 29c9b3ea75
commit 769bfa1a5a
4 changed files with 11 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
// Copyright 2021-2022 XMOS LIMITED.
// This Software is subject to the terms of the XMOS Public Licence: Version 1.
#if( 0 < HID_CONTROLS )
#include <assert.h>
#include <stddef.h>
#include <stdio.h>
@@ -851,3 +853,5 @@ unsigned hidReportValidate( void )
return hidReportValidateInfoStruct( &info );
}
}
#endif // ( 0 < HID_CONTROLS )