Commit 5979c85d authored by Grzegorz Daniluk's avatar Grzegorz Daniluk

wrcore_v2: modified base addresses and Makefile for new wrpc

parent e8a6bb64
PLATFORM = lm32 PLATFORM = lm32
OBJS_WRC = wrc_main.o dev/uart.o dev/endpoint.o dev/minic.o dev/pps_gen.o dev/timer.o dev/softpll.o lib/mprintf.o monitor/monitor.o dev/ep_pfilter.o dev/dna.o OBJS_WRC = wrc_main.o dev/uart.o dev/endpoint.o dev/minic.o dev/pps_gen.o dev/syscon.o dev/softpll.o lib/mprintf.o monitor/monitor.o dev/ep_pfilter.o dev/dna.o
D = ptp-noposix D = ptp-noposix
PTPD_CFLAGS = -ffreestanding -DPTPD_FREESTANDING -DWRPC_EXTRA_SLIM -DPTPD_MSBF -DPTPD_DBG PTPD_CFLAGS = -ffreestanding -DPTPD_FREESTANDING -DWRPC_EXTRA_SLIM -DPTPD_MSBF -DPTPD_DBG
......
#ifndef __BOARD_H #ifndef __BOARD_H
#define __BOARD_H #define __BOARD_H
#define BASE_UART 0x60800 #define BASE_MINIC 0x40000
#define BASE_GPIO 0x60400 #define BASE_EP 0x40100
#define BASE_TIMER 0x61000 #define BASE_SOFTPLL 0x40200
#define BASE_PPSGEN 0x50000 #define BASE_PPSGEN 0x40300
#define BASE_EP 0x20000 #define BASE_SYSCON 0x40400
#define BASE_MINIC 0x10000 #define BASE_UART 0x40500
#define BASE_SOFTPLL 0x40000 #define BASE_ONEWIRE 0x40600
#define CPU_CLOCK 62500000ULL #define CPU_CLOCK 62500000ULL
#define UART_BAUDRATE 115200ULL /* not a real UART */ #define UART_BAUDRATE 115200ULL /* not a real UART */
#define GPIO_PIN_LED_LINK 0
#define GPIO_PIN_LED_STATUS 1
#define GPIO_PIN_SCL_OUT 2
#define GPIO_PIN_SDA_OUT 3
#define GPIO_PIN_SDA_IN 4
#define GPIO_PIN_BTN1 5
#define GPIO_PIN_BTN2 6
static inline int delay(int x) static inline int delay(int x)
{ {
while(x--) asm volatile("nop"); while(x--) asm volatile("nop");
......
...@@ -11,4 +11,6 @@ typedef signed short int16_t; ...@@ -11,4 +11,6 @@ typedef signed short int16_t;
typedef signed int int32_t; typedef signed int int32_t;
typedef signed long long int64_t; typedef signed long long int64_t;
#define UINT32_MAX 4294967295U
#endif #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