1 /** 2 * 3 * @defgroup nrfx_spi_config SPI peripheral driver configuration 4 * @{ 5 * @ingroup nrfx_spi 6 */ 7 /** @brief 8 * 9 * Set to 1 to activate. 10 * 11 * @note This is an NRF_CONFIG macro. 12 */ 13 #define NRFX_SPI_ENABLED 14 15 /** @brief Enable SPI0 instance 16 * 17 * Set to 1 to activate. 18 * 19 * @note This is an NRF_CONFIG macro. 20 */ 21 #define NRFX_SPI0_ENABLED 22 23 /** @brief Enable SPI1 instance 24 * 25 * Set to 1 to activate. 26 * 27 * @note This is an NRF_CONFIG macro. 28 */ 29 #define NRFX_SPI1_ENABLED 30 31 /** @brief Enable SPI2 instance 32 * 33 * Set to 1 to activate. 34 * 35 * @note This is an NRF_CONFIG macro. 36 */ 37 #define NRFX_SPI2_ENABLED 38 39 /** @brief Interrupt priority 40 * 41 * Following options are available: 42 * - 0 - 0 (highest) 43 * - 1 - 1 44 * - 2 - 2 45 * - 3 - 3 46 * - 4 - 4 (Not applicable for nRF51) 47 * - 5 - 5 (Not applicable for nRF51) 48 * - 6 - 6 (Not applicable for nRF51) 49 * - 7 - 7 (Not applicable for nRF51) 50 * 51 * @note This is an NRF_CONFIG macro. 52 */ 53 #define NRFX_SPI_DEFAULT_CONFIG_IRQ_PRIORITY 54 55 /** @brief Enables logging in the module. 56 * 57 * Set to 1 to activate. 58 * 59 * @note This is an NRF_CONFIG macro. 60 */ 61 #define NRFX_SPI_CONFIG_LOG_ENABLED 62 63 /** @brief Default Severity level 64 * 65 * Following options are available: 66 * - 0 - Off 67 * - 1 - Error 68 * - 2 - Warning 69 * - 3 - Info 70 * - 4 - Debug 71 * 72 * @note This is an NRF_CONFIG macro. 73 */ 74 #define NRFX_SPI_CONFIG_LOG_LEVEL 75 76 /** @brief ANSI escape code prefix. 77 * 78 * Following options are available: 79 * - 0 - Default 80 * - 1 - Black 81 * - 2 - Red 82 * - 3 - Green 83 * - 4 - Yellow 84 * - 5 - Blue 85 * - 6 - Magenta 86 * - 7 - Cyan 87 * - 8 - White 88 * 89 * @note This is an NRF_CONFIG macro. 90 */ 91 #define NRFX_SPI_CONFIG_INFO_COLOR 92 93 /** @brief ANSI escape code prefix. 94 * 95 * Following options are available: 96 * - 0 - Default 97 * - 1 - Black 98 * - 2 - Red 99 * - 3 - Green 100 * - 4 - Yellow 101 * - 5 - Blue 102 * - 6 - Magenta 103 * - 7 - Cyan 104 * - 8 - White 105 * 106 * @note This is an NRF_CONFIG macro. 107 */ 108 #define NRFX_SPI_CONFIG_DEBUG_COLOR 109 110 111 112 /** @} */ 113