mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 01:03:34 +08:00
nxp_ucans32k146:Add Can Bootloader build
nxp_ucans32k146:Relocation for Bootloader nxp_ucans32k146:can_boot enable CAN nxp_ucans32k146:Save Space use Non Optimize memcpy nxp_ucans32k146:Increase to 24K nxp/ucans32k146:Canbootloader LED Driver nxp_ucans32k146:Can bootloader shut down CAN nxp_ucans32k146:Use NVMEEPROM for Paramaters nxp_ucans32k146:Use bootloader AppDescriptor px4 mtd:Support onchip emulated eeprom
This commit is contained in:
committed by
Lorenz Meier
parent
62c0c96749
commit
dd3c3098f2
@@ -48,6 +48,7 @@ typedef struct {
|
||||
enum px4_bus_type {
|
||||
I2C = 0,
|
||||
SPI = 1,
|
||||
ONCHIP = 2,
|
||||
} bus_type;
|
||||
|
||||
uint32_t devid;
|
||||
|
||||
@@ -334,8 +334,12 @@ memoryout:
|
||||
if (mtd_list->entries[i]->device->bus_type == px4_mft_device_t::I2C) {
|
||||
rv = at24xxx_attach(instances[i]);
|
||||
|
||||
} else {
|
||||
} else if (mtd_list->entries[i]->device->bus_type == px4_mft_device_t::SPI) {
|
||||
rv = ramtron_attach(instances[i]);
|
||||
|
||||
} else if (mtd_list->entries[i]->device->bus_type == px4_mft_device_t::ONCHIP) {
|
||||
instances[i].n_partitions_current++;
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (rv != 0) {
|
||||
|
||||
Reference in New Issue
Block a user