diff options
author | Josh Rahm <joshuarahm@gmail.com> | 2019-01-02 23:08:37 -0700 |
---|---|---|
committer | Josh Rahm <joshuarahm@gmail.com> | 2019-01-03 21:23:46 -0700 |
commit | 33a15696519e161cd823baaf4214d1ed452a410a (patch) | |
tree | e3491b0b7b7c570b36c1e4c5235e2d026c651b2c /03-refactor/include/printf.h | |
parent | 109cdf120ea85f46d664e77c44ea2a311fd49ba2 (diff) | |
download | stm32l4-33a15696519e161cd823baaf4214d1ed452a410a.tar.gz stm32l4-33a15696519e161cd823baaf4214d1ed452a410a.tar.bz2 stm32l4-33a15696519e161cd823baaf4214d1ed452a410a.zip |
Add primitive printf functionality to the USART.
Diffstat (limited to '03-refactor/include/printf.h')
-rw-r--r-- | 03-refactor/include/printf.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/03-refactor/include/printf.h b/03-refactor/include/printf.h new file mode 100644 index 0000000..ec3eec0 --- /dev/null +++ b/03-refactor/include/printf.h @@ -0,0 +1,15 @@ +#ifndef PRINTF_H_ +#define PRINTF_H_ + +#include <stdarg.h> +#include <stdlib.h> + +typedef void(*printf_callback_t)(volatile void*, char); + +void printf_format( + const char* fmt, + printf_callback_t callback, + volatile void* callback_closure, + va_list lst); + +#endif /* PRINTF_H_ */ |