Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
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
White Rabbit Switch - Software
Commits
8ec75a77
Commit
8ec75a77
authored
Mar 08, 2012
by
Tomasz Wlostowski
Committed by
Alessandro Rubini
Jul 29, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rt: started porting the main PLL (wip)
parent
cff3483e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
Makefile
rt/Makefile
+5
-2
main.c
rt/main.c
+4
-2
No files found.
rt/Makefile
View file @
8ec75a77
CROSS_COMPILE
?=
/opt/gcc-lm32/bin/lm32-elf-
OBJS
=
main.o dev/uart.o dev/timer.o lib/mprintf.o dev/ad9516.o
OBJS
=
main.o dev/uart.o dev/timer.o lib/mprintf.o dev/ad9516.o
dev/softpll_ng.o
CFLAGS_PLATFORM
=
-mmultiply-enabled
-mbarrel-shift-enabled
LDFLAGS_PLATFORM
=
-mmultiply-enabled
-mbarrel-shift-enabled
-nostdlib
-T
target/lm32/ram.ld
...
...
@@ -9,7 +9,7 @@ OBJS_PLATFORM=target/lm32/crt0.o target/lm32/irq.o
CC
=
$(CROSS_COMPILE)
gcc
OBJCOPY
=
$(CROSS_COMPILE)
objcopy
OBJDUMP
=
$(CROSS_COMPILE)
objdump
CFLAGS
=
$(CFLAGS_PLATFORM)
-ffunction-sections
-fdata-sections
-Os
-Iinclude
-include
include/trace.h
CFLAGS
=
$(CFLAGS_PLATFORM)
-ffunction-sections
-fdata-sections
-Os
-Iinclude
-include
include/trace.h
-Wall
LDFLAGS
=
$(LDFLAGS_PLATFORM)
-ffunction-sections
-fdata-sections
-Os
-Iinclude
SIZE
=
$(CROSS_COMPILE)
size
OBJS
+=
$(OBJS_PLATFORM)
...
...
@@ -24,6 +24,9 @@ all: $(OBJS)
clean
:
rm
-f
$(OBJS)
$(OUTPUT)
.elf
$(OUTPUT)
.bin
$(OUTPUT)
.ram
scp
:
all
scp rt_cpu.bin root@pts-test03.cern.ch:/tftpboot/192.168.1.2/root
%.o
:
%.c
${
CC
}
$(CFLAGS)
$(LIB_DIR)
-c
$^
-o
$@
rt/main.c
View file @
8ec75a77
...
...
@@ -2,16 +2,18 @@
#include "uart.h"
#include "timer.h"
void
_irq_entry
()
{};
//
void _irq_entry() {};
main
()
{
uart_init
();
ad9516_init
();
spll_test
();
for
(;;)
{
mprintf
(
"Ping
!
\n
"
);
mprintf
(
"Ping
[lock %d]!
\n
"
,
spll_check_lock
()
);
timer_delay
(
TICS_PER_SECOND
);
}
}
\ No newline at end of file
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