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
70e6c863
Commit
70e6c863
authored
Apr 05, 2022
by
Tristan Gingold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makefile: remove automatic include of wrc.h
Adjust files.
parent
cc88f249
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
29 additions
and
15 deletions
+29
-15
Makefile
Makefile
+1
-2
board.c
boards/generic/board.c
+1
-0
ad9520.c
dev/ad9520.c
+1
-0
bb_i2c.c
dev/bb_i2c.c
+3
-2
bb_spi.c
dev/bb_spi.c
+2
-1
fine_pulse_generator.c
dev/fine_pulse_generator.c
+1
-0
iuart.c
dev/iuart.c
+1
-3
sdbfs.c
dev/sdbfs.c
+2
-0
sfp.c
dev/sfp.c
+2
-1
simple_uart.c
dev/simple_uart.c
+1
-0
spi_flash.c
dev/spi_flash.c
+1
-0
syscon.c
dev/syscon.c
+2
-2
wdiags.c
dev/wdiags.c
+3
-3
dump-info.c
dump-info.c
+1
-0
event.c
lib/event.c
+1
-0
events-ptp.c
lib/events-ptp.c
+3
-0
lldp.c
lib/lldp.c
+1
-0
net.c
lib/net.c
+1
-1
cmd_sdb.c
shell/cmd_sdb.c
+1
-0
No files found.
Makefile
View file @
70e6c863
...
...
@@ -142,8 +142,7 @@ obj-$(CONFIG_ARCH_RISCV) += check-error.o
obj-y
+=
system_checks.o
CFLAGS
=
$
(
cflags-y
)
-Wall
-Werror
-Wstrict-prototypes
\
-ffunction-sections
-fdata-sections
-Os
\
-include
include/wrc.h
-ggdb
-ffunction-sections
-fdata-sections
-Os
-ggdb
ldflags-$(CONFIG_LTO)
+=
-flto
...
...
boards/generic/board.c
View file @
70e6c863
#include "board.h"
#include "wrc-debug.h"
#include "dev/bb_spi.h"
#include "dev/bb_i2c.h"
#include "dev/w1.h"
...
...
dev/ad9520.c
View file @
70e6c863
...
...
@@ -18,6 +18,7 @@
* with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "wrc-debug.h"
#include "dev/ad9520.h"
#include "dev/bb_i2c.h"
...
...
dev/bb_i2c.c
View file @
70e6c863
...
...
@@ -7,13 +7,14 @@
*
* Released according to the GNU GPL, version 2 or any later version.
*/
#include <errno.h>
#include "types.h"
#include "board.h"
#include "dev/syscon.h"
#include "dev/bb_i2c.h"
#include "dev/gpio.h"
#include <errno.h>
#include "pp-printf.h"
void
bb_i2c_delay
(
uint32_t
delay
)
{
...
...
dev/bb_spi.c
View file @
70e6c863
...
...
@@ -21,6 +21,7 @@
#include <stdint.h>
#include "board.h"
#include "pp-printf.h"
#include "dev/gpio.h"
#include "dev/bb_spi.h"
...
...
@@ -193,4 +194,4 @@ void bb_spi_test(struct spi_bus *bus)
gen_gpio_out
(
bus
->
pin_mosi
,
1
);
gen_gpio_out
(
bus
->
pin_mosi
,
0
);
}
}
\ No newline at end of file
}
dev/fine_pulse_generator.c
View file @
70e6c863
...
...
@@ -21,6 +21,7 @@
/* fine_pulse-gen - driver for DDS Sync Unit (fine pulse generator) */
#include "board.h"
#include "dev/syscon.h"
#include "hw/wb_fine_pulse_gen.h"
#include "dev/fine_pulse_generator.h"
...
...
dev/iuart.c
View file @
70e6c863
...
...
@@ -20,17 +20,15 @@
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include "board.h"
#include "dev/iuart.h"
// bare-metal version with real HW iuart
#ifdef IUART_PLATFORM_BARE_METAL
#include "board.h"
#include <hw/wb_insn_uart.h>
#include <hw/wb_uart.h>
...
...
dev/sdbfs.c
View file @
70e6c863
...
...
@@ -10,6 +10,8 @@
/* To avoid many #ifdef and associated mess, all headers are included there */
#include "libsdbfs.h"
#include "dev/bb_i2c.h"
#include "dev/i2c_eeprom.h"
#include "storage.h"
/*
...
...
dev/sfp.c
View file @
70e6c863
...
...
@@ -9,11 +9,12 @@
*/
/* SFP Detection / managenent functions */
#include <stdio.h>
#include <inttypes.h>
#include <string.h>
#include <errno.h>
#include "wrc-task.h"
#include "pp-printf.h"
#include "dev/syscon.h"
#include "dev/bb_i2c.h"
#include "dev/gpio.h"
...
...
dev/simple_uart.c
View file @
70e6c863
...
...
@@ -9,6 +9,7 @@
#include <stdint.h>
#include "wrc.h"
#include "board.h"
#include "dev/simple_uart.h"
...
...
dev/spi_flash.c
View file @
70e6c863
...
...
@@ -8,6 +8,7 @@
*/
#include <types.h>
#include "wrc-debug.h"
#include "dev/bb_spi.h"
#include "dev/spi_flash.h"
...
...
dev/syscon.c
View file @
70e6c863
...
...
@@ -7,11 +7,11 @@
* Released according to the GNU GPL, version 2 or any later version.
*/
#include "dev/syscon.h"
#include <errno.h>
#include <string.h>
#include "dev/syscon.h"
#include "pp-printf.h"
#include "dev/gpio.h"
#include "dev/bb_i2c.h"
...
...
dev/wdiags.c
View file @
70e6c863
...
...
@@ -7,14 +7,14 @@
* Released according to the GNU GPL, version 2 or any later version.
*/
#include <errno.h>
#include <string.h>
#include "board.h"
#include "dev/wdiags.h"
#include "wrc-debug.h"
#include <hw/wrc_diags_regs.h>
#include <errno.h>
#include <string.h>
#define WDIAGS_VERSION 2
...
...
dump-info.c
View file @
70e6c863
...
...
@@ -5,6 +5,7 @@
#include <wrc_global.h>
#include <sensors.h>
#include <wrc.h>
#include <wrpc.h>
#include "dump-info.h"
...
...
lib/event.c
View file @
70e6c863
...
...
@@ -9,6 +9,7 @@
#include <stdint.h>
#include "board.h"
#include "event.h"
// fixme: make configurable through BSPs/KConfig
...
...
lib/events-ptp.c
View file @
70e6c863
...
...
@@ -8,6 +8,9 @@
*/
#include <wrpc.h>
#include "board.h"
#include "wrc-debug.h"
#include "wrc-event.h"
#include "event.h"
static
int
prev_ptp_mode
;
...
...
lib/lldp.c
View file @
70e6c863
...
...
@@ -14,6 +14,7 @@
#include <string.h>
#include "wrc.h"
#include "revision.h"
#include "ptpd_netif.h"
#include "lldp.h"
...
...
lib/net.c
View file @
70e6c863
...
...
@@ -8,13 +8,13 @@
*
* Released according to the GNU GPL, version 2 or any later version.
*/
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <stdarg.h>
#include "hal_exports.h"
#include <wrpc.h>
#include "wrc.h"
#include "ptpd_netif.h"
#include "board.h"
...
...
shell/cmd_sdb.c
View file @
70e6c863
...
...
@@ -6,6 +6,7 @@
#include <string.h>
#include <errno.h>
#include "pp-printf.h"
#include "shell.h"
#include "dev/syscon.h"
#include "storage.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