mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-04-07 11:28:05 +02:00
20 lines
497 B
C
20 lines
497 B
C
#ifndef ASIC_TASK_H_
|
|
#define ASIC_TASK_H_
|
|
|
|
#include "freertos/FreeRTOS.h"
|
|
#include "freertos/semphr.h"
|
|
#include "mining.h"
|
|
typedef struct
|
|
{
|
|
// ASIC may not return the nonce in the same order as the jobs were sent
|
|
// it also may return a previous nonce under some circumstances
|
|
// so we keep a list of jobs indexed by the job id
|
|
bm_job **active_jobs;
|
|
//semaphone
|
|
SemaphoreHandle_t semaphore;
|
|
} AsicTaskModule;
|
|
|
|
void ASIC_task(void *pvParameters);
|
|
|
|
#endif /* ASIC_TASK_H_ */
|