mesh: various improvements.

This commit is contained in:
Maxim Poliakovski 2023-12-19 14:53:43 +01:00
parent e77b8785ff
commit 046452fc56
2 changed files with 9 additions and 0 deletions

View File

@ -175,6 +175,7 @@ void MeshController::perform_command(const uint8_t cmd)
break;
case SeqCmd::FlushFIFO:
LOG_F(INFO, "MESH: FlushFIFO stub invoked");
this->int_stat |= INT_CMD_DONE;
break;
default:
LOG_F(ERROR, "MESH: unsupported sequencer command 0x%X", this->cur_cmd);

View File

@ -24,6 +24,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
#ifndef MESH_H
#define MESH_H
#include <devices/common/dmacore.h>
#include <devices/common/hwcomponent.h>
#include <cinttypes>
@ -133,6 +134,10 @@ public:
// HWComponent methods
int device_postinit();
void set_dma_channel(DmaBidirChannel *dma_ch) {
this->dma_ch = dma_ch;
};
protected:
void reset(bool is_hard_reset);
void perform_command(const uint8_t cmd);
@ -165,6 +170,9 @@ private:
InterruptCtrl* int_ctrl = nullptr;
uint32_t irq_id = 0;
uint8_t irq = 0;
// DMA related stuff
DmaBidirChannel* dma_ch;
};
#endif // MESH_H