Ignore:
Timestamp:
Jan 10, 2025, 4:18:37 PM (5 days ago)
Author:
Zed
Message:

HAL library was updated.
SD DETECT pin is working.

Location:
ctrl/firmware/Main/CubeMX/Core/Src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ctrl/firmware/Main/CubeMX/Core/Src/gpio.c

    r58 r59  
    174174  GPIO_InitStruct.Pin = SD_DETECT_Pin;
    175175  GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
    176   GPIO_InitStruct.Pull = GPIO_PULLDOWN;
     176  GPIO_InitStruct.Pull = GPIO_PULLUP;
    177177  HAL_GPIO_Init(SD_DETECT_GPIO_Port, &GPIO_InitStruct);
    178178
  • ctrl/firmware/Main/CubeMX/Core/Src/main.c

    r54 r59  
    6262void SPI_WriteComm(uint8_t);
    6363void SPI_WriteData(uint8_t);
     64void DoNothing(void) {};
    6465
    6566
     
    110111
    111112  /* USER CODE END SysInit */
    112 
     113#define MX_SDMMC1_SD_Init DoNothing
    113114  /* Initialize all configured peripherals */
    114115  MX_GPIO_Init();
     
    118119  MX_SDMMC1_SD_Init();
    119120  /* USER CODE BEGIN 2 */
    120 
     121#undef MX_SDMMC1_SD_Init
    121122  /* USER CODE END 2 */
    122123
Note: See TracChangeset for help on using the changeset viewer.