I looked for my answer but couldn't find.
I am tring to connect a usb gamepad to my TM4C123GXL launchpad. I want to wirte the code and I looked for the some examples either device or host use to understand the concept. I am coping the codes from eval_bot_joystick example but IAR gives an error as follow;
Error[Pe020]: identifier "g_USBHIDClassDriver" is undefined C:\ti\TivaWare_C_Series-2.1.0.12573\examples\boards\ek-tm4c123gxl\usb_host_gamepad\usb_host_gamepad.c 95
all usb headers are included correctly like;
#include <stdbool.h>
#include <stdint.h>
#include "inc/tm4c123gh6pm.h"
#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
#include "inc/hw_gpio.h"
#include "inc/hw_sysctl.h"
#include "driverlib/adc.h"
#include "driverlib/debug.h"
#include "driverlib/gpio.h"
#include "driverlib/interrupt.h"
#include "driverlib/pin_map.h"
#include "driverlib/rom.h"
#include "driverlib/sysctl.h"
#include "driverlib/udma.h"
#include "driverlib/uart.h"
#include "usblib/usblib.h"
#include "usblib/usbhid.h"
#include "usblib/host/usbhost.h"
#include "usblib/host/usbhhid.h"
#include "drivers/buttons.h"
#include "utils/uartstdio.h"
Then I looked for he RTOS but culd not understand, in which situation ı should prefer one on other and why I am getting the error above.
If there is confuison in my post sorry for it, beacuse I have lots of confusions at this moment.
I used the VBUS GND and the two holes behind the usb micro b device port as I am guessing those are PD4 and PD5 for USBD- and USBD+. Is this right.
Thanks.