aboutsummaryrefslogtreecommitdiff
path: root/projects/cli-test/mgmt-cli.h
diff options
context:
space:
mode:
authorFredrik Thulin <fredrik@thulin.net>2016-06-02 14:57:45 +0200
committerFredrik Thulin <fredrik@thulin.net>2016-06-02 14:57:45 +0200
commit573363d96582af69dbecf6099bd17a3cc41f5d0f (patch)
tree326645f53b7620a77c62d8d4bbeea4b268856c1e /projects/cli-test/mgmt-cli.h
parentbfcb358a699e08f738e1b0b46ea6aa821a6b3145 (diff)
parentae1ecf87f6b8d7c34b32af0547f118ff7697c2ef (diff)
Merge branch 'ft-uart_it'
Diffstat (limited to 'projects/cli-test/mgmt-cli.h')
-rw-r--r--projects/cli-test/mgmt-cli.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/projects/cli-test/mgmt-cli.h b/projects/cli-test/mgmt-cli.h
index dd6a58b..16c9fbd98 100644
--- a/projects/cli-test/mgmt-cli.h
+++ b/projects/cli-test/mgmt-cli.h
@@ -68,10 +68,19 @@
cli_register_command2(cli, &cmd_##name##_s, NULL)
+#define CLI_UART_RECVBUF_SIZE 256 /* This must be a power of 2 */
+#define CLI_UART_RECVBUF_MASK (CLI_UART_RECVBUF_SIZE - 1)
+
+enum mgmt_cli_dma_state {
+ DMA_RX_STOP,
+ DMA_RX_START,
+};
+
extern void uart_cli_print(struct cli_def *cli __attribute__ ((unused)), const char *buf);
extern int uart_cli_read(struct cli_def *cli __attribute__ ((unused)), void *buf, size_t count);
extern int uart_cli_write(struct cli_def *cli __attribute__ ((unused)), const void *buf, size_t count);
extern int embedded_cli_loop(struct cli_def *cli);
extern void mgmt_cli_init(struct cli_def *cli);
+extern int control_mgmt_uart_dma_rx(enum mgmt_cli_dma_state state);
#endif /* __STM32_MGMT_CLI_H */