Skip to content

Commit 3164ca9

Browse files
committed
Merge branch 'dev-latest' into bitaxetouchV2.6.1
2 parents 0cb3ab9 + 16efae0 commit 3164ca9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+666
-437
lines changed

.devcontainer/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM espressif/idf:v5.4
1+
FROM espressif/idf:v5.4.1
22

33
ARG DEBIAN_FRONTEND=nointeractive
44

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: esp-idf build
2121
uses: espressif/esp-idf-ci-action@v1
2222
with:
23-
esp_idf_version: v5.4
23+
esp_idf_version: v5.4.1
2424
target: esp32s3
2525
command: GITHUB_ACTIONS="true" idf.py build
2626
path: '.'

.github/workflows/release-beta.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: esp-idf build
3030
uses: espressif/esp-idf-ci-action@v1
3131
with:
32-
esp_idf_version: v5.4
32+
esp_idf_version: v5.4.1
3333
target: esp32s3
3434
command: GITHUB_ACTIONS="true" idf.py build
3535
path: '.'

.github/workflows/release-factory-beta.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ jobs:
3434
- name: esp-idf build
3535
uses: espressif/esp-idf-ci-action@v1
3636
with:
37-
esp_idf_version: v5.4
37+
esp_idf_version: v5.4.1
3838
target: esp32s3
3939
command: GITHUB_ACTIONS="true" idf.py build
4040
path: '.'
4141
- name: "esp-idf build factory config for ${{ matrix.build_type }}"
4242
uses: espressif/esp-idf-ci-action@v1
4343
with:
44-
esp_idf_version: v5.4
44+
esp_idf_version: v5.4.1
4545
target: esp32s3
4646
command: /opt/esp/idf/components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py generate config-${{ matrix.build_type }}.cvs config.bin 0x6000
4747
path: '.'

.github/workflows/release-factory.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ jobs:
3434
- name: esp-idf build
3535
uses: espressif/esp-idf-ci-action@v1
3636
with:
37-
esp_idf_version: v5.4
37+
esp_idf_version: v5.4.1
3838
target: esp32s3
3939
command: GITHUB_ACTIONS="true" idf.py build
4040
path: '.'
4141
- name: "esp-idf build factory config for ${{ matrix.build_type }}"
4242
uses: espressif/esp-idf-ci-action@v1
4343
with:
44-
esp_idf_version: v5.4
44+
esp_idf_version: v5.4.1
4545
target: esp32s3
4646
command: /opt/esp/idf/components/nvs_flash/nvs_partition_generator/nvs_partition_gen.py generate config-${{ matrix.build_type }}.cvs config.bin 0x6000
4747
path: '.'

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
- name: esp-idf build
3030
uses: espressif/esp-idf-ci-action@v1
3131
with:
32-
esp_idf_version: v5.4
32+
esp_idf_version: v5.4.1
3333
target: esp32s3
3434
command: GITHUB_ACTIONS="true" idf.py build
3535
path: '.'

.github/workflows/unittest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: esp-idf build
1818
uses: espressif/esp-idf-ci-action@v1
1919
with:
20-
esp_idf_version: v5.4
20+
esp_idf_version: v5.4.1
2121
target: esp32s3
2222
command: GITHUB_ACTIONS="true" idf.py build
2323
path: 'test-ci'

components/asic/bm1397.c

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -115,23 +115,23 @@ static void _send_read_address(void)
115115
{
116116
unsigned char read_address[2] = {0x00, 0x00};
117117
// send serial data
118-
_send_BM1397((TYPE_CMD | GROUP_ALL | CMD_READ), read_address, 2, BM1937_SERIALTX_DEBUG);
118+
_send_BM1397((TYPE_CMD | GROUP_ALL | CMD_READ), read_address, 2, BM1397_SERIALTX_DEBUG);
119119
}
120120

