Button Interface.
More...
#include <avr/io.h>
#include <avr/interrupt.h>
#include <util/delay.h>
#include "button.h"
#include "uart.h"
Go to the source code of this file.
Defines |
#define | _BUTTON_C_ 1 |
Functions |
void | button_init (void) |
| Initialise the Button Interface.
|
uint8_t | button_read (void) |
void | button_process (void) |
| Button Process.
|
Detailed Description
Button Interface.
- Author:
- Dominic Rathje (dominic.rathje@uni-ulm.de)
- Version:
- 1.0
- Note:
- Compiler : WinAVR 20100110
- Supported devices : ATMega8
Definition in file button.c.
Function Documentation
void button_init |
( |
void |
) |
|
Initialise the Button Interface.
Configures the Port Registers. Call this function at the beginning of your main function.
Definition at line 21 of file button.c.
void button_process |
( |
void |
) |
|
Button Process.
Reads the Ports and sends the according character to the Host on any pinchange Call this function regularly in main loop.
Definition at line 58 of file button.c.