mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 04:13:35 +08:00
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:
committed by
Lorenz Meier
parent
5b235c34c2
commit
7ca8a8dbaa
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user