121121
static void _send_chain_inactive(void)
122122
{
123123

124124
unsigned char read_address[2] = {0x00, 0x00};
125125
// send serial data
126-
_send_BM1397((TYPE_CMD | GROUP_ALL | CMD_INACTIVE), read_address, 2, BM1937_SERIALTX_DEBUG);
126+
_send_BM1397((TYPE_CMD | GROUP_ALL | CMD_INACTIVE), read_address, 2, BM1397_SERIALTX_DEBUG);
127127
}
128128

129129
static void _set_chip_address(uint8_t chipAddr)
130130
{
131131

132132
unsigned char read_address[2] = {chipAddr, 0x00};
133133
// send serial data
134-
_send_BM1397((TYPE_CMD | GROUP_SINGLE | CMD_SETADDRESS), read_address, 2, BM1937_SERIALTX_DEBUG);
134+
_send_BM1397((TYPE_CMD | GROUP_SINGLE | CMD_SETADDRESS), read_address, 2, BM1397_SERIALTX_DEBUG);
135135
}
136136

137137
void BM1397_set_version_mask(uint32_t version_mask) {
@@ -214,12 +214,12 @@ void BM1397_send_hash_frequency(float frequency)
214214
for (i = 0; i < 2; i++)
215215
{
216216
vTaskDelay(10 / portTICK_PERIOD_MS);
217-
_send_BM1397((TYPE_CMD | GROUP_ALL | CMD_WRITE), prefreq1, 6, BM1937_SERIALTX_DEBUG);
217+
_send_BM1397((TYPE_CMD | GROUP_ALL | CMD_WRITE), prefreq1, 6, BM1397_SERIALTX_DEBUG);
218218
}
219219
for (i = 0; i < 2; i++)
220220
{
221221
vTaskDelay(10 / portTICK_PERIOD_MS);
222-
_send_BM1397((TYPE_CMD | GROUP_ALL | CMD_WRITE), freqbuf, 6, BM1937_SERIALTX_DEBUG);
222+
_send_BM1397((TYPE_CMD | GROUP_ALL | CMD_WRITE), freqbuf, 6, BM1397_SERIALTX_DEBUG);
223223
}
224224

225225
vTaskDelay(10 / portTICK_PERIOD_MS);
@@ -248,24 +248,24 @@ static uint8_t _send_init(uint64_t frequency, uint16_t asic_count)
248248
}
249249

250250
unsigned char init[6] = {0x00, CLOCK_ORDER_CONTROL_0, 0x00, 0x00, 0x00, 0x00}; // init1 - clock_order_control0
251-
_send_BM1397((TYPE_CMD | GROUP_ALL | CMD_WRITE), init, 6, BM1937_SERIALTX_DEBUG);
251+
_send_BM1397((TYPE_CMD | GROUP_ALL | CMD_WRITE), init, 6, BM1397_SERIALTX_DEBUG);
252252

253253
unsigned char init2[6] = {0x00, CLOCK_ORDER_CONTROL_1, 0x00, 0x00, 0x00, 0x00}; // init2 - clock_order_control1
254-
_send_BM1397((TYPE_CMD | GROUP_ALL | CMD_WRITE), init2, 6, BM1937_SERIALTX_DEBUG);
254+
_send_BM1397((TYPE_CMD | GROUP_ALL | CMD_WRITE), init2, 6, BM1397_SERIALTX_DEBUG);
255255

256256
unsigned char init3[9] = {0x00, ORDERED_CLOCK_ENABLE, 0x00, 0x00, 0x00, 0x01}; // init3 - ordered_clock_enable
257-
_send_BM1397((TYPE_CMD | GROUP_ALL | CMD_WRITE), init3, 6, BM1937_SERIALTX_DEBUG);
257+
_send_BM1397((TYPE_CMD | GROUP_ALL | CMD_WRITE), init3, 6, BM1397_SERIALTX_DEBUG);
258258

259259
unsigned char init4[9] = {0x00, CORE_REGISTER_CONTROL, 0x80, 0x00, 0x80, 0x74}; // init4 - init_4_?
260-
_send_BM1397((TYPE_CMD | GROUP_ALL | CMD_WRITE), init4, 6, BM1937_SERIALTX_DEBUG);
260+
_send_BM1397((TYPE_CMD | GROUP_ALL | CMD_WRITE), init4, 6, BM1397_SERIALTX_DEBUG);
261261

