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
af7628db
Commit
af7628db
authored
Mar 03, 2021
by
Tomasz Wlostowski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
silly risc-v 'hello world' app
parent
0ec7a6ec
Pipeline
#1015
failed with stage
in 34 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
Makefile
Makefile
+1
-1
wrc_main.c
wrc_main.c
+15
-2
No files found.
Makefile
View file @
af7628db
...
...
@@ -143,7 +143,7 @@ ifeq ($(GIT_USR),)
GIT_USR
=
$(
shell
whoami
)
@
$(
shell
hostname
)
endif
all
:
tools
$(OUTPUT).elf $(arch-files-y)
all
:
$(OUTPUT).elf $(arch-files-y)
.PRECIOUS
:
%.elf %.bin
.PHONY
:
all tools clean gitmodules $(PPSI)/ppsi.o extest liblinux
...
...
wrc_main.c
View file @
af7628db
...
...
@@ -69,14 +69,22 @@ struct wr_endpoint_device wrc_endpoint_dev;
int
wrc_wr_diags
(
void
);
// fixme: move the header
static
void
wrc_initialize
(
void
)
{
#ifdef CONFIG_USE_SDB
sdb_find_devices
();
//
sdb_find_devices();
#endif
console_init
();
timer_init
(
1
);
for
(;;)
{
pp_printf
(
"Hello World!
\n
"
);
}
return
;
spll_very_init
();
usleep_init
();
netif_init
();
...
...
@@ -332,7 +340,10 @@ void disable_irq() {};
int
main
(
void
)
__attribute__
((
weak
));
int
main
(
void
)
{
check_reset
();
wrc_initialize
();
#if 0
//check_reset();
create_tasks();
/* initialization of individual tasks */
...
...
@@ -346,4 +357,6 @@ int main(void)
/* better safe than sorry */
check_stack();
}
#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