px4 mtd:Support FlexSPI attached Devices

This commit is contained in:
David Sidrane
2023-10-25 04:05:13 -07:00
parent 416caf4f9a
commit bdb6f51e8b
3 changed files with 6 additions and 0 deletions
@@ -352,6 +352,9 @@ memoryout:
} else if (mtd_list->entries[num_entry]->device->bus_type == px4_mft_device_t::SPI) {
rv = ramtron_attach(*instances[i]);
} else if (mtd_list->entries[num_entry]->device->bus_type == px4_mft_device_t::FLEXSPI) {
rv = flexspi_attach(instances[i]);
} else if (mtd_list->entries[num_entry]->device->bus_type == px4_mft_device_t::ONCHIP) {
instances[i]->n_partitions_current++;
return 0;