led.c
Go to the documentation of this file.
00001 /***************************************************************************
00002 ***  Fraunhofer IPA 
00003 ***  Robotersysteme 
00004 ***  Projekt: 3D cartography demonstrator
00005 ****************************************************************************
00006 ****************************************************************************
00007 ***  Autor: Julio Sagardoy (goa-js)
00008 ***************************************************************************/
00009 
00017 
00018 #include <avr/io.h>
00019 
00021 #include "utils.h"
00022 
00023 inline void led_grn_off() {
00024         BITCLR(PORTA,PA5);
00025 }
00026 inline void led_grn_on() {
00027         BITSET(PORTA,PA5);      
00028 }
00029 inline void led_red_off() {
00030         BITCLR(PORTA,PA4);
00031 }
00032 inline void led_red_on() {
00033         BITSET(PORTA,PA4);
00034 }
00035 
00036 void led_init()
00037 {
00038         BITSET(DDRA,4);         //Set PINA4 as output
00039         BITSET(DDRA,5);         //Set PINA5 as output
00040 }


cob_3d_mapping_demonstrator
Author(s): Georg Arbeiter
autogenerated on Wed Aug 26 2015 11:03:46