clock.h
36 lines
| 835 B
| text/x-c
|
CLexer
|
r132 | /* | ||
* clock.h | ||||
* | ||||
* Created on: Nov 4, 2014 | ||||
* Author: Alan Aguilar Sologuren | ||||
*/ | ||||
#ifndef CLOCK_H_ | ||||
#define CLOCK_H_ | ||||
#include <Arduino.h> | ||||
#include <pins_arduino.h> | ||||
|
r140 | #include <Wire.h> | ||
#include <Time.h> | ||||
|
r132 | #include <te_structs.h> | ||
namespace te_clock { | ||||
#define IDT5V19_CTRL_ID 0x6A | ||||
//pin ports to configure clock generator | ||||
#define SD_OE A10 /*!< PK2 AVR <> A10 Arduino */ | ||||
#define SEL0 A11 /*!< PK3 AVR <> A11 Arduino */ | ||||
#define SEL1 A12 /*!< PK4 AVR <> A12 Arduino */ | ||||
#define SEL2 A13 /*!< PK5 AVR <> A13 Arduino */ | ||||
#define CLKSEL A14 /*!< PK6 AVR <> A14 Arduino */ | ||||
#define IDT5V19_MAX_ADD 0x37 /*!< Direccion del final de registros */ | ||||
uint8_t read(uint8_t addr, uint8_t buf[], uint8_t cnt); | ||||
uint8_t write(uint8_t addr, uint8_t data); | ||||
uint8_t write(uint8_t addr, const uint8_t *pbuf,uint8_t cnt); | ||||
} | ||||
#endif /* CLOCK_H_ */ | ||||