Skip to content

Commit

Permalink
feat(PeriphDrivers): Add MXC_SPI_HWSSControl declaration to MAX78000 …
Browse files Browse the repository at this point in the history
…spi.h (#1335)

Signed-off-by: Yasin Ustuner <Yasin.Ustuner@analog.com>
Co-authored-by: Yasin Ustuner <Yasin.Ustuner@analog.com>
  • Loading branch information
yasinustunerg and yasin-ADI authored Feb 9, 2025
1 parent 29d66ed commit a3b045e
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Libraries/PeriphDrivers/Include/MAX78000/spi.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*
* Copyright (C) 2022-2023 Maxim Integrated Products, Inc. (now owned by
* Analog Devices, Inc.),
* Copyright (C) 2023-2024 Analog Devices, Inc.
* Copyright (C) 2023-2025 Analog Devices, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -654,6 +654,18 @@ void MXC_SPI_AbortAsync(mxc_spi_regs_t *spi);
* @param spi Pointer to SPI registers (selects the SPI block used.)
*/
void MXC_SPI_AsyncHandler(mxc_spi_regs_t *spi);

/**
* @brief Enable/Disable HW CS control feature.
*
* Depending on the application, the user might need to manually drive the slave select pin.
* The SPI driver automatically drives the SS pin and this function enables/disables this
* feature.
*
* @param spi Pointer to SPI registers (selects the SPI block used.)
* @param state Non-zero values: enable HW SS mode. Zero: disable HW SS mode.
*/
void MXC_SPI_HWSSControl(mxc_spi_regs_t *spi, int state);
/**@} end of group spi */

#ifdef __cplusplus
Expand Down

0 comments on commit a3b045e

Please sign in to comment.