This fork captures the mbed lib v125 for ease of integration into older projects.
Fork of mbed-dev by
Diff: hal/spi_api.h
- Revision:
- 187:92cbb9eec47b
- Parent:
- 184:08ed48f1de7f
diff -r 707f6e361f3e -r 92cbb9eec47b hal/spi_api.h --- a/hal/spi_api.h Fri Jun 22 16:45:37 2018 +0100 +++ b/hal/spi_api.h Fri Jul 20 21:24:42 2018 +0000 @@ -1,6 +1,3 @@ - -/** \addtogroup hal */ -/** @{*/ /* mbed Microcontroller Library * Copyright (c) 2006-2013 ARM Limited * @@ -20,8 +17,8 @@ #define MBED_SPI_API_H #include "device.h" -#include "hal/dma_api.h" -#include "hal/buffer.h" +#include "dma_api.h" +#include "buffer.h" #if DEVICE_SPI @@ -33,7 +30,6 @@ #define SPI_EVENT_INTERNAL_TRANSFER_COMPLETE (1 << 30) // Internal flag to report that an event occurred #define SPI_FILL_WORD (0xFFFF) -#define SPI_FILL_CHAR (0xFF) #if DEVICE_SPI_ASYNCH /** Asynch SPI HAL structure @@ -117,24 +113,6 @@ */ int spi_master_write(spi_t *obj, int value); -/** Write a block out in master mode and receive a value - * - * The total number of bytes sent and received will be the maximum of - * tx_length and rx_length. The bytes written will be padded with the - * value 0xff. - * - * @param[in] obj The SPI peripheral to use for sending - * @param[in] tx_buffer Pointer to the byte-array of data to write to the device - * @param[in] tx_length Number of bytes to write, may be zero - * @param[in] rx_buffer Pointer to the byte-array of data to read from the device - * @param[in] rx_length Number of bytes to read, may be zero - * @param[in] write_fill Default data transmitted while performing a read - * @returns - * The number of bytes written and read from the device. This is - * maximum of tx_length and rx_length. - */ -int spi_master_block_write(spi_t *obj, const char *tx_buffer, int tx_length, char *rx_buffer, int rx_length, char write_fill); - /** Check if a value is available to read * * @param[in] obj The SPI peripheral to check @@ -234,5 +212,3 @@ #endif // SPI_DEVICE #endif // MBED_SPI_API_H - -/** @}*/