#include "board.h"
#include "USBD.h"
#include "HIDDKeyboardDriver.h"
#include "USBD_LEDs.h"
#include <string.h>
#include <stdbool.h>
#include <stdint.h>
Go to the source code of this file.
Defines | |
#define | NO_PUSHBUTTON |
#define | NUM_KEYS 2 |
#define | NUM_NORMAL_KEYS 1 |
#define | NUM_MODIFIER_KEYS (NUM_KEYS - NUM_NORMAL_KEYS) |
#define | LED_NUMLOCK USBD_LEDOTHER |
Functions | |
void | USBDCallbacks_RequestReceived (const USBGenericRequest *request) |
void | USBDDriverCallbacks_ConfigurationChanged (uint8_t cfgnum) |
void | HIDDKeyboardCallbacks_LedsChanged (uint8_t numLockStatus, uint8_t capsLockStatus, uint8_t scrollLockStatus) |
int | main (void) |
Variables | |
USBDDriverDescriptors | hiddKeyboardDriverDescriptors |
This file contains all the specific code for the usb_hid_keyboard
The code can be roughly broken down as follows:
Definition in file main.c.
#define NUM_MODIFIER_KEYS (NUM_KEYS - NUM_NORMAL_KEYS) |
void HIDDKeyboardCallbacks_LedsChanged | ( | uint8_t | numLockStatus, | |
uint8_t | capsLockStatus, | |||
uint8_t | scrollLockStatus | |||
) |
Invoked when the status of the keyboard LEDs changes. Turns the num. lock LED on or off.
numLockStatus | Indicates the current status of the num. lock key. | |
capsLockStatus | Indicates the current status of the caps lock key. | |
scrollLockStatus | Indicates the current status of the scroll lock key. |
Definition at line 197 of file main.c.
int main | ( | void | ) |
void USBDCallbacks_RequestReceived | ( | const USBGenericRequest * | request | ) |