[telemetry] Bluegiga cleanup and rename

This commit is contained in:
Christophe De Wagter
2015-08-17 16:59:33 +02:00
parent e759a90463
commit c3d0bf6637
4 changed files with 7 additions and 8 deletions
+2 -2
View File
@@ -46,11 +46,11 @@
<arg flag="--port" constant="/dev/ttyUSB1"/>
<arg flag="--id" constant="1"/>
</program>
<program name="BluegigaUsbDongleScanner" command="sw/tools/bluegiga_usb_dongle/drone-telemetry-demo">
<program name="BluegigaUsbDongleScanner" command="sw/tools/bluegiga_usb_dongle/bluegiga_usb_driver">
<arg flag="/dev/ttyACM2"/>
<arg flag="scan" />
</program>
<program name="BluegigaUsbDongle" command="sw/tools/bluegiga_usb_dongle/drone-telemetry-demo">
<program name="BluegigaUsbDongle" command="sw/tools/bluegiga_usb_dongle/bluegiga_usb_driver">
<arg flag="/dev/ttyACM2"/>
<arg flag="00:07:00:2d:d6:bb" />
<arg flag="4242" />
+1 -1
View File
@@ -1,2 +1,2 @@
*.d
drone-telemetry-demo
bluegiga_usb_driver
+2 -2
View File
@@ -1,7 +1,7 @@
Q=@
CC = gcc
TARGET = drone-telemetry-demo
TARGET = bluegiga_usb_driver
MACHINE = $(shell $(CC) -dumpmachine)
# Windows
@@ -22,7 +22,7 @@ DEPS := $(SRCS:.c=.d)
all: $(TARGET)
%.o: %.c
i$(Q)$(CC) -O3 -Wall -c -fmessage-length=0 -DPLATFORM_$(PLATFORM) -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o"$@" "$<"
$(Q)$(CC) -O3 -Wall -c -fmessage-length=0 -DPLATFORM_$(PLATFORM) -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@:%.o=%.d)" -o"$@" "$<"
$(TARGET): $(OBJS)
@echo 'Building target: $@'
+2 -3
View File
@@ -189,7 +189,7 @@ int cmp_bdaddr(bd_addr first, bd_addr second)
* @param second Second address
* @return returns how many bytes are the same
*/
int cmp_addr(uint8 first[], uint8 second[])
int cmp_addr(const uint8 first[], const uint8 second[])
{
int i;
for (i = 5; i >= 0; i--) {
@@ -755,10 +755,9 @@ int main(int argc, char *argv[])
//pthread_create(&threads[2], NULL, send_paparazzi_comms, NULL);
// Message loop
char in;
while (state != state_finish) {
if (kbhit()) {
in = getchar();
getchar();
break;
}
usleep(1000);