mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 14:38:30 -04:00
e6779e91e6
SITL: add and use AP_SIM_RAMTRON_ENABLED SITL: add an use AP_SIM_JEDEC_ENABLED
15 lines
309 B
C++
15 lines
309 B
C++
#include "SIM_RAMTRON_FM25V02.h"
|
|
|
|
#if AP_SIM_RAMTRON_FM25V02_ENABLED
|
|
|
|
using namespace SITL;
|
|
|
|
void RAMTRON_FM25V02::fill_rdid(uint8_t *buffer, uint8_t len)
|
|
{
|
|
memcpy(buffer, &manufacturer, ARRAY_SIZE(manufacturer));
|
|
buffer[7] = id1();
|
|
buffer[8] = id2();
|
|
}
|
|
|
|
#endif // AP_SIM_RAMTRON_FM25V02_ENABLED
|