Boot, UART working
This commit is contained in:
parent
6482cf2a69
commit
155a29ce08
7 changed files with 367 additions and 115 deletions
7
main.h
7
main.h
|
|
@ -47,11 +47,12 @@
|
|||
#ifndef __MAIN_H
|
||||
#define __MAIN_H
|
||||
|
||||
#include "stdio.h"
|
||||
#include "usbh_core.h"
|
||||
#include "usbh_hid.h"
|
||||
#include "usbh_hid_parser.h"
|
||||
|
||||
#include "stdio.h"
|
||||
|
||||
typedef enum {
|
||||
HID_DEMO_START = 0,
|
||||
HID_DEMO_KEYBOARD,
|
||||
|
|
@ -81,6 +82,7 @@ typedef enum {
|
|||
extern USBH_HandleTypeDef hUSBHost;
|
||||
extern HID_ApplicationTypeDef Appli_state;
|
||||
extern HID_DEMO_StateMachine hid_demo;
|
||||
extern USART_HandleTypeDef console_uart;
|
||||
|
||||
void Toggle_Leds(void);
|
||||
void HID_SelectItem(uint8_t** menu, uint8_t item);
|
||||
|
|
@ -89,4 +91,7 @@ void HID_MenuProcess(void);
|
|||
void HID_KeyboardMenuProcess(void);
|
||||
void USR_KEYBRD_ProcessData(uint8_t data);
|
||||
|
||||
void uart_print(char *s);
|
||||
void uart_putc(char c);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue