Changeset 59 for ctrl/firmware/Main/CubeMX/Core/Src
- Timestamp:
- Jan 10, 2025, 4:18:37 PM (6 days ago)
- Location:
- ctrl/firmware/Main/CubeMX/Core/Src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
ctrl/firmware/Main/CubeMX/Core/Src/gpio.c
r58 r59 174 174 GPIO_InitStruct.Pin = SD_DETECT_Pin; 175 175 GPIO_InitStruct.Mode = GPIO_MODE_INPUT; 176 GPIO_InitStruct.Pull = GPIO_PULL DOWN;176 GPIO_InitStruct.Pull = GPIO_PULLUP; 177 177 HAL_GPIO_Init(SD_DETECT_GPIO_Port, &GPIO_InitStruct); 178 178 -
ctrl/firmware/Main/CubeMX/Core/Src/main.c
r54 r59 62 62 void SPI_WriteComm(uint8_t); 63 63 void SPI_WriteData(uint8_t); 64 void DoNothing(void) {}; 64 65 65 66 … … 110 111 111 112 /* USER CODE END SysInit */ 112 113 #define MX_SDMMC1_SD_Init DoNothing 113 114 /* Initialize all configured peripherals */ 114 115 MX_GPIO_Init(); … … 118 119 MX_SDMMC1_SD_Init(); 119 120 /* USER CODE BEGIN 2 */ 120 121 #undef MX_SDMMC1_SD_Init 121 122 /* USER CODE END 2 */ 122 123
Note: See TracChangeset
for help on using the changeset viewer.