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 * -----------------------------------------------------------------------------
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 // <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
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.
43 #define SPI_SERVER_DRV_NUM 1
44 #define SPI_SERVER_BUF_SIZE 4096
45 #define SPI_SERVER_CMD_TIMEOUT 100