diff options
| author | danicampora | 2015-02-25 22:38:33 +0100 |
|---|---|---|
| committer | danicampora | 2015-02-25 23:17:17 +0100 |
| commit | 7a074a14ced0c9ea890793aa7dc43c896cfdf9b9 (patch) | |
| tree | 02fee25f9d1375cde648ff82c87d0d0eacd2610e /cc3200/telnet | |
| parent | 8a5aee103d0741efbbcf3fa7d0d0b3d2100eddb2 (diff) | |
cc3200: Implement safe boot pin and system led behaviour.
The safe boot pin, when pulled high during reset rolls back the
firmware to the "factory" image and skips execution of 'boot.py'
and 'main.py'. This is useful to recover from a crash condition.
The system led is used mostly to signal errors.
Diffstat (limited to 'cc3200/telnet')
| -rw-r--r-- | cc3200/telnet/telnet.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cc3200/telnet/telnet.c b/cc3200/telnet/telnet.c index 7d11df913..31037aed2 100644 --- a/cc3200/telnet/telnet.c +++ b/cc3200/telnet/telnet.c @@ -36,6 +36,7 @@ #include "debug.h" #include "mpexception.h" #include "serverstask.h" +#include "mperror.h" #include "genhdr/py-version.h" @@ -461,7 +462,8 @@ static bool telnet_send_with_retries (int16_t sd, const void *pBuf, int16_t len) } while (++retries <= TELNET_TX_RETRIES_MAX); } else { - // TODO: blink the BLD + // blink the system led + mperror_signal_error(); } return false; |
