uncommented the commented lines
This commit is contained in:
parent
84c56e534e
commit
dffa952ecd
@ -5,7 +5,7 @@
|
|||||||
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
|
<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.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 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 "${INPUTS}"" 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 "${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>
|
||||||
@ -16,7 +16,7 @@
|
|||||||
<provider copy-of="extension" id="org.eclipse.cdt.ui.UserLanguageSettingsProvider"/>
|
<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.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 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 "${INPUTS}"" 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 "${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>
|
||||||
|
@ -32,7 +32,7 @@ int main(void)
|
|||||||
HAL_GPIO_WritePin(GPIOA, LR_OUT_Pin, GPIO_PIN_RESET);
|
HAL_GPIO_WritePin(GPIOA, LR_OUT_Pin, GPIO_PIN_RESET);
|
||||||
HAL_GPIO_WritePin(GPIOA, RL_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);
|
// uint8_t slave_present = HAL_GPIO_ReadPin(GPIOA, Slave_Detect_Pin);
|
||||||
|
//
|
||||||
// if(slave_present == TRUE)
|
// if(slave_present == TRUE)
|
||||||
// {
|
// {
|
||||||
// HAL_GPIO_WritePin(Last_Node_Switch_GPIO_Port, feed_back_Pin, GPIO_PIN_RESET);
|
// 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);
|
bool feed_back_present = HAL_GPIO_ReadPin(GPIOA, feed_back_Pin);
|
||||||
// if(feed_back_present == TRUE) {
|
if(feed_back_present == TRUE) {
|
||||||
// RL_mode = TRUE;
|
LR_mode = TRUE;
|
||||||
// }
|
}
|
||||||
// else {
|
else {
|
||||||
// RL_mode = FALSE;
|
LR_mode = FALSE;
|
||||||
// }
|
}
|
||||||
//
|
|
||||||
// slave_master = HAL_GPIO_ReadPin(GPIOA, RL_OUT_Pin);
|
bool slave_master = HAL_GPIO_ReadPin(GPIOA, RL_OUT_Pin);
|
||||||
// if(slave_master == TRUE) {
|
if(slave_master == TRUE) {
|
||||||
// LR_mode = TRUE;
|
RL_mode = TRUE;
|
||||||
// }
|
}
|
||||||
// else {
|
else {
|
||||||
// LR_mode = FALSE;
|
RL_mode = FALSE;
|
||||||
// }
|
}
|
||||||
|
|
||||||
// / Update LED states based on current mode /
|
// / Update LED states based on current mode /
|
||||||
if(AMBERFLASH_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, Amber_LED_OUT_Pin, GPIO_PIN_RESET);
|
||||||
HAL_GPIO_WritePin(GPIOA, Red_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, 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
|
// 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)
|
void HAL_GPIO_EXTI_Rising_Callback(uint16_t GPIO_Pin)
|
||||||
{
|
{
|
||||||
if (GPIO_Pin == Red_IN_Pin) {
|
if (GPIO_Pin == Red_IN_Pin) {
|
||||||
|
Loading…
Reference in New Issue
Block a user