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
31
Issues
31
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
28bde7e2
Commit
28bde7e2
authored
Dec 21, 2016
by
Mattia Rizzi
Committed by
Grzegorz Daniluk
Aug 15, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added support for the external board
parent
4e9a29f2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
board-wrs.h
include/board-wrs.h
+1
-0
gpio-wrs.h
include/gpio-wrs.h
+1
-1
No files found.
include/board-wrs.h
View file @
28bde7e2
...
...
@@ -21,6 +21,7 @@
#define BASE_GPIO 0x10300
#define BASE_TIMER 0x10400
#define BASE_PPS_GEN 0x10500
#define BASE_SPI_EXT_BOARD 0x10700
/* spll parameter that are board-specific */
#define BOARD_DIVIDE_DMTD_CLOCKS 0
...
...
include/gpio-wrs.h
View file @
28bde7e2
...
...
@@ -36,7 +36,7 @@ static inline void gpio_dir(int pin, int val)
__gpio
->
DDR
&=
~
(
1
<<
pin
);
}
static
inline
int
gpio_in
(
int
bank
,
int
pin
)
static
inline
int
gpio_in
(
int
pin
)
{
return
__gpio
->
PSR
&
(
1
<<
pin
)
?
1
:
0
;
}
...
...
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