Atmel Software Framework

usb/_asf_v1/class/audio/examples/device/device_hid_task.c File Reference
#include <stdio.h>
#include "usart.h"
#include "conf_usb.h"
#include "board.h"
#include "controller.h"
#include "usb_drv.h"
#include "usb_descriptors.h"
#include "usb_standard_request.h"
#include "device_hid_task.h"
#include "audio_example.h"
#include "cycle_counter.h"
#include "debug.h"
#include "hid.h"
#include "et024006dhu.h"

Macros

#define HID_FAST_FWD   32
 
#define HID_NEXT   8
 
#define HID_PLAY_PAUSE   4
 
#define HID_PREV   16
 
#define HID_REWIND   64
 
#define HID_VOL_DN   2
 
#define HID_VOL_UP   1
 
#define TIMER_STARTUP   100
 

Functions

void device_hid_task (void)
 Entry point of the device HID task management. More...
 
void device_hid_task_init (void)
 This function initializes the hardware/software resources required for device HID task. More...
 
bool is_usb_hid_event (void)
 Looks for HID events. More...
 

Variables

uint8_t key = 0
 
t_cpu_time key_timer
 

#define HID_FAST_FWD   32
#define HID_NEXT   8
#define HID_PLAY_PAUSE   4
#define HID_PREV   16
#define HID_REWIND   64
#define HID_VOL_DN   2

Referenced by is_usb_hid_event().

#define HID_VOL_UP   1

Referenced by is_usb_hid_event().

#define TIMER_STARTUP   100

Referenced by device_hid_task_init().

void device_hid_task ( void  )

Entry point of the device HID task management.

Write report

Referenced by main().

void device_hid_task_init ( void  )

This function initializes the hardware/software resources required for device HID task.

Referenced by main().

t_cpu_time key_timer