X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Fao.h;h=b92e623f040fb06741ada8978a544cede17c4d12;hb=9f8a96a8516e13878b329dbf1da855ed9a3219c4;hp=64f33f0b2c18a938320204709cd7e1e9173373fa;hpb=8e74cf6d1c70a7a17d01c20f6831571245392498;p=fw%2Faltos diff --git a/src/ao.h b/src/ao.h index 64f33f0b..b92e623f 100644 --- a/src/ao.h +++ b/src/ao.h @@ -403,6 +403,14 @@ ao_cmd_register(__code struct ao_cmds *cmds); void ao_cmd_init(void); +#if HAS_CMD_FILTER +/* + * Provided by an external module to filter raw command lines + */ +uint8_t +ao_cmd_filter(void); +#endif + /* * ao_dma.c */ @@ -927,6 +935,9 @@ ao_serial_set_stdin(uint8_t stdin); void ao_serial_putchar(char c) __critical; +void +ao_serial_drain(void) __critical; + #define AO_SERIAL_SPEED_4800 0 #define AO_SERIAL_SPEED_9600 1 #define AO_SERIAL_SPEED_19200 2 @@ -1169,6 +1180,9 @@ struct ao_stdio { void (*flush)(void); }; +extern __data int8_t ao_cur_stdio; +extern __data int8_t ao_num_stdios; + void flush(void);