STM32: iface activity indication

This commit is contained in:
Pavel Kirienko
2014-04-07 15:17:58 +04:00
parent d3f76c5c16
commit 377d2f7d7f
3 changed files with 49 additions and 4 deletions
@@ -140,10 +140,11 @@ int main()
while (true)
{
app::ledSet(false);
sleep(1);
app::ledSet(true);
sleep(1);
for (int i = 0; i < 200; i++)
{
app::ledSet(app::can.driver.hadActivity());
::usleep(25000);
}
const uavcan::UtcTime utc = uavcan_stm32::clock::getUtc();
lowsyslog("UTC %lu sec, %li corr, %lu jumps\n",