Commit 0a74c14f authored by Alessandro Rubini's avatar Alessandro Rubini

Merge branch 'misc-trivial-fixes'

parents 88d91d86 35b37e2e
......@@ -4,7 +4,7 @@
T=$(mktemp /tmp/wrpc-config.XXXXXX)
configs=$(ls configs)
configs=$(cd configs; echo *_defconfig)
if [ $# -ne 0 ]; then
configs="$*"
fi
......
/*
* This work is part of the White Rabbit project
*
* Released according to the GNU GPL, version 2 or any later version.
*/
#ifndef __BOARD_H
#define __BOARD_H
#include <hw/memlayout.h>
/* Board-specific parameters */
/* WR Core system/CPU clock frequency in Hz */
#define CPU_CLOCK 62500000ULL
/* WR Reference clock period (picoseconds) and frequency (Hz) */
#define REF_CLOCK_PERIOD_PS 8000
#define REF_CLOCK_FREQ_HZ 125000000
/* Baud rate of the builtin UART (does not apply to the VUART) */
#define UART_BAUDRATE 115200ULL
/* Maximum number of simultaneously created sockets */
#define NET_MAX_SOCKETS 4
/* Socket buffer size, determines the max. RX packet size */
#define NET_SKBUF_SIZE 512
/* Number of auxillary clock channels - usually equal to the number of FMCs */
#define NUM_AUX_CLOCKS 1
int board_init();
int board_update();
#endif
......@@ -21,7 +21,7 @@
#define sprintf pp_sprintf
#undef offsetof
#define offsetof(TYPE, MEMBER) ((int) &((TYPE *)0)->MEMBER)
#define offsetof(TYPE, MEMBER) ((long) &((TYPE *)0)->MEMBER)
#undef ARRAY_SIZE
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
......
......@@ -10,9 +10,6 @@
static int cmd_verbose(const char *args[])
{
int v;
v = args[0][0] - '0';
if (args[0])
pp_global_d_flags = pp_diag_parse((char *)args[0]);
pp_printf("PPSI verbosity: %08lx\n", pp_global_d_flags);
......
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