Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
RF24
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
RF24
Commits
891becdf
Commit
891becdf
authored
Mar 02, 2016
by
mz-fuzzy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure - cli parameters
cpu optimalization improvements
parent
3b138276
Changes
9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
277 additions
and
92 deletions
+277
-92
Makefile
Makefile
+1
-1
RPi/readme.md
RPi/readme.md
+0
-2
configure
configure
+253
-64
examples_linux/Makefile
examples_linux/Makefile
+18
-19
pyRF24/crossunixccompiler.py
pyRF24/crossunixccompiler.py
+0
-0
pyRF24/pyRF24.cpp
pyRF24/pyRF24.cpp
+0
-0
pyRF24/readme.md
pyRF24/readme.md
+0
-0
pyRF24/setup.py
pyRF24/setup.py
+1
-1
utility/SPIDEV/includes.h
utility/SPIDEV/includes.h
+4
-5
No files found.
Makefile
View file @
891becdf
...
...
@@ -69,7 +69,7 @@ install-libs:
@
if
(
test
!
-d
$(PREFIX)
/lib
)
;
then
mkdir
-p
$(PREFIX)
/lib
;
fi
@
install
-m
0755
${LIBNAME}
${LIB_DIR}
@
ln
-sf
${LIB_DIR}
/
${LIBNAME}
${LIB_DIR}
/
${LIBNAME}
.1
#
@
${LDCONFIG}
@
${LDCONFIG}
upload-libs
:
@
echo
"[Uploading Libs to
${REMOTE}
]"
...
...
RPi/readme.md
deleted
100644 → 0
View file @
3b138276
Python Wrapper for RF24
See http://tmrh20.github.io/RF24 for more information
configure
View file @
891becdf
This diff is collapsed.
Click to expand it.
examples_linux/Makefile
View file @
891becdf
#############################################################################
#
# Makefile for librf24 examples on
Raspberry Pi
# Makefile for librf24 examples on
Linux
#
# License: GPL (General Public License)
# Author: gnulnulf <arco@appeltaart.mine.nu>
...
...
@@ -9,41 +9,40 @@
# Description:
# ------------
# use make all and make install to install the examples
# You can change the install directory by editing the prefix line
#
prefix
:=
/usr/local
# Detect the Raspberry Pi by the existence of the bcm_host.h file
BCMLOC
=
/opt/vc/include/bcm_host.h
ARCH
=
armv6zk
ifeq
"$(shell uname -m)" "armv7l"
ARCH
=
armv7-a
ifeq
($(wildcard ../Makefile.inc), )
$(error
Configuration
not
found.
Run
./configure
first)
endif
ifneq
("$(wildcard $(BCMLOC))","")
# The recommended compiler flags for the Raspberry Pi
CCFLAGS
=
-Ofast
-mfpu
=
vfp
-mfloat-abi
=
hard
-march
=
$(ARCH)
-mtune
=
arm1176jzf-s
endif
include
../Makefile.inc
# define all programs
#PROGRAMS = scanner pingtest gettingstarted
PROGRAMS
=
gettingstarted gettingstarted_call_response transfer pingpair_dyn
SOURCES
=
${PROGRAMS:=.cpp}
all
:
${PROGRAMS}
${PROGRAMS}
:
${SOURCES}
g++
${CCFLAGS}
-Wall
-I
../
-lrf24-bcm
$@
.cpp
-o
$@
${CXX}
${CFLAGS}
-I
${HEADER_DIR}
/..
-I
..
-L
${LIB_DIR}
-lrf24
$@
.cpp
-o
$@
clean
:
rm
-rf
$(PROGRAMS)
install
:
all
test
-d
$(prefix)
||
mkdir
$(prefix)
test
-d
$(prefix)
/bin
||
mkdir
$(prefix)
/bin
mkdir
-p
$(EXAMPLES_DIR)
for
prog
in
$(PROGRAMS)
;
do
\
install
-m
0755
$$
prog
$(EXAMPLES_DIR)
;
\
done
upload
:
all
@
echo
"[Uploading examples to
${REMOTE}
:
${REMOTE_EXAMPLES_DIR}
]"
@
ssh
-q
-t
-p
${REMOTE_PORT}
${REMOTE}
"mkdir -p
${REMOTE_EXAMPLES_DIR}
"
@
ssh
-q
-t
-p
${REMOTE_PORT}
${REMOTE}
"mkdir -p /tmp/RF24_examples"
@
scp
-q
-P
${REMOTE_PORT}
${PROGRAMS}
${REMOTE}
:/tmp/RF24_examples
for
prog
in
$(PROGRAMS)
;
do
\
install
-m
0755
$$
prog
$(prefix)
/bin
;
\
ssh
-q
-t
-p
${REMOTE_PORT}
${REMOTE}
"sudo install -m 0755 /tmp/RF24_examples/
$
${prog}
${REMOTE_EXAMPLES_DIR}
"
;
\
done
@
ssh
-q
-t
-p
${REMOTE_PORT}
${REMOTE}
"rm -rf /tmp/RF24_examples"
.PHONY
:
install
.PHONY
:
install
upload
RPi/
pyRF24/crossunixccompiler.py
→
pyRF24/crossunixccompiler.py
View file @
891becdf
File moved
RPi/
pyRF24/pyRF24.cpp
→
pyRF24/pyRF24.cpp
View file @
891becdf
File moved
RPi/
pyRF24/readme.md
→
pyRF24/readme.md
View file @
891becdf
File moved
RPi/
pyRF24/setup.py
→
pyRF24/setup.py
View file @
891becdf
...
...
@@ -21,7 +21,7 @@ if sys.version_info >= (3,):
else
:
BOOST_LIB
=
'boost_python'
process_configparams
()
#
process_configparams()
crossunixccompiler
.
register
()
# module_RF24 = distutils.core.Extension('RF24',
...
...
utility/SPIDEV/includes.h
View file @
891becdf
...
...
@@ -2,8 +2,7 @@
#ifndef __RF24_INCLUDES_H__
#define __RF24_INCLUDES_H__
#define RF24_BBB
#include "BBB/RF24_arch_config.h"
#include "BBB/interrupt.h"
#endif
\ No newline at end of file
#define RF24_SPIDEV
#include "SPIDEV/RF24_arch_config.h"
#include "SPIDEV/interrupt.h"
#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