Revision bb7c5348 templates/periphAL.h
templates/periphAL.h | ||
---|---|---|
292 | 292 |
*/ |
293 | 293 |
typedef osSPIDriver_t apalSPIDriver_t; |
294 | 294 |
|
295 |
/** |
|
296 |
* @brief SPI confguration type. |
|
297 |
*/ |
|
298 |
typedef osSPIConfig apalSPIConfig_t; |
|
299 |
|
|
295 | 300 |
#ifdef __cplusplus |
296 | 301 |
extern "C" { |
297 | 302 |
#endif |
298 | 303 |
|
299 | 304 |
/** |
305 |
* @brief Reconfigure an SPI driver. |
|
306 |
* |
|
307 |
* @param[in] spid The SPI driver to be reconfigured. |
|
308 |
* @param[in] config Configuration to apply. |
|
309 |
* |
|
310 |
* @return The status indicates whether the function call was succesful. |
|
311 |
*/ |
|
312 |
static inline apalExitStatus_t apalSPIReconfigure(apalSPIDriver_t* spid, const apalSPIConfig_t* config); |
|
313 |
|
|
314 |
/** |
|
300 | 315 |
* @brief Transmit and receive data from SPI |
301 | 316 |
* |
302 | 317 |
* @param[in] spid The SPI driver to use. |
Also available in: Unified diff