]> begriffs open source - cmsis-driver-validation/blob - Tools/USART_Server/Config/USART_Server_HW.c
Update documentation hosted on github
[cmsis-driver-validation] / Tools / USART_Server / Config / USART_Server_HW.c
1 /*
2  * Copyright (c) 2020-2021 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:     USART Server
21  * Title:       USART Server hardware specific driver implementation template
22  *
23  * -----------------------------------------------------------------------------
24  */
25
26 #include "USART_Server_HW.h"
27
28 #include <stdint.h>
29
30 // Add device specific include files here
31 // <code USART_Server_include_files>
32
33 // </code>
34
35
36
37 /**
38   \fn            void USART_Server_Pins_Initialize (void)
39   \brief         Initialize, power up and configure GPIO pins used for 
40                  driving DCD and RI lines of the USART Client.
41   \return        none
42 */
43 void USART_Server_Pins_Initialize (void) {
44   // Add code for initializing pins for driving DCD and RI lines of the USART Client here
45   // <code USART_Server_Pins_Initialize>
46
47   // </code>
48 }
49
50 /**
51   \fn            void USART_Server_Pins_Uninitialize (void)
52   \brief         Unconfigure, power down and uninitialize GPIO pins used for
53                  driving DCD and RI lines of the USART Client.
54   \return        none
55 */
56 void USART_Server_Pins_Uninitialize (void) {
57   // Add code for uninitializing pins driving DCD and RI lines of the USART Client here
58   // <code USART_Server_Pins_Uninitialize>
59
60   // </code>
61 }
62
63 /**
64   \fn            void USART_Server_Pin_DCD_SetState (uint32_t state)
65   \brief         Set state of GPIO pin used for driving DCD line of the USART Client.
66   \param[in]     state          State to be set
67                    - 0:    Drive pin to not active state
68                    - != 0: Drive pin to active state
69   \return        none
70 */
71 void USART_Server_Pin_DCD_SetState (uint32_t state) {
72   // Add code for driving DCD line of the USART Client here
73   // <code USART_Server_Pin_DCD_SetState>
74
75   // </code>
76 }
77
78 /**
79   \fn            void USART_Server_Pin_RI_SetState (uint32_t state)
80   \brief         Set state of GPIO pin used for driving RI line of the USART Client.
81   \param[in]     state          State to be set
82                    - 0:    Drive pin to not active state
83                    - != 0: Drive pin to active state
84   \return        none
85 */
86 void USART_Server_Pin_RI_SetState (uint32_t state) {
87   // Add code for driving RI line of the USART Client here
88   // <code USART_Server_Pin_RI_SetState>
89
90   // </code>
91 }