Updated some pointer casts to get warning free compilation for 64-bit targets.

A few tweaks to get rid of warnings for some driver/board/configuration combinations.
This commit is contained in:
Terje Io
2025-10-20 08:10:58 +02:00
parent ed2a392dd7
commit b5b236ca3f
6 changed files with 24 additions and 12 deletions

View File

@@ -313,7 +313,7 @@ nvs_address_t nvs_alloc (size_t size)
size += NVS_CRC_BYTES; // add room for checksum.
if(hal.nvs.driver_area.size + size < (nvs_size_max - GRBL_NVS_SIZE)) {
mem_address = (uint8_t *)((uint32_t)(mem_address - 1) | 0x03) + 1; // Align to word boundary
mem_address = (uint8_t *)((uintptr_t)(mem_address - 1) | 0x03) + 1; // Align to word boundary
addr = mem_address - nvsbuffer;
mem_address += size;
hal.nvs.driver_area.size = mem_address - hal.nvs.driver_area.mem_address;