This commit is contained in:
Ben Kyd
2023-06-05 23:05:59 +01:00
parent cd7c124e24
commit 984d2de97d
2 changed files with 1 additions and 11 deletions

View File

@@ -9,7 +9,6 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Werror")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wextra")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2")
project(passr)

View File

@@ -58,15 +58,6 @@ static int spi_write_test_msg(void)
.count = 1
};
/* struct spi_buf rx_buf = {
.buf = rx_buffer,
.len = sizeof(rx_buffer),
};
const struct spi_buf_set rx = {
.buffers = &rx_buf,
.count = 1
} */;
// Update the TX buffer with a rolling counter
tx_buffer[0] = counter++;
printk("SPI TX: 0x%.2x, 0x%.2x\n", tx_buffer[0], tx_buffer[1]);