diff options
| author | MDC Service <michael.schmid@mdc-service.de> | 2022-05-26 11:12:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-05-26 11:12:48 +0200 |
| commit | e03b240c34dd1b92d486d0bda45c234837d51f42 (patch) | |
| tree | 0e6628e410993a573b4cc0fe5186a0a25ce72ca6 /software/main/uart.h | |
| parent | c3c24556605f92c19d633a5da58abbdb60a1a8da (diff) | |
Add files via upload
Diffstat (limited to 'software/main/uart.h')
| -rw-r--r-- | software/main/uart.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/software/main/uart.h b/software/main/uart.h new file mode 100644 index 0000000..358592b --- /dev/null +++ b/software/main/uart.h @@ -0,0 +1,25 @@ +/* + * uart.h + * + * Created on: 26.02.2022 + * Author: steffen + * SPDX-FileCopyrightText: 2022 MDC Service <info@mdc-service.de> + * SPDX-License-Identifier: GPL-3.0-or-later + */ + +#ifndef MAIN_UART_H_ +#define MAIN_UART_H_ +#include "main.h" + +//static char serin[READ_BUF_SIZE + 16]; +static char serout[READ_BUF_SIZE + 16]; + +void UART_init(void); +void UART_debug(char *buf, int len); +int UART_read(int channel, void *buf, int len); +int UART_write(int channel, void *buf, int len); + + + + +#endif /* MAIN_UART_H_ */ |
