add power status check config
parent
c26800b4f5
commit
793b5d2390
|
@ -6,7 +6,7 @@
|
||||||
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
|
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
|
||||||
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
|
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
|
||||||
<provider copy-of="extension" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser"/>
|
<provider copy-of="extension" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser"/>
|
||||||
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="758376557953507568" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
|
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="1913951426039961877" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
|
||||||
<language-scope id="org.eclipse.cdt.core.gcc"/>
|
<language-scope id="org.eclipse.cdt.core.gcc"/>
|
||||||
<language-scope id="org.eclipse.cdt.core.g++"/>
|
<language-scope id="org.eclipse.cdt.core.g++"/>
|
||||||
</provider>
|
</provider>
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
|
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
|
||||||
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
|
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
|
||||||
<provider copy-of="extension" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser"/>
|
<provider copy-of="extension" id="org.eclipse.cdt.managedbuilder.core.GCCBuildCommandParser"/>
|
||||||
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="758376557953507568" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
|
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="1913951426039961877" id="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" keep-relative-paths="false" name="MCU ARM GCC Built-in Compiler Settings" parameter="${COMMAND} ${FLAGS} -E -P -v -dD "${INPUTS}"" prefer-non-shared="true">
|
||||||
<language-scope id="org.eclipse.cdt.core.gcc"/>
|
<language-scope id="org.eclipse.cdt.core.gcc"/>
|
||||||
<language-scope id="org.eclipse.cdt.core.g++"/>
|
<language-scope id="org.eclipse.cdt.core.g++"/>
|
||||||
</provider>
|
</provider>
|
||||||
|
|
|
@ -134,6 +134,15 @@ void Error_Handler(void);
|
||||||
#define USB3_VBUS_CTL_3_GPIO_Port GPIOD
|
#define USB3_VBUS_CTL_3_GPIO_Port GPIOD
|
||||||
#define USB3_VBUS_CTL_4_Pin GPIO_PIN_15
|
#define USB3_VBUS_CTL_4_Pin GPIO_PIN_15
|
||||||
#define USB3_VBUS_CTL_4_GPIO_Port GPIOD
|
#define USB3_VBUS_CTL_4_GPIO_Port GPIOD
|
||||||
|
#define SOC_U3_HOST_PWR_STA_Pin GPIO_PIN_6
|
||||||
|
#define SOC_U3_HOST_PWR_STA_GPIO_Port GPIOC
|
||||||
|
#define SOC_U3_HOST_PWR_STA_EXTI_IRQn EXTI9_5_IRQn
|
||||||
|
#define SOC_U3_HUB_PWR_STA_Pin GPIO_PIN_7
|
||||||
|
#define SOC_U3_HUB_PWR_STA_GPIO_Port GPIOC
|
||||||
|
#define SOC_U3_HUB_PWR_STA_EXTI_IRQn EXTI9_5_IRQn
|
||||||
|
#define SOC_U2_HUB_PWR_STA_Pin GPIO_PIN_8
|
||||||
|
#define SOC_U2_HUB_PWR_STA_GPIO_Port GPIOC
|
||||||
|
#define SOC_U2_HUB_PWR_STA_EXTI_IRQn EXTI9_5_IRQn
|
||||||
#define USB2_FS_ENUM_CTL_Pin GPIO_PIN_8
|
#define USB2_FS_ENUM_CTL_Pin GPIO_PIN_8
|
||||||
#define USB2_FS_ENUM_CTL_GPIO_Port GPIOA
|
#define USB2_FS_ENUM_CTL_GPIO_Port GPIOA
|
||||||
#define USB2_FS_DM_Pin GPIO_PIN_11
|
#define USB2_FS_DM_Pin GPIO_PIN_11
|
||||||
|
|
|
@ -151,6 +151,12 @@ void MX_GPIO_Init(void)
|
||||||
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
||||||
HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
|
HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pins : PCPin PCPin PCPin */
|
||||||
|
GPIO_InitStruct.Pin = SOC_U3_HOST_PWR_STA_Pin|SOC_U3_HUB_PWR_STA_Pin|SOC_U2_HUB_PWR_STA_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_IT_RISING;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
|
||||||
|
|
||||||
/*Configure GPIO pin : PtPin */
|
/*Configure GPIO pin : PtPin */
|
||||||
GPIO_InitStruct.Pin = USB2_FS_ENUM_CTL_Pin;
|
GPIO_InitStruct.Pin = USB2_FS_ENUM_CTL_Pin;
|
||||||
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||||
|
|
|
@ -272,6 +272,9 @@ void EXTI9_5_IRQHandler(void)
|
||||||
|
|
||||||
/* USER CODE END EXTI9_5_IRQn 0 */
|
/* USER CODE END EXTI9_5_IRQn 0 */
|
||||||
HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_5);
|
HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_5);
|
||||||
|
HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_6);
|
||||||
|
HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_7);
|
||||||
|
HAL_GPIO_EXTI_IRQHandler(GPIO_PIN_8);
|
||||||
/* USER CODE BEGIN EXTI9_5_IRQn 1 */
|
/* USER CODE BEGIN EXTI9_5_IRQn 1 */
|
||||||
|
|
||||||
/* USER CODE END EXTI9_5_IRQn 1 */
|
/* USER CODE END EXTI9_5_IRQn 1 */
|
||||||
|
|
|
@ -111,40 +111,43 @@ Mcu.Pin35=PD12
|
||||||
Mcu.Pin36=PD13
|
Mcu.Pin36=PD13
|
||||||
Mcu.Pin37=PD14
|
Mcu.Pin37=PD14
|
||||||
Mcu.Pin38=PD15
|
Mcu.Pin38=PD15
|
||||||
Mcu.Pin39=PA8
|
Mcu.Pin39=PC6
|
||||||
Mcu.Pin4=PE6
|
Mcu.Pin4=PE6
|
||||||
Mcu.Pin40=PA11
|
Mcu.Pin40=PC7
|
||||||
Mcu.Pin41=PA12
|
Mcu.Pin41=PC8
|
||||||
Mcu.Pin42=PA13
|
Mcu.Pin42=PA8
|
||||||
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DG
|
||||||
|
Mcu.Pin67=VP_SYS_VS_tim1
|
||||||
|
Mcu.Pin68=VP_USB_DEVICE_VS_USB_DEVICE_CDC_FS
|
||||||
Mcu.Pin7=PC0
|
Mcu.Pin7=PC0
|
||||||
Mcu.Pin8=PC1
|
Mcu.Pin8=PC1
|
||||||
Mcu.Pin9=PC2
|
Mcu.Pin9=PC2
|
||||||
Mcu.PinsNb=66
|
Mcu.PinsNb=69
|
||||||
Mcu.ThirdParty0=ARM.CMSIS.5.6.0
|
Mcu.ThirdParty0=ARM.CMSIS.5.6.0
|
||||||
Mcu.ThirdPartyNb=1
|
Mcu.ThirdPartyNb=1
|
||||||
Mcu.UserConstants=
|
Mcu.UserConstants=
|
||||||
|
@ -322,6 +325,18 @@ PC5.GPIO_Label=SYS_BUZZ_CTL
|
||||||
PC5.Locked=true
|
PC5.Locked=true
|
||||||
PC5.PinState=GPIO_PIN_SET
|
PC5.PinState=GPIO_PIN_SET
|
||||||
PC5.Signal=GPIO_Output
|
PC5.Signal=GPIO_Output
|
||||||
|
PC6.GPIOParameters=GPIO_Label
|
||||||
|
PC6.GPIO_Label=SOC_U3_HOST_PWR_STA
|
||||||
|
PC6.Locked=true
|
||||||
|
PC6.Signal=GPXTI6
|
||||||
|
PC7.GPIOParameters=GPIO_Label
|
||||||
|
PC7.GPIO_Label=SOC_U3_HUB_PWR_STA
|
||||||
|
PC7.Locked=true
|
||||||
|
PC7.Signal=GPXTI7
|
||||||
|
PC8.GPIOParameters=GPIO_Label
|
||||||
|
PC8.GPIO_Label=SOC_U2_HUB_PWR_STA
|
||||||
|
PC8.Locked=true
|
||||||
|
PC8.Signal=GPXTI8
|
||||||
PD0.GPIOParameters=GPIO_Label
|
PD0.GPIOParameters=GPIO_Label
|
||||||
PD0.GPIO_Label=SOC_U3_HUB_PWR_CTL
|
PD0.GPIO_Label=SOC_U3_HUB_PWR_CTL
|
||||||
PD0.Locked=true
|
PD0.Locked=true
|
||||||
|
@ -512,6 +527,12 @@ SH.GPXTI3.0=GPIO_EXTI3
|
||||||
SH.GPXTI3.ConfNb=1
|
SH.GPXTI3.ConfNb=1
|
||||||
SH.GPXTI5.0=GPIO_EXTI5
|
SH.GPXTI5.0=GPIO_EXTI5
|
||||||
SH.GPXTI5.ConfNb=1
|
SH.GPXTI5.ConfNb=1
|
||||||
|
SH.GPXTI6.0=GPIO_EXTI6
|
||||||
|
SH.GPXTI6.ConfNb=1
|
||||||
|
SH.GPXTI7.0=GPIO_EXTI7
|
||||||
|
SH.GPXTI7.ConfNb=1
|
||||||
|
SH.GPXTI8.0=GPIO_EXTI8
|
||||||
|
SH.GPXTI8.ConfNb=1
|
||||||
UART4.IPParameters=VirtualMode
|
UART4.IPParameters=VirtualMode
|
||||||
UART4.VirtualMode=Asynchronous
|
UART4.VirtualMode=Asynchronous
|
||||||
USART1.IPParameters=VirtualMode
|
USART1.IPParameters=VirtualMode
|
||||||
|
|
Loading…
Reference in New Issue