📄 except.h
字号:
/* * $Id: except.h,v 1.2 2003/09/12 09:31:50 jfabo Exp $ * * Copyright (C) 2001, 2002, 2003 ETC s.r.o. * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. * * Written by Marcel Telka <marcel@telka.sk>, 2001, 2002. * Juraj Fabo <vinco@etc.sk>, 2003. * */#ifndef EXCEPT_H#define EXCEPT_H#include <cexcept.h>define_exception_type( int );extern struct exception_context the_exception_context[1];/* download exceptions */#define E_READTIMEOUT 1 /* timeout while data reading */#define E_WRITETIMEOUT 2 /* timeout while data writing */#define E_INVALIDSYNC 3 /* invalid sync bytes */#define E_UNKNOWNMEMORY 4 /* download into unknown memory region */#define E_CHECKSUM 5 /* invalid checksum */#define E_DATAALIGNMENT 6 /* invalid data alignment in record */#define E_USBUNINITIALIZED 7 /* USB is uninitialized */#define E_UPLOADREQUEST 8 /* upload is reqeusted instead of download *//* flash exceptions */#define E_FL_BLOCKERASE 101 /* flash block erase command failed */#define E_FL_WRITETOBUFFER 102 /* flash write to buffer command failed */#define E_FL_READINFO 103 /* flash read info command failed */#define E_FL_OUTOFMEMORY 104 /* out of memory while flash */#define E_FL_CHECKSUM 105 /* bad checksum */#define E_FL_UNKNOWNMEMORY 106 /* flash into unknown memory region */#define E_FL_DATAALIGNMENT 107 /* flash buffer invalid aligned */#define E_FL_BLOCKUNLOCK 108 /* unlock block command failed */#endif /* EXCEPT_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -