Skip to content

Commit

Permalink
adding BM1368 support
Browse files Browse the repository at this point in the history
  • Loading branch information
skot committed Feb 4, 2024
1 parent 23599cf commit 444a2db
Show file tree
Hide file tree
Showing 10 changed files with 765 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
"cSpell.words": [
"ssid"
],
"idf.port": "/dev/cu.usbmodem1434301",
"idf.port": "/dev/cu.usbmodem1434401",
"C_Cpp.intelliSenseEngine": "Tag Parser"
}
1 change: 1 addition & 0 deletions components/bm1397/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
idf_component_register(
SRCS
"bm1368.c"
"bm1366.c"
"bm1397.c"
"serial.c"
Expand Down
4 changes: 2 additions & 2 deletions components/bm1397/bm1366.c
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static void _send_simple(uint8_t * data, uint8_t total_length)
{
unsigned char * buf = malloc(total_length);
memcpy(buf, data, total_length);
SERIAL_send(buf, total_length, false);
SERIAL_send(buf, total_length, true);

free(buf);
}
Expand Down Expand Up @@ -653,7 +653,7 @@ asic_result * BM1366_receive_work(void)
return (asic_result *) asic_response_buffer;
}

uint16_t reverse_uint16(uint16_t num)
static uint16_t reverse_uint16(uint16_t num)
{
return (num >> 8) | (num << 8);
}
Expand Down
Loading

0 comments on commit 444a2db

Please sign in to comment.