mirror of
https://github.com/buserror/mii_emu.git
synced 2024-11-22 01:30:51 +00:00
af6ff70155
Removed it fron the Nuklear file, as it's actually not doign anything UI based. Also cleanup up type names etc Signed-off-by: Michel Pollet <buserror@gmail.com>
37 lines
546 B
C
37 lines
546 B
C
/*
|
|
* mii_thread.h
|
|
*
|
|
* Copyright (C) 2023 Michel Pollet <buserror@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <stdint.h>
|
|
#include "fifo_declare.h"
|
|
|
|
enum {
|
|
SIGNAL_RESET,
|
|
SIGNAL_STOP,
|
|
SIGNAL_STEP,
|
|
SIGNAL_RUN,
|
|
};
|
|
|
|
typedef struct mii_th_signal_t {
|
|
uint8_t cmd;
|
|
uint8_t data;
|
|
} mii_th_signal_t;
|
|
|
|
DECLARE_FIFO(mii_th_signal_t, mii_th_fifo, 16);
|
|
DEFINE_FIFO(mii_th_signal_t, mii_th_fifo);
|
|
|
|
struct mii_t;
|
|
|
|
void
|
|
mii_thread_start(
|
|
struct mii_t *mii);
|
|
struct mii_th_fifo_t*
|
|
mii_thread_get_fifo(
|
|
struct mii_t *mii);
|