mirror of
https://github.com/skot/ESP-Miner.git
synced 2025-10-09 18:52:41 +02:00
move job frequency constants to the respective ASIC include files
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
#include "driver/gpio.h"
|
||||
#include "mining.h"
|
||||
|
||||
#define ASIC_BM1366_JOB_FREQUENCY_MS 2000
|
||||
|
||||
#define CRC5_MASK 0x1F
|
||||
#define BM1366_INITIAL_DIFFICULTY 256
|
||||
|
||||
|
@@ -5,6 +5,8 @@
|
||||
#include "driver/gpio.h"
|
||||
#include "mining.h"
|
||||
|
||||
#define ASIC_BM1368_JOB_FREQUENCY_MS 500
|
||||
|
||||
#define CRC5_MASK 0x1F
|
||||
#define BM1368_INITIAL_DIFFICULTY 256
|
||||
|
||||
|
@@ -5,6 +5,8 @@
|
||||
#include "driver/gpio.h"
|
||||
#include "mining.h"
|
||||
|
||||
#define ASIC_BM1370_JOB_FREQUENCY_MS 500
|
||||
|
||||
#define CRC5_MASK 0x1F
|
||||
|
||||
#define BM1370_INITIAL_DIFFICULTY 256
|
||||
|
@@ -5,6 +5,8 @@
|
||||
#include "driver/gpio.h"
|
||||
#include "mining.h"
|
||||
|
||||
#define ASIC_BM1397_JOB_FREQUENCY_MS 20 //not currently used
|
||||
|
||||
#define CRC5_MASK 0x1F
|
||||
#define BM1397_INITIAL_DIFFICULTY 256
|
||||
|
||||
|
@@ -73,7 +73,7 @@ void app_main(void)
|
||||
.set_difficulty_mask_fn = BM1366_set_job_difficulty_mask,
|
||||
.send_work_fn = BM1366_send_work};
|
||||
//GLOBAL_STATE.asic_job_frequency_ms = (NONCE_SPACE / (double) (GLOBAL_STATE.POWER_MANAGEMENT_MODULE.frequency_value * BM1366_CORE_COUNT * 1000)) / (double) GLOBAL_STATE.asic_count; // version-rolling so Small Cores have different Nonce Space
|
||||
GLOBAL_STATE.asic_job_frequency_ms = 2000; //ms
|
||||
GLOBAL_STATE.asic_job_frequency_ms = ASIC_BM1366_JOB_FREQUENCY_MS; //2000ms
|
||||
GLOBAL_STATE.initial_ASIC_difficulty = BM1366_INITIAL_DIFFICULTY;
|
||||
|
||||
GLOBAL_STATE.ASIC_functions = ASIC_functions;
|
||||
@@ -86,7 +86,7 @@ void app_main(void)
|
||||
.set_difficulty_mask_fn = BM1370_set_job_difficulty_mask,
|
||||
.send_work_fn = BM1370_send_work};
|
||||
//GLOBAL_STATE.asic_job_frequency_ms = (NONCE_SPACE / (double) (GLOBAL_STATE.POWER_MANAGEMENT_MODULE.frequency_value * BM1370_CORE_COUNT * 1000)) / (double) GLOBAL_STATE.asic_count; // version-rolling so Small Cores have different Nonce Space
|
||||
GLOBAL_STATE.asic_job_frequency_ms = 500; //ms
|
||||
GLOBAL_STATE.asic_job_frequency_ms = ASIC_BM1370_JOB_FREQUENCY_MS; //500ms
|
||||
GLOBAL_STATE.initial_ASIC_difficulty = BM1370_INITIAL_DIFFICULTY;
|
||||
|
||||
GLOBAL_STATE.ASIC_functions = ASIC_functions;
|
||||
@@ -99,7 +99,7 @@ void app_main(void)
|
||||
.set_difficulty_mask_fn = BM1368_set_job_difficulty_mask,
|
||||
.send_work_fn = BM1368_send_work};
|
||||
//GLOBAL_STATE.asic_job_frequency_ms = (NONCE_SPACE / (double) (GLOBAL_STATE.POWER_MANAGEMENT_MODULE.frequency_value * BM1368_CORE_COUNT * 1000)) / (double) GLOBAL_STATE.asic_count; // version-rolling so Small Cores have different Nonce Space
|
||||
GLOBAL_STATE.asic_job_frequency_ms = 500; //ms
|
||||
GLOBAL_STATE.asic_job_frequency_ms = ASIC_BM1368_JOB_FREQUENCY_MS; //500ms
|
||||
GLOBAL_STATE.initial_ASIC_difficulty = BM1368_INITIAL_DIFFICULTY;
|
||||
|
||||
GLOBAL_STATE.ASIC_functions = ASIC_functions;
|
||||
|
Reference in New Issue
Block a user