epic
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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]);
|
||||
|
||||
Reference in New Issue
Block a user