Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
inc/menu.h@15:aed8f326c949, 2018-12-11 (annotated)
- Committer:
- mfwic
- Date:
- Tue Dec 11 16:59:21 2018 +0000
- Revision:
- 15:aed8f326c949
- Parent:
- 11:01dcfb29fbc4
- Child:
- 16:5791665200cb
Added voltage level checks.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| mfwic | 1:9f8583ba2431 | 1 | //------------------------------------------------------------------------------- |
| mfwic | 1:9f8583ba2431 | 2 | // |
| mfwic | 1:9f8583ba2431 | 3 | // Treehouse Inc. |
| mfwic | 1:9f8583ba2431 | 4 | // Colorado Springs, Colorado |
| mfwic | 1:9f8583ba2431 | 5 | // |
| mfwic | 1:9f8583ba2431 | 6 | // Copyright (c) 2016 by Treehouse Designs Inc. |
| mfwic | 1:9f8583ba2431 | 7 | // |
| mfwic | 1:9f8583ba2431 | 8 | // This code is the property of Treehouse, Inc. (Treehouse) and may not be redistributed |
| mfwic | 1:9f8583ba2431 | 9 | // in any form without prior written permission from the copyright holder, Treehouse. |
| mfwic | 1:9f8583ba2431 | 10 | // |
| mfwic | 1:9f8583ba2431 | 11 | // The above copyright notice and this permission notice shall be included in |
| mfwic | 1:9f8583ba2431 | 12 | // all copies or substantial portions of the Software. |
| mfwic | 1:9f8583ba2431 | 13 | // |
| mfwic | 1:9f8583ba2431 | 14 | //------------------------------------------------------------------------------- |
| mfwic | 1:9f8583ba2431 | 15 | // |
| mfwic | 1:9f8583ba2431 | 16 | // REVISION HISTORY: |
| mfwic | 1:9f8583ba2431 | 17 | // |
| mfwic | 1:9f8583ba2431 | 18 | // $Author: $ |
| mfwic | 1:9f8583ba2431 | 19 | // $Rev: $ |
| mfwic | 1:9f8583ba2431 | 20 | // $Date: $ |
| mfwic | 1:9f8583ba2431 | 21 | // $URL: $ |
| mfwic | 1:9f8583ba2431 | 22 | // |
| mfwic | 1:9f8583ba2431 | 23 | //------------------------------------------------------------------------------- |
| mfwic | 1:9f8583ba2431 | 24 | |
| mfwic | 1:9f8583ba2431 | 25 | #ifndef menu_H |
| mfwic | 1:9f8583ba2431 | 26 | #define menu_H |
| mfwic | 1:9f8583ba2431 | 27 | |
| mfwic | 1:9f8583ba2431 | 28 | #include "mbed.h" |
| mfwic | 1:9f8583ba2431 | 29 | |
| mfwic | 6:39442d493098 | 30 | extern volatile bool updateReady; |
| mfwic | 6:39442d493098 | 31 | |
| mfwic | 15:aed8f326c949 | 32 | extern bool buck; |
| mfwic | 15:aed8f326c949 | 33 | |
| mfwic | 10:6c3233b03658 | 34 | extern unsigned int binCode[WEIGHT_BIN_WIDTH+1]; |
| mfwic | 10:6c3233b03658 | 35 | extern unsigned int thermCode[BOARDS_THERMCODE_WIDTH+1]; |
| mfwic | 6:39442d493098 | 36 | |
| mfwic | 6:39442d493098 | 37 | extern unsigned int en_out_code; |
| mfwic | 6:39442d493098 | 38 | extern unsigned int wr_out_code; |
| mfwic | 6:39442d493098 | 39 | |
| mfwic | 6:39442d493098 | 40 | extern unsigned int loopTime; |
| mfwic | 7:860b3a8275cb | 41 | extern Timer masterTimer; |
| mfwic | 6:39442d493098 | 42 | |
| mfwic | 6:39442d493098 | 43 | void initDRT(void); |
| mfwic | 15:aed8f326c949 | 44 | void updateTerminal(struct adcValues, struct statusValues); |
| mfwic | 6:39442d493098 | 45 | |
| mfwic | 3:d8948c5b2951 | 46 | enum menuTypes {MENU_DCM1, MENU_CALIBRATE, MENU_TEST, MENU_MAIN}; |
| mfwic | 3:d8948c5b2951 | 47 | |
| mfwic | 1:9f8583ba2431 | 48 | void clrScrn(void); |
| mfwic | 8:d3d7dca419b3 | 49 | void menuRedraw(bool); |
| mfwic | 3:d8948c5b2951 | 50 | void menuPrompt(int); |
| mfwic | 1:9f8583ba2431 | 51 | |
| mfwic | 8:d3d7dca419b3 | 52 | void splash_screen(void); |
| mfwic | 8:d3d7dca419b3 | 53 | |
| mfwic | 1:9f8583ba2431 | 54 | #endif |