working codez
This commit is contained in:
@@ -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 */
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user