main.cpp (608B)
1 #include "gtest/gtest.h" 2 3 extern "C" { 4 #include "stdio.h" 5 #include "debug.h" 6 7 int8_t sendchar(uint8_t c) { 8 fprintf(stdout, "%c", c); 9 return 0; 10 } 11 12 __attribute__((weak)) debug_config_t debug_config = {0}; 13 14 void init_logging(void) { 15 print_set_sendchar(sendchar); 16 17 // Customise these values to desired behaviour 18 // debug_enable = true; 19 // debug_matrix = true; 20 // debug_keyboard = true; 21 // debug_mouse = true; 22 debug_config.raw = 0xFF; 23 } 24 } 25 26 int main(int argc, char **argv) { 27 ::testing::InitGoogleTest(&argc, argv); 28 29 init_logging(); 30 31 return RUN_ALL_TESTS(); 32 }