uncommented the commented lines

This commit is contained in:
vishnuk-v 2025-04-03 15:40:22 +05:30
parent 84c56e534e
commit dffa952ecd
2 changed files with 20 additions and 20 deletions

View File

@ -5,7 +5,7 @@
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="-1247772646882860514" 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 &quot;${INPUTS}&quot;" prefer-non-shared="true">
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="415990467709285895" 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 &quot;${INPUTS}&quot;" prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/>
</provider>
@ -16,7 +16,7 @@
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
<provider-reference id="org.eclipse.cdt.core.ReferencedProjectsLanguageSettingsProvider" ref="shared-provider"/>
<provider-reference id="org.eclipse.cdt.managedbuilder.core.MBSLanguageSettingsProvider" ref="shared-provider"/>
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="-1247772646882860514" 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 &quot;${INPUTS}&quot;" prefer-non-shared="true">
<provider class="com.st.stm32cube.ide.mcu.toolchain.armnone.setup.CrossBuiltinSpecsDetector" console="false" env-hash="415990467709285895" 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 &quot;${INPUTS}&quot;" prefer-non-shared="true">
<language-scope id="org.eclipse.cdt.core.gcc"/>
<language-scope id="org.eclipse.cdt.core.g++"/>
</provider>

View File

@ -32,7 +32,7 @@ int main(void)
HAL_GPIO_WritePin(GPIOA, LR_OUT_Pin, GPIO_PIN_RESET);
HAL_GPIO_WritePin(GPIOA, RL_OUT_Pin, GPIO_PIN_RESET);
// uint8_t slave_present = HAL_GPIO_ReadPin(GPIOA, Slave_Detect_Pin);
//
// if(slave_present == TRUE)
// {
// HAL_GPIO_WritePin(Last_Node_Switch_GPIO_Port, feed_back_Pin, GPIO_PIN_RESET);
@ -46,21 +46,21 @@ int main(void)
{
// feed_back_present = HAL_GPIO_ReadPin(GPIOA, feed_back_Pin);
// if(feed_back_present == TRUE) {
// RL_mode = TRUE;
// }
// else {
// RL_mode = FALSE;
// }
//
// slave_master = HAL_GPIO_ReadPin(GPIOA, RL_OUT_Pin);
// if(slave_master == TRUE) {
// LR_mode = TRUE;
// }
// else {
// LR_mode = FALSE;
// }
bool feed_back_present = HAL_GPIO_ReadPin(GPIOA, feed_back_Pin);
if(feed_back_present == TRUE) {
LR_mode = TRUE;
}
else {
LR_mode = FALSE;
}
bool slave_master = HAL_GPIO_ReadPin(GPIOA, RL_OUT_Pin);
if(slave_master == TRUE) {
RL_mode = TRUE;
}
else {
RL_mode = FALSE;
}
// / Update LED states based on current mode /
if(AMBERFLASH_mode) {
@ -85,7 +85,7 @@ int main(void)
HAL_GPIO_WritePin(GPIOA, Amber_LED_OUT_Pin, GPIO_PIN_RESET);
HAL_GPIO_WritePin(GPIOA, Red_LED_OUT_Pin, GPIO_PIN_RESET);
HAL_GPIO_WritePin(GPIOA, LR_OUT_Pin, GPIO_PIN_RESET);
// HAL_GPIO_WritePin(GPIOA, RL_OUT_Pin, GPIO_PIN_SET); this line was to check whether the interrupt is working fine or not
HAL_GPIO_WritePin(GPIOA, RL_OUT_Pin, GPIO_PIN_SET); //this line was to check whether the interrupt is working fine or not
// updated section here the mode is changed to output since the slave acts as origin of input
@ -188,7 +188,7 @@ static void MX_GPIO_Init(void)
}
/// USER CODE BEGIN 4 /
void HAL_GPIO_EXTI_Rising_Callback(uint16_t GPIO_Pin)
{
if (GPIO_Pin == Red_IN_Pin) {