ardupilot/libraries/SITL/SIM_JEDEC_MX25L3206E.cpp
Peter Barker e6779e91e6 SITL: allow JEDEC/RAMTRON to be compiled out
SITL: add and use AP_SIM_RAMTRON_ENABLED

SITL: add an use AP_SIM_JEDEC_ENABLED
2022-01-15 13:50:21 +11:00

22 lines
485 B
C++

#include "SIM_JEDEC_MX25L3206E.h"
#if AP_SIM_JEDEC_MX25L3206E_ENABLED
using namespace SITL;
void JEDEC_MX25L3206E::fill_rdid(uint8_t *buffer, uint8_t len)
{
buffer[0] = 0xC2;
buffer[1] = type;
buffer[2] = density;
}
void JEDEC_MX25L3206E::fill_rdsr(uint8_t *buffer, uint8_t len)
{
// we never allow multiple operations at a time
// hence we can never be busy while reading the status register
buffer[0] = 0x00;
}
#endif // AP_SIM_JEDEC_MX25L3206E_ENABLED