kopia lustrzana https://github.com/meshtastic/firmware
Add spiTransfer function to Native to support Linux-managed CS (#3524)
* Add spiTransfer function to Native to support Linux-managed CS * Trunk --------- Co-authored-by: Ben Meadors <benmmeadors@gmail.com>pull/3521/head^2
rodzic
15501e84dd
commit
8bb562c5fa
|
@ -1,6 +1,6 @@
|
||||||
; The Portduino based sim environment on top of any host OS, all hardware will be simulated
|
; The Portduino based sim environment on top of any host OS, all hardware will be simulated
|
||||||
[portduino_base]
|
[portduino_base]
|
||||||
platform = https://github.com/meshtastic/platform-native.git#1b8a32c60ab7495026033858d53c737f7d1cb34a
|
platform = https://github.com/meshtastic/platform-native.git#117acc5e7fcc2047e9ba1dc11789daea26fc36d2
|
||||||
framework = arduino
|
framework = arduino
|
||||||
|
|
||||||
build_src_filter =
|
build_src_filter =
|
||||||
|
|
|
@ -22,6 +22,12 @@ void LockingArduinoHal::spiEndTransaction()
|
||||||
|
|
||||||
ArduinoHal::spiEndTransaction();
|
ArduinoHal::spiEndTransaction();
|
||||||
}
|
}
|
||||||
|
#if ARCH_PORTDUINO
|
||||||
|
void LockingArduinoHal::spiTransfer(uint8_t *out, size_t len, uint8_t *in)
|
||||||
|
{
|
||||||
|
spi->transfer(out, in, len);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
RadioLibInterface::RadioLibInterface(LockingArduinoHal *hal, RADIOLIB_PIN_TYPE cs, RADIOLIB_PIN_TYPE irq, RADIOLIB_PIN_TYPE rst,
|
RadioLibInterface::RadioLibInterface(LockingArduinoHal *hal, RADIOLIB_PIN_TYPE cs, RADIOLIB_PIN_TYPE irq, RADIOLIB_PIN_TYPE rst,
|
||||||
RADIOLIB_PIN_TYPE busy, PhysicalLayer *_iface)
|
RADIOLIB_PIN_TYPE busy, PhysicalLayer *_iface)
|
||||||
|
|
|
@ -25,6 +25,9 @@ class LockingArduinoHal : public ArduinoHal
|
||||||
|
|
||||||
void spiBeginTransaction() override;
|
void spiBeginTransaction() override;
|
||||||
void spiEndTransaction() override;
|
void spiEndTransaction() override;
|
||||||
|
#if ARCH_PORTDUINO
|
||||||
|
void spiTransfer(uint8_t *out, size_t len, uint8_t *in) override;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
#if defined(USE_STM32WLx)
|
#if defined(USE_STM32WLx)
|
||||||
|
|
|
@ -2,3 +2,4 @@
|
||||||
#define CANNED_MESSAGE_MODULE_ENABLE 1
|
#define CANNED_MESSAGE_MODULE_ENABLE 1
|
||||||
#define HAS_GPS 1
|
#define HAS_GPS 1
|
||||||
#define MAX_NUM_NODES settingsMap[maxnodes]
|
#define MAX_NUM_NODES settingsMap[maxnodes]
|
||||||
|
#define RADIOLIB_GODMODE 1
|
||||||
|
|
Ładowanie…
Reference in New Issue