make a spifw to test spi access from fw

This commit is contained in:
dehanj 2024-07-04 15:02:16 +02:00 committed by Daniel Jobson
parent e0a32da775
commit a1e3172d95
No known key found for this signature in database
GPG key ID: 3707A9DBF4BB8F1A
9 changed files with 623 additions and 2 deletions

View 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