2018-01-15 15:46:46 +00:00
|
|
|
#ifndef __INCLUDE_USART_KEY_H__
|
|
|
|
#define __INCLUDE_USART_KEY_H__
|
|
|
|
|
|
|
|
// Key value definition.
|
2018-01-17 13:34:34 +00:00
|
|
|
#define KEY_VALUE_TAB (0x01)
|
|
|
|
#define KEY_VALUE_ENTER (0x02)
|
|
|
|
#define KEY_VALUE_ESC (0x03)
|
|
|
|
#define KEY_VALUE_SPACE (0x04)
|
|
|
|
#define KEY_VALUE_LEFT (0x05)
|
|
|
|
#define KEY_VALUE_UP (0x06)
|
|
|
|
#define KEY_VALUE_RIGHT (0x07)
|
|
|
|
#define KEY_VALUE_DOWN (0x08)
|
|
|
|
|
2018-01-15 15:46:46 +00:00
|
|
|
// User option flag value define
|
2018-01-17 13:34:34 +00:00
|
|
|
#define KEY_OPTION_NONE (0x00)
|
|
|
|
#define KEY_OPTION_CTRL (0x10)
|
|
|
|
#define KEY_OPTION_ALT (0x20)
|
|
|
|
#define KEY_OPTION_SHIFT (0x40)
|
2018-01-15 15:46:46 +00:00
|
|
|
|
|
|
|
#endif /* __INCLUDE_USART_KEY_H__ */
|