diff --git a/src/energenie/drv/build_rpi b/src/energenie/drv/build_rpi index eea3818..b7076c2 100755 --- a/src/energenie/drv/build_rpi +++ b/src/energenie/drv/build_rpi @@ -39,8 +39,7 @@ # radio spi .so library on Raspberry Pi gcc -Wall -shared -o radio_rpi.so -fPIC radio.c hrfm69.c spis.c gpio_rpi.c delay_posix.c -nm -D radio_rpi.so - -## cp radio_rpi.so .. +##nm -D radio_rpi.so +cp radio_rpi.so .. # END diff --git a/src/energenie/drv/delay_posix.c b/src/energenie/drv/delay_posix.c index 6f5bd4b..824d9fc 100644 --- a/src/energenie/drv/delay_posix.c +++ b/src/energenie/drv/delay_posix.c @@ -5,6 +5,7 @@ #include #include +#include #include "system.h" #include "delay.h" diff --git a/src/energenie/radio2.py b/src/energenie/radio2.py index e6d3888..8d3d0b0 100644 --- a/src/energenie/radio2.py +++ b/src/energenie/radio2.py @@ -24,7 +24,7 @@ from os import path mydir = path.dirname(path.abspath(__file__)) -libradio = ctypes.cdll.LoadLibrary(mydir + "/drv/" + LIBNAME) +libradio = ctypes.cdll.LoadLibrary(mydir + "/" + LIBNAME) radio_init_fn = libradio["radio_init"] radio_reset_fn = libradio["radio_reset"] radio_get_ver_fn = libradio["radio_get_ver"] diff --git a/src/energenie/radio_rpi.so b/src/energenie/radio_rpi.so new file mode 100755 index 0000000..3d4902a --- /dev/null +++ b/src/energenie/radio_rpi.so Binary files differ