1#=============================================================================== 2# @brief Kconfig file. 3# Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED. 4#=============================================================================== 5config SAMPLE_SUPPORT_SPI_MASTER 6 bool 7 prompt "Support SPI Master Sample." 8 default n 9 depends on SAMPLE_SUPPORT_SPI 10 help 11 This option means support SPI Master Sample. 12 13config SPI_MASTER_BUS_ID 14 int 15 prompt "Choose SPI master bus id." 16 depends on SAMPLE_SUPPORT_SPI_MASTER 17 default 2 18 19config SPI_DI_MASTER_PIN 20 int 21 prompt "Choose SPI DI master pin." 22 depends on SAMPLE_SUPPORT_SPI_MASTER 23 default 16 24 25config SPI_DO_MASTER_PIN 26 int 27 prompt "Choose SPI DO master pin." 28 depends on SAMPLE_SUPPORT_SPI_MASTER 29 default 17 30 31config SPI_CLK_MASTER_PIN 32 int 33 prompt "Choose SPI CLK master pin." 34 depends on SAMPLE_SUPPORT_SPI_MASTER 35 default 18 36 37config SPI_CS_MASTER_PIN 38 int 39 prompt "Choose SPI CS master pin." 40 depends on SAMPLE_SUPPORT_SPI_MASTER 41 default 19 42 43config SPI_MASTER_PIN_MODE 44 int 45 prompt "Choose SPI master pin mode." 46 depends on SAMPLE_SUPPORT_SPI_MASTER 47 default 1 48 49config SAMPLE_SUPPORT_SPI_SLAVE 50 bool 51 prompt "Support SPI Slave Sample." 52 default n 53 depends on SAMPLE_SUPPORT_SPI 54 help 55 This option means support SPI Slave Sample. 56 57config SPI_SLAVE_BUS_ID 58 int 59 prompt "Choose SPI slave bus id." 60 depends on SAMPLE_SUPPORT_SPI_SLAVE 61 default 4 62 63config SPI_DI_SLAVE_PIN 64 int 65 prompt "Choose SPI DI slave pin." 66 depends on SAMPLE_SUPPORT_SPI_SLAVE 67 default 12 68 69config SPI_DO_SLAVE_PIN 70 int 71 prompt "Choose SPI DO slave pin." 72 depends on SAMPLE_SUPPORT_SPI_SLAVE 73 default 13 74 75config SPI_CLK_SLAVE_PIN 76 int 77 prompt "Choose SPI CLK slave pin." 78 depends on SAMPLE_SUPPORT_SPI_SLAVE 79 default 14 80 81config SPI_CS_SLAVE_PIN 82 int 83 prompt "Choose SPI CS slave pin." 84 depends on SAMPLE_SUPPORT_SPI_SLAVE 85 default 15 86 87config SPI_SLAVE_PIN_MODE 88 int 89 prompt "Choose SPI slave pin mode." 90 depends on SAMPLE_SUPPORT_SPI_SLAVE 91 default 5 92 93config SPI_TRANSFER_LEN 94 int 95 prompt "Choose SPI transfer length." 96 depends on SAMPLE_SUPPORT_SPI 97 default 8