Keyboard firmwares for Atmel AVR and Cortex-M
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

12345678910111213141516171819202122
  1. #ifndef PRINT_H__
  2. #define PRINT_H__ 1
  3. #include <stdbool.h>
  4. #include <avr/pgmspace.h>
  5. #include "usb_debug.h"
  6. bool print_enable;
  7. // this macro allows you to write print("some text") and
  8. // the string is automatically placed into flash memory :)
  9. #define print(s) print_P(PSTR(s))
  10. #define pchar(c) usb_debug_putchar(c)
  11. void print_P(const char *s);
  12. void phex(unsigned char c);
  13. void phex16(unsigned int i);
  14. void pbin(unsigned char c);
  15. void pbin_reverse(unsigned char c);
  16. #endif