1 /** 2 * 3 * @defgroup nrfx_spis_config SPIS peripheral driver configuration 4 * @{ 5 * @ingroup nrfx_spis 6 */ 7 /** @brief 8 * 9 * Set to 1 to activate. 10 * 11 * @note This is an NRF_CONFIG macro. 12 */ 13 #define NRFX_SPIS_ENABLED 14 15 /** @brief Enable SPIS0 instance 16 * 17 * Set to 1 to activate. 18 * 19 * @note This is an NRF_CONFIG macro. 20 */ 21 #define NRFX_SPIS0_ENABLED 22 23 /** @brief Enable SPIS1 instance 24 * 25 * Set to 1 to activate. 26 * 27 * @note This is an NRF_CONFIG macro. 28 */ 29 #define NRFX_SPIS1_ENABLED 30 31 /** @brief Enable SPIS2 instance 32 * 33 * Set to 1 to activate. 34 * 35 * @note This is an NRF_CONFIG macro. 36 */ 37 #define NRFX_SPIS2_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_SPIS_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_SPIS_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_SPIS_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_SPIS_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_SPIS_CONFIG_DEBUG_COLOR 109 110 111 /** @brief Enables nRF52 Anomaly 109 workaround for SPIS. 112 * 113 * The workaround uses a GPIOTE channel to generate interrupts 114 * on falling edges detected on the CSN line. This will make 115 * the CPU active for the moment when SPIS starts DMA transfers, 116 * and this way the transfers will be protected. 117 * This workaround uses GPIOTE driver, so this driver must be 118 * enabled as well. 119 * 120 * Set to 1 to activate. 121 * 122 * @note This is an NRF_CONFIG macro. 123 */ 124 #define NRFX_SPIS_NRF52_ANOMALY_109_WORKAROUND_ENABLED 125 126 127 /** @} */ 128