Treehouse Mbed Team / Mbed 2 deprecated APS_1U5x

Dependencies:   mbed

inc/menu.h

Committer:
mfwic
Date:
2018-12-03
Revision:
6:39442d493098
Parent:
3:d8948c5b2951
Child:
7:860b3a8275cb

File content as of revision 6:39442d493098:

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

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

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

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

#endif