Bluecontroller (BCA8-BTM)  Epsilon
Bluecontroller BCA8-BTM (bluetooth module BTM-222, microcontroller ATmega328P)
 All Files Functions Macros
cmd.c File Reference
#include "cmd.h"
Include dependency graph for cmd.c:

Functions

void checkCmd ()
 Check commands. More...
 
 ISR (USART_RX_vect)
 Interrupt USART_RX_vect. More...
 

Variables

volatile char uart_string [UART_MAXSTRLEN+1] = ""
 
volatile uint8_t uart_str_complete = 0
 
volatile uint8_t uart_str_count = 0
 

Detailed Description

Author
Fabi Rosenthal, Florian Thaeter
Version
Epsilon
Date
18.05.2013

LICENSE

Licence: CC BY 3.0 (http://creativecommons.org/licenses/by/3.0/)

DESCRIPTION

Code: http://github.com/Xennis/Bluecontroller_BCA8_BTM

Documentation: http://xennis.org/wiki/Bluecontroller

Function Documentation

void checkCmd ( void  )

Check commands.

This method checks if received command is a valid command and react to it. Furthermore it resets the commandBuffer.

ISR ( USART_RX_vect  )

Interrupt USART_RX_vect.

This interrupt is fired if new data is available in USART receive buffer.

Source: http://www.mikrocontroller.net/articles/AVR-GCC-Tutorial/Der_UART