]> begriffs open source - cmsis-driver-validation/blob - Tools/SPI_Server/Board/STM32F429I-DISC1/Config/SPI_Server_Config.h
Update GitHub Actions runner to ubuntu-22.04 (#18)
[cmsis-driver-validation] / Tools / SPI_Server / Board / STM32F429I-DISC1 / Config / SPI_Server_Config.h
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:     SPI Server
21  * Title:       SPI Server configuration file
22  *
23  * -----------------------------------------------------------------------------
24  */
25
26 #ifndef  SPI_SERVER_CONFIG_H_
27 #define  SPI_SERVER_CONFIG_H_
28
29 //-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
30
31 // <h> SPI Server
32 //   <i> SPI Server configuration.
33 //   <i> Fixed settings used by the SPI Server for command exchange are:
34 //   <i> Mode: Slave with Slave Select Hardware monitored
35 //   <i> Clock / Frame Format: Clock Polarity 0, Clock Phase 0
36 //   <i> Data Bits: 8
37 //   <i> Bit Order: MSB to LSB
38 //   <o0> Driver_SPI# <0-255>
39 //     <i> Choose the Driver_SPI# instance.
40 //     <i> For example to use Driver_SPI0 select 0.
41 // </h>
42
43 #define  SPI_SERVER_DRV_NUM             1
44 #define  SPI_SERVER_BUF_SIZE            4096
45 #define  SPI_SERVER_CMD_TIMEOUT         100
46
47 #endif