/firmware/src/Motherboard/Errors.hh

http://github.com/makerbot/G3Firmware · C++ Header · 35 lines · 11 code · 6 blank · 18 comment · 0 complexity · 6a533eb804a578ed3a6057f8284c68fd MD5 · raw file

  1. /*
  2. * Copyright 2010 by Adam Mayer <adam@makerbot.com>
  3. *
  4. * This program is free software: you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation, either version 3 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>
  16. */
  17. #ifndef ERRORS_HH_
  18. #define ERRORS_HH_
  19. /// Definition of blink codes for error conditions.
  20. // TODO: Add these to the main documentation page.
  21. #define NO_ERROR 0
  22. #define ERR_SLAVE_PACKET_TIMEOUT 1
  23. #define ERR_SLAVE_LOCK_TIMEOUT 2
  24. #define ERR_SLAVE_PACKET_MISC 3
  25. #define ERR_HOST_PACKET_TIMEOUT 4
  26. #define ERR_HOST_PACKET_MISC 5
  27. #define ERR_WDT_TIMEOUT 6
  28. #define ERR_HOST_TRUNCATED_CMD 8
  29. #endif /* ERRORS_HH_ */