123456789101112131415161718192021222324252627 |
- /*
- * This file is subject to the terms of the GFX License. If a copy of
- * the license was not distributed with this file, you can obtain one at:
- *
- * http://ugfx.io/license.html
- */
- #ifndef _GDISP_LLD_TOGGLE_BOARD_H
- #define _GDISP_LLD_TOGGLE_BOARD_H
- #define GINPUT_TOGGLE_NUM_PORTS 4 // The total number of toggle inputs
- #define GINPUT_TOGGLE_CONFIG_ENTRIES 1 // The total number of GToggleConfig entries
- #define GINPUT_TOGGLE_SW1 0 // Switch 1
- #define GINPUT_TOGGLE_SW2 1 // Switch 2
- #define GINPUT_TOGGLE_SW3 2 // Switch 3
- #define GINPUT_TOGGLE_SW4 3 // Switch 4
- #define GINPUT_TOGGLE_DECLARE_STRUCTURE() \
- const GToggleConfig GInputToggleConfigTable[GINPUT_TOGGLE_CONFIG_ENTRIES] = { \
- {GPIOE, /* Switch 1 - Switch 4 */ \
- (1<<GPIOE_BUTTON1) | (1<<GPIOE_BUTTON2) | (1<<GPIOE_BUTTON3) | (1<<GPIOE_BUTTON4), \
- (1<<GPIOE_BUTTON1) | (1<<GPIOE_BUTTON2) | (1<<GPIOE_BUTTON3) | (1<<GPIOE_BUTTON4), \
- PAL_MODE_INPUT}, \
- }
- #endif /* _GDISP_LLD_TOGGLE_BOARD_H */
|