Commit e42de625 authored by Grzegorz Daniluk's avatar Grzegorz Daniluk

adding missing etherbone files

parent 958090f2
Pipeline #294 failed with stages
in 13 seconds
/*
* This work is part of the White Rabbit project
*
* Copyright (C) 2020 CERN (www.cern.ch)
* Author: Grzegorz Daniluk <grzegorz.daniluk@cern.ch>
*
* Released according to the GNU LGPL, version 2.1 or any later version.
*/
#include "hw/etherbone-config.h"
void eb_setIP(unsigned char *IP)
{
volatile unsigned int *eb_ip =
(unsigned int *)(BASE_ETHERBONE_CFG + EB_IPV4);
unsigned int ip;
ip = (IP[0] << 24) | (IP[1] << 16) | (IP[2] << 8) | (IP[3]);
while (*eb_ip != ip)
*eb_ip = ip;
}
/*
* This work is part of the White Rabbit project
*
* Released according to the GNU GPL, version 2 or any later version.
*/
#ifndef __ETHERBONE_H__
#define __ETHERBONE_H__
void eb_setIP(unsigned char *IP);
#endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment