2 * Copyright (c) 2020 Arm Limited. All rights reserved.
4 * SPDX-License-Identifier: Apache-2.0
6 * Licensed under the Apache License, Version 2.0 (the License); you may
7 * not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
10 * www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an AS IS BASIS, WITHOUT
14 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
18 * -----------------------------------------------------------------------------
21 * Title: SPI Server hardware specific driver implementation template
23 * -----------------------------------------------------------------------------
26 #include "SPI_Server_HW.h"
28 // Add device specific include files here
29 // <code SPI_Server_include_files>
36 \fn void SPI_Server_Pin_SS_Initialize (void)
37 \brief Initialize, power up and configure Slave Select pin as GPIO.
40 void SPI_Server_Pin_SS_Initialize (void) {
41 // Add code for initializing Slave Select pin here
42 // <code SPI_Server_Pin_SS_Initialize>
48 \fn void SPI_Server_Pin_SS_Uninitialize (void)
49 \brief Unconfigure, power down and uninitialize Slave Select pin.
52 void SPI_Server_Pin_SS_Uninitialize (void) {
53 // Add code for uninitializing Slave Select pin here
54 // <code SPI_Server_Pin_SS_Uninitialize>
60 \fn void SPI_Server_Pin_SS_SetState (uint32_t state)
61 \brief Set state of Slave Select pin.
62 \param[in] state State to be set
63 - 0: Drive pin to not active state
64 - != 0: Drive pin to active state
67 void SPI_Server_Pin_SS_SetState (uint32_t state) {
68 // Add code for driving Slave Select pin here
69 // <code SPI_Server_Pin_SS_SetState>