262262
BM1397_set_job_difficulty_mask(BM1397_ASIC_DIFFICULTY);
263263

264264
unsigned char init5[9] = {0x00, PLL3_PARAMETER, 0xC0, 0x70, 0x01, 0x11}; // init5 - pll3_parameter
265-
_send_BM1397((TYPE_CMD | GROUP_ALL | CMD_WRITE), init5, 6, BM1937_SERIALTX_DEBUG);
265+
_send_BM1397((TYPE_CMD | GROUP_ALL | CMD_WRITE), init5, 6, BM1397_SERIALTX_DEBUG);
266266

267267
unsigned char init6[9] = {0x00, FAST_UART_CONFIGURATION, 0x06, 0x00, 0x00, 0x0F}; // init6 - fast_uart_configuration
268-
_send_BM1397((TYPE_CMD | GROUP_ALL | CMD_WRITE), init6, 6, BM1937_SERIALTX_DEBUG);
268+
_send_BM1397((TYPE_CMD | GROUP_ALL | CMD_WRITE), init6, 6, BM1397_SERIALTX_DEBUG);
269269

270270
BM1397_set_default_baud();
271271

@@ -308,7 +308,7 @@ int BM1397_set_default_baud(void)
308308
{
309309
// default divider of 26 (11010) for 115,749
310310
unsigned char baudrate[9] = {0x00, MISC_CONTROL, 0x00, 0x00, 0b01111010, 0b00110001}; // baudrate - misc_control
311-
_send_BM1397((TYPE_CMD | GROUP_ALL | CMD_WRITE), baudrate, 6, BM1937_SERIALTX_DEBUG);
311+
_send_BM1397((TYPE_CMD | GROUP_ALL | CMD_WRITE), baudrate, 6, BM1397_SERIALTX_DEBUG);
312312
return 115749;
313313
}
314314

@@ -318,7 +318,7 @@ int BM1397_set_max_baud(void)
318318
ESP_LOGI(TAG, "Setting max baud of 3125000");
319319
unsigned char baudrate[9] = {0x00, MISC_CONTROL, 0x00, 0x00, 0b01100000, 0b00110001};
320320
; // baudrate - misc_control
321-
_send_BM1397((TYPE_CMD | GROUP_ALL | CMD_WRITE), baudrate, 6, BM1937_SERIALTX_DEBUG);
321+
_send_BM1397((TYPE_CMD | GROUP_ALL | CMD_WRITE), baudrate, 6, BM1397_SERIALTX_DEBUG);
322322
return 3125000;
323323
}
324324

@@ -348,7 +348,7 @@ void BM1397_set_job_difficulty_mask(int difficulty)
348348

349349
ESP_LOGI(TAG, "Setting job ASIC mask to %d", difficulty);
350350

351-
_send_BM1397((TYPE_CMD | GROUP_ALL | CMD_WRITE), job_difficulty_mask, 6, BM1937_SERIALTX_DEBUG);
351+
_send_BM1397((TYPE_CMD | GROUP_ALL | CMD_WRITE), job_difficulty_mask, 6, BM1397_SERIALTX_DEBUG);
352352
}
353353

354354
static uint8_t id = 0;

components/asic/include/bm1366.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@
1717
static const uint64_t BM1366_CORE_COUNT = 112;
1818
static const uint64_t BM1366_SMALL_CORE_COUNT = 894;
1919

20-
typedef struct
21-
{
22-
float frequency;
23-
} bm1366Module;
24-
2520
typedef struct __attribute__((__packed__))
2621
{
2722
uint8_t job_id;

components/asic/include/bm1368.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@
1717
static const uint64_t BM1368_CORE_COUNT = 80;
1818
static const uint64_t BM1368_SMALL_CORE_COUNT = 1276;
1919

20-
typedef struct
21-
{
22-
float frequency;
23-
} bm1368Module;
24-
2520
typedef struct __attribute__((__packed__))
2621
{
2722
uint8_t job_id;

0 commit comments

Comments
 (0)