|
|
|
|
|
|
|
|
|
|
|
|
|
|
// the idle configuration, how often we send the report to the |
|
|
// the idle configuration, how often we send the report to the |
|
|
// host (ms * 4) even when it hasn't changed |
|
|
// host (ms * 4) even when it hasn't changed |
|
|
uint8_t USBKeys_Idle_Config = 125; |
|
|
|
|
|
|
|
|
uint8_t USBKeys_Idle_Config = 125; |
|
|
|
|
|
|
|
|
// count until idle timeout |
|
|
// count until idle timeout |
|
|
uint8_t USBKeys_Idle_Count = 0; |
|
|
uint8_t USBKeys_Idle_Count = 0; |
|
|
|
|
|
|
|
|
// USB Module Setup |
|
|
// USB Module Setup |
|
|
inline void Output_setup() |
|
|
inline void Output_setup() |
|
|
{ |
|
|
{ |
|
|
|
|
|
// Setup UART |
|
|
|
|
|
uart_serial_setup(); |
|
|
|
|
|
print("\033[2J"); // Clear screen |
|
|
|
|
|
|
|
|
// Initialize the USB, and then wait for the host to set configuration. |
|
|
// Initialize the USB, and then wait for the host to set configuration. |
|
|
// This will hang forever if USB does not initialize |
|
|
// This will hang forever if USB does not initialize |
|
|
usb_init(); |
|
|
usb_init(); |
|
|
|
|
|
|
|
|
// Setup UART |
|
|
|
|
|
uart_serial_setup(); |
|
|
|
|
|
|
|
|
|
|
|
while ( !usb_configured() ); |
|
|
while ( !usb_configured() ); |
|
|
|
|
|
|
|
|
// Register USB Output CLI dictionary |
|
|
// Register USB Output CLI dictionary |