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 configuration file
23 * -----------------------------------------------------------------------------
26 #ifndef SPI_SERVER_CONFIG_H_
27 #define SPI_SERVER_CONFIG_H_
29 //-------- <<< Use Configuration Wizard in Context Menu >>> --------------------
32 // <i> SPI Server configuration.
33 // <o0> Driver_SPI# <0-255>
34 // <i> Choose the Driver_SPI# instance.
35 // <i> For example to use Driver_SPI0 select 0.
36 // <h> Communication settings
37 // <i> These settings specify SPI communication interface configuration of the SPI Server
38 // <i> used for command / response exchange with the SPI Client.
39 // <o1> Clock / Frame Format
40 // <i> Select clock / frame format setting used by the SPI Server.
41 // <0=> Clock Polarity 0, Clock Phase 0
42 // <1=> Clock Polarity 0, Clock Phase 1
43 // <2=> Clock Polarity 1, Clock Phase 0
44 // <3=> Clock Polarity 1, Clock Phase 1
45 // <4=> Texas Instruments Frame Format
46 // <5=> National Semiconductor Microwire Frame Format
47 // <o2> Data Bits <8=> 8 <16=> 16
48 // <i> Select data bit setting used by the SPI Server.
49 // <o3> Bit Order <0=> MSB to LSB <1=> LSB to MSB
50 // <i> Select bit order setting used by the SPI Server.
54 #define SPI_SERVER_DRV_NUM 0
55 #define SPI_SERVER_FORMAT 0
56 #define SPI_SERVER_DATA_BITS 8
57 #define SPI_SERVER_BIT_ORDER 0
58 #define SPI_SERVER_BUF_SIZE 4096
59 #define SPI_SERVER_CMD_TIMEOUT 100