mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 15:13:34 +08:00
Merge PR #19575 (changes to pr-extendend_hw_ver_rev_format)
- 4096 of 3 hex digits each for rev and ver is enough.
#defines used in SPI versions do not be long format, use use the macro
- Board provides a prefix and the formatting is sized and built in
- No need for funky board_get_base_eeprom_mtd_manifest interface
Original mft is used where the abstraction is done with the MFT interface
Co-authored-by: David Sidrane <David.Sidrane@Nscdg.com>
This commit is contained in:
committed by
Beat Küng
co-authored by
David Sidrane
parent
f7d542e720
commit
4b503c310e
@@ -102,20 +102,14 @@ static const px4_mtd_entry_t imu_eeprom = {
|
||||
};
|
||||
|
||||
static const px4_mtd_manifest_t board_mtd_config = {
|
||||
.nconfigs = 2,
|
||||
.nconfigs = 3,
|
||||
.entries = {
|
||||
&fmum_fram,
|
||||
&base_eeprom,
|
||||
&imu_eeprom
|
||||
}
|
||||
};
|
||||
|
||||
static const px4_mtd_manifest_t board_mtd_base_eeprom_config = {
|
||||
.nconfigs = 1,
|
||||
.entries = {
|
||||
&base_eeprom
|
||||
}
|
||||
};
|
||||
|
||||
static const px4_mft_entry_s mtd_mft = {
|
||||
.type = MTD,
|
||||
.pmft = (void *) &board_mtd_config,
|
||||
@@ -132,8 +126,3 @@ const px4_mft_s *board_get_manifest(void)
|
||||
{
|
||||
return &mft;
|
||||
}
|
||||
|
||||
const px4_mtd_manifest_t *board_get_base_eeprom_mtd_manifest(void)
|
||||
{
|
||||
return &board_mtd_base_eeprom_config;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user