Skip to content

Commit 33de6e3

Browse files
committed
Update to master
1 parent 3d4f135 commit 33de6e3

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

main/display.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ esp_err_t display_init(void * pvParameters)
6969

7070
lvgl_port_cfg_t lvgl_cfg = ESP_LVGL_PORT_INIT_CONFIG();
7171

72-
lvgl_cfg.task_stack_caps = MALLOC_CAP_SPIRAM;
72+
// lvgl_cfg.task_stack_caps = MALLOC_CAP_SPIRAM;
7373

7474
if (GLOBAL_STATE->DISPLAY_CONFIG.display == NONE) {
7575
ESP_LOGI(TAG, "Initialize LVGL");

main/lv_conf.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
#define LV_BUILD_EXAMPLES 0
6868
#define LV_BUILD_DEMOS 0
6969

70-
#define LV_MEM_POOL_INCLUDE "esp_heap_caps.h"
71-
#define LV_MEM_POOL_ALLOC(size) heap_caps_malloc(size, MALLOC_CAP_SPIRAM | MALLOC_CAP_DMA)
70+
// #define LV_MEM_POOL_INCLUDE "esp_heap_caps.h"
71+
// #define LV_MEM_POOL_ALLOC(size) heap_caps_malloc(size, MALLOC_CAP_SPIRAM | MALLOC_CAP_DMA)
7272

7373
#endif /* LV_CONF_H */

main/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ void app_main(void)
122122
if (xTaskCreate(ASIC_result_task, "asic result", 8192, (void *) &GLOBAL_STATE, 15, NULL) != pdPASS) {
123123
ESP_LOGE(TAG, "Error creating asic result task");
124124
}
125-
if (xTaskCreateWithCaps(hashrate_monitor_task, "hashrate monitor", 8192, (void *) &GLOBAL_STATE, 5, NULL, MALLOC_CAP_SPIRAM) != pdPASS) {
125+
if (xTaskCreate(hashrate_monitor_task, "hashrate monitor", 8192, (void *) &GLOBAL_STATE, 5, NULL) != pdPASS) {
126126
ESP_LOGE(TAG, "Error creating hashrate monitor task");
127127
}
128128
if (GLOBAL_STATE.psram_is_available) {

main/tasks/asic_task.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ void ASIC_task(void *pvParameters)
2121
//initialize the semaphore
2222
GLOBAL_STATE->ASIC_TASK_MODULE.semaphore = xSemaphoreCreateBinary();
2323

24-
GLOBAL_STATE->ASIC_TASK_MODULE.active_jobs = heap_caps_malloc(sizeof(bm_job *) * 128, MALLOC_CAP_SPIRAM);
25-
GLOBAL_STATE->valid_jobs = heap_caps_malloc(sizeof(uint8_t) * 128, MALLOC_CAP_SPIRAM);
24+
GLOBAL_STATE->ASIC_TASK_MODULE.active_jobs = malloc(sizeof(bm_job *) * 128);
25+
GLOBAL_STATE->valid_jobs = malloc(sizeof(uint8_t) * 128);
2626
for (int i = 0; i < 128; i++)
2727
{
2828
GLOBAL_STATE->ASIC_TASK_MODULE.active_jobs[i] = NULL;

main/tasks/hashrate_monitor_task.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,15 +85,15 @@ void hashrate_monitor_task(void *pvParameters)
8585
int asic_count = GLOBAL_STATE->DEVICE_CONFIG.family.asic_count;
8686
int hash_domains = GLOBAL_STATE->DEVICE_CONFIG.family.asic.hash_domains;
8787

88-
HASHRATE_MONITOR_MODULE->total_measurement = heap_caps_malloc(asic_count * sizeof(measurement_t), MALLOC_CAP_SPIRAM);
88+
HASHRATE_MONITOR_MODULE->total_measurement = malloc(asic_count * sizeof(measurement_t));
8989
if (hash_domains > 0) {
9090
measurement_t* data = malloc(asic_count * hash_domains * sizeof(measurement_t));
91-
HASHRATE_MONITOR_MODULE->domain_measurements = heap_caps_malloc(hash_domains * sizeof(measurement_t*), MALLOC_CAP_SPIRAM);
91+
HASHRATE_MONITOR_MODULE->domain_measurements = malloc(hash_domains * sizeof(measurement_t*));
9292
for (size_t i = 0; i < hash_domains; i++) {
9393
HASHRATE_MONITOR_MODULE->domain_measurements[i] = data + (i * asic_count);
9494
}
9595
}
96-
HASHRATE_MONITOR_MODULE->error_measurement = heap_caps_malloc(asic_count * sizeof(measurement_t), MALLOC_CAP_SPIRAM);
96+
HASHRATE_MONITOR_MODULE->error_measurement = malloc(asic_count * sizeof(measurement_t));
9797

9898
clear_measurements(HASHRATE_MONITOR_MODULE, asic_count, hash_domains);
9999

0 commit comments

Comments
 (0)