issp_errors.h 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /* filename: ISSP_Errors.h */
  2. #include "issp_revision.h"
  3. #ifdef PROJECT_REV_304
  4. /*
  5. * Copyright 2006-2007, Cypress Semiconductor Corporation.
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * as published by the Free Software Foundation; either version 2
  9. * of the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU General Public License
  17. * along with this program; if not, write to the Free Software
  18. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  19. * MA 02110-1301, USA.
  20. */
  21. #ifndef INC_ISSP_ERRORS
  22. #define INC_ISSP_ERRORS
  23. /* The following are defines for error messages from the ISSP program. */
  24. #define PASS 0
  25. /* PASS is used to indicate that a function completed successfully. */
  26. #define ERROR -1
  27. /*
  28. ERROR is a generic failure used within lower level functions before the
  29. error is reported. This should not be seen as an error that is reported
  30. from main.
  31. */
  32. #define INIT_ERROR 1
  33. /* INIT_ERROR means a step in chip initialization failed.
  34. */
  35. #define SiID_ERROR 2
  36. /*
  37. SiID_ERROR means that the Silicon ID check failed. This happens if the
  38. target part does not match the device type that the ISSP program is
  39. configured for.
  40. */
  41. #define ERASE_ERROR 3
  42. /*/ ERASE_ERROR means that the bulk erase step failed.
  43. */
  44. #define BLOCK_ERROR 4
  45. /*
  46. BLOCK_ERROR means that a step in programming a Flash block or the verify
  47. of the block failed.
  48. */
  49. #define VERIFY_ERROR 5
  50. /* VERIFY_ERROR means that the checksum verification failed.*/
  51. #define SECURITY_ERROR 6
  52. /* SECURITY_ERROR means that the write of the security information failed.*/
  53. #define STATUS_ERROR 7
  54. #define CHECKSUM_ERROR 8
  55. #endif /*(INC_ISSP_ERRORS)*/
  56. #endif /*(PROJECT_REV_)*/
  57. /*end of file ISSP_Errors.h*/