Ignore:
Timestamp:
Oct 15, 2026, 2:21:26 PM (3 weeks ago)
Author:
Zed
Message:

This is a commit where debugging of the main App is possible and RTT also works (BOOT0 = Low, BOOT1 = LOW and then attach the SES Debugger).

Location:
trunk/firmware/App/CubeMX/Appli/Core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/firmware/App/CubeMX/Appli/Core/Inc/main.h

    r30 r34  
    6161/* USER CODE BEGIN EC */
    6262
     63#define SD_PRESENT              GPIO_PIN_RESET
     64#define SD_NOT_PRESENT  GPIO_PIN_SET
     65
    6366/* USER CODE END EC */
    6467
    … …  
    8588#define LED_GREEN_Pin GPIO_PIN_1
    8689#define LED_GREEN_GPIO_Port GPIOO
    87 #define DETECT_SD_Pin GPIO_PIN_12
    88 #define DETECT_SD_GPIO_Port GPION
     90#define SD_PRESENCE_Pin GPIO_PIN_12
     91#define SD_PRESENCE_GPIO_Port GPION
    8992
    9093/* USER CODE BEGIN Private defines */
  • trunk/firmware/App/CubeMX/Appli/Core/Src/gpio.c

    r30 r34  
    7373  HAL_GPIO_Init(GPIOO, &GPIO_InitStruct);
    7474
    75   /*Configure GPIO pin : DETECT_SD_Pin */
    76   GPIO_InitStruct.Pin = DETECT_SD_Pin;
     75  /*Configure GPIO pin : SD_PRESENCE_Pin */
     76  GPIO_InitStruct.Pin = SD_PRESENCE_Pin;
    7777  GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
    7878  GPIO_InitStruct.Pull = GPIO_NOPULL;
    79   HAL_GPIO_Init(DETECT_SD_GPIO_Port, &GPIO_InitStruct);
     79  HAL_GPIO_Init(SD_PRESENCE_GPIO_Port, &GPIO_InitStruct);
    8080
    8181}
Note: See TracChangeset for help on using the changeset viewer.