PageRenderTime 16ms CodeModel.GetById 13ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/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
18#ifndef ERRORS_HH_
19#define ERRORS_HH_
20
21/// Definition of blink codes for error conditions.
22
23// TODO: Add these to the main documentation page.
24
25#define NO_ERROR                        0
26#define ERR_SLAVE_PACKET_TIMEOUT        1
27#define ERR_SLAVE_LOCK_TIMEOUT          2
28#define ERR_SLAVE_PACKET_MISC           3
29#define ERR_HOST_PACKET_TIMEOUT         4
30#define ERR_HOST_PACKET_MISC            5
31#define ERR_WDT_TIMEOUT                 6
32
33#define ERR_HOST_TRUNCATED_CMD          8
34
35#endif /* ERRORS_HH_ */