raspberry pi fixes
This commit is contained in:
parent
e016a52459
commit
ee76b25ba3
|
@ -26,7 +26,7 @@ OUT_PLOTTY = $(PATH_BIN)/plotty
|
||||||
OUT_DOC = ../../docs/html
|
OUT_DOC = ../../docs/html
|
||||||
|
|
||||||
# compiling & linking parameters
|
# compiling & linking parameters
|
||||||
CFLAGS = -std=c++17 -O3 -Wall -Wextra -fPIC
|
CFLAGS = -std=c++14 -O3 -Wall -Wextra -fPIC
|
||||||
LDFLAGS_DRV = -lcurses -lpthread
|
LDFLAGS_DRV = -lcurses -lpthread
|
||||||
LDFLAGS_CLI = $(LDFLAGS_DRV) -lb15fdrv
|
LDFLAGS_CLI = $(LDFLAGS_DRV) -lb15fdrv
|
||||||
|
|
||||||
|
|
4
control/src/commit_hash.h
Normal file
4
control/src/commit_hash.h
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#ifndef COMMIT_HASH_H
|
||||||
|
#define COMMIT_HASH_H
|
||||||
|
const char COMMIT_HASH[] = "e016a52459314099549511bb1fed60b3e8f58fa3";
|
||||||
|
#endif // COMMIT_HASH_H
|
|
@ -78,7 +78,14 @@ void ViewMonitor::worker()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
||||||
|
#ifdef __arm__
|
||||||
|
// Raspberry Pi is much slower
|
||||||
|
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
|
||||||
|
#else
|
||||||
|
// normal PC is faster
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
std::this_thread::sleep_for(std::chrono::milliseconds(100));
|
||||||
|
#endif
|
||||||
|
|
||||||
uint8_t be0 = drv.digitalRead0();
|
uint8_t be0 = drv.digitalRead0();
|
||||||
uint8_t be1 = drv.digitalRead1();
|
uint8_t be1 = drv.digitalRead1();
|
||||||
|
|
|
@ -19,7 +19,7 @@ PROGRAMMER = avrispmkII
|
||||||
OUTPUT = b15f.elf
|
OUTPUT = b15f.elf
|
||||||
HEX = b15f.hex
|
HEX = b15f.hex
|
||||||
MCU = atmega1284p
|
MCU = atmega1284p
|
||||||
CFLAGS = -Wall -Wextra -std=c++14 -O3 -mmcu=$(MCU) -DF_CPU=$(F_CPU) $(DEBUG)
|
CFLAGS = -Wall -Wextra -std=c++11 -O3 -mmcu=$(MCU) -DF_CPU=$(F_CPU) $(DEBUG)
|
||||||
LDFLAGS =
|
LDFLAGS =
|
||||||
OBJECTS = main.o spi.o mcp23s17.o tlc5615.o adu.o selftest.o global_vars.o usart.o request_handlers.o interrupts.o pwm.o servo.o
|
OBJECTS = main.o spi.o mcp23s17.o tlc5615.o adu.o selftest.o global_vars.o usart.o request_handlers.o interrupts.o pwm.o servo.o
|
||||||
|
|
||||||
|
|
2
install
2
install
|
@ -10,7 +10,7 @@ udev_rule="SUBSYSTEM!=\"usb_device\", ACTION!=\"add\", GOTO=\"avrisp_end\"\n\nAT
|
||||||
udev_path="/etc/udev/rules.d/60-olimex.rules"
|
udev_path="/etc/udev/rules.d/60-olimex.rules"
|
||||||
mcu_cfg="/etc/b15f.mcu"
|
mcu_cfg="/etc/b15f.mcu"
|
||||||
declare -a known_mcus=("atmega1284" "atmega1284p")
|
declare -a known_mcus=("atmega1284" "atmega1284p")
|
||||||
declare -a known_users=("famulus")
|
declare -a known_users=("famulus" "pi")
|
||||||
|
|
||||||
function hr1
|
function hr1
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue