No Description

debug.h 729B

123456789101112131415161718192021222324252627282930
  1. #ifndef DEBUG_H
  2. #define DEBUG_H
  3. struct print_engine{
  4. u8 line;
  5. u8 row;
  6. u8 color;
  7. };
  8. static struct print_engine* print_memory = (struct print_engine*)(0x0203FFF0);
  9. void set_debug_background(u16 color);
  10. void debug_clean();
  11. void wait_for_btn(u16 field);
  12. void int_to_char(u32 i, char* ref);
  13. u32 dec_len(u32 i);
  14. void debug_update();
  15. u8 some_test();
  16. void reset_scrolling_debug();
  17. void init_unit_test();
  18. void debug_scene();
  19. u8 char_to_byte(char character);
  20. void print_character(u16 line, u16 row, char character, u8 color);
  21. void print_string(u16 line, u16 row, u8 color, char* pBuf);
  22. void print(char* str);
  23. u32 power(u32 n, u32 power);
  24. void printf(char* str, int arg);
  25. #endif /* DEBUG_H */