working codez

This commit is contained in:
2016-05-16 02:25:21 +02:00
parent 8ecce09ba8
commit 4ecd54786a
3 changed files with 41 additions and 17 deletions
+3 -2
View File
@@ -3,6 +3,7 @@
#include "debug.h"
#include "com_fileio.h"
#include "dspin.h"
#include "blinky.h"
SBMP_Endpoint *dlnk_ep;
@@ -32,7 +33,7 @@ static void dlnk_rx_bridge(ComIface *iface)
{
uint8_t b;
STATUS_LED_Port->BSRR = STATUS_LED_Pin;
led_on(LED_SPARE);
while (com_rx(iface, &b)) {
SBMP_RxStatus st = sbmp_ep_receive(dlnk_ep, b);
@@ -44,7 +45,7 @@ static void dlnk_rx_bridge(ComIface *iface)
}
}
STATUS_LED_Port->BRR = STATUS_LED_Pin;
led_off(LED_SPARE);
}
/** Datalink Tx func */
+2 -2
View File
@@ -7,8 +7,8 @@
#include "main.h"
#include <sbmp.h>
#define DG_MOTOR_HOME 40
#define DG_MOTOR_GOTO 41
#define DG_MOTOR_START 30
#define DG_MOTOR_STOP 31
// wifi status & control
#define DG_SETMODE_AP 44 // request AP mode (AP button pressed)