Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
5979c85d
Commit
5979c85d
authored
Dec 14, 2011
by
Grzegorz Daniluk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrcore_v2: modified base addresses and Makefile for new wrpc
parent
e8a6bb64
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
16 deletions
+10
-16
Makefile
Makefile
+1
-1
board.h
include/board.h
+7
-15
inttypes.h
include/inttypes.h
+2
-0
No files found.
Makefile
View file @
5979c85d
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
...
...
include/board.h
View file @
5979c85d
#ifndef __BOARD_H
#ifndef __BOARD_H
#define __BOARD_H
#define __BOARD_H
#define BASE_
UART 0x608
00
#define BASE_
MINIC 0x400
00
#define BASE_
GPIO 0x60400
#define BASE_
EP 0x40100
#define BASE_
TIMER 0x61000
#define BASE_
SOFTPLL 0x40200
#define BASE_PPSGEN
0x500
00
#define BASE_PPSGEN
0x403
00
#define BASE_
EP 0x20000
#define BASE_
SYSCON 0x40400
#define BASE_
MINIC 0x100
00
#define BASE_
UART 0x405
00
#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"
);
...
...
include/inttypes.h
View file @
5979c85d
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment