diff options
author | danicampora <daniel@wipy.io> | 2016-02-14 13:46:04 +0100 |
---|---|---|
committer | danicampora <daniel@wipy.io> | 2016-02-21 21:53:16 +0100 |
commit | 73c9f85b4ca10bcf8a01942e3638aa8b4331957a (patch) | |
tree | fbfbdb064ec984c7ba568c8e4a8b492ec039adf6 /cc3200/misc/mperror.c | |
parent | 562bcffd3aa9e9e1226389e658c6d5d0ac007add (diff) |
cc3200: Simplify the Timer API and correct the documents.
Make the PWM duty cycle configurable from 0.00 to 100.00 by
accepting values from 0 to 10000.
Add automatic Pin assignment when operating in PWM mode.
Diffstat (limited to 'cc3200/misc/mperror.c')
-rw-r--r-- | cc3200/misc/mperror.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cc3200/misc/mperror.c b/cc3200/misc/mperror.c index 73a6b6fc1..5561b0305 100644 --- a/cc3200/misc/mperror.c +++ b/cc3200/misc/mperror.c @@ -196,6 +196,10 @@ void nlr_jump_fail(void *val) { void mperror_enable_heartbeat (bool enable) { if (enable) { + #ifndef BOOTLOADER + // configure the led again + pin_config ((pin_obj_t *)&MICROPY_SYS_LED_GPIO, PIN_MODE_0, GPIO_DIR_MODE_OUT, PIN_TYPE_STD, 0, PIN_STRENGTH_6MA); + #endif mperror_heart_beat.enabled = true; mperror_heart_beat.do_disable = false; mperror_heartbeat_switch_off(); |