Contiki 2.5
Functions | Variables
menu.c File Reference

 This file operates the menu flow chart described in the readme
 notes.
More...

#include <avr/eeprom.h>
#include <util/delay.h>
#include "menu.h"
#include "main.h"
#include "lcd.h"
#include "key.h"
#include "uart.h"
#include "sleep.h"
#include "temp.h"
#include "beep.h"

Go to the source code of this file.

Functions

void dectoascii (uint8_t val, char *str)
 This function will convert decimal to ascii. More...
 
uint8_t * signed_dectoascii (int16_t n, uint8_t *str)
 This will convert a signed decimal number to ASCII. More...
 
void eeprom_init (void)
 This will check for DEBUG mode after power up. More...
 
void menu_run_sleep (uint8_t *val)
 This will start a sleep operation. More...
 
void menu_run_doze (uint8_t *val)
 This will start a sleep with wakes for temperature measurement and web requests. More...
 
void menu_ping_request (uint8_t *val)
 This will setup a ping request command to the 1284p and reset the ping counter. More...
 
uint8_t menu_send_ping (void)
 This will send the ping request to the 1284p via the serial port. More...
 
void menu_stop_ping (void)
 This will stop the ping request.
 
void menu_debug_mode (uint8_t *val)
 This will enable or disable the JTAG debug interface to allow for proper temperature sensor readings. More...
 
void menu_read_temp (uint8_t *val)
 This will display the temperature in degrees F or C. More...
 
void menu_display_temp (void)
 This will display the temperature in degrees F or C.
 
void menu_clear_temp (void)
 This will clear the temperature displayed in the 4 digit LCD segments.
 
void menu_prepare_temp (uint8_t *val)
 This will setup the current temperature for transfer to the ATmega1284p via a binary command transfer. More...
 
void menu_stop_temp (void)
 This will stop the auto sending of temperature data.
 

Variables

uint16_t ADC2_reading
 This will send the data via the serial port. More...
 

Detailed Description

 This file operates the menu flow chart described in the readme
 notes.

This will create the proper commands needed to control the 1284p.

Author
Mike Vidales mavid.nosp@m.a404.nosp@m.@gmai.nosp@m.l.co.nosp@m.m

Definition in file menu.c.