/*
Diplomova prace : Palubni pocitac

serial_num - obsluha DS2401

Atmega128A 10 MHz XTAL

Autor: Ondrej Lutera

2011/2012

*/

#ifndef SERIAL_NUM_H_INCLUDED
#define SERIAL_NUM_H_INCLUDED

#include <avr/io.h>
#include "ds18lib/onewire.h"
#include "define.h"

#define SN_SIZE 8

#define SN      PC7
#define SN_PIN  PINC
#define SN_PORT PORTC
#define SN_DDR  DDRC

unsigned char snFind(void);     // hledani serioveho cisla PP
void snRead(unsigned char * serialNum);     // cteni serioveho cisla PP

#endif // SERIAL_NUM_H_INCLUDED
