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@9:816b9a4e4f21, 2018-12-07 (annotated)
- Committer:
- mfwic
- Date:
- Fri Dec 07 00:15:19 2018 +0000
- Revision:
- 9:816b9a4e4f21
- Parent:
- 8:d3d7dca419b3
- Child:
- 10:6c3233b03658
Added 1024 entry LUT.; Has bug if my12 > 21247
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 | 6:39442d493098 | 32 | extern unsigned int binCode[6]; |
mfwic | 6:39442d493098 | 33 | extern unsigned int thermCode[17]; |
mfwic | 6:39442d493098 | 34 | |
mfwic | 6:39442d493098 | 35 | extern unsigned int en_out_code; |
mfwic | 6:39442d493098 | 36 | extern unsigned int wr_out_code; |
mfwic | 6:39442d493098 | 37 | |
mfwic | 6:39442d493098 | 38 | extern unsigned int loopTime; |
mfwic | 7:860b3a8275cb | 39 | extern Timer masterTimer; |
mfwic | 6:39442d493098 | 40 | |
mfwic | 8:d3d7dca419b3 | 41 | extern bool raw; |
mfwic | 8:d3d7dca419b3 | 42 | |
mfwic | 9:816b9a4e4f21 | 43 | extern unsigned short v48, v24, v12; // Voltage divide ratio is a little low due to substituting 10k resistors in place of the 100k. The 100k caused the opamps to oscillate. |
mfwic | 9:816b9a4e4f21 | 44 | extern unsigned short i48, i24, i12; |
mfwic | 6:39442d493098 | 45 | |
mfwic | 6:39442d493098 | 46 | void initDRT(void); |
mfwic | 6:39442d493098 | 47 | void updateTerminal(void); |
mfwic | 6:39442d493098 | 48 | |
mfwic | 3:d8948c5b2951 | 49 | enum menuTypes {MENU_DCM1, MENU_CALIBRATE, MENU_TEST, MENU_MAIN}; |
mfwic | 3:d8948c5b2951 | 50 | |
mfwic | 1:9f8583ba2431 | 51 | void clrScrn(void); |
mfwic | 8:d3d7dca419b3 | 52 | void menuRedraw(bool); |
mfwic | 3:d8948c5b2951 | 53 | void menuPrompt(int); |
mfwic | 1:9f8583ba2431 | 54 | |
mfwic | 8:d3d7dca419b3 | 55 | void splash_screen(void); |
mfwic | 8:d3d7dca419b3 | 56 | |
mfwic | 1:9f8583ba2431 | 57 | #endif |