Documentation for “Zerocat Chipflasher” as of Sat, 29 Mar 2025 14:42:00 +0100
Repository:
Version: v2.1.6-0-c57b46eb4
Branch: master

../../firmware2/src/error.spin.flashrom.html

Propeller Spin/PASM Compiler 'OpenSpin' (c)2012-2016 Parallax Inc. DBA Parallax Semiconductor.
Version 1.00.78
Compiling...
../../firmware2/src/error.spin
|-time.spin
Done.
Program size is 252 bytes

______________________________________________________________________________
********************************************************* File starts here ***
Zerocat Chipflasher --- Flash free firmware, kick the Management Engine.

File error.spin --- provide error codes and exit method.

Copyright (C) 2020, 2021, 2022  Kai Mertens 

This file is part of Zerocat Chipflasher.

See end of file for terms of use.

******************************************************************************


# Interface Description

Object "../../firmware2/src/error" Interface:

PUB  display(errcode)

Program:  59 Longs
Variable: 0 Longs


# Loaded Objects

* Load time object.


# Constants

* LED pins
* ENUM ERR_type

    - ERR_HELLO_38400                                     -> all LEDs blink once, very slow
    - ERR_HELLO_57600                                     -> all LEDs blink once, slow
    - ERR_HELLO                                           -> all LEDs blink once
    - ERR_RST                                             -> LED D2 on
    - ERR_CANCEL      same as ERRCODE_QUIT                -> LED D2 off
    - ERR_SUCCESS                                         -> LED D2 blinks once
    - ERR_HANDSHAKE                                       -> LED D2 blinks twice
    - ERR_JOB                                             -> LED D2 blinks three times
    - ERR_TIMEOUT                                         -> LED D2 blinks 4 times
    - ERR_TX          same as ERRCODE_TRANSMISSION_ERROR  -> LED D2 blinks 5 times
    - ERR_CODE        same as ERRCODE_CODE                -> LED D2 blinks 6 times
    - ERR_INTERFACE                                       -> LED D2 blinks 7 times
    - ERR_LOWVOLTAGE                                      -> LED D2 blinks 8 times
    - ERR_CABLE_SPI                                       -> LED D2 blinks 9 times
    - ERR_REQUESTSUSPEND                                  --- internal flag


# Functions

_____________________
PUB  display(errcode)

 Display status codes with D1..D3.


******************************************************************************
Terms of Use:

Zerocat Chipflasher 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 3 of the
License, or (at your option) any later version.

Zerocat Chipflasher 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 Zerocat Chipflasher.  If not, see <http://www.gnu.org/licenses/>.

************************************************************** End of File ***