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@7:860b3a8275cb, 2018-12-05 (annotated)
- Committer:
- mfwic
- Date:
- Wed Dec 05 00:20:34 2018 +0000
- Revision:
- 7:860b3a8275cb
- Parent:
- 6:39442d493098
- Child:
- 8:d3d7dca419b3
Added power efficiency calcs.; Changed color of text sent to terminal.; Fixed loop timer.
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 | 6:39442d493098 | 41 | 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 | 6:39442d493098 | 42 | extern unsigned short i48, i24, i12; |
mfwic | 6:39442d493098 | 43 | |
mfwic | 6:39442d493098 | 44 | void initDRT(void); |
mfwic | 6:39442d493098 | 45 | void updateTerminal(void); |
mfwic | 6:39442d493098 | 46 | |
mfwic | 3:d8948c5b2951 | 47 | enum menuTypes {MENU_DCM1, MENU_CALIBRATE, MENU_TEST, MENU_MAIN}; |
mfwic | 3:d8948c5b2951 | 48 | |
mfwic | 1:9f8583ba2431 | 49 | void clrScrn(void); |
mfwic | 1:9f8583ba2431 | 50 | void menuRedraw(void); |
mfwic | 3:d8948c5b2951 | 51 | void menuPrompt(int); |
mfwic | 1:9f8583ba2431 | 52 | |
mfwic | 1:9f8583ba2431 | 53 | #endif |