Publish for the JRO Radar Controller.

Dependents:   JRO_CR2 frdm_test

Fork of jro by Miguel Urco

Committer:
joaquinbvw
Date:
Mon Mar 14 19:38:22 2016 +0000
Revision:
6:aa70d2640f18
Parent:
5:6500be930b36
CR2 first attempt.

Who changed what in which revision?

UserRevisionLine numberNew contents of line
miguelcordero191 5:6500be930b36 1 #ifndef UTILS_ETH
miguelcordero191 5:6500be930b36 2 #define UTILS_ETH
miguelcordero191 5:6500be930b36 3
miguelcordero191 5:6500be930b36 4 #include "FreescaleIAP.h"
miguelcordero191 5:6500be930b36 5
miguelcordero191 5:6500be930b36 6 #define MAX_IP_LEN 16
miguelcordero191 5:6500be930b36 7
miguelcordero191 5:6500be930b36 8 #define IP_INI "192.168.7.2"; // IP
miguelcordero191 5:6500be930b36 9 #define MASK_INI "255.255.255.0"; // MASK
miguelcordero191 5:6500be930b36 10 #define GATEWAY_INI "0.0.0.0"; // GATEWAY
miguelcordero191 5:6500be930b36 11 //INTERNAL FLASH
miguelcordero191 5:6500be930b36 12 #define FLASH_FULL 0xAA
miguelcordero191 5:6500be930b36 13
miguelcordero191 5:6500be930b36 14 int numberOfDigits(int x);
miguelcordero191 5:6500be930b36 15 int isNumber(char* str);
miguelcordero191 5:6500be930b36 16 int splitstr(char *, const char *, char parts[][MAX_IP_LEN]);
miguelcordero191 5:6500be930b36 17 int validateIp(char* str);
miguelcordero191 5:6500be930b36 18 int splitIpConf(char* str, char *_ip, char *_mask, char *_gateway);
miguelcordero191 5:6500be930b36 19
miguelcordero191 5:6500be930b36 20 int eraseIpConfig();
miguelcordero191 5:6500be930b36 21 int saveIpConfig(char *ip, char *mask, char *gateway);
miguelcordero191 5:6500be930b36 22 int readIpConfig(char *_ip, char *_mask, char *_gateway);
miguelcordero191 5:6500be930b36 23
miguelcordero191 5:6500be930b36 24 #endif