summaryrefslogtreecommitdiff
path: root/tests/uart-basic/uart-basic.h
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2018-07-17 15:43:26 +0200
committerjaseg <git@jaseg.net>2018-07-17 15:43:26 +0200
commit6df66b77ba5b27bce5630694742f2dac57b8d3eb (patch)
treefc14370fdea41b6d7a672758aa89886b9107f78c /tests/uart-basic/uart-basic.h
parent90ce052d82daa86e1e86ab4dac7fbba0cdda8680 (diff)
downloadolsndot-6df66b77ba5b27bce5630694742f2dac57b8d3eb.tar.gz
olsndot-6df66b77ba5b27bce5630694742f2dac57b8d3eb.tar.bz2
olsndot-6df66b77ba5b27bce5630694742f2dac57b8d3eb.zip
Isolate usb-serial-rs485 tree
Diffstat (limited to 'tests/uart-basic/uart-basic.h')
-rw-r--r--tests/uart-basic/uart-basic.h44
1 files changed, 0 insertions, 44 deletions
diff --git a/tests/uart-basic/uart-basic.h b/tests/uart-basic/uart-basic.h
deleted file mode 100644
index 8e3b8f6..0000000
--- a/tests/uart-basic/uart-basic.h
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Karl Palsson <karlp@tweak.net.au> Oct 2017
- * Considered to be available under your choice of:
- * BSD2 clause, Apache2, MIT, X11 or ISC licenses
- */
-
-#pragma once
-
-#include <stdint.h>
-#include <libopencm3/stm32/usart.h>
-
-struct ub_hw {
- /** usart itself, eg USART2 */
- uint32_t uart;
- /** RCC_xxx flag for this usart, eg RCC_USART2 */
- uint32_t uart_rcc;
- /** eg NVIC_USART2_IRQ */
- uint32_t uart_nvic;
-};
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
-/**
- * Initialise the uart itself.
- * gpios are required to have been already configured as needed
- * @param ub
- */
-void ub_init(struct ub_hw *ub);
-
-/**
- * Call this, it will "do stuff"
- */
-void ub_task(void);
-
-/**
- * Call this from your board irq handler, it will "do the right thing"
- */
-void ub_irq_handler(void);
-
-#ifdef __cplusplus
-}
-#endif