summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-04-20 22:05:01 -0500
committerKeith Packard <keithp@keithp.com>2013-04-20 22:05:01 -0500
commitaf7a28494cb6c858013aba305061f73192b12b10 (patch)
tree334e1a20b7cbbe77c043aeb404d997a06de5645b /src
parent76fba00fd3706b29c8d9d4057a45729ca8c78fc3 (diff)
libaltos: Try Bluetooth open 5 times on EBUSY
After closing Bluetooth, it can take a second before the device is up for another connection. Hang around retrying a few times. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src')
-rw-r--r--src/stm-bringup/Makefile6
-rw-r--r--src/stm/Makefile.defs6
2 files changed, 8 insertions, 4 deletions
diff --git a/src/stm-bringup/Makefile b/src/stm-bringup/Makefile
index 5cc94bd9..f4e77046 100644
--- a/src/stm-bringup/Makefile
+++ b/src/stm-bringup/Makefile
@@ -8,8 +8,10 @@ endif
CC=arm-none-eabi-gcc
OBJCOPY=arm-none-eabi-objcopy
-PDCLIB=/home/keithp/sat
-C_LIB=$(PDCLIB)/lib/pdclib.a
+#PDCLIB=/home/keithp/sat
+#C_LIB=$(PDCLIB)/lib/pdclib.a
+PDCLIB=/opt/sat
+C_LIB=$(PDCLIB)/lib/pdclib-cortex-m3.a
C_INC=-I$(PDCLIB)/include
DEF_CFLAGS=-g -std=gnu99 -Os -mlittle-endian -mthumb -ffreestanding -nostdlib -I. -I../../src/stm $(C_INC)
diff --git a/src/stm/Makefile.defs b/src/stm/Makefile.defs
index 04404cdc..e4a154c5 100644
--- a/src/stm/Makefile.defs
+++ b/src/stm/Makefile.defs
@@ -8,8 +8,10 @@ vpath matrix.5c ../kalman
vpath ao-make-product.5c ../util
CC=arm-none-eabi-gcc
-SAT=/home/keithp/sat
-SAT_CLIB=$(SAT)/lib/pdclib.a
+#SAT=/home/keithp/sat
+#SAT_CLIB=$(SAT)/lib/pdclib.a
+SAT=/opt/sat
+SAT_CLIB=$(SAT)/lib/pdclib-cortex-m3.a
SAT_CFLAGS=-I$(SAT)/include
ifndef VERSION