Go to the documentation of this file.
33 #ifndef CHIBIOS_SPI_H_
34 #define CHIBIOS_SPI_H_
40 #if (HAL_USE_SPI==TRUE)
76 #endif // HAL_USE_SPI==TRUE
78 #endif // CHIBIOS_SPI_H_
const struct no_os_spi_platform_ops chibios_spi_ops
chibios platform specific SPI platform ops structure
Definition: chibios_spi.c:141
Structure holding the initialization parameters for chibios platform specific SPI parameters.
Definition: chibios_spi.h:53
chibios platform specific SPI descriptor
Definition: chibios_spi.h:64
SPIConfig * spicfg
Definition: chibios_spi.h:68
Header file of SPI Interface.
SPIConfig * spicfg
Definition: chibios_spi.h:57
int32_t chibios_spi_remove(struct no_os_spi_desc *desc)
Free the resources allocated by no_os_spi_init().
Definition: chibios_spi.c:96
void * no_os_calloc(size_t nitems, size_t size)
Allocate memory and return a pointer to it, set memory to 0.
Definition: chibios_alloc.c:54
int32_t chibios_spi_write_and_read(struct no_os_spi_desc *desc, uint8_t *data, uint16_t bytes_number)
Write and read data to/from SPI.
Definition: chibios_spi.c:118
int32_t chibios_spi_init(struct no_os_spi_desc **desc, const struct no_os_spi_init_param *param)
Initialize the SPI communication peripheral.
Definition: chibios_spi.c:48
Structure holding SPI descriptor.
Definition: no_os_spi.h:192
Header file for the chibios spi driver.
void * extra
Definition: no_os_spi.h:212
void no_os_free(void *ptr)
Deallocate memory previously allocated by a call to no_os_calloc or no_os_malloc.
Definition: chibios_alloc.c:69
SPIDriver * hspi
Definition: chibios_spi.h:66
const struct no_os_spi_platform_ops chibios_spi_ops
chibios specific SPI platform ops structure
Definition: chibios_spi.c:141
SPIDriver * hspi
Definition: chibios_spi.h:55
Header file of utility functions.
void * extra
Definition: no_os_spi.h:158
Error macro definition for ARM Compiler.
Structure holding the parameters for SPI initialization.
Definition: no_os_spi.h:140