Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Fork of Nucleo_pwmalla by
Diff: main.cpp
- 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
