Mercurial > louis > kiibohd-controller
comparison Scan/UARTConnect/connect_scan.c @ 412:e7a3be42ae1e
Debug code for interconnect cable debugging
author | Jacob Alexander <haata@kiibohd.com> |
---|---|
date | Sat, 20 Feb 2016 13:27:49 -0800 |
parents | a3825c7fc651 |
children | 23a1868b4ac2 |
comparison
equal
deleted
inserted
replaced
411:065959b4f7bd | 412:e7a3be42ae1e |
---|---|
1137 { | 1137 { |
1138 Connect_setup( Output_Available ); | 1138 Connect_setup( Output_Available ); |
1139 } | 1139 } |
1140 | 1140 |
1141 // Limit how often we do cable checks | 1141 // Limit how often we do cable checks |
1142 //uint32_t time_compare = 0x007; // Used for debugging cables -HaaTa | |
1142 uint32_t time_compare = 0x7FF; // Must be all 1's, 0x3FF is valid, 0x4FF is not | 1143 uint32_t time_compare = 0x7FF; // Must be all 1's, 0x3FF is valid, 0x4FF is not |
1143 uint32_t current_time = systick_millis_count; | 1144 uint32_t current_time = systick_millis_count; |
1144 if ( Connect_lastCheck != current_time | 1145 if ( Connect_lastCheck != current_time |
1145 && ( current_time & time_compare ) == time_compare | 1146 && ( current_time & time_compare ) == time_compare |
1146 ) | 1147 ) |