MAXREFDES63# Code Documentation  V01.00
8-Channel Digital Output MicroPLC
 All Files Functions Variables Macros Pages
menu.h
Go to the documentation of this file.
1 
30 /*
31 * Copyright (C) 2012 Maxim Integrated Products, Inc., All Rights Reserved.
32 *
33 * Permission is hereby granted, free of charge, to any person obtaining a
34 * copy of this software and associated documentation files (the "Software"),
35 * to deal in the Software without restriction, including without limitation
36 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
37 * and/or sell copies of the Software, and to permit persons to whom the
38 * Software is furnished to do so, subject to the following conditions:
39 *
40 * The above copyright notice and this permission notice shall be included
41 * in all copies or substantial portions of the Software.
42 *
43 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
44 * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
45 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
46 * IN NO EVENT SHALL MAXIM INTEGRATED PRODUCTS BE LIABLE FOR ANY CLAIM, DAMAGES
47 * OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
48 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
49 * OTHER DEALINGS IN THE SOFTWARE.
50 *
51 * Except as contained in this notice, the name of Maxim Integrated Products
52 * shall not be used except as stated in the Maxim Integrated Products
53 * Branding Policy.
54 *
55 * The mere transfer of this software does not imply any licenses
56 * of trade secrets, proprietary technology, copyrights, patents,
57 * trademarks, maskwork rights, or any other form of intellectual
58 * property whatsoever. Maxim Integrated Products retains all ownership rights.
59 *
60 ***************************************************************************/
61 
62 #ifndef MENU_H_
63 #define MENU_H_
64 
65 #include "stm32f10x.h"
66 #include "stdio.h"
67 
68 #define MAIN_MENU 0
69 #define WAIT_KEYPRESS 1
70 #define SET_CONFIG 2
71 #define SET_OUTPUT 3
72 
73 #define KEYPRESS_ARROW_UP 240
74 #define KEYPRESS_ARROW_DOWN 241
75 #define KEYPRESS_ARROW_LEFT 242
76 #define KEYPRESS_ARROW_RIGHT 243
77 #define KEYPRESS_END 244
78 
79 // Function Prototypes
80 void maxim_menu_cls(void);
83 void maxim_menu_print_prompt(void);
84 uint8_t maxim_menu_retrieve_keypress(void);
88 
89 
90 #endif /* MENU_H_ */