Keyboard firmwares for Atmel AVR and Cortex-M
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

print.h 436B

123456789101112131415161718
  1. #ifndef PRINT_H__
  2. #define PRINT_H__ 1
  3. #include <avr/pgmspace.h>
  4. #include "usb_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