2020-03-31 21:56:35 -07:00
|
|
|
#include "CustomRF95.h"
|
|
|
|
|
#include "NodeDB.h"
|
|
|
|
|
#include "assert.h"
|
|
|
|
|
#include "configuration.h"
|
2020-04-17 09:48:54 -07:00
|
|
|
#include <assert.h>
|
2020-03-31 21:56:35 -07:00
|
|
|
#include <pb_decode.h>
|
|
|
|
|
#include <pb_encode.h>
|
|
|
|
|
|
2020-04-17 09:48:54 -07:00
|
|
|
RadioInterface::RadioInterface() {}
|
2020-03-31 21:56:35 -07:00
|
|
|
|
|
|
|
|
ErrorCode SimRadio::send(MeshPacket *p)
|
|
|
|
|
{
|
|
|
|
|
DEBUG_MSG("SimRadio.send\n");
|
2020-04-17 09:48:54 -07:00
|
|
|
packetPool.release(p);
|
2020-03-31 21:56:35 -07:00
|
|
|
return ERRNO_OK;
|
2020-04-17 09:48:54 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void RadioInterface::deliverToReceiverISR(MeshPacket *p, BaseType_t *higherPriWoken)
|
|
|
|
|
{
|
|
|
|
|
assert(rxDest);
|
|
|
|
|
assert(rxDest->enqueueFromISR(p, higherPriWoken)); // NOWAIT - fixme, if queue is full, delete older messages
|
2020-03-31 21:56:35 -07:00
|
|
|
}
|