Ignore:
Timestamp:
Jan 14, 2025, 2:39:43 PM (32 hours ago)
Author:
Zed
Message:

GSM STATUS pin is working.

Location:
ctrl/firmware/Main/CubeMX
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ctrl/firmware/Main/CubeMX/Core/Inc/main.h

    r61 r62  
    8080#define GSM_PWR_Pin GPIO_PIN_10
    8181#define GSM_PWR_GPIO_Port GPIOD
     82#define GSM_STATUS_Pin GPIO_PIN_13
     83#define GSM_STATUS_GPIO_Port GPIOD
    8284#define SD_DETECT_Pin GPIO_PIN_8
    8385#define SD_DETECT_GPIO_Port GPIOA
  • ctrl/firmware/Main/CubeMX/Core/Src/gpio.c

    r61 r62  
    156156  HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
    157157
    158   /*Configure GPIO pins : PD11 PD12 PD13 PD14
    159                            PD15 PD0 PD1 PD3
    160                            PD4 PD5 PD6 */
    161   GPIO_InitStruct.Pin = GPIO_PIN_11|GPIO_PIN_12|GPIO_PIN_13|GPIO_PIN_14
    162                           |GPIO_PIN_15|GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_3
    163                           |GPIO_PIN_4|GPIO_PIN_5|GPIO_PIN_6;
     158  /*Configure GPIO pins : PD11 PD12 PD14 PD15
     159                           PD0 PD1 PD3 PD4
     160                           PD5 PD6 */
     161  GPIO_InitStruct.Pin = GPIO_PIN_11|GPIO_PIN_12|GPIO_PIN_14|GPIO_PIN_15
     162                          |GPIO_PIN_0|GPIO_PIN_1|GPIO_PIN_3|GPIO_PIN_4
     163                          |GPIO_PIN_5|GPIO_PIN_6;
    164164  GPIO_InitStruct.Mode = GPIO_MODE_ANALOG;
    165165  GPIO_InitStruct.Pull = GPIO_NOPULL;
    166166  HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
     167
     168  /*Configure GPIO pin : GSM_STATUS_Pin */
     169  GPIO_InitStruct.Pin = GSM_STATUS_Pin;
     170  GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
     171  GPIO_InitStruct.Pull = GPIO_NOPULL;
     172  HAL_GPIO_Init(GSM_STATUS_GPIO_Port, &GPIO_InitStruct);
    167173
    168174  /*Configure GPIO pins : PG2 PG3 PG4 PG5
  • ctrl/firmware/Main/CubeMX/charger.ioc

    r61 r62  
    5757Mcu.Pin15=PD9
    5858Mcu.Pin16=PD10
    59 Mcu.Pin17=PC8
    60 Mcu.Pin18=PC9
    61 Mcu.Pin19=PA8
     59Mcu.Pin17=PD13
     60Mcu.Pin18=PC8
     61Mcu.Pin19=PC9
    6262Mcu.Pin2=PC15-OSC32_OUT
    63 Mcu.Pin20=PA13(JTMS/SWDIO)
    64 Mcu.Pin21=PA14(JTCK/SWCLK)
    65 Mcu.Pin22=PC10
    66 Mcu.Pin23=PC11
    67 Mcu.Pin24=PC12
    68 Mcu.Pin25=PD2
    69 Mcu.Pin26=PD7
    70 Mcu.Pin27=PG9
    71 Mcu.Pin28=PG10
    72 Mcu.Pin29=PG11
     63Mcu.Pin20=PA8
     64Mcu.Pin21=PA13(JTMS/SWDIO)
     65Mcu.Pin22=PA14(JTCK/SWCLK)
     66Mcu.Pin23=PC10
     67Mcu.Pin24=PC11
     68Mcu.Pin25=PC12
     69Mcu.Pin26=PD2
     70Mcu.Pin27=PD7
     71Mcu.Pin28=PG9
     72Mcu.Pin29=PG10
    7373Mcu.Pin3=PH0-OSC_IN
    74 Mcu.Pin30=PG12
    75 Mcu.Pin31=PG13
    76 Mcu.Pin32=PG15
    77 Mcu.Pin33=VP_RTC_VS_RTC_Activate
    78 Mcu.Pin34=VP_SYS_VS_tim7
    79 Mcu.Pin35=VP_MEMORYMAP_VS_MEMORYMAP
    80 Mcu.Pin36=VP_STMicroelectronics.X-CUBE-AZRTOS-H7_VS_RTOSJjThreadX_6.4.0_3.3.0
    81 Mcu.Pin37=VP_STMicroelectronics.X-CUBE-AZRTOS-H7_VS_FileOoSystemJjFileX_6.4.0_3.3.0
    82 Mcu.Pin38=VP_STMicroelectronics.X-CUBE-AZRTOS-H7_VS_FileOoSystemJjInterfaces_3.3.0_3.3.0
     74Mcu.Pin30=PG11
     75Mcu.Pin31=PG12
     76Mcu.Pin32=PG13
     77Mcu.Pin33=PG15
     78Mcu.Pin34=VP_RTC_VS_RTC_Activate
     79Mcu.Pin35=VP_SYS_VS_tim7
     80Mcu.Pin36=VP_MEMORYMAP_VS_MEMORYMAP
     81Mcu.Pin37=VP_STMicroelectronics.X-CUBE-AZRTOS-H7_VS_RTOSJjThreadX_6.4.0_3.3.0
     82Mcu.Pin38=VP_STMicroelectronics.X-CUBE-AZRTOS-H7_VS_FileOoSystemJjFileX_6.4.0_3.3.0
     83Mcu.Pin39=VP_STMicroelectronics.X-CUBE-AZRTOS-H7_VS_FileOoSystemJjInterfaces_3.3.0_3.3.0
    8384Mcu.Pin4=PH1-OSC_OUT
    8485Mcu.Pin5=PF15
     
    8788Mcu.Pin8=PE7
    8889Mcu.Pin9=PE11
    89 Mcu.PinsNb=39
     90Mcu.PinsNb=40
    9091Mcu.ThirdParty0=STMicroelectronics.X-CUBE-AZRTOS-H7.3.3.0
    9192Mcu.ThirdPartyNb=1
     
    142143PD10.Locked=true
    143144PD10.Signal=GPIO_Output
     145PD13.GPIOParameters=GPIO_Label
     146PD13.GPIO_Label=GSM_STATUS
     147PD13.Locked=true
     148PD13.Signal=GPIO_Input
    144149PD2.Mode=SD_4_bits_Wide_bus
    145150PD2.Signal=SDMMC1_CMD
     
    257262ProjectManager.UAScriptBeforePath=
    258263ProjectManager.UnderRoot=true
    259 ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_DMA_Init-DMA-false-HAL-true,4-MX_RTC_Init-RTC-false-HAL-true,5-MX_SPI4_Init-SPI4-false-HAL-true,6-MX_SDMMC1_SD_Init-SDMMC1-false-HAL-true,0-MX_CORTEX_M7_Init-CORTEX_M7-false-HAL-true
     264ProjectManager.functionlistsort=1-SystemClock_Config-RCC-false-HAL-false,2-MX_GPIO_Init-GPIO-false-HAL-true,3-MX_DMA_Init-DMA-false-HAL-true,4-MX_RTC_Init-RTC-false-HAL-true,5-MX_SPI4_Init-SPI4-false-HAL-true,6-MX_SDMMC1_SD_Init-SDMMC1-false-HAL-true,7-MX_USART3_UART_Init-USART3-false-HAL-true,0-MX_CORTEX_M7_Init-CORTEX_M7-false-HAL-true
    260265RCC.ADCFreq_Value=166666666.66666666
    261266RCC.AHB12Freq_Value=100000000
Note: See TracChangeset for help on using the changeset viewer.