Keyboard firmwares for Atmel AVR and Cortex-M
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

print.h 443B

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