printf_.h 789 B

123456789101112131415161718192021222324252627
  1. /*
  2. * printf.h
  3. *
  4. * Created on: 08-02-2013
  5. * Author: andy
  6. * http://www.skybeeper.com/index.php/en/english-en/25-tighten-scanf
  7. */
  8. #ifndef PRINTF_H_
  9. #define PRINTF_H_
  10. //public function
  11. int printf_(const char *format, ...);
  12. int sprintf_(char *buffer, const char *format, ...);
  13. int rscanf(const char* format, ...);
  14. #endif /* PRINTF_H_ */
  15. /*
  16. +=============================================================================+
  17. | options
  18. +=============================================================================+
  19. */
  20. //#define INCLUDE_FLOAT // this enables float in printf() and costs you about 2kByte ROM
  21. //#define USE_DEBUG // this enables a Macro based on printf()
  22. #define PLL_FREQUENCY 24000000ul ///< desired target frequency of the core
  23. #define UART1_BAUDRATE 9600