From c2a08962b79ccdb4b33b26becefa247506a7fd40 Mon Sep 17 00:00:00 2001 From: Kevin O'Connor Date: Tue, 6 Aug 2019 11:44:29 -0400 Subject: spicmds: Rework spi config commands Rework the spi_config commands so that bus configuration and shutdown message configuration is done separately from the main "config_spi" command. This makes the spi configuration more flexible. It's now possible to use software spi without a CS pin. It's now possible to define multiple SPI messages to send on a shutdown event. Signed-off-by: Kevin O'Connor --- src/basecmd.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/basecmd.h') diff --git a/src/basecmd.h b/src/basecmd.h index 21555bf8..f4ea1cc7 100644 --- a/src/basecmd.h +++ b/src/basecmd.h @@ -1,8 +1,10 @@ #ifndef __BASECMD_H #define __BASECMD_H +#include // size_t #include // uint8_t +void *alloc_chunk(size_t size); void move_free(void *m); void *move_alloc(void); void move_request_size(int size); -- cgit v1.2.3-70-g09d2