File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
targets/TARGET_STM/TARGET_STM32F4/TARGET_STM32F413xH/TARGET_DISCO_F413ZH Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -97,6 +97,17 @@ void SystemInit(void)
97
97
SCB -> VTOR = FLASH_BASE | VECT_TAB_OFFSET ; /* Vector Table Relocation in Internal FLASH */
98
98
#endif
99
99
100
+ /* In DISCO_F413ZH board, Arduino connector and Wifi embeded module are sharing the same SPI pins */
101
+ /* We need to set the default SPI SS pin for the Wifi module to the inactive state i.e. 1 */
102
+ /* See board User Manual: WIFI_SPI_CS = PG_11*/
103
+ __HAL_RCC_GPIOG_CLK_ENABLE ();
104
+ GPIO_InitTypeDef GPIO_InitStruct ;
105
+ GPIO_InitStruct .Mode = GPIO_MODE_OUTPUT_PP ;
106
+ GPIO_InitStruct .Pull = GPIO_NOPULL ;
107
+ GPIO_InitStruct .Speed = GPIO_SPEED_FAST ;
108
+ GPIO_InitStruct .Pin = GPIO_PIN_11 ;
109
+ HAL_GPIO_Init (GPIOG , & GPIO_InitStruct );
110
+ HAL_GPIO_WritePin (GPIOG , GPIO_PIN_11 , GPIO_PIN_SET );
100
111
}
101
112
102
113
You can’t perform that action at this time.
0 commit comments