mirror of
https://github.com/tillitis/tillitis-key1.git
synced 2025-08-18 11:18:03 -04:00
make a spifw to test spi access from fw
This commit is contained in:
parent
e0a32da775
commit
a1e3172d95
9 changed files with 623 additions and 2 deletions
16
hw/application_fpga/fw/spifw/spi.h
Normal file
16
hw/application_fpga/fw/spifw/spi.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
// Copyright (C) 2022, 2023 - Tillitis AB
|
||||
// SPDX-License-Identifier: GPL-2.0-only
|
||||
|
||||
#ifndef TKEY_SPI_H
|
||||
#define TKEY_SPI_H
|
||||
|
||||
// #include <stddef.h>
|
||||
// #include <stdint.h>
|
||||
#include "../tk1/types.h"
|
||||
|
||||
int spi_ready(void);
|
||||
int spi_write(uint8_t *cmd, size_t size_cmd, uint8_t *data, size_t size_data);
|
||||
int spi_transfer(uint8_t *tx_buf, size_t tx_size, uint8_t *rx_buf,
|
||||
size_t rx_size);
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue