Reshuffle file structure

This commit is contained in:
Hakan Bastedt
2023-12-31 09:17:42 +01:00
parent 1851f4168e
commit 485901120c
125 changed files with 45 additions and 45 deletions

View File

@@ -1,25 +0,0 @@
#ifndef SRC_APP_SPI_H_
#define SRC_APP_SPI_H_
#include <stdint.h>
#define SCS_LOW 0
#define SCS_HIGH 1
#define SCS_ACTIVE_POLARITY SCS_LOW
#define SPIX_ESC SPI1
//#define SPIX_ESC_SPEED 18000000
#define SPIX_ESC_SPEED 50000000
#define ESC_GPIO_Pin_CS PC4
#define DUMMY_BYTE 0xFF
extern "C" void spi_setup(void);
extern "C" void spi_select (int8_t board);
extern "C" void spi_unselect (int8_t board);
extern "C" void write (int8_t board, uint8_t *data, uint8_t size);
extern "C" void read (int8_t board, uint8_t *result, uint8_t size);
extern "C" void spi_bidirectionally_transfer (int8_t board, uint8_t *result, uint8_t *data, uint8_t size);
#endif /* SRC_APP_SPI_H_ */