Robotic_winteam / Mbed 2 deprecated Nucleo_pwmalla

Dependencies:   mbed

Fork of Nucleo_pwmalla by 皓翔 楊

Revision:
1:c4f94a2d3cba
Parent:
0:7a08321141df
diff -r 7a08321141df -r c4f94a2d3cba main.cpp
--- a/main.cpp	Wed May 25 07:56:14 2016 +0000
+++ b/main.cpp	Wed May 25 08:24:45 2016 +0000
@@ -25,6 +25,8 @@
 Ticker timer1;
 void timer1_interrupt(void);
 void CN_interrupt(void);
+
+void ISR_U2RXInterrupt(void);
  
 void init_TIMER(void);
 void init_PWM(void);
@@ -65,6 +67,7 @@
         {
         for(i=0;i<=9;i++)
         Receive_Data[i] =bluetooth.getc(); 
+        
         ISR_U2RXInterrupt();
             if(Command_Flag==1)
             {
@@ -219,9 +222,7 @@
 void ISR_U2RXInterrupt(void)
 {
 int Receive_Counter,Receive_Flag;
-
 static char Temp;
-Temp=U2RXREG;
 if (Receive_Flag==1)
 {
 Receive_Counter++;
@@ -245,5 +246,4 @@
 else
 {}
 }
-IFS1bits.U2RXIF=0;
 }
\ No newline at end of file