diff --git a/conf/modules/uart_drop.xml b/conf/modules/uart_drop.xml new file mode 100644 index 0000000000..cb86abcbd4 --- /dev/null +++ b/conf/modules/uart_drop.xml @@ -0,0 +1,20 @@ + + + + + Module for dropping balls using UART + +
+ +
+ + + + UART_DROP_PORT ?= UART1 + UART_DROP_BAUD ?= B115200 + UART_DROP_PORT_LOWER = $(shell echo $(UART_DROP_PORT) | tr A-Z a-z) + ap.CFLAGS += -DUART_DROP_PORT=$(UART_DROP_PORT_LOWER) -DUSE_$(UART_DROP_PORT) -D$(UART_DROP_PORT)_BAUD=$(UART_DROP_BAUD) + + +
+ diff --git a/sw/airborne/modules/com/uart_drop.c b/sw/airborne/modules/com/uart_drop.c new file mode 100644 index 0000000000..e4cc7a2876 --- /dev/null +++ b/sw/airborne/modules/com/uart_drop.c @@ -0,0 +1,47 @@ +/* + * Copyright (C) Freek van Tienen + * + * This file is part of paparazzi + * + * paparazzi is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2, or (at your option) + * any later version. + * + * paparazzi is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with paparazzi; see the file COPYING. If not, see + * . + */ +/** + * @file "modules/com/uart_drop.c" + * @author Freek van Tienen + * Module for dropping balls using UART + */ + +#include "modules/com/uart_drop.h" +#include "mcu_periph/uart.h" + +static uint8_t drop_string[] = ". + */ +/** + * @file "modules/com/uart_drop.h" + * @author Freek van Tienen + * Module for dropping balls using UART + */ + +#include "std.h" + +#ifndef UART_DROP_H +#define UART_DROP_H + +extern void drop_ball(uint8_t number); + +#endif +