Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 195 → Rev 196

/avr/one-wire-test/one-wire-test.c
0,0 → 1,42
/****************************************************************************
*
* Copyright (c) 2006 Dave Hylands <dhylands@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* Alternatively, this software may be distributed under the terms of BSD
* license.
*
* See README and COPYING for more details.
*
****************************************************************************/
 
#include <avr/io.h>
 
#include "one-wire.h"
#include "Delay.h"
#include "Led.h"
#include "Timer.h"
#include "UART.h"
 
int main(void)
{
InitTimer();
InitUART();
OW_Init();
 
LED_Init( HEARTBEAT );
LED_Off( HEARTBEAT );
 
while( 1 )
{
LED_Toggle( HEARTBEAT );
 
Delay1mSec( 100 );
}
 
return 0;
}
 
/avr/one-wire-test/Config.h
0,0 → 1,35
/****************************************************************************
*
* Copyright (c) 2009 Dave Hylands <dhylands@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* Alternatively, this software may be distributed under the terms of BSD
* license.
*
* See README and COPYING for more details.
*
****************************************************************************/
 
#if !defined( CONFIG_H )
#define CONFIG_H
 
#define CFG_USE_UART0 1
 
#define CFG_UART0_BAUD_RATE 38400
#define CFG_UART0_RX_BUFFER_SIZE 128
#define CFG_UART0_TX_BUFFER_SIZE 128
#define CFG_UART0_LF_TO_CRLF 1
 
#define CFG_ONE_WIRE_PORT PORTD
#define CFG_ONE_WIRE_PIN 0
 
#define CFG_LED_HEARTBEAT_PORT PORTB
#define CFG_LED_HEARTBEAT_BIT 1
#define CFG_LED_HEARTBEAT_ON 1
 
#endif // CONFIG_H
 
 
/avr/one-wire-test/Makefile
0,0 → 1,16
###########################################################################
#
# lcd-robostix Makefile
#
###########################################################################
 
MK_OS = avr
MK_AVR_MCU = m168
MK_AVR_FREQ = 8MHz
MK_AVR_PROGRAMMER ?= BootHost
 
MK_HEX_TARGET = one-wire-test
MK_SRC_FILES = one-wire-test.c one-wire.c UART.c Delay.c Timer.c
 
include ../../rules/mkRules.mk