]> www.fi.muni.cz Git - bike-lights.git/commit
Error flags, error reporting
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Fri, 19 Jul 2013 16:16:20 +0000 (18:16 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Fri, 19 Jul 2013 16:16:20 +0000 (18:16 +0200)
commit220d48069967aaae91c303f84b98f2bb36a51425
tree246f9124f6e3a2ac44378a1a4380be2d9b3147d3
parent24169faebe2fc7da98023c44a81db9f1894531db
Error flags, error reporting

- all error flags are in the bit array err_flags, including braking and
  booting (this is unused yet, the idea is to report successful boot and
  pwmled init somehow).
- error status is reported as num_pattern(err, 1) by the status LED
- error status (if any) can be cleared by pressing the button 1
  (which takes precedence over the panic mode)
firmware/battery.c
firmware/control.c
firmware/lights.h
firmware/pattern.c
firmware/pwmled.c