xyControl  0.1
Quadrotor Flight Controller on AVR Basis
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups
Functions | Variables
uartMenu.c File Reference

UART Menu API Implementation. More...

#include <avr/io.h>
#include <stdint.h>
#include <stdlib.h>
#include <stdio.h>
#include <avr/pgmspace.h>
#include <xycontrol.h>
#include <xmem.h>
#include <tasks.h>
#include <serial.h>
#include <uartMenu.h>

Go to the source code of this file.

Functions

MenuEntryfindEntry (uint8_t cmd)
 Search the uartMenu Linked List. More...
 
uint8_t addMenuCommand (uint8_t cmd, PGM_P help, Task f)
 Add a command to the UART Menu. More...
 
MenuEntryreverseList (MenuEntry *root)
 Reverse the UART Menu List. More...
 
void uartMenuPrintHelp (void)
 Print all registered commands. More...
 
void uartMenuRegisterHandler (void(*handler)(char))
 Register a Handler for unhandled menu commands. More...
 
void uartMenuTask (void)
 Task to work the UART Menu. More...
 

Variables

MenuEntryuartMenu = NULL
 Single-Linked-List for commands. More...
 
void(* unHandler )(char) = NULL
 Handler for unhandled commands. More...
 

Detailed Description

UART Menu API Implementation.

Definition in file uartMenu.c.