durandal-v1:Bootloader

Change PID to 0x4b:
     Holybro obtained their own PID and VID but APM did not follow
     the PX4 convention of makeing the board_id (0x8b) match the PID)

   Incorporated the Upstream Bootloader state sequencing checking change.

   Change the usb cout to send all chars in 1 write.
This commit is contained in:
David Sidrane
2019-11-22 14:32:56 +01:00
committed by Lorenz Meier
parent 5b235c34c2
commit 7ca8a8dbaa
4 changed files with 23 additions and 25 deletions
+2 -1
View File
@@ -39,6 +39,7 @@
* Aside from the header includes below, this file should have no board-specific logic.
*/
#include "hw_config.h"
#include <inttypes.h>
#include <stdlib.h>
#include <stdbool.h>
@@ -141,7 +142,7 @@
#define STATE_ALLOWS_REBOOT (STATE_PROTO_GET_SYNC)
# define SET_BL_STATE(s)
#else
#define STATE_ALLOWS_ERASE (STATE_PROTO_GET_SYNC|STATE_PROTO_GET_DEVICE|STATE_PROTO_GET_CHIP)
#define STATE_ALLOWS_ERASE (STATE_PROTO_GET_SYNC|STATE_PROTO_GET_DEVICE)
#define STATE_ALLOWS_REBOOT (STATE_ALLOWS_ERASE|STATE_PROTO_PROG_MULTI|STATE_PROTO_GET_CRC)
# define SET_BL_STATE(s) bl_state |= (s)
#endif