]> begriffs open source - cmsis-driver-validation/blob - Tools/SPI_Server/Config/SPI_Server_HW.c
Minor update to SPI Driver testing
[cmsis-driver-validation] / Tools / SPI_Server / Config / SPI_Server_HW.c
1 /*
2  * Copyright (c) 2020 Arm Limited. All rights reserved.
3  *
4  * SPDX-License-Identifier: Apache-2.0
5  *
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
9  *
10  * www.apache.org/licenses/LICENSE-2.0
11  *
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.
17  *
18  * -----------------------------------------------------------------------------
19  *
20  * Project:     SPI Server
21  * Title:       SPI Server hardware specific driver implementation template
22  *
23  * -----------------------------------------------------------------------------
24  */
25
26 #include "SPI_Server_HW.h"
27
28 // Add device specific include files here
29 // <code SPI_Server_include_files>
30
31 // </code>
32
33
34
35 /**
36   \fn            void SPI_Server_Pin_SS_Initialize (void)
37   \brief         Initialize, power up and configure Slave Select pin as GPIO.
38   \return        none
39 */
40 void SPI_Server_Pin_SS_Initialize (void) {
41   // Add code for initializing Slave Select pin here
42   // <code SPI_Server_Pin_SS_Initialize>
43
44   // </code>
45 }
46
47 /**
48   \fn            void SPI_Server_Pin_SS_Uninitialize (void)
49   \brief         Unconfigure, power down and uninitialize Slave Select pin.
50   \return        none
51 */
52 void SPI_Server_Pin_SS_Uninitialize (void) {
53   // Add code for uninitializing Slave Select pin here
54   // <code SPI_Server_Pin_SS_Uninitialize>
55
56   // </code>
57 }
58
59 /**
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
65   \return        none
66 */
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>
70
71   // </code>
72 }