AWOL:
Why haven't you posted the software you're trying to compile?
(Your code)
is this it ??
// KmpDinoEthernet.h
// Company: KMP Electronics Ltd, Bulgaria
// Web: http://kmpelectronics.eu/
// License: See the GNU General Public License for more details at The GNU General Public License v3.0 - GNU Project - Free Software Foundation
// Supported boards:
// KMP DiNo II NETBOARD V1.0 (Products - developed and produced from us - KMP Electronics Ltd)
// Description:
// Header for KMP Dino Ethernet board.
// Version: 1.0.0
// Date: 17.01.2014
// Author: Plamen Kovandjiev p.kovandiev@kmpelectronics.eu
#ifndef KMPDINOETHERNET_H_INCLUDED
#define KMPDINOETHERNET_H_INCLUDED
#include <Arduino.h>
// Count of inputs and outputs.
#define RELAY_COUNT 4
#define OPTOIN_COUNT 4
// Output pins.
#define Relay1Pin 0x04
#define Relay2Pin 0x0C // 12
#define Relay3Pin 0x0B // 11
#define Relay4Pin 0x07
// Input pins.
#define OptoIn1Pin A2
#define OptoIn2Pin A3
#define OptoIn3Pin A4
#define OptoIn4Pin A5
// 1 Wire pin.
#define OneWirePin 0X05
// Status led pin.
#define StatusLedPin 0x0D // 13
// W5200 pins.
#define W5200PowerPin 0x09
#define W5200ResetPin 0x0A // 10
// RS485 pins.
#define RS485TXControlPin 0x03
#define RS485TXPin 0x01
#define RS485RXPin 0x00
#define RS485Transmit HIGH
#define RS485Receive LOW
// Store relay pins for easy find.
const int RelayPins[RELAY_COUNT] =
{Relay1Pin, Relay2Pin, Relay3Pin, Relay4Pin};
// Relays enum.
enum Relay {
Relay1 = 0x00,
Relay2 = 0x01,
Relay3 = 0x02,
Relay4 = 0x03,
};
// For a simple enumerate.
const Relay RelayList[RELAY_COUNT] =
{Relay1, Relay2, Relay3, Relay4};
// Relay or input status.
enum Status {
NONE = -1,
OFF = 0,
ON = 1
};
// Store input pins for easy find.
const int OptoInPins[OPTOIN_COUNT] =
{OptoIn1Pin, OptoIn2Pin, OptoIn3Pin, OptoIn4Pin};
// Input enum.
enum OptoIn {
OptoIn1 = 0x00,
OptoIn2 = 0x01,
OptoIn3 = 0x02,
OptoIn4 = 0x03,
};
// For a simple enumerate.
const OptoIn OptoInList[RELAY_COUNT] =
{OptoIn1, OptoIn2, OptoIn3, OptoIn4};
///
/// Init Dino board. Set pins, start W5200.
///
void DinoInit();
///
/// Set relay new status.
///
/// Relay number from 0 to RELAY_COUNT - 1
/// New status relay.
void SetRelayStatus(int relayNumber, Status status);
///
/// Set relay new status.
///
/// Relay number from 0 to RELAY_COUNT - 1
/// New status relay.
/// true - On, false = Off.
void SetRelayStatus(int relayNumber, bool status);
///
/// Set relay new status.
///
/// Relay from enum. Relay1, Relay2 ...
/// New status relay.
void SetRelayStatus(Relay relay, Status status);
///
/// Set relay new status.
///
/// Relay from enum. Relay1, Relay2 ...
/// New status relay.
/// true - On, false = Off.
void SetRelayStatus(Relay relay, bool status);
///
/// Set all relays On.
///
void SetAllRelaysOn();
///
/// Set all relays Off.
///
void SetAllRelaysOff();
///
/// Get relay status.
///
/// Relay number from 0 to RELAY_COUNT - 1
/// If result equal - true relay is On, else Off.
/// if relayNumber out of range.
bool GetRelayStatus(int relayNumber);
///
/// Get relay status.
///
/// Relay from enum. Relay1, Relay2 ...
/// If result equal - true relay is On, else Off.
bool GetRelayStatus(Relay relay);
///
/// Get opto input status.
///
/// Opto input number from 0 to OPTOIN_COUNT - 1
/// If result equal - true opto input is On, else Off.
/// if optoInNumber out of range.
bool GetOptoInStatus(int optoInNumber);
///
/// Get opto input status.
///
/// Opto input enum. OptoIn1, OptoIn2...
/// If result equal - true opto input is On, else Off.
bool GetOptoInStatus(OptoIn optoIn);
///
/// Get status status LED.
///
/// If result equal - true LED On, else Off.
bool GetStatusLed();
///
/// Set status LED new status.
///
/// New status LED.
/// true - On, false = Off.
void StatusLed(bool on);
///
/// Set status LED On.
///
void OnStatusLed();
///
/// Set status LED Off.
///
void OffStatusLed();
///
/// Set status LED inverse state.
/// On -> Off, Off -> On.
///
void NotStatusLed();
///
/// Set power UP Ethernet chip W5210.
/// StandBy -> PowerUp.
///
void W5200PowerUp();
///
/// Set Ethernet chip W5210 to Stand by.
/// PowerUp -> StandBy.
///
void W5200PowerStandBy();
///
/// Set Reset Up Ethernet chip W5210.
/// No reset -> Reset.
///
void W5200ResetUp();
///
/// Set release Reset Ethernet chip W5210.
/// Reset -> Start chip.
///
void W5200ResetDown();
///
/// Connect to RS485. With default configuration SERIAL_8N1.
///
/// Boud rate.
/// Values: 75, 110, 300, 1200, 2400, 4800, 9600, 19200, 38400, 57600 and 115200 bit/s.
void RS485Begin(unsigned long boud);
///
/// Connect to RS485.
///
/// Boud rate.
/// Values: 75, 110, 300, 1200, 2400, 4800, 9600, 19200, 38400, 57600 and 115200 bit/s.
/// Configuration - data bits, parity, stop bits.
/// Values: SERIAL_5N1, SERIAL_6N1, SERIAL_7N1, SERIAL_8N1 (the default), SERIAL_5N2, SERIAL_6N2, SERIAL_7N2, SERIAL_8N2, SERIAL_5E1, SERIAL_6E1, SERIAL_7E1, SERIAL_8E1, SERIAL_5E2, SERIAL_6E2, SERIAL_7E2, SERIAL_8E2, SERIAL_5O1, SERIAL_6O1, SERIAL_7O1, SERIAL_8O1, SERIAL_5O2, SERIAL_6O2, SERIAL_7O2, SERIAL_8O2
///
void RS485Begin(unsigned long boud, uint8_t config);
///
/// Close connection to RS485.
///
void RS485End();
///
/// Transmit data to RS485.
///
/// Data to transmit.
/// Transmitted bytes.
size_t RS485Write(uint8_t data);
///
/// Transmit text to RS485.
///
/// Text data to transmit.
/// Transmitted bytes.
size_t RS485Write(char* data);
///
/// Read received data from RS485.
///
/// Received byte.
/// If result = -1 - buffer is empty, no data
/// if result > -1 - valid byte to read.
int RS485Read();
///
/// Read received data from RS485. Reading data with delay and repeating the operation for all data to arrive.
///
/// Wait delay if not available to read byte in milliseconds. Default 10.
/// Repeat time if not read bytes. Default 10.
/// Received byte.
/// If result = -1 - buffer is empty, no data
/// if result > -1 - valid byte to read.
int RS485Read(unsigned long delayWait, uint8_t repeatTime);
///
/// Convert int to string.
///
/// Integer to convert to text.
/// Converted to text integer.
char* IntToChars(int i);
///
/// Convert int to string.
///
/// Float to convert to text.
/// Determines the number of digits after the decimal sign.
/// Converted to text float.
char* FloatToChars(float f, unsigned char precision);
///
/// Convert char to int.
///
/// Char to convert to integer.
/// '0' -> 0, '1' -> 1, ... maximum '9' -> 9.
/// Converted to int char.
int CharToInt(char c);
#endif