Bluecontroller (BCA8-BTM)
Epsilon
Bluecontroller BCA8-BTM (bluetooth module BTM-222, microcontroller ATmega328P)
Main Page
Files
File List
Globals
All
Files
Functions
Macros
bluecontroller.h
Go to the documentation of this file.
1
15
#ifndef BLUECONTROLLER_H_
16
#define BLUECONTROLLER_H_
17
18
/* Include */
19
#include "
uart.h
"
// Defines F_CPU => important to include before <util/delay.h>
20
#include <inttypes.h>
21
#include <avr/io.h>
22
#include <util/delay.h>
23
24
/* Define (BC=Bluecontroller) */
25
27
#define BC_PIN_LED PINB6
28
29
#define BC_PIN_RESET PINB7
30
#define BC_RESET_PORT PORTB
31
#define BC_RESET_PIN PINB
32
#define BC_RESET_DDR DDRB
33
34
#define BC_PUTC_DELAY 10
35
36
#define BC_DEBUG
37
38
/* Method */
39
void
bt_init
(
void
);
40
void
bt_setut
(
void
);
41
void
bt_reset
(
void
);
42
void
bt_turn_off
(
void
);
43
void
bt_turn_on
(
void
);
44
void
bt_escape_sequence
(
void
);
45
void
bt_putc
(
char
c);
46
void
bt_puts
(
char
* s);
47
void
bt_send_cmd
(
char
* s);
48
//uint8_t bt_check_turn_off(void);
49
void
bt_debug
(
char
* s);
50
void
bt_led_on
(uint8_t i);
51
52
#endif
/* BLUECONTROLLER_H_ */
src
Epsilon
bluecontroller.h
Generated on Sat May 18 2013 13:30:36 for Bluecontroller (BCA8-BTM) by
1.8.3.1