Basic driver name/image interaction
This commit is contained in:
@@ -4,14 +4,19 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#define DEVICE_NAME "HTX 4K"
|
||||
#define DEVICE_VENDOR_ID 0x33e4
|
||||
#define DEVICE_PRODUCT_ID_WIRELESS 0x5707
|
||||
|
||||
void driver_init(void)
|
||||
{
|
||||
printf("Hello from G-Wolves HTX driver !\n");
|
||||
}
|
||||
void driver_init(void) {}
|
||||
|
||||
uint32_t driver_getkey(void)
|
||||
{
|
||||
static int count = 0;
|
||||
count++;
|
||||
|
||||
if(count == 1)
|
||||
return (DEVICE_VENDOR_ID << 16) | DEVICE_PRODUCT_ID_WIRELESS;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user