diff options
author | David Lamparter <equinox@diac24.net> | 2013-03-10 04:41:28 +0100 |
---|---|---|
committer | David Lamparter <equinox@diac24.net> | 2013-03-10 04:41:28 +0100 |
commit | 4ab934ab72af3f16993caf0eab62f68a08ded13a (patch) | |
tree | fd637977100f816fca4c354944b5f711507b48f0 /dali2.c | |
parent | ba9ebfeaa0db26df45399a9b87fc46c2eaedcc63 (diff) |
dali/wdt: check bus on boot, clear wdt
Diffstat (limited to 'dali2.c')
-rw-r--r-- | dali2.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -280,3 +280,12 @@ static void dali_init(void) asm volatile ("" ::: "memory"); TCCR0B = (0 << CS02) | (1 << CS01) | (0 << CS00); // 8 MHz / 8 = 1MHz } + +static void dali_buscheck(void) +{ + while ((PIND >> D_DALII) & 1) { + uart_puttick(); + uart_puts("DALI bus stuck/not powered/active\n"); + _delay_ms(20); + } +} |