AP_Periph: enable build of ZubaxGNSS
This commit is contained in:
parent
4962b6ddc8
commit
e9af111b0c
@ -57,6 +57,14 @@ void AP_Periph_FW::init()
|
|||||||
|
|
||||||
serial_manager.init();
|
serial_manager.init();
|
||||||
|
|
||||||
|
#ifdef HAL_BOARD_AP_PERIPH_ZUBAXGNSS
|
||||||
|
// setup remapping register for ZubaxGNSS
|
||||||
|
uint32_t mapr = AFIO->MAPR;
|
||||||
|
mapr &= ~AFIO_MAPR_SWJ_CFG;
|
||||||
|
mapr |= AFIO_MAPR_SWJ_CFG_JTAGDISABLE;
|
||||||
|
AFIO->MAPR = mapr | AFIO_MAPR_CAN_REMAP_REMAP2 | AFIO_MAPR_SPI3_REMAP;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef HAL_PERIPH_ENABLE_GPS
|
#ifdef HAL_PERIPH_ENABLE_GPS
|
||||||
gps.init(serial_manager);
|
gps.init(serial_manager);
|
||||||
#endif
|
#endif
|
||||||
|
@ -52,7 +52,7 @@ extern const AP_HAL::HAL &hal;
|
|||||||
extern AP_Periph_FW periph;
|
extern AP_Periph_FW periph;
|
||||||
|
|
||||||
static CanardInstance canard;
|
static CanardInstance canard;
|
||||||
static uint32_t canard_memory_pool[1024/4];
|
static uint32_t canard_memory_pool[2048/4];
|
||||||
#ifndef HAL_CAN_DEFAULT_NODE_ID
|
#ifndef HAL_CAN_DEFAULT_NODE_ID
|
||||||
#define HAL_CAN_DEFAULT_NODE_ID CANARD_BROADCAST_NODE_ID
|
#define HAL_CAN_DEFAULT_NODE_ID CANARD_BROADCAST_NODE_ID
|
||||||
#endif
|
#endif
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
import fnmatch
|
import fnmatch
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
targets = ['f103-*', 'CUAV_GPS']
|
targets = ['f103-*', 'CUAV_GPS', 'ZubaxGNSS*']
|
||||||
valid_target = False
|
valid_target = False
|
||||||
for t in targets:
|
for t in targets:
|
||||||
if fnmatch.fnmatch(bld.env.BOARD, t):
|
if fnmatch.fnmatch(bld.env.BOARD, t):
|
||||||
|
Loading…
Reference in New Issue
Block a user