|
@ -161,6 +161,7 @@ void board_spi_init() { |
|
|
spi_config.miso_pin = SPI_MISO_PIN; |
|
|
spi_config.miso_pin = SPI_MISO_PIN; |
|
|
spi_config.mosi_pin = SPI_MOSI_PIN; |
|
|
spi_config.mosi_pin = SPI_MOSI_PIN; |
|
|
spi_config.sck_pin = SPI_SCK_PIN; |
|
|
spi_config.sck_pin = SPI_SCK_PIN; |
|
|
|
|
|
spi_config.frequency = NRF_DRV_SPI_FREQ_1M; |
|
|
ZERROR_CHECK(nrf_drv_spi_init(&spi, &spi_config, NULL, NULL)); |
|
|
ZERROR_CHECK(nrf_drv_spi_init(&spi, &spi_config, NULL, NULL)); |
|
|
} |
|
|
} |
|
|
ret_code_t board_spi_transfer(uint8_t const* p_tx_buffer, uint8_t tx_buffer_length, uint8_t* p_rx_buffer, uint8_t rx_buffer_length) { |
|
|
ret_code_t board_spi_transfer(uint8_t const* p_tx_buffer, uint8_t tx_buffer_length, uint8_t* p_rx_buffer, uint8_t rx_buffer_length) { |
|
@ -178,7 +179,4 @@ ret_code_t board_spi_transfer_test() { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
void screen_init() {} |
|
|
void screen_init() {} |
|
|
void screen_spi_translate_onebyte() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
void screen_spi_translate_onebyte() {} |