Jens Frank Jensen / Mbed 2 deprecated foc-ed_in_the_bot_compact

Dependencies:   mbed FastPWM3

Revision:
84:dd32640942a4
Parent:
83:eb3704d4943f
Child:
85:2280526f9bad
diff -r eb3704d4943f -r dd32640942a4 interrupts.cpp
--- a/interrupts.cpp	Sat Mar 11 08:51:04 2017 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,43 +0,0 @@
-#include "globals.h"
-#include "main.h"
-#include "CommandProcessor.h"
-
-char linebuf[128];
-int index = 0;
-
-void rxCallback() {
-    while (io.pc->readable()) {
-        char c = io.pc->getc();
-        if (c != 127 && c != '\r' && c != '\t') {
-            linebuf[index] = c;
-            index++;
-            io.pc->putc(c);
-        } else if (c == 127) {
-            if (index > 0) {
-                index--;
-                io.pc->putc(c);
-            }
-        } else if (c == '\r') {
-            linebuf[index] = 0;
-            io.pc->putc(c);
-            processCmd(io.pc, io.pref, linebuf);
-            index = 0;
-            io.pc->putc('>');
-        }
-    }
-}
-
-extern "C" void TIM1_UP_TIM10_IRQHandler(void) {
-    int start_state = io.throttle_in->state();
-    if (TIM1->SR & TIM_SR_UIF ) {
-        ADC1->CR2  |= 0x40000000; 
-        volatile int delay;
-        for (delay = 0; delay < 35; delay++);
-        read.adval1 = ADC1->DR;
-        read.adval2 = ADC2->DR;
-        commutate();
-    }
-    TIM1->SR = 0x00;
-    int end_state = io.throttle_in->state();
-    if (start_state != end_state) io.throttle_in->block();
-}
\ No newline at end of file