2 * Copyright (c) 2020-2021 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 * -----------------------------------------------------------------------------
20 * Project: USART Server
21 * Title: USART Server hardware specific driver implementation template
23 * -----------------------------------------------------------------------------
26 #include "USART_Server_HW.h"
30 // Add device specific include files here
31 // <code USART_Server_include_files>
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.
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>
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.
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>
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
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>
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
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>