# c5131-usb-kbd-stand-alone-1_0_2

Copyright (c) 2003

## Library Usage

### Package Description

### Package Summary

#### Constants

#### Global Variables

#### Macros

#### Functions

    kbd_test_hit
    main
    usb_kbd
    usb_task
    usb_task_init

### Files List

- config.h

Describes the system dependant software configuration. This file is included by all source files in order to access to system wide configuration.

- main.c

This file contains an example of use of the USB controller.

- usb_task.c

This file controls the USB protocol.

- usb_task.h

### Included Files

- config.h
- lib_mcu/5131_drv.h
- lib_mcu/compiler.h
- lib_mcu/ext_5131.h
- lib_mcu/reg_5131.h
- lib_mcu\usb\usb_drv.h
- modules/scheduler/scheduler.h
- modules\timer_soft\timer_soft.h
- modules\usb_kbd_enum\usb_kbd_enum.h
- usb_task.h

## Constant Macros

## Global Variables

## Function Macros

## Functions

### kbd_test_hit

    void kbd_test_hit ( void )

This function scans the keyboard keys and update the scan_key word. if a key is pressed, the key_hit bit is set to TRUE.

    *
    return:

### main

    void main  ( void )

    return:   none

### usb_kbd

    void usb_kbd_task  ( void )

This function links the keyboard and the USB bus.

    delay:    none
    return:   none

### usb_task

    void usb_task ( void )

This function manages the USB communication

    delay:    none
    return:   none

### usb_task_init

    void usb_task_init ( void )

This function initializes the USB controller and the associated variables.

    delay:    none
    return:   none