Treehouse Mbed Team / Mbed 2 deprecated APS_1U5x

Dependencies:   mbed

inc/menu.h

Committer:
mfwic
Date:
2018-12-06
Revision:
8:d3d7dca419b3
Parent:
7:860b3a8275cb
Child:
9:816b9a4e4f21

File content as of revision 8:d3d7dca419b3:

//-------------------------------------------------------------------------------
// 
//  Treehouse Inc.
//  Colorado Springs, Colorado
// 
//  Copyright (c) 2016 by Treehouse Designs Inc. 
// 
//  This code is the property of Treehouse, Inc. (Treehouse) and may not be redistributed
//  in any form without prior written permission from the copyright holder, Treehouse.
//
//  The above copyright notice and this permission notice shall be included in
//  all copies or substantial portions of the Software.
//   
//-------------------------------------------------------------------------------
// 
//  REVISION HISTORY:
//  
//   $Author: $
//   $Rev: $
//   $Date: $
//   $URL: $
// 
//-------------------------------------------------------------------------------

#ifndef menu_H
#define menu_H

#include "mbed.h"

extern volatile bool updateReady;

extern unsigned int binCode[6];
extern unsigned int thermCode[17];

extern unsigned int en_out_code;
extern unsigned int wr_out_code;

extern unsigned int loopTime;
extern Timer masterTimer;

extern bool raw;

extern unsigned int 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.
extern unsigned int i48, i24, i12;

void initDRT(void);
void updateTerminal(void);

enum menuTypes {MENU_DCM1, MENU_CALIBRATE, MENU_TEST, MENU_MAIN};

void clrScrn(void);
void menuRedraw(bool);
void menuPrompt(int);

void splash_screen(void);

#endif