From 76c12726e85d0bb25d7f015ee6e515ad7084d36d Mon Sep 17 00:00:00 2001 From: jaseg Date: Wed, 29 Apr 2020 18:02:57 +0200 Subject: MSP430 reflash working --- controller/fw/src/mspdebug_wrapper.c | 39 +++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 18 deletions(-) (limited to 'controller/fw/src/mspdebug_wrapper.c') diff --git a/controller/fw/src/mspdebug_wrapper.c b/controller/fw/src/mspdebug_wrapper.c index aada33a..aaf75ab 100644 --- a/controller/fw/src/mspdebug_wrapper.c +++ b/controller/fw/src/mspdebug_wrapper.c @@ -1,6 +1,7 @@ #include #include +#include #include "output.h" #include "jtaglib.h" @@ -53,6 +54,18 @@ void mspd_jtag_init() { gpio_pin_setup(gpios[i].gpio, gpios[i].pin, gpios[i].mode, 3, 0, 0); } +static void sr_gpio_write(int num, int out) { + if (out) + gpios[num].gpio->BSRR = 1<BSRR = 1<BSRR = 1<BSRR = 1<