Permalink
Browse files

added printf() support via SpareTimeLabs printf lib. this cleaned up …

…some mess inside cli.c

example of usage: http://bcas.tv/paste/results/xToE9w26.html
hover-tested quadx loaded as custom mix, works.

git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@207 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
  • Loading branch information...
timecop@gmail.com
timecop@gmail.com committed Sep 6, 2012
1 parent 98cba89 commit 3cd8e4e3f68d85eb95dc50d9280c346dd2fa3fbf
Showing with 3,543 additions and 2,840 deletions.
  1. +1 −0 Makefile
  2. +2,894 −2,772 obj/baseflight.hex
  3. +1 −0 src/board.h
  4. +251 −66 src/cli.c
  5. +1 −1 src/config.c
  6. +7 −0 src/main.c
  7. +18 −1 src/mixer.c
  8. +1 −0 src/mw.h
  9. +248 −0 src/printf.c
  10. +121 −0 src/printf.h
View
@@ -52,6 +52,7 @@ COMMON_SRC = startup_stm32f10x_md_gcc.S \
drv_i2c_soft.c \
drv_system.c \
drv_uart.c \
+ printf.c \
$(CMSIS_SRC) \
$(STDPERIPH_SRC)
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -13,6 +13,7 @@
#include "stm32f10x_conf.h"
#include "core_cm3.h"
+#include "printf.h"
#ifndef M_PI
#define M_PI 3.14159265358979323846f
Oops, something went wrong.

0 comments on commit 3cd8e4e

Please sign in to comment.