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
7
Merge Requests
7
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
e951ba22
Commit
e951ba22
authored
May 04, 2023
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
boards/generic: rename board.h, extract board-decl.h
parent
54f83a74
Pipeline
#4503
passed with stage
in 3 minutes and 14 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
9 deletions
+20
-9
board-config.h
boards/generic/board-config.h
+3
-5
board-decl.h
boards/generic/board-decl.h
+12
-0
board.c
boards/generic/board.c
+1
-0
board.c
boards/spec_silabs/board.c
+1
-0
board.h
include/board.h
+3
-4
No files found.
boards/generic/board.h
→
boards/generic/board
-config
.h
View file @
e951ba22
...
...
@@ -4,8 +4,8 @@
* Released according to the GNU GPL, version 2 or any later version.
*/
#ifndef __BOARD_
WR
C_H
#define __BOARD_
WR
C_H
#ifndef __BOARD_
CONFIG_GENERI
C_H
#define __BOARD_
CONFIG_GENERI
C_H
/*
* This is meant to be automatically included by the Makefile,
* when wrpc-sw is build for wrc (node) -- as opposed to wrs (switch)
...
...
@@ -61,6 +61,4 @@
#define EEPROM_STORAGE 0
int
wrc_generic_board_storage_init
(
void
);
#endif
/* __BOARD_WRC_H */
#endif
/* __BOARD_CONFIG_GENERIC_H */
boards/generic/board-decl.h
0 → 100644
View file @
e951ba22
/*
* This work is part of the White Rabbit project
*
* Released according to the GNU GPL, version 2 or any later version.
*/
#ifndef __BOARD_DECL_H
#define __BOARD_DECL_H
int
wrc_generic_board_storage_init
(
void
);
#endif
/* __BOARD_DECL_H */
boards/generic/board.c
View file @
e951ba22
...
...
@@ -4,6 +4,7 @@
#include "dev/syscon.h"
#include "dev/endpoint.h"
#include "storage.h"
#include "board-decl.h"
int
wrc_board_early_init
(
void
)
{
...
...
boards/spec_silabs/board.c
View file @
e951ba22
...
...
@@ -5,6 +5,7 @@
#include "dev/endpoint.h"
#include "dev/si57x.h"
#include "storage.h"
#include "../generic/board-decl.h"
#include <wrc-debug.h>
...
...
include/board.h
View file @
e951ba22
...
...
@@ -34,13 +34,12 @@
#define BASE_CLOCK_MONITOR (DEV_BASE + 0xa00)
#define BASE_AUXWB (DEV_BASE + 0x8000)
/* Board configuration. */
#if defined(CONFIG_TARGET_GENERIC_PHY_8BIT) || defined(CONFIG_TARGET_GENERIC_PHY_16BIT) || defined(CONFIG_TARGET_SPEC_SILABS)
# include "boards/generic/board.h"
# include "boards/generic/board
-config
.h"
#elif defined(CONFIG_TARGET_WR_SWITCH)
# include "boards/wr-switch/board.h"
#elif defined(CONFIG_TARGET_AFCZ_V1)
# include "boards/afcz/board.h"
#elif defined(CONFIG_TARGET_AFCZ_V2)
#elif defined(CONFIG_TARGET_AFCZ_V1) || defined(CONFIG_TARGET_AFCZ_V2)
# include "boards/afcz/board.h"
#elif defined(CONFIG_TARGET_ERTM14)
# include "boards/ertm14/board.h"
...
...
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