implement traffic lights?
This commit is contained in:
341 files changed
+45895
-170
No files matched your search
+1624
File diff suppressed because it is too large.
Load diff
@@ -448,3 +448,18 @@ Command-line arguments: -os linux -ws gtk -arch x86_64
|
|||||||
|
|
||||||
!ENTRY com.st.stm32cube.ide.mcu.ide 1 1 2025-09-20 00:18:04.430
|
!ENTRY com.st.stm32cube.ide.mcu.ide 1 1 2025-09-20 00:18:04.430
|
||||||
!MESSAGE Started RMI Server, listening on port 41337
|
!MESSAGE Started RMI Server, listening on port 41337
|
||||||
|
!SESSION 2025-09-20 02:01:02.283 -----------------------------------------------
|
||||||
|
eclipse.buildId=Version 1.19.0
|
||||||
|
java.version=21.0.3
|
||||||
|
java.vendor=Eclipse Adoptium
|
||||||
|
BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
|
||||||
|
Command-line arguments: -os linux -ws gtk -arch x86_64
|
||||||
|
|
||||||
|
!ENTRY com.st.stm32cube.ide.mcu.informationcenter 4 4 2025-09-20 02:01:18.581
|
||||||
|
!MESSAGE CubeMX plugin appears to be active, Log4j initialization might be too late.
|
||||||
|
|
||||||
|
!ENTRY com.st.stm32cube.ide.mcu.informationcenter 1 1 2025-09-20 02:01:18.583
|
||||||
|
!MESSAGE Log4j2 initialized with config file /home/ja/st/Home/.metadata/.log4j2.xml
|
||||||
|
|
||||||
|
!ENTRY com.st.stm32cube.ide.mcu.ide 1 1 2025-09-20 02:01:34.147
|
||||||
|
!MESSAGE Started RMI Server, listening on port 41337
|
||||||
@@ -13,3 +13,4 @@
|
|||||||
*** SESSION Sep 15, 2025 14:11:05.250 ------------------------------------------
|
*** SESSION Sep 15, 2025 14:11:05.250 ------------------------------------------
|
||||||
*** SESSION Sep 17, 2025 14:27:19.507 ------------------------------------------
|
*** SESSION Sep 17, 2025 14:27:19.507 ------------------------------------------
|
||||||
*** SESSION Sep 20, 2025 00:17:43.78 -------------------------------------------
|
*** SESSION Sep 20, 2025 00:17:43.78 -------------------------------------------
|
||||||
|
*** SESSION Sep 20, 2025 02:01:15.749 ------------------------------------------
|
||||||
Binary file not shown.
@@ -0,0 +1,17 @@
|
|||||||
|
03:14:32 **** Incremental Build of configuration Debug for project TrafficLightsPlus ****
|
||||||
|
make -j8 all
|
||||||
|
arm-none-eabi-gcc "../Core/Src/main.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F429xx -c -I../Core/Inc -I../USB_HOST/App -I../USB_HOST/Target -I../Drivers/STM32F4xx_HAL_Driver/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/ST/STM32_USB_Host_Library/Core/Inc -I../Middlewares/ST/STM32_USB_Host_Library/Class/CDC/Inc -I../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Core/Src/main.d" -MT"Core/Src/main.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Core/Src/main.o"
|
||||||
|
arm-none-eabi-gcc -o "TrafficLightsPlus.elf" @"objects.list" -mcpu=cortex-m4 -T"/home/ja/st/Home/TrafficLightsPlus/STM32F429ZITX_FLASH.ld" --specs=nosys.specs -Wl,-Map="TrafficLightsPlus.map" -Wl,--gc-sections -static --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
|
||||||
|
Finished building target: TrafficLightsPlus.elf
|
||||||
|
|
||||||
|
arm-none-eabi-size TrafficLightsPlus.elf
|
||||||
|
arm-none-eabi-objdump -h -S TrafficLightsPlus.elf > "TrafficLightsPlus.list"
|
||||||
|
text data bss dec hex filename
|
||||||
|
32528 16 3480 36024 8cb8 TrafficLightsPlus.elf
|
||||||
|
Finished building: default.size.stdout
|
||||||
|
|
||||||
|
Finished building: TrafficLightsPlus.list
|
||||||
|
|
||||||
|
|
||||||
|
03:14:33 Build Finished. 0 errors, 0 warnings. (took 639ms)
|
||||||
|
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<section name="Workbench">
|
<section name="Workbench">
|
||||||
<item key="LastUsedSourceTemplate" value="Default C source template"/>
|
<item key="LastUsedSourceTemplate" value="Default C source template"/>
|
||||||
|
<item key="LastUsedHeaderTemplate" value="Default C header template"/>
|
||||||
<section name="completion_proposal_size">
|
<section name="completion_proposal_size">
|
||||||
</section>
|
</section>
|
||||||
<section name="org.eclipse.cdt.ui.text.hover.CMacroExpansionExploration">
|
<section name="org.eclipse.cdt.ui.text.hover.CMacroExpansionExploration">
|
||||||
@@ -16,4 +17,11 @@
|
|||||||
<item key="size.width" value="497"/>
|
<item key="size.width" value="497"/>
|
||||||
<item key="size.height" value="180"/>
|
<item key="size.height" value="180"/>
|
||||||
</section>
|
</section>
|
||||||
|
<section name="NewHeaderFileCreationWizard.dialogBounds">
|
||||||
|
<item key="DIALOG_X_ORIGIN" value="645"/>
|
||||||
|
<item key="DIALOG_Y_ORIGIN" value="232"/>
|
||||||
|
<item key="DIALOG_WIDTH" value="613"/>
|
||||||
|
<item key="DIALOG_HEIGHT" value="449"/>
|
||||||
|
<item key="DIALOG_FONT_NAME" value="1|Sans|10.0|0|GTK|1|"/>
|
||||||
|
</section>
|
||||||
</section>
|
</section>
|
||||||
@@ -1,14 +1,14 @@
|
|||||||
00:21:51 **** Build of configuration Debug for project Calc2 ****
|
03:14:32 **** Incremental Build of configuration Debug for project TrafficLightsPlus ****
|
||||||
make -j8 all
|
make -j8 all
|
||||||
arm-none-eabi-gcc "../Core/Src/breadboard.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F429xx -c -I../Core/Inc -I../USB_HOST/App -I../USB_HOST/Target -I../Drivers/STM32F4xx_HAL_Driver/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/ST/STM32_USB_Host_Library/Core/Inc -I../Middlewares/ST/STM32_USB_Host_Library/Class/CDC/Inc -I../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Core/Src/breadboard.d" -MT"Core/Src/breadboard.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Core/Src/breadboard.o"
|
arm-none-eabi-gcc "../Core/Src/main.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DUSE_HAL_DRIVER -DSTM32F429xx -c -I../Core/Inc -I../USB_HOST/App -I../USB_HOST/Target -I../Drivers/STM32F4xx_HAL_Driver/Inc -I../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy -I../Middlewares/Third_Party/FreeRTOS/Source/include -I../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS -I../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F -I../Middlewares/ST/STM32_USB_Host_Library/Core/Inc -I../Middlewares/ST/STM32_USB_Host_Library/Class/CDC/Inc -I../Drivers/CMSIS/Device/ST/STM32F4xx/Include -I../Drivers/CMSIS/Include -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Core/Src/main.d" -MT"Core/Src/main.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Core/Src/main.o"
|
||||||
arm-none-eabi-gcc -o "Calc2.elf" @"objects.list" -mcpu=cortex-m4 -T"/home/ja/st/Home/Calc2/STM32F429ZITX_FLASH.ld" --specs=nosys.specs -Wl,-Map="Calc2.map" -Wl,--gc-sections -static --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
|
arm-none-eabi-gcc -o "TrafficLightsPlus.elf" @"objects.list" -mcpu=cortex-m4 -T"/home/ja/st/Home/TrafficLightsPlus/STM32F429ZITX_FLASH.ld" --specs=nosys.specs -Wl,-Map="TrafficLightsPlus.map" -Wl,--gc-sections -static --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group
|
||||||
Finished building target: Calc2.elf
|
Finished building target: TrafficLightsPlus.elf
|
||||||
|
|
||||||
arm-none-eabi-size Calc2.elf
|
arm-none-eabi-size TrafficLightsPlus.elf
|
||||||
arm-none-eabi-objdump -h -S Calc2.elf > "Calc2.list"
|
arm-none-eabi-objdump -h -S TrafficLightsPlus.elf > "TrafficLightsPlus.list"
|
||||||
text data bss dec hex filename
|
text data bss dec hex filename
|
||||||
32576 16 3480 36072 8ce8 Calc2.elf
|
32528 16 3480 36024 8cb8 TrafficLightsPlus.elf
|
||||||
Finished building: default.size.stdout
|
Finished building: default.size.stdout
|
||||||
|
|
||||||
Finished building: Calc2.list
|
Finished building: TrafficLightsPlus.list
|
||||||
|
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
HAL_Delay();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+47
@@ -0,0 +1,47 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
HAL_Delay();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+54
@@ -0,0 +1,54 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
HAL_Delay(500);
|
||||||
|
Hal_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
HAL_Delay(500);
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
HAL_DELAY(500);
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+46
@@ -0,0 +1,46 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
#include "breadboard.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
breadboard(int traffSPD)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_SET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_SET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_SET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+50
@@ -0,0 +1,50 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
HAL_Delay(500);
|
||||||
|
Hal_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+50
@@ -0,0 +1,50 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
HAL_Delay(500);
|
||||||
|
Hal_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+49
@@ -0,0 +1,49 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
HAL_Delay(500);
|
||||||
|
Hal_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
-11
@@ -1,11 +0,0 @@
|
|||||||
/*
|
|
||||||
* breadboard.c
|
|
||||||
*
|
|
||||||
* Created on: Sep 17, 2025
|
|
||||||
* Author: ja
|
|
||||||
*/
|
|
||||||
|
|
||||||
void breadboard(void)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
+46
@@ -0,0 +1,46 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
#include "breadboard.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
breadboard(int traffSPD)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_SET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+49
@@ -0,0 +1,49 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
HAL_Delay(500);
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+49
@@ -0,0 +1,49 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
HAL_Delay();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+34
@@ -0,0 +1,34 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+45
@@ -0,0 +1,45 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
breadboard(int traffSPD)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_SET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+60
@@ -0,0 +1,60 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
#define RedLight_Port RedLight_GPIO_Port
|
||||||
|
#define YellowLight_Port YellowLight_GPIO_Port
|
||||||
|
#define GreenLight_Port GreenLight_GPIO_Port
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
HAL_Delay(333);
|
||||||
|
Hal_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
|
||||||
|
// Yellow Light
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
HAL_Delay(333);
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
|
||||||
|
// Green Light
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
HAL_DELAY(333);
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+35
@@ -0,0 +1,35 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
breadboard(int traffSPD)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+46
@@ -0,0 +1,46 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
#include "breadboard.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
breadboard(int traffSPD)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_SET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_SET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_SET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+49
@@ -0,0 +1,49 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
HAL_Delay();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+56
@@ -0,0 +1,56 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
HAL_Delay(500);
|
||||||
|
Hal_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
|
||||||
|
// Yellow Light
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
HAL_Delay(500);
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
|
||||||
|
// Green Light
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
HAL_DELAY(500);
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+49
@@ -0,0 +1,49 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
HAL_Delay();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+51
@@ -0,0 +1,51 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
HAL_Delay();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+729
@@ -0,0 +1,729 @@
|
|||||||
|
/* USER CODE BEGIN Header */
|
||||||
|
/**
|
||||||
|
******************************************************************************
|
||||||
|
* @file : main.c
|
||||||
|
* @brief : Main program body
|
||||||
|
******************************************************************************
|
||||||
|
* @attention
|
||||||
|
*
|
||||||
|
* Copyright (c) 2025 STMicroelectronics.
|
||||||
|
* All rights reserved.
|
||||||
|
*
|
||||||
|
* This software is licensed under terms that can be found in the LICENSE file
|
||||||
|
* in the root directory of this software component.
|
||||||
|
* If no LICENSE file comes with this software, it is provided AS-IS.
|
||||||
|
*
|
||||||
|
******************************************************************************
|
||||||
|
*/
|
||||||
|
/* USER CODE END Header */
|
||||||
|
/* Includes ------------------------------------------------------------------*/
|
||||||
|
#include "main.h"
|
||||||
|
#include "cmsis_os.h"
|
||||||
|
#include "usb_host.h"
|
||||||
|
|
||||||
|
/* Private includes ----------------------------------------------------------*/
|
||||||
|
/* USER CODE BEGIN Includes */
|
||||||
|
|
||||||
|
/* USER CODE END Includes */
|
||||||
|
|
||||||
|
/* Private typedef -----------------------------------------------------------*/
|
||||||
|
/* USER CODE BEGIN PTD */
|
||||||
|
|
||||||
|
/* USER CODE END PTD */
|
||||||
|
|
||||||
|
/* Private define ------------------------------------------------------------*/
|
||||||
|
/* USER CODE BEGIN PD */
|
||||||
|
|
||||||
|
/* USER CODE END PD */
|
||||||
|
|
||||||
|
/* Private macro -------------------------------------------------------------*/
|
||||||
|
/* USER CODE BEGIN PM */
|
||||||
|
|
||||||
|
/* USER CODE END PM */
|
||||||
|
|
||||||
|
/* Private variables ---------------------------------------------------------*/
|
||||||
|
CRC_HandleTypeDef hcrc;
|
||||||
|
|
||||||
|
DMA2D_HandleTypeDef hdma2d;
|
||||||
|
|
||||||
|
I2C_HandleTypeDef hi2c3;
|
||||||
|
|
||||||
|
LTDC_HandleTypeDef hltdc;
|
||||||
|
|
||||||
|
SPI_HandleTypeDef hspi5;
|
||||||
|
|
||||||
|
TIM_HandleTypeDef htim1;
|
||||||
|
|
||||||
|
UART_HandleTypeDef huart1;
|
||||||
|
|
||||||
|
SDRAM_HandleTypeDef hsdram1;
|
||||||
|
|
||||||
|
osThreadId defaultTaskHandle;
|
||||||
|
/* USER CODE BEGIN PV */
|
||||||
|
|
||||||
|
/* USER CODE END PV */
|
||||||
|
|
||||||
|
/* Private function prototypes -----------------------------------------------*/
|
||||||
|
void SystemClock_Config(void);
|
||||||
|
static void MX_GPIO_Init(void);
|
||||||
|
static void MX_CRC_Init(void);
|
||||||
|
static void MX_DMA2D_Init(void);
|
||||||
|
static void MX_FMC_Init(void);
|
||||||
|
static void MX_I2C3_Init(void);
|
||||||
|
static void MX_LTDC_Init(void);
|
||||||
|
static void MX_SPI5_Init(void);
|
||||||
|
static void MX_TIM1_Init(void);
|
||||||
|
static void MX_USART1_UART_Init(void);
|
||||||
|
void StartDefaultTask(void const * argument);
|
||||||
|
|
||||||
|
/* USER CODE BEGIN PFP */
|
||||||
|
|
||||||
|
/* USER CODE END PFP */
|
||||||
|
|
||||||
|
/* Private user code ---------------------------------------------------------*/
|
||||||
|
/* USER CODE BEGIN 0 */
|
||||||
|
|
||||||
|
/* USER CODE END 0 */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief The application entry point.
|
||||||
|
* @retval int
|
||||||
|
*/
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN 1 */
|
||||||
|
|
||||||
|
/* USER CODE END 1 */
|
||||||
|
|
||||||
|
/* MCU Configuration--------------------------------------------------------*/
|
||||||
|
|
||||||
|
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
|
||||||
|
HAL_Init();
|
||||||
|
|
||||||
|
/* USER CODE BEGIN Init */
|
||||||
|
|
||||||
|
/* USER CODE END Init */
|
||||||
|
|
||||||
|
/* Configure the system clock */
|
||||||
|
SystemClock_Config();
|
||||||
|
|
||||||
|
/* USER CODE BEGIN SysInit */
|
||||||
|
|
||||||
|
/* USER CODE END SysInit */
|
||||||
|
|
||||||
|
/* Initialize all configured peripherals */
|
||||||
|
MX_GPIO_Init();
|
||||||
|
MX_CRC_Init();
|
||||||
|
MX_DMA2D_Init();
|
||||||
|
MX_FMC_Init();
|
||||||
|
MX_I2C3_Init();
|
||||||
|
MX_LTDC_Init();
|
||||||
|
MX_SPI5_Init();
|
||||||
|
MX_TIM1_Init();
|
||||||
|
MX_USART1_UART_Init();
|
||||||
|
/* USER CODE BEGIN 2 */
|
||||||
|
|
||||||
|
/* USER CODE END 2 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN RTOS_MUTEX */
|
||||||
|
/* add mutexes, ... */
|
||||||
|
/* USER CODE END RTOS_MUTEX */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN RTOS_SEMAPHORES */
|
||||||
|
/* add semaphores, ... */
|
||||||
|
/* USER CODE END RTOS_SEMAPHORES */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN RTOS_TIMERS */
|
||||||
|
/* start timers, add new ones, ... */
|
||||||
|
/* USER CODE END RTOS_TIMERS */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN RTOS_QUEUES */
|
||||||
|
/* add queues, ... */
|
||||||
|
/* USER CODE END RTOS_QUEUES */
|
||||||
|
|
||||||
|
/* Create the thread(s) */
|
||||||
|
/* definition and creation of defaultTask */
|
||||||
|
//osThreadDef(defaultTask, StartDefaultTask, osPriorityNormal, 0, 4096);
|
||||||
|
//defaultTaskHandle = osThreadCreate(osThread(defaultTask), NULL);
|
||||||
|
|
||||||
|
/* USER CODE BEGIN RTOS_THREADS */
|
||||||
|
/* add threads, ... */
|
||||||
|
/* USER CODE END RTOS_THREADS */
|
||||||
|
|
||||||
|
/* Start scheduler */
|
||||||
|
//osKernelStart();
|
||||||
|
|
||||||
|
/* We should never get here as control is now taken by the scheduler */
|
||||||
|
|
||||||
|
/* Infinite loop */
|
||||||
|
/* USER CODE BEGIN WHILE */
|
||||||
|
while (1)
|
||||||
|
{
|
||||||
|
breadboard(333);
|
||||||
|
/* USER CODE END WHILE */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN 3 */
|
||||||
|
}
|
||||||
|
/* USER CODE END 3 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief System Clock Configuration
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
void SystemClock_Config(void)
|
||||||
|
{
|
||||||
|
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
|
||||||
|
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
|
||||||
|
|
||||||
|
/** Configure the main internal regulator output voltage
|
||||||
|
*/
|
||||||
|
__HAL_RCC_PWR_CLK_ENABLE();
|
||||||
|
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE3);
|
||||||
|
|
||||||
|
/** Initializes the RCC Oscillators according to the specified parameters
|
||||||
|
* in the RCC_OscInitTypeDef structure.
|
||||||
|
*/
|
||||||
|
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
|
||||||
|
RCC_OscInitStruct.HSEState = RCC_HSE_ON;
|
||||||
|
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
|
||||||
|
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
|
||||||
|
RCC_OscInitStruct.PLL.PLLM = 4;
|
||||||
|
RCC_OscInitStruct.PLL.PLLN = 72;
|
||||||
|
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2;
|
||||||
|
RCC_OscInitStruct.PLL.PLLQ = 3;
|
||||||
|
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Initializes the CPU, AHB and APB buses clocks
|
||||||
|
*/
|
||||||
|
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
|
||||||
|
|RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
|
||||||
|
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
|
||||||
|
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
|
||||||
|
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2;
|
||||||
|
RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;
|
||||||
|
|
||||||
|
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief CRC Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_CRC_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN CRC_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END CRC_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN CRC_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END CRC_Init 1 */
|
||||||
|
hcrc.Instance = CRC;
|
||||||
|
if (HAL_CRC_Init(&hcrc) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN CRC_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END CRC_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief DMA2D Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_DMA2D_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN DMA2D_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END DMA2D_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN DMA2D_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END DMA2D_Init 1 */
|
||||||
|
hdma2d.Instance = DMA2D;
|
||||||
|
hdma2d.Init.Mode = DMA2D_M2M;
|
||||||
|
hdma2d.Init.ColorMode = DMA2D_OUTPUT_ARGB8888;
|
||||||
|
hdma2d.Init.OutputOffset = 0;
|
||||||
|
hdma2d.LayerCfg[1].InputOffset = 0;
|
||||||
|
hdma2d.LayerCfg[1].InputColorMode = DMA2D_INPUT_ARGB8888;
|
||||||
|
hdma2d.LayerCfg[1].AlphaMode = DMA2D_NO_MODIF_ALPHA;
|
||||||
|
hdma2d.LayerCfg[1].InputAlpha = 0;
|
||||||
|
if (HAL_DMA2D_Init(&hdma2d) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
if (HAL_DMA2D_ConfigLayer(&hdma2d, 1) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN DMA2D_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END DMA2D_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief I2C3 Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_I2C3_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN I2C3_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END I2C3_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN I2C3_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END I2C3_Init 1 */
|
||||||
|
hi2c3.Instance = I2C3;
|
||||||
|
hi2c3.Init.ClockSpeed = 100000;
|
||||||
|
hi2c3.Init.DutyCycle = I2C_DUTYCYCLE_2;
|
||||||
|
hi2c3.Init.OwnAddress1 = 0;
|
||||||
|
hi2c3.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT;
|
||||||
|
hi2c3.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE;
|
||||||
|
hi2c3.Init.OwnAddress2 = 0;
|
||||||
|
hi2c3.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE;
|
||||||
|
hi2c3.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE;
|
||||||
|
if (HAL_I2C_Init(&hi2c3) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Configure Analogue filter
|
||||||
|
*/
|
||||||
|
if (HAL_I2CEx_ConfigAnalogFilter(&hi2c3, I2C_ANALOGFILTER_ENABLE) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Configure Digital filter
|
||||||
|
*/
|
||||||
|
if (HAL_I2CEx_ConfigDigitalFilter(&hi2c3, 0) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN I2C3_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END I2C3_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief LTDC Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_LTDC_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN LTDC_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END LTDC_Init 0 */
|
||||||
|
|
||||||
|
LTDC_LayerCfgTypeDef pLayerCfg = {0};
|
||||||
|
|
||||||
|
/* USER CODE BEGIN LTDC_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END LTDC_Init 1 */
|
||||||
|
hltdc.Instance = LTDC;
|
||||||
|
hltdc.Init.HSPolarity = LTDC_HSPOLARITY_AL;
|
||||||
|
hltdc.Init.VSPolarity = LTDC_VSPOLARITY_AL;
|
||||||
|
hltdc.Init.DEPolarity = LTDC_DEPOLARITY_AL;
|
||||||
|
hltdc.Init.PCPolarity = LTDC_PCPOLARITY_IPC;
|
||||||
|
hltdc.Init.HorizontalSync = 9;
|
||||||
|
hltdc.Init.VerticalSync = 1;
|
||||||
|
hltdc.Init.AccumulatedHBP = 29;
|
||||||
|
hltdc.Init.AccumulatedVBP = 3;
|
||||||
|
hltdc.Init.AccumulatedActiveW = 269;
|
||||||
|
hltdc.Init.AccumulatedActiveH = 323;
|
||||||
|
hltdc.Init.TotalWidth = 279;
|
||||||
|
hltdc.Init.TotalHeigh = 327;
|
||||||
|
hltdc.Init.Backcolor.Blue = 0;
|
||||||
|
hltdc.Init.Backcolor.Green = 0;
|
||||||
|
hltdc.Init.Backcolor.Red = 0;
|
||||||
|
if (HAL_LTDC_Init(&hltdc) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
pLayerCfg.WindowX0 = 0;
|
||||||
|
pLayerCfg.WindowX1 = 240;
|
||||||
|
pLayerCfg.WindowY0 = 0;
|
||||||
|
pLayerCfg.WindowY1 = 320;
|
||||||
|
pLayerCfg.PixelFormat = LTDC_PIXEL_FORMAT_RGB565;
|
||||||
|
pLayerCfg.Alpha = 255;
|
||||||
|
pLayerCfg.Alpha0 = 0;
|
||||||
|
pLayerCfg.BlendingFactor1 = LTDC_BLENDING_FACTOR1_PAxCA;
|
||||||
|
pLayerCfg.BlendingFactor2 = LTDC_BLENDING_FACTOR2_PAxCA;
|
||||||
|
pLayerCfg.FBStartAdress = 0xD0000000;
|
||||||
|
pLayerCfg.ImageWidth = 240;
|
||||||
|
pLayerCfg.ImageHeight = 320;
|
||||||
|
pLayerCfg.Backcolor.Blue = 0;
|
||||||
|
pLayerCfg.Backcolor.Green = 0;
|
||||||
|
pLayerCfg.Backcolor.Red = 0;
|
||||||
|
if (HAL_LTDC_ConfigLayer(&hltdc, &pLayerCfg, 0) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN LTDC_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END LTDC_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief SPI5 Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_SPI5_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN SPI5_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END SPI5_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN SPI5_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END SPI5_Init 1 */
|
||||||
|
/* SPI5 parameter configuration*/
|
||||||
|
hspi5.Instance = SPI5;
|
||||||
|
hspi5.Init.Mode = SPI_MODE_MASTER;
|
||||||
|
hspi5.Init.Direction = SPI_DIRECTION_2LINES;
|
||||||
|
hspi5.Init.DataSize = SPI_DATASIZE_8BIT;
|
||||||
|
hspi5.Init.CLKPolarity = SPI_POLARITY_LOW;
|
||||||
|
hspi5.Init.CLKPhase = SPI_PHASE_1EDGE;
|
||||||
|
hspi5.Init.NSS = SPI_NSS_SOFT;
|
||||||
|
hspi5.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_16;
|
||||||
|
hspi5.Init.FirstBit = SPI_FIRSTBIT_MSB;
|
||||||
|
hspi5.Init.TIMode = SPI_TIMODE_DISABLE;
|
||||||
|
hspi5.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE;
|
||||||
|
hspi5.Init.CRCPolynomial = 10;
|
||||||
|
if (HAL_SPI_Init(&hspi5) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN SPI5_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END SPI5_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief TIM1 Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_TIM1_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN TIM1_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END TIM1_Init 0 */
|
||||||
|
|
||||||
|
TIM_ClockConfigTypeDef sClockSourceConfig = {0};
|
||||||
|
TIM_MasterConfigTypeDef sMasterConfig = {0};
|
||||||
|
|
||||||
|
/* USER CODE BEGIN TIM1_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END TIM1_Init 1 */
|
||||||
|
htim1.Instance = TIM1;
|
||||||
|
htim1.Init.Prescaler = 0;
|
||||||
|
htim1.Init.CounterMode = TIM_COUNTERMODE_UP;
|
||||||
|
htim1.Init.Period = 65535;
|
||||||
|
htim1.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
|
||||||
|
htim1.Init.RepetitionCounter = 0;
|
||||||
|
htim1.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
|
||||||
|
if (HAL_TIM_Base_Init(&htim1) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
|
||||||
|
if (HAL_TIM_ConfigClockSource(&htim1, &sClockSourceConfig) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
|
||||||
|
sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
|
||||||
|
if (HAL_TIMEx_MasterConfigSynchronization(&htim1, &sMasterConfig) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN TIM1_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END TIM1_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief USART1 Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_USART1_UART_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN USART1_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END USART1_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN USART1_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END USART1_Init 1 */
|
||||||
|
huart1.Instance = USART1;
|
||||||
|
huart1.Init.BaudRate = 115200;
|
||||||
|
huart1.Init.WordLength = UART_WORDLENGTH_8B;
|
||||||
|
huart1.Init.StopBits = UART_STOPBITS_1;
|
||||||
|
huart1.Init.Parity = UART_PARITY_NONE;
|
||||||
|
huart1.Init.Mode = UART_MODE_TX_RX;
|
||||||
|
huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
|
||||||
|
huart1.Init.OverSampling = UART_OVERSAMPLING_16;
|
||||||
|
if (HAL_UART_Init(&huart1) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN USART1_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END USART1_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/* FMC initialization function */
|
||||||
|
static void MX_FMC_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN FMC_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END FMC_Init 0 */
|
||||||
|
|
||||||
|
FMC_SDRAM_TimingTypeDef SdramTiming = {0};
|
||||||
|
|
||||||
|
/* USER CODE BEGIN FMC_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END FMC_Init 1 */
|
||||||
|
|
||||||
|
/** Perform the SDRAM1 memory initialization sequence
|
||||||
|
*/
|
||||||
|
hsdram1.Instance = FMC_SDRAM_DEVICE;
|
||||||
|
/* hsdram1.Init */
|
||||||
|
hsdram1.Init.SDBank = FMC_SDRAM_BANK2;
|
||||||
|
hsdram1.Init.ColumnBitsNumber = FMC_SDRAM_COLUMN_BITS_NUM_8;
|
||||||
|
hsdram1.Init.RowBitsNumber = FMC_SDRAM_ROW_BITS_NUM_12;
|
||||||
|
hsdram1.Init.MemoryDataWidth = FMC_SDRAM_MEM_BUS_WIDTH_16;
|
||||||
|
hsdram1.Init.InternalBankNumber = FMC_SDRAM_INTERN_BANKS_NUM_4;
|
||||||
|
hsdram1.Init.CASLatency = FMC_SDRAM_CAS_LATENCY_3;
|
||||||
|
hsdram1.Init.WriteProtection = FMC_SDRAM_WRITE_PROTECTION_DISABLE;
|
||||||
|
hsdram1.Init.SDClockPeriod = FMC_SDRAM_CLOCK_PERIOD_2;
|
||||||
|
hsdram1.Init.ReadBurst = FMC_SDRAM_RBURST_DISABLE;
|
||||||
|
hsdram1.Init.ReadPipeDelay = FMC_SDRAM_RPIPE_DELAY_1;
|
||||||
|
/* SdramTiming */
|
||||||
|
SdramTiming.LoadToActiveDelay = 2;
|
||||||
|
SdramTiming.ExitSelfRefreshDelay = 7;
|
||||||
|
SdramTiming.SelfRefreshTime = 4;
|
||||||
|
SdramTiming.RowCycleDelay = 7;
|
||||||
|
SdramTiming.WriteRecoveryTime = 3;
|
||||||
|
SdramTiming.RPDelay = 2;
|
||||||
|
SdramTiming.RCDDelay = 2;
|
||||||
|
|
||||||
|
if (HAL_SDRAM_Init(&hsdram1, &SdramTiming) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler( );
|
||||||
|
}
|
||||||
|
|
||||||
|
/* USER CODE BEGIN FMC_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END FMC_Init 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief GPIO Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_GPIO_Init(void)
|
||||||
|
{
|
||||||
|
GPIO_InitTypeDef GPIO_InitStruct = {0};
|
||||||
|
/* USER CODE BEGIN MX_GPIO_Init_1 */
|
||||||
|
|
||||||
|
/* USER CODE END MX_GPIO_Init_1 */
|
||||||
|
|
||||||
|
/* GPIO Ports Clock Enable */
|
||||||
|
__HAL_RCC_GPIOE_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOC_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOF_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOH_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOA_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOB_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOG_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOD_CLK_ENABLE();
|
||||||
|
|
||||||
|
/*Configure GPIO pin Output Level */
|
||||||
|
HAL_GPIO_WritePin(GPIOE, RedLight_Pin|YellowLight_Pin|GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
/*Configure GPIO pin Output Level */
|
||||||
|
HAL_GPIO_WritePin(GPIOC, NCS_MEMS_SPI_Pin|CSX_Pin|OTG_FS_PSO_Pin, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
/*Configure GPIO pin Output Level */
|
||||||
|
HAL_GPIO_WritePin(ACP_RST_GPIO_Port, ACP_RST_Pin, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
/*Configure GPIO pin Output Level */
|
||||||
|
HAL_GPIO_WritePin(GPIOD, RDX_Pin|WRX_DCX_Pin, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
/*Configure GPIO pin Output Level */
|
||||||
|
HAL_GPIO_WritePin(GPIOG, LD3_Pin|LD4_Pin, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
/*Configure GPIO pins : RedLight_Pin YellowLight_Pin GreenLight_Pin */
|
||||||
|
GPIO_InitStruct.Pin = RedLight_Pin|YellowLight_Pin|GreenLight_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
||||||
|
HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pins : NCS_MEMS_SPI_Pin CSX_Pin OTG_FS_PSO_Pin */
|
||||||
|
GPIO_InitStruct.Pin = NCS_MEMS_SPI_Pin|CSX_Pin|OTG_FS_PSO_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
||||||
|
HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pins : B1_Pin MEMS_INT1_Pin MEMS_INT2_Pin TP_INT1_Pin */
|
||||||
|
GPIO_InitStruct.Pin = B1_Pin|MEMS_INT1_Pin|MEMS_INT2_Pin|TP_INT1_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_EVT_RISING;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pin : ACP_RST_Pin */
|
||||||
|
GPIO_InitStruct.Pin = ACP_RST_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
||||||
|
HAL_GPIO_Init(ACP_RST_GPIO_Port, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pin : OTG_FS_OC_Pin */
|
||||||
|
GPIO_InitStruct.Pin = OTG_FS_OC_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_EVT_RISING;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
HAL_GPIO_Init(OTG_FS_OC_GPIO_Port, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pin : BOOT1_Pin */
|
||||||
|
GPIO_InitStruct.Pin = BOOT1_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
HAL_GPIO_Init(BOOT1_GPIO_Port, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pin : TE_Pin */
|
||||||
|
GPIO_InitStruct.Pin = TE_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
HAL_GPIO_Init(TE_GPIO_Port, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pins : RDX_Pin WRX_DCX_Pin */
|
||||||
|
GPIO_InitStruct.Pin = RDX_Pin|WRX_DCX_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
||||||
|
HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pins : LD3_Pin LD4_Pin */
|
||||||
|
GPIO_InitStruct.Pin = LD3_Pin|LD4_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
||||||
|
HAL_GPIO_Init(GPIOG, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/* USER CODE BEGIN MX_GPIO_Init_2 */
|
||||||
|
|
||||||
|
/* USER CODE END MX_GPIO_Init_2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* USER CODE BEGIN 4 */
|
||||||
|
|
||||||
|
/* USER CODE END 4 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN Header_StartDefaultTask */
|
||||||
|
/**
|
||||||
|
* @brief Function implementing the defaultTask thread.
|
||||||
|
* @param argument: Not used
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
/* USER CODE END Header_StartDefaultTask */
|
||||||
|
void StartDefaultTask(void const * argument)
|
||||||
|
{
|
||||||
|
/* init code for USB_HOST */
|
||||||
|
MX_USB_HOST_Init();
|
||||||
|
/* USER CODE BEGIN 5 */
|
||||||
|
/* Infinite loop */
|
||||||
|
for(;;)
|
||||||
|
{
|
||||||
|
osDelay(1);
|
||||||
|
}
|
||||||
|
/* USER CODE END 5 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Period elapsed callback in non blocking mode
|
||||||
|
* @note This function is called when TIM6 interrupt took place, inside
|
||||||
|
* HAL_TIM_IRQHandler(). It makes a direct call to HAL_IncTick() to increment
|
||||||
|
* a global variable "uwTick" used as application time base.
|
||||||
|
* @param htim : TIM handle
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
|
||||||
|
{
|
||||||
|
/* USER CODE BEGIN Callback 0 */
|
||||||
|
|
||||||
|
/* USER CODE END Callback 0 */
|
||||||
|
if (htim->Instance == TIM6)
|
||||||
|
{
|
||||||
|
HAL_IncTick();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN Callback 1 */
|
||||||
|
|
||||||
|
/* USER CODE END Callback 1 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief This function is executed in case of error occurrence.
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
void Error_Handler(void)
|
||||||
|
{
|
||||||
|
/* USER CODE BEGIN Error_Handler_Debug */
|
||||||
|
/* User can add his own implementation to report the HAL error return state */
|
||||||
|
__disable_irq();
|
||||||
|
while (1)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
/* USER CODE END Error_Handler_Debug */
|
||||||
|
}
|
||||||
|
#ifdef USE_FULL_ASSERT
|
||||||
|
/**
|
||||||
|
* @brief Reports the name of the source file and the source line number
|
||||||
|
* where the assert_param error has occurred.
|
||||||
|
* @param file: pointer to the source file name
|
||||||
|
* @param line: assert_param error line source number
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
void assert_failed(uint8_t *file, uint32_t line)
|
||||||
|
{
|
||||||
|
/* USER CODE BEGIN 6 */
|
||||||
|
/* User can add his own implementation to report the file name and line number,
|
||||||
|
ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */
|
||||||
|
/* USER CODE END 6 */
|
||||||
|
}
|
||||||
|
#endif /* USE_FULL_ASSERT */
|
||||||
+39
@@ -0,0 +1,39 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
-8
@@ -1,8 +0,0 @@
|
|||||||
/*
|
|
||||||
* breadboard.c
|
|
||||||
*
|
|
||||||
* Created on: Sep 17, 2025
|
|
||||||
* Author: ja
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
-8
@@ -1,8 +0,0 @@
|
|||||||
/*
|
|
||||||
* breadboard.c
|
|
||||||
*
|
|
||||||
* Created on: Sep 17, 2025
|
|
||||||
* Author: ja
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
+728
@@ -0,0 +1,728 @@
|
|||||||
|
/* USER CODE BEGIN Header */
|
||||||
|
/**
|
||||||
|
******************************************************************************
|
||||||
|
* @file : main.c
|
||||||
|
* @brief : Main program body
|
||||||
|
******************************************************************************
|
||||||
|
* @attention
|
||||||
|
*
|
||||||
|
* Copyright (c) 2025 STMicroelectronics.
|
||||||
|
* All rights reserved.
|
||||||
|
*
|
||||||
|
* This software is licensed under terms that can be found in the LICENSE file
|
||||||
|
* in the root directory of this software component.
|
||||||
|
* If no LICENSE file comes with this software, it is provided AS-IS.
|
||||||
|
*
|
||||||
|
******************************************************************************
|
||||||
|
*/
|
||||||
|
/* USER CODE END Header */
|
||||||
|
/* Includes ------------------------------------------------------------------*/
|
||||||
|
#include "main.h"
|
||||||
|
#include "cmsis_os.h"
|
||||||
|
#include "usb_host.h"
|
||||||
|
|
||||||
|
/* Private includes ----------------------------------------------------------*/
|
||||||
|
/* USER CODE BEGIN Includes */
|
||||||
|
|
||||||
|
/* USER CODE END Includes */
|
||||||
|
|
||||||
|
/* Private typedef -----------------------------------------------------------*/
|
||||||
|
/* USER CODE BEGIN PTD */
|
||||||
|
|
||||||
|
/* USER CODE END PTD */
|
||||||
|
|
||||||
|
/* Private define ------------------------------------------------------------*/
|
||||||
|
/* USER CODE BEGIN PD */
|
||||||
|
|
||||||
|
/* USER CODE END PD */
|
||||||
|
|
||||||
|
/* Private macro -------------------------------------------------------------*/
|
||||||
|
/* USER CODE BEGIN PM */
|
||||||
|
|
||||||
|
/* USER CODE END PM */
|
||||||
|
|
||||||
|
/* Private variables ---------------------------------------------------------*/
|
||||||
|
CRC_HandleTypeDef hcrc;
|
||||||
|
|
||||||
|
DMA2D_HandleTypeDef hdma2d;
|
||||||
|
|
||||||
|
I2C_HandleTypeDef hi2c3;
|
||||||
|
|
||||||
|
LTDC_HandleTypeDef hltdc;
|
||||||
|
|
||||||
|
SPI_HandleTypeDef hspi5;
|
||||||
|
|
||||||
|
TIM_HandleTypeDef htim1;
|
||||||
|
|
||||||
|
UART_HandleTypeDef huart1;
|
||||||
|
|
||||||
|
SDRAM_HandleTypeDef hsdram1;
|
||||||
|
|
||||||
|
osThreadId defaultTaskHandle;
|
||||||
|
/* USER CODE BEGIN PV */
|
||||||
|
|
||||||
|
/* USER CODE END PV */
|
||||||
|
|
||||||
|
/* Private function prototypes -----------------------------------------------*/
|
||||||
|
void SystemClock_Config(void);
|
||||||
|
static void MX_GPIO_Init(void);
|
||||||
|
static void MX_CRC_Init(void);
|
||||||
|
static void MX_DMA2D_Init(void);
|
||||||
|
static void MX_FMC_Init(void);
|
||||||
|
static void MX_I2C3_Init(void);
|
||||||
|
static void MX_LTDC_Init(void);
|
||||||
|
static void MX_SPI5_Init(void);
|
||||||
|
static void MX_TIM1_Init(void);
|
||||||
|
static void MX_USART1_UART_Init(void);
|
||||||
|
void StartDefaultTask(void const * argument);
|
||||||
|
|
||||||
|
/* USER CODE BEGIN PFP */
|
||||||
|
|
||||||
|
/* USER CODE END PFP */
|
||||||
|
|
||||||
|
/* Private user code ---------------------------------------------------------*/
|
||||||
|
/* USER CODE BEGIN 0 */
|
||||||
|
|
||||||
|
/* USER CODE END 0 */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief The application entry point.
|
||||||
|
* @retval int
|
||||||
|
*/
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN 1 */
|
||||||
|
|
||||||
|
/* USER CODE END 1 */
|
||||||
|
|
||||||
|
/* MCU Configuration--------------------------------------------------------*/
|
||||||
|
|
||||||
|
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
|
||||||
|
HAL_Init();
|
||||||
|
|
||||||
|
/* USER CODE BEGIN Init */
|
||||||
|
|
||||||
|
/* USER CODE END Init */
|
||||||
|
|
||||||
|
/* Configure the system clock */
|
||||||
|
SystemClock_Config();
|
||||||
|
|
||||||
|
/* USER CODE BEGIN SysInit */
|
||||||
|
|
||||||
|
/* USER CODE END SysInit */
|
||||||
|
|
||||||
|
/* Initialize all configured peripherals */
|
||||||
|
MX_GPIO_Init();
|
||||||
|
MX_CRC_Init();
|
||||||
|
MX_DMA2D_Init();
|
||||||
|
MX_FMC_Init();
|
||||||
|
MX_I2C3_Init();
|
||||||
|
MX_LTDC_Init();
|
||||||
|
MX_SPI5_Init();
|
||||||
|
MX_TIM1_Init();
|
||||||
|
MX_USART1_UART_Init();
|
||||||
|
/* USER CODE BEGIN 2 */
|
||||||
|
|
||||||
|
/* USER CODE END 2 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN RTOS_MUTEX */
|
||||||
|
/* add mutexes, ... */
|
||||||
|
/* USER CODE END RTOS_MUTEX */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN RTOS_SEMAPHORES */
|
||||||
|
/* add semaphores, ... */
|
||||||
|
/* USER CODE END RTOS_SEMAPHORES */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN RTOS_TIMERS */
|
||||||
|
/* start timers, add new ones, ... */
|
||||||
|
/* USER CODE END RTOS_TIMERS */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN RTOS_QUEUES */
|
||||||
|
/* add queues, ... */
|
||||||
|
/* USER CODE END RTOS_QUEUES */
|
||||||
|
|
||||||
|
/* Create the thread(s) */
|
||||||
|
/* definition and creation of defaultTask */
|
||||||
|
osThreadDef(defaultTask, StartDefaultTask, osPriorityNormal, 0, 4096);
|
||||||
|
defaultTaskHandle = osThreadCreate(osThread(defaultTask), NULL);
|
||||||
|
|
||||||
|
/* USER CODE BEGIN RTOS_THREADS */
|
||||||
|
/* add threads, ... */
|
||||||
|
/* USER CODE END RTOS_THREADS */
|
||||||
|
|
||||||
|
/* Start scheduler */
|
||||||
|
osKernelStart();
|
||||||
|
|
||||||
|
/* We should never get here as control is now taken by the scheduler */
|
||||||
|
|
||||||
|
/* Infinite loop */
|
||||||
|
/* USER CODE BEGIN WHILE */
|
||||||
|
while (1)
|
||||||
|
{
|
||||||
|
/* USER CODE END WHILE */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN 3 */
|
||||||
|
}
|
||||||
|
/* USER CODE END 3 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief System Clock Configuration
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
void SystemClock_Config(void)
|
||||||
|
{
|
||||||
|
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
|
||||||
|
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
|
||||||
|
|
||||||
|
/** Configure the main internal regulator output voltage
|
||||||
|
*/
|
||||||
|
__HAL_RCC_PWR_CLK_ENABLE();
|
||||||
|
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE3);
|
||||||
|
|
||||||
|
/** Initializes the RCC Oscillators according to the specified parameters
|
||||||
|
* in the RCC_OscInitTypeDef structure.
|
||||||
|
*/
|
||||||
|
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
|
||||||
|
RCC_OscInitStruct.HSEState = RCC_HSE_ON;
|
||||||
|
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
|
||||||
|
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
|
||||||
|
RCC_OscInitStruct.PLL.PLLM = 4;
|
||||||
|
RCC_OscInitStruct.PLL.PLLN = 72;
|
||||||
|
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2;
|
||||||
|
RCC_OscInitStruct.PLL.PLLQ = 3;
|
||||||
|
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Initializes the CPU, AHB and APB buses clocks
|
||||||
|
*/
|
||||||
|
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
|
||||||
|
|RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
|
||||||
|
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
|
||||||
|
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
|
||||||
|
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2;
|
||||||
|
RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;
|
||||||
|
|
||||||
|
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief CRC Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_CRC_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN CRC_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END CRC_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN CRC_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END CRC_Init 1 */
|
||||||
|
hcrc.Instance = CRC;
|
||||||
|
if (HAL_CRC_Init(&hcrc) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN CRC_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END CRC_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief DMA2D Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_DMA2D_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN DMA2D_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END DMA2D_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN DMA2D_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END DMA2D_Init 1 */
|
||||||
|
hdma2d.Instance = DMA2D;
|
||||||
|
hdma2d.Init.Mode = DMA2D_M2M;
|
||||||
|
hdma2d.Init.ColorMode = DMA2D_OUTPUT_ARGB8888;
|
||||||
|
hdma2d.Init.OutputOffset = 0;
|
||||||
|
hdma2d.LayerCfg[1].InputOffset = 0;
|
||||||
|
hdma2d.LayerCfg[1].InputColorMode = DMA2D_INPUT_ARGB8888;
|
||||||
|
hdma2d.LayerCfg[1].AlphaMode = DMA2D_NO_MODIF_ALPHA;
|
||||||
|
hdma2d.LayerCfg[1].InputAlpha = 0;
|
||||||
|
if (HAL_DMA2D_Init(&hdma2d) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
if (HAL_DMA2D_ConfigLayer(&hdma2d, 1) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN DMA2D_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END DMA2D_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief I2C3 Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_I2C3_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN I2C3_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END I2C3_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN I2C3_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END I2C3_Init 1 */
|
||||||
|
hi2c3.Instance = I2C3;
|
||||||
|
hi2c3.Init.ClockSpeed = 100000;
|
||||||
|
hi2c3.Init.DutyCycle = I2C_DUTYCYCLE_2;
|
||||||
|
hi2c3.Init.OwnAddress1 = 0;
|
||||||
|
hi2c3.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT;
|
||||||
|
hi2c3.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE;
|
||||||
|
hi2c3.Init.OwnAddress2 = 0;
|
||||||
|
hi2c3.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE;
|
||||||
|
hi2c3.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE;
|
||||||
|
if (HAL_I2C_Init(&hi2c3) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Configure Analogue filter
|
||||||
|
*/
|
||||||
|
if (HAL_I2CEx_ConfigAnalogFilter(&hi2c3, I2C_ANALOGFILTER_ENABLE) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Configure Digital filter
|
||||||
|
*/
|
||||||
|
if (HAL_I2CEx_ConfigDigitalFilter(&hi2c3, 0) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN I2C3_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END I2C3_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief LTDC Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_LTDC_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN LTDC_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END LTDC_Init 0 */
|
||||||
|
|
||||||
|
LTDC_LayerCfgTypeDef pLayerCfg = {0};
|
||||||
|
|
||||||
|
/* USER CODE BEGIN LTDC_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END LTDC_Init 1 */
|
||||||
|
hltdc.Instance = LTDC;
|
||||||
|
hltdc.Init.HSPolarity = LTDC_HSPOLARITY_AL;
|
||||||
|
hltdc.Init.VSPolarity = LTDC_VSPOLARITY_AL;
|
||||||
|
hltdc.Init.DEPolarity = LTDC_DEPOLARITY_AL;
|
||||||
|
hltdc.Init.PCPolarity = LTDC_PCPOLARITY_IPC;
|
||||||
|
hltdc.Init.HorizontalSync = 9;
|
||||||
|
hltdc.Init.VerticalSync = 1;
|
||||||
|
hltdc.Init.AccumulatedHBP = 29;
|
||||||
|
hltdc.Init.AccumulatedVBP = 3;
|
||||||
|
hltdc.Init.AccumulatedActiveW = 269;
|
||||||
|
hltdc.Init.AccumulatedActiveH = 323;
|
||||||
|
hltdc.Init.TotalWidth = 279;
|
||||||
|
hltdc.Init.TotalHeigh = 327;
|
||||||
|
hltdc.Init.Backcolor.Blue = 0;
|
||||||
|
hltdc.Init.Backcolor.Green = 0;
|
||||||
|
hltdc.Init.Backcolor.Red = 0;
|
||||||
|
if (HAL_LTDC_Init(&hltdc) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
pLayerCfg.WindowX0 = 0;
|
||||||
|
pLayerCfg.WindowX1 = 240;
|
||||||
|
pLayerCfg.WindowY0 = 0;
|
||||||
|
pLayerCfg.WindowY1 = 320;
|
||||||
|
pLayerCfg.PixelFormat = LTDC_PIXEL_FORMAT_RGB565;
|
||||||
|
pLayerCfg.Alpha = 255;
|
||||||
|
pLayerCfg.Alpha0 = 0;
|
||||||
|
pLayerCfg.BlendingFactor1 = LTDC_BLENDING_FACTOR1_PAxCA;
|
||||||
|
pLayerCfg.BlendingFactor2 = LTDC_BLENDING_FACTOR2_PAxCA;
|
||||||
|
pLayerCfg.FBStartAdress = 0xD0000000;
|
||||||
|
pLayerCfg.ImageWidth = 240;
|
||||||
|
pLayerCfg.ImageHeight = 320;
|
||||||
|
pLayerCfg.Backcolor.Blue = 0;
|
||||||
|
pLayerCfg.Backcolor.Green = 0;
|
||||||
|
pLayerCfg.Backcolor.Red = 0;
|
||||||
|
if (HAL_LTDC_ConfigLayer(&hltdc, &pLayerCfg, 0) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN LTDC_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END LTDC_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief SPI5 Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_SPI5_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN SPI5_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END SPI5_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN SPI5_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END SPI5_Init 1 */
|
||||||
|
/* SPI5 parameter configuration*/
|
||||||
|
hspi5.Instance = SPI5;
|
||||||
|
hspi5.Init.Mode = SPI_MODE_MASTER;
|
||||||
|
hspi5.Init.Direction = SPI_DIRECTION_2LINES;
|
||||||
|
hspi5.Init.DataSize = SPI_DATASIZE_8BIT;
|
||||||
|
hspi5.Init.CLKPolarity = SPI_POLARITY_LOW;
|
||||||
|
hspi5.Init.CLKPhase = SPI_PHASE_1EDGE;
|
||||||
|
hspi5.Init.NSS = SPI_NSS_SOFT;
|
||||||
|
hspi5.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_16;
|
||||||
|
hspi5.Init.FirstBit = SPI_FIRSTBIT_MSB;
|
||||||
|
hspi5.Init.TIMode = SPI_TIMODE_DISABLE;
|
||||||
|
hspi5.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE;
|
||||||
|
hspi5.Init.CRCPolynomial = 10;
|
||||||
|
if (HAL_SPI_Init(&hspi5) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN SPI5_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END SPI5_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief TIM1 Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_TIM1_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN TIM1_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END TIM1_Init 0 */
|
||||||
|
|
||||||
|
TIM_ClockConfigTypeDef sClockSourceConfig = {0};
|
||||||
|
TIM_MasterConfigTypeDef sMasterConfig = {0};
|
||||||
|
|
||||||
|
/* USER CODE BEGIN TIM1_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END TIM1_Init 1 */
|
||||||
|
htim1.Instance = TIM1;
|
||||||
|
htim1.Init.Prescaler = 0;
|
||||||
|
htim1.Init.CounterMode = TIM_COUNTERMODE_UP;
|
||||||
|
htim1.Init.Period = 65535;
|
||||||
|
htim1.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
|
||||||
|
htim1.Init.RepetitionCounter = 0;
|
||||||
|
htim1.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
|
||||||
|
if (HAL_TIM_Base_Init(&htim1) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
|
||||||
|
if (HAL_TIM_ConfigClockSource(&htim1, &sClockSourceConfig) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
|
||||||
|
sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
|
||||||
|
if (HAL_TIMEx_MasterConfigSynchronization(&htim1, &sMasterConfig) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN TIM1_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END TIM1_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief USART1 Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_USART1_UART_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN USART1_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END USART1_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN USART1_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END USART1_Init 1 */
|
||||||
|
huart1.Instance = USART1;
|
||||||
|
huart1.Init.BaudRate = 115200;
|
||||||
|
huart1.Init.WordLength = UART_WORDLENGTH_8B;
|
||||||
|
huart1.Init.StopBits = UART_STOPBITS_1;
|
||||||
|
huart1.Init.Parity = UART_PARITY_NONE;
|
||||||
|
huart1.Init.Mode = UART_MODE_TX_RX;
|
||||||
|
huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
|
||||||
|
huart1.Init.OverSampling = UART_OVERSAMPLING_16;
|
||||||
|
if (HAL_UART_Init(&huart1) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN USART1_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END USART1_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/* FMC initialization function */
|
||||||
|
static void MX_FMC_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN FMC_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END FMC_Init 0 */
|
||||||
|
|
||||||
|
FMC_SDRAM_TimingTypeDef SdramTiming = {0};
|
||||||
|
|
||||||
|
/* USER CODE BEGIN FMC_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END FMC_Init 1 */
|
||||||
|
|
||||||
|
/** Perform the SDRAM1 memory initialization sequence
|
||||||
|
*/
|
||||||
|
hsdram1.Instance = FMC_SDRAM_DEVICE;
|
||||||
|
/* hsdram1.Init */
|
||||||
|
hsdram1.Init.SDBank = FMC_SDRAM_BANK2;
|
||||||
|
hsdram1.Init.ColumnBitsNumber = FMC_SDRAM_COLUMN_BITS_NUM_8;
|
||||||
|
hsdram1.Init.RowBitsNumber = FMC_SDRAM_ROW_BITS_NUM_12;
|
||||||
|
hsdram1.Init.MemoryDataWidth = FMC_SDRAM_MEM_BUS_WIDTH_16;
|
||||||
|
hsdram1.Init.InternalBankNumber = FMC_SDRAM_INTERN_BANKS_NUM_4;
|
||||||
|
hsdram1.Init.CASLatency = FMC_SDRAM_CAS_LATENCY_3;
|
||||||
|
hsdram1.Init.WriteProtection = FMC_SDRAM_WRITE_PROTECTION_DISABLE;
|
||||||
|
hsdram1.Init.SDClockPeriod = FMC_SDRAM_CLOCK_PERIOD_2;
|
||||||
|
hsdram1.Init.ReadBurst = FMC_SDRAM_RBURST_DISABLE;
|
||||||
|
hsdram1.Init.ReadPipeDelay = FMC_SDRAM_RPIPE_DELAY_1;
|
||||||
|
/* SdramTiming */
|
||||||
|
SdramTiming.LoadToActiveDelay = 2;
|
||||||
|
SdramTiming.ExitSelfRefreshDelay = 7;
|
||||||
|
SdramTiming.SelfRefreshTime = 4;
|
||||||
|
SdramTiming.RowCycleDelay = 7;
|
||||||
|
SdramTiming.WriteRecoveryTime = 3;
|
||||||
|
SdramTiming.RPDelay = 2;
|
||||||
|
SdramTiming.RCDDelay = 2;
|
||||||
|
|
||||||
|
if (HAL_SDRAM_Init(&hsdram1, &SdramTiming) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler( );
|
||||||
|
}
|
||||||
|
|
||||||
|
/* USER CODE BEGIN FMC_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END FMC_Init 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief GPIO Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_GPIO_Init(void)
|
||||||
|
{
|
||||||
|
GPIO_InitTypeDef GPIO_InitStruct = {0};
|
||||||
|
/* USER CODE BEGIN MX_GPIO_Init_1 */
|
||||||
|
|
||||||
|
/* USER CODE END MX_GPIO_Init_1 */
|
||||||
|
|
||||||
|
/* GPIO Ports Clock Enable */
|
||||||
|
__HAL_RCC_GPIOE_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOC_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOF_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOH_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOA_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOB_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOG_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOD_CLK_ENABLE();
|
||||||
|
|
||||||
|
/*Configure GPIO pin Output Level */
|
||||||
|
HAL_GPIO_WritePin(GPIOE, RedLight_Pin|YellowLight_Pin|GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
/*Configure GPIO pin Output Level */
|
||||||
|
HAL_GPIO_WritePin(GPIOC, NCS_MEMS_SPI_Pin|CSX_Pin|OTG_FS_PSO_Pin, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
/*Configure GPIO pin Output Level */
|
||||||
|
HAL_GPIO_WritePin(ACP_RST_GPIO_Port, ACP_RST_Pin, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
/*Configure GPIO pin Output Level */
|
||||||
|
HAL_GPIO_WritePin(GPIOD, RDX_Pin|WRX_DCX_Pin, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
/*Configure GPIO pin Output Level */
|
||||||
|
HAL_GPIO_WritePin(GPIOG, LD3_Pin|LD4_Pin, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
/*Configure GPIO pins : RedLight_Pin YellowLight_Pin GreenLight_Pin */
|
||||||
|
GPIO_InitStruct.Pin = RedLight_Pin|YellowLight_Pin|GreenLight_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
||||||
|
HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pins : NCS_MEMS_SPI_Pin CSX_Pin OTG_FS_PSO_Pin */
|
||||||
|
GPIO_InitStruct.Pin = NCS_MEMS_SPI_Pin|CSX_Pin|OTG_FS_PSO_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
||||||
|
HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pins : B1_Pin MEMS_INT1_Pin MEMS_INT2_Pin TP_INT1_Pin */
|
||||||
|
GPIO_InitStruct.Pin = B1_Pin|MEMS_INT1_Pin|MEMS_INT2_Pin|TP_INT1_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_EVT_RISING;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pin : ACP_RST_Pin */
|
||||||
|
GPIO_InitStruct.Pin = ACP_RST_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
||||||
|
HAL_GPIO_Init(ACP_RST_GPIO_Port, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pin : OTG_FS_OC_Pin */
|
||||||
|
GPIO_InitStruct.Pin = OTG_FS_OC_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_EVT_RISING;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
HAL_GPIO_Init(OTG_FS_OC_GPIO_Port, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pin : BOOT1_Pin */
|
||||||
|
GPIO_InitStruct.Pin = BOOT1_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
HAL_GPIO_Init(BOOT1_GPIO_Port, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pin : TE_Pin */
|
||||||
|
GPIO_InitStruct.Pin = TE_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
HAL_GPIO_Init(TE_GPIO_Port, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pins : RDX_Pin WRX_DCX_Pin */
|
||||||
|
GPIO_InitStruct.Pin = RDX_Pin|WRX_DCX_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
||||||
|
HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pins : LD3_Pin LD4_Pin */
|
||||||
|
GPIO_InitStruct.Pin = LD3_Pin|LD4_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
||||||
|
HAL_GPIO_Init(GPIOG, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/* USER CODE BEGIN MX_GPIO_Init_2 */
|
||||||
|
|
||||||
|
/* USER CODE END MX_GPIO_Init_2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* USER CODE BEGIN 4 */
|
||||||
|
|
||||||
|
/* USER CODE END 4 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN Header_StartDefaultTask */
|
||||||
|
/**
|
||||||
|
* @brief Function implementing the defaultTask thread.
|
||||||
|
* @param argument: Not used
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
/* USER CODE END Header_StartDefaultTask */
|
||||||
|
void StartDefaultTask(void const * argument)
|
||||||
|
{
|
||||||
|
/* init code for USB_HOST */
|
||||||
|
MX_USB_HOST_Init();
|
||||||
|
/* USER CODE BEGIN 5 */
|
||||||
|
/* Infinite loop */
|
||||||
|
for(;;)
|
||||||
|
{
|
||||||
|
osDelay(1);
|
||||||
|
}
|
||||||
|
/* USER CODE END 5 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Period elapsed callback in non blocking mode
|
||||||
|
* @note This function is called when TIM6 interrupt took place, inside
|
||||||
|
* HAL_TIM_IRQHandler(). It makes a direct call to HAL_IncTick() to increment
|
||||||
|
* a global variable "uwTick" used as application time base.
|
||||||
|
* @param htim : TIM handle
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
|
||||||
|
{
|
||||||
|
/* USER CODE BEGIN Callback 0 */
|
||||||
|
|
||||||
|
/* USER CODE END Callback 0 */
|
||||||
|
if (htim->Instance == TIM6)
|
||||||
|
{
|
||||||
|
HAL_IncTick();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN Callback 1 */
|
||||||
|
|
||||||
|
/* USER CODE END Callback 1 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief This function is executed in case of error occurrence.
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
void Error_Handler(void)
|
||||||
|
{
|
||||||
|
/* USER CODE BEGIN Error_Handler_Debug */
|
||||||
|
/* User can add his own implementation to report the HAL error return state */
|
||||||
|
__disable_irq();
|
||||||
|
while (1)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
/* USER CODE END Error_Handler_Debug */
|
||||||
|
}
|
||||||
|
#ifdef USE_FULL_ASSERT
|
||||||
|
/**
|
||||||
|
* @brief Reports the name of the source file and the source line number
|
||||||
|
* where the assert_param error has occurred.
|
||||||
|
* @param file: pointer to the source file name
|
||||||
|
* @param line: assert_param error line source number
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
void assert_failed(uint8_t *file, uint32_t line)
|
||||||
|
{
|
||||||
|
/* USER CODE BEGIN 6 */
|
||||||
|
/* User can add his own implementation to report the file name and line number,
|
||||||
|
ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */
|
||||||
|
/* USER CODE END 6 */
|
||||||
|
}
|
||||||
|
#endif /* USE_FULL_ASSERT */
|
||||||
+37
@@ -0,0 +1,37 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
breadboard(int traffSPD)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_SET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+48
@@ -0,0 +1,48 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
HAL_Delay(333);
|
||||||
|
Hal_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
|
||||||
|
// Yellow Light
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
HAL_Delay(333);
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
|
||||||
|
// Green Light
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
HAL_DELAY(333);
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+56
@@ -0,0 +1,56 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
HAL_Delay(500);
|
||||||
|
Hal_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
HAL_Delay(500);
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
HAL_DELAY(500);
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+53
@@ -0,0 +1,53 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
#define RedLight_Port RedLight_GPIO_Port
|
||||||
|
#define YellowLight_Port YellowLight_GPIO_Port
|
||||||
|
#define GreenLight_Port GreenLight_GPIO_Port
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
HAL_Delay(333);
|
||||||
|
Hal_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
|
||||||
|
// Yellow Light
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
HAL_Delay(333);
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
|
||||||
|
// Green Light
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
HAL_DELAY(333);
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+50
@@ -0,0 +1,50 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
HAL_Delay(500);
|
||||||
|
Hal_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+728
@@ -0,0 +1,728 @@
|
|||||||
|
/* USER CODE BEGIN Header */
|
||||||
|
/**
|
||||||
|
******************************************************************************
|
||||||
|
* @file : main.c
|
||||||
|
* @brief : Main program body
|
||||||
|
******************************************************************************
|
||||||
|
* @attention
|
||||||
|
*
|
||||||
|
* Copyright (c) 2025 STMicroelectronics.
|
||||||
|
* All rights reserved.
|
||||||
|
*
|
||||||
|
* This software is licensed under terms that can be found in the LICENSE file
|
||||||
|
* in the root directory of this software component.
|
||||||
|
* If no LICENSE file comes with this software, it is provided AS-IS.
|
||||||
|
*
|
||||||
|
******************************************************************************
|
||||||
|
*/
|
||||||
|
/* USER CODE END Header */
|
||||||
|
/* Includes ------------------------------------------------------------------*/
|
||||||
|
#include "main.h"
|
||||||
|
#include "cmsis_os.h"
|
||||||
|
#include "usb_host.h"
|
||||||
|
|
||||||
|
/* Private includes ----------------------------------------------------------*/
|
||||||
|
/* USER CODE BEGIN Includes */
|
||||||
|
|
||||||
|
/* USER CODE END Includes */
|
||||||
|
|
||||||
|
/* Private typedef -----------------------------------------------------------*/
|
||||||
|
/* USER CODE BEGIN PTD */
|
||||||
|
|
||||||
|
/* USER CODE END PTD */
|
||||||
|
|
||||||
|
/* Private define ------------------------------------------------------------*/
|
||||||
|
/* USER CODE BEGIN PD */
|
||||||
|
|
||||||
|
/* USER CODE END PD */
|
||||||
|
|
||||||
|
/* Private macro -------------------------------------------------------------*/
|
||||||
|
/* USER CODE BEGIN PM */
|
||||||
|
|
||||||
|
/* USER CODE END PM */
|
||||||
|
|
||||||
|
/* Private variables ---------------------------------------------------------*/
|
||||||
|
CRC_HandleTypeDef hcrc;
|
||||||
|
|
||||||
|
DMA2D_HandleTypeDef hdma2d;
|
||||||
|
|
||||||
|
I2C_HandleTypeDef hi2c3;
|
||||||
|
|
||||||
|
LTDC_HandleTypeDef hltdc;
|
||||||
|
|
||||||
|
SPI_HandleTypeDef hspi5;
|
||||||
|
|
||||||
|
TIM_HandleTypeDef htim1;
|
||||||
|
|
||||||
|
UART_HandleTypeDef huart1;
|
||||||
|
|
||||||
|
SDRAM_HandleTypeDef hsdram1;
|
||||||
|
|
||||||
|
osThreadId defaultTaskHandle;
|
||||||
|
/* USER CODE BEGIN PV */
|
||||||
|
|
||||||
|
/* USER CODE END PV */
|
||||||
|
|
||||||
|
/* Private function prototypes -----------------------------------------------*/
|
||||||
|
void SystemClock_Config(void);
|
||||||
|
static void MX_GPIO_Init(void);
|
||||||
|
static void MX_CRC_Init(void);
|
||||||
|
static void MX_DMA2D_Init(void);
|
||||||
|
static void MX_FMC_Init(void);
|
||||||
|
static void MX_I2C3_Init(void);
|
||||||
|
static void MX_LTDC_Init(void);
|
||||||
|
static void MX_SPI5_Init(void);
|
||||||
|
static void MX_TIM1_Init(void);
|
||||||
|
static void MX_USART1_UART_Init(void);
|
||||||
|
void StartDefaultTask(void const * argument);
|
||||||
|
|
||||||
|
/* USER CODE BEGIN PFP */
|
||||||
|
|
||||||
|
/* USER CODE END PFP */
|
||||||
|
|
||||||
|
/* Private user code ---------------------------------------------------------*/
|
||||||
|
/* USER CODE BEGIN 0 */
|
||||||
|
|
||||||
|
/* USER CODE END 0 */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief The application entry point.
|
||||||
|
* @retval int
|
||||||
|
*/
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN 1 */
|
||||||
|
|
||||||
|
/* USER CODE END 1 */
|
||||||
|
|
||||||
|
/* MCU Configuration--------------------------------------------------------*/
|
||||||
|
|
||||||
|
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
|
||||||
|
HAL_Init();
|
||||||
|
|
||||||
|
/* USER CODE BEGIN Init */
|
||||||
|
|
||||||
|
/* USER CODE END Init */
|
||||||
|
|
||||||
|
/* Configure the system clock */
|
||||||
|
SystemClock_Config();
|
||||||
|
|
||||||
|
/* USER CODE BEGIN SysInit */
|
||||||
|
|
||||||
|
/* USER CODE END SysInit */
|
||||||
|
|
||||||
|
/* Initialize all configured peripherals */
|
||||||
|
MX_GPIO_Init();
|
||||||
|
MX_CRC_Init();
|
||||||
|
MX_DMA2D_Init();
|
||||||
|
MX_FMC_Init();
|
||||||
|
MX_I2C3_Init();
|
||||||
|
MX_LTDC_Init();
|
||||||
|
MX_SPI5_Init();
|
||||||
|
MX_TIM1_Init();
|
||||||
|
MX_USART1_UART_Init();
|
||||||
|
/* USER CODE BEGIN 2 */
|
||||||
|
|
||||||
|
/* USER CODE END 2 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN RTOS_MUTEX */
|
||||||
|
/* add mutexes, ... */
|
||||||
|
/* USER CODE END RTOS_MUTEX */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN RTOS_SEMAPHORES */
|
||||||
|
/* add semaphores, ... */
|
||||||
|
/* USER CODE END RTOS_SEMAPHORES */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN RTOS_TIMERS */
|
||||||
|
/* start timers, add new ones, ... */
|
||||||
|
/* USER CODE END RTOS_TIMERS */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN RTOS_QUEUES */
|
||||||
|
/* add queues, ... */
|
||||||
|
/* USER CODE END RTOS_QUEUES */
|
||||||
|
|
||||||
|
/* Create the thread(s) */
|
||||||
|
/* definition and creation of defaultTask */
|
||||||
|
//osThreadDef(defaultTask, StartDefaultTask, osPriorityNormal, 0, 4096);
|
||||||
|
//defaultTaskHandle = osThreadCreate(osThread(defaultTask), NULL);
|
||||||
|
|
||||||
|
/* USER CODE BEGIN RTOS_THREADS */
|
||||||
|
/* add threads, ... */
|
||||||
|
/* USER CODE END RTOS_THREADS */
|
||||||
|
|
||||||
|
/* Start scheduler */
|
||||||
|
osKernelStart();
|
||||||
|
|
||||||
|
/* We should never get here as control is now taken by the scheduler */
|
||||||
|
|
||||||
|
/* Infinite loop */
|
||||||
|
/* USER CODE BEGIN WHILE */
|
||||||
|
while (1)
|
||||||
|
{
|
||||||
|
/* USER CODE END WHILE */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN 3 */
|
||||||
|
}
|
||||||
|
/* USER CODE END 3 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief System Clock Configuration
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
void SystemClock_Config(void)
|
||||||
|
{
|
||||||
|
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
|
||||||
|
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
|
||||||
|
|
||||||
|
/** Configure the main internal regulator output voltage
|
||||||
|
*/
|
||||||
|
__HAL_RCC_PWR_CLK_ENABLE();
|
||||||
|
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE3);
|
||||||
|
|
||||||
|
/** Initializes the RCC Oscillators according to the specified parameters
|
||||||
|
* in the RCC_OscInitTypeDef structure.
|
||||||
|
*/
|
||||||
|
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
|
||||||
|
RCC_OscInitStruct.HSEState = RCC_HSE_ON;
|
||||||
|
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
|
||||||
|
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
|
||||||
|
RCC_OscInitStruct.PLL.PLLM = 4;
|
||||||
|
RCC_OscInitStruct.PLL.PLLN = 72;
|
||||||
|
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2;
|
||||||
|
RCC_OscInitStruct.PLL.PLLQ = 3;
|
||||||
|
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Initializes the CPU, AHB and APB buses clocks
|
||||||
|
*/
|
||||||
|
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
|
||||||
|
|RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
|
||||||
|
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
|
||||||
|
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
|
||||||
|
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2;
|
||||||
|
RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;
|
||||||
|
|
||||||
|
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief CRC Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_CRC_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN CRC_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END CRC_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN CRC_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END CRC_Init 1 */
|
||||||
|
hcrc.Instance = CRC;
|
||||||
|
if (HAL_CRC_Init(&hcrc) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN CRC_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END CRC_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief DMA2D Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_DMA2D_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN DMA2D_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END DMA2D_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN DMA2D_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END DMA2D_Init 1 */
|
||||||
|
hdma2d.Instance = DMA2D;
|
||||||
|
hdma2d.Init.Mode = DMA2D_M2M;
|
||||||
|
hdma2d.Init.ColorMode = DMA2D_OUTPUT_ARGB8888;
|
||||||
|
hdma2d.Init.OutputOffset = 0;
|
||||||
|
hdma2d.LayerCfg[1].InputOffset = 0;
|
||||||
|
hdma2d.LayerCfg[1].InputColorMode = DMA2D_INPUT_ARGB8888;
|
||||||
|
hdma2d.LayerCfg[1].AlphaMode = DMA2D_NO_MODIF_ALPHA;
|
||||||
|
hdma2d.LayerCfg[1].InputAlpha = 0;
|
||||||
|
if (HAL_DMA2D_Init(&hdma2d) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
if (HAL_DMA2D_ConfigLayer(&hdma2d, 1) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN DMA2D_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END DMA2D_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief I2C3 Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_I2C3_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN I2C3_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END I2C3_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN I2C3_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END I2C3_Init 1 */
|
||||||
|
hi2c3.Instance = I2C3;
|
||||||
|
hi2c3.Init.ClockSpeed = 100000;
|
||||||
|
hi2c3.Init.DutyCycle = I2C_DUTYCYCLE_2;
|
||||||
|
hi2c3.Init.OwnAddress1 = 0;
|
||||||
|
hi2c3.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT;
|
||||||
|
hi2c3.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE;
|
||||||
|
hi2c3.Init.OwnAddress2 = 0;
|
||||||
|
hi2c3.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE;
|
||||||
|
hi2c3.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE;
|
||||||
|
if (HAL_I2C_Init(&hi2c3) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Configure Analogue filter
|
||||||
|
*/
|
||||||
|
if (HAL_I2CEx_ConfigAnalogFilter(&hi2c3, I2C_ANALOGFILTER_ENABLE) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Configure Digital filter
|
||||||
|
*/
|
||||||
|
if (HAL_I2CEx_ConfigDigitalFilter(&hi2c3, 0) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN I2C3_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END I2C3_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief LTDC Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_LTDC_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN LTDC_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END LTDC_Init 0 */
|
||||||
|
|
||||||
|
LTDC_LayerCfgTypeDef pLayerCfg = {0};
|
||||||
|
|
||||||
|
/* USER CODE BEGIN LTDC_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END LTDC_Init 1 */
|
||||||
|
hltdc.Instance = LTDC;
|
||||||
|
hltdc.Init.HSPolarity = LTDC_HSPOLARITY_AL;
|
||||||
|
hltdc.Init.VSPolarity = LTDC_VSPOLARITY_AL;
|
||||||
|
hltdc.Init.DEPolarity = LTDC_DEPOLARITY_AL;
|
||||||
|
hltdc.Init.PCPolarity = LTDC_PCPOLARITY_IPC;
|
||||||
|
hltdc.Init.HorizontalSync = 9;
|
||||||
|
hltdc.Init.VerticalSync = 1;
|
||||||
|
hltdc.Init.AccumulatedHBP = 29;
|
||||||
|
hltdc.Init.AccumulatedVBP = 3;
|
||||||
|
hltdc.Init.AccumulatedActiveW = 269;
|
||||||
|
hltdc.Init.AccumulatedActiveH = 323;
|
||||||
|
hltdc.Init.TotalWidth = 279;
|
||||||
|
hltdc.Init.TotalHeigh = 327;
|
||||||
|
hltdc.Init.Backcolor.Blue = 0;
|
||||||
|
hltdc.Init.Backcolor.Green = 0;
|
||||||
|
hltdc.Init.Backcolor.Red = 0;
|
||||||
|
if (HAL_LTDC_Init(&hltdc) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
pLayerCfg.WindowX0 = 0;
|
||||||
|
pLayerCfg.WindowX1 = 240;
|
||||||
|
pLayerCfg.WindowY0 = 0;
|
||||||
|
pLayerCfg.WindowY1 = 320;
|
||||||
|
pLayerCfg.PixelFormat = LTDC_PIXEL_FORMAT_RGB565;
|
||||||
|
pLayerCfg.Alpha = 255;
|
||||||
|
pLayerCfg.Alpha0 = 0;
|
||||||
|
pLayerCfg.BlendingFactor1 = LTDC_BLENDING_FACTOR1_PAxCA;
|
||||||
|
pLayerCfg.BlendingFactor2 = LTDC_BLENDING_FACTOR2_PAxCA;
|
||||||
|
pLayerCfg.FBStartAdress = 0xD0000000;
|
||||||
|
pLayerCfg.ImageWidth = 240;
|
||||||
|
pLayerCfg.ImageHeight = 320;
|
||||||
|
pLayerCfg.Backcolor.Blue = 0;
|
||||||
|
pLayerCfg.Backcolor.Green = 0;
|
||||||
|
pLayerCfg.Backcolor.Red = 0;
|
||||||
|
if (HAL_LTDC_ConfigLayer(&hltdc, &pLayerCfg, 0) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN LTDC_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END LTDC_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief SPI5 Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_SPI5_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN SPI5_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END SPI5_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN SPI5_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END SPI5_Init 1 */
|
||||||
|
/* SPI5 parameter configuration*/
|
||||||
|
hspi5.Instance = SPI5;
|
||||||
|
hspi5.Init.Mode = SPI_MODE_MASTER;
|
||||||
|
hspi5.Init.Direction = SPI_DIRECTION_2LINES;
|
||||||
|
hspi5.Init.DataSize = SPI_DATASIZE_8BIT;
|
||||||
|
hspi5.Init.CLKPolarity = SPI_POLARITY_LOW;
|
||||||
|
hspi5.Init.CLKPhase = SPI_PHASE_1EDGE;
|
||||||
|
hspi5.Init.NSS = SPI_NSS_SOFT;
|
||||||
|
hspi5.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_16;
|
||||||
|
hspi5.Init.FirstBit = SPI_FIRSTBIT_MSB;
|
||||||
|
hspi5.Init.TIMode = SPI_TIMODE_DISABLE;
|
||||||
|
hspi5.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE;
|
||||||
|
hspi5.Init.CRCPolynomial = 10;
|
||||||
|
if (HAL_SPI_Init(&hspi5) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN SPI5_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END SPI5_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief TIM1 Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_TIM1_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN TIM1_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END TIM1_Init 0 */
|
||||||
|
|
||||||
|
TIM_ClockConfigTypeDef sClockSourceConfig = {0};
|
||||||
|
TIM_MasterConfigTypeDef sMasterConfig = {0};
|
||||||
|
|
||||||
|
/* USER CODE BEGIN TIM1_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END TIM1_Init 1 */
|
||||||
|
htim1.Instance = TIM1;
|
||||||
|
htim1.Init.Prescaler = 0;
|
||||||
|
htim1.Init.CounterMode = TIM_COUNTERMODE_UP;
|
||||||
|
htim1.Init.Period = 65535;
|
||||||
|
htim1.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
|
||||||
|
htim1.Init.RepetitionCounter = 0;
|
||||||
|
htim1.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
|
||||||
|
if (HAL_TIM_Base_Init(&htim1) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
|
||||||
|
if (HAL_TIM_ConfigClockSource(&htim1, &sClockSourceConfig) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
|
||||||
|
sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
|
||||||
|
if (HAL_TIMEx_MasterConfigSynchronization(&htim1, &sMasterConfig) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN TIM1_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END TIM1_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief USART1 Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_USART1_UART_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN USART1_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END USART1_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN USART1_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END USART1_Init 1 */
|
||||||
|
huart1.Instance = USART1;
|
||||||
|
huart1.Init.BaudRate = 115200;
|
||||||
|
huart1.Init.WordLength = UART_WORDLENGTH_8B;
|
||||||
|
huart1.Init.StopBits = UART_STOPBITS_1;
|
||||||
|
huart1.Init.Parity = UART_PARITY_NONE;
|
||||||
|
huart1.Init.Mode = UART_MODE_TX_RX;
|
||||||
|
huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
|
||||||
|
huart1.Init.OverSampling = UART_OVERSAMPLING_16;
|
||||||
|
if (HAL_UART_Init(&huart1) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN USART1_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END USART1_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/* FMC initialization function */
|
||||||
|
static void MX_FMC_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN FMC_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END FMC_Init 0 */
|
||||||
|
|
||||||
|
FMC_SDRAM_TimingTypeDef SdramTiming = {0};
|
||||||
|
|
||||||
|
/* USER CODE BEGIN FMC_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END FMC_Init 1 */
|
||||||
|
|
||||||
|
/** Perform the SDRAM1 memory initialization sequence
|
||||||
|
*/
|
||||||
|
hsdram1.Instance = FMC_SDRAM_DEVICE;
|
||||||
|
/* hsdram1.Init */
|
||||||
|
hsdram1.Init.SDBank = FMC_SDRAM_BANK2;
|
||||||
|
hsdram1.Init.ColumnBitsNumber = FMC_SDRAM_COLUMN_BITS_NUM_8;
|
||||||
|
hsdram1.Init.RowBitsNumber = FMC_SDRAM_ROW_BITS_NUM_12;
|
||||||
|
hsdram1.Init.MemoryDataWidth = FMC_SDRAM_MEM_BUS_WIDTH_16;
|
||||||
|
hsdram1.Init.InternalBankNumber = FMC_SDRAM_INTERN_BANKS_NUM_4;
|
||||||
|
hsdram1.Init.CASLatency = FMC_SDRAM_CAS_LATENCY_3;
|
||||||
|
hsdram1.Init.WriteProtection = FMC_SDRAM_WRITE_PROTECTION_DISABLE;
|
||||||
|
hsdram1.Init.SDClockPeriod = FMC_SDRAM_CLOCK_PERIOD_2;
|
||||||
|
hsdram1.Init.ReadBurst = FMC_SDRAM_RBURST_DISABLE;
|
||||||
|
hsdram1.Init.ReadPipeDelay = FMC_SDRAM_RPIPE_DELAY_1;
|
||||||
|
/* SdramTiming */
|
||||||
|
SdramTiming.LoadToActiveDelay = 2;
|
||||||
|
SdramTiming.ExitSelfRefreshDelay = 7;
|
||||||
|
SdramTiming.SelfRefreshTime = 4;
|
||||||
|
SdramTiming.RowCycleDelay = 7;
|
||||||
|
SdramTiming.WriteRecoveryTime = 3;
|
||||||
|
SdramTiming.RPDelay = 2;
|
||||||
|
SdramTiming.RCDDelay = 2;
|
||||||
|
|
||||||
|
if (HAL_SDRAM_Init(&hsdram1, &SdramTiming) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler( );
|
||||||
|
}
|
||||||
|
|
||||||
|
/* USER CODE BEGIN FMC_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END FMC_Init 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief GPIO Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_GPIO_Init(void)
|
||||||
|
{
|
||||||
|
GPIO_InitTypeDef GPIO_InitStruct = {0};
|
||||||
|
/* USER CODE BEGIN MX_GPIO_Init_1 */
|
||||||
|
|
||||||
|
/* USER CODE END MX_GPIO_Init_1 */
|
||||||
|
|
||||||
|
/* GPIO Ports Clock Enable */
|
||||||
|
__HAL_RCC_GPIOE_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOC_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOF_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOH_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOA_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOB_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOG_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOD_CLK_ENABLE();
|
||||||
|
|
||||||
|
/*Configure GPIO pin Output Level */
|
||||||
|
HAL_GPIO_WritePin(GPIOE, RedLight_Pin|YellowLight_Pin|GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
/*Configure GPIO pin Output Level */
|
||||||
|
HAL_GPIO_WritePin(GPIOC, NCS_MEMS_SPI_Pin|CSX_Pin|OTG_FS_PSO_Pin, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
/*Configure GPIO pin Output Level */
|
||||||
|
HAL_GPIO_WritePin(ACP_RST_GPIO_Port, ACP_RST_Pin, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
/*Configure GPIO pin Output Level */
|
||||||
|
HAL_GPIO_WritePin(GPIOD, RDX_Pin|WRX_DCX_Pin, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
/*Configure GPIO pin Output Level */
|
||||||
|
HAL_GPIO_WritePin(GPIOG, LD3_Pin|LD4_Pin, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
/*Configure GPIO pins : RedLight_Pin YellowLight_Pin GreenLight_Pin */
|
||||||
|
GPIO_InitStruct.Pin = RedLight_Pin|YellowLight_Pin|GreenLight_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
||||||
|
HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pins : NCS_MEMS_SPI_Pin CSX_Pin OTG_FS_PSO_Pin */
|
||||||
|
GPIO_InitStruct.Pin = NCS_MEMS_SPI_Pin|CSX_Pin|OTG_FS_PSO_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
||||||
|
HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pins : B1_Pin MEMS_INT1_Pin MEMS_INT2_Pin TP_INT1_Pin */
|
||||||
|
GPIO_InitStruct.Pin = B1_Pin|MEMS_INT1_Pin|MEMS_INT2_Pin|TP_INT1_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_EVT_RISING;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pin : ACP_RST_Pin */
|
||||||
|
GPIO_InitStruct.Pin = ACP_RST_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
||||||
|
HAL_GPIO_Init(ACP_RST_GPIO_Port, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pin : OTG_FS_OC_Pin */
|
||||||
|
GPIO_InitStruct.Pin = OTG_FS_OC_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_EVT_RISING;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
HAL_GPIO_Init(OTG_FS_OC_GPIO_Port, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pin : BOOT1_Pin */
|
||||||
|
GPIO_InitStruct.Pin = BOOT1_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
HAL_GPIO_Init(BOOT1_GPIO_Port, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pin : TE_Pin */
|
||||||
|
GPIO_InitStruct.Pin = TE_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
HAL_GPIO_Init(TE_GPIO_Port, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pins : RDX_Pin WRX_DCX_Pin */
|
||||||
|
GPIO_InitStruct.Pin = RDX_Pin|WRX_DCX_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
||||||
|
HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pins : LD3_Pin LD4_Pin */
|
||||||
|
GPIO_InitStruct.Pin = LD3_Pin|LD4_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
||||||
|
HAL_GPIO_Init(GPIOG, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/* USER CODE BEGIN MX_GPIO_Init_2 */
|
||||||
|
|
||||||
|
/* USER CODE END MX_GPIO_Init_2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* USER CODE BEGIN 4 */
|
||||||
|
|
||||||
|
/* USER CODE END 4 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN Header_StartDefaultTask */
|
||||||
|
/**
|
||||||
|
* @brief Function implementing the defaultTask thread.
|
||||||
|
* @param argument: Not used
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
/* USER CODE END Header_StartDefaultTask */
|
||||||
|
void StartDefaultTask(void const * argument)
|
||||||
|
{
|
||||||
|
/* init code for USB_HOST */
|
||||||
|
MX_USB_HOST_Init();
|
||||||
|
/* USER CODE BEGIN 5 */
|
||||||
|
/* Infinite loop */
|
||||||
|
for(;;)
|
||||||
|
{
|
||||||
|
osDelay(1);
|
||||||
|
}
|
||||||
|
/* USER CODE END 5 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Period elapsed callback in non blocking mode
|
||||||
|
* @note This function is called when TIM6 interrupt took place, inside
|
||||||
|
* HAL_TIM_IRQHandler(). It makes a direct call to HAL_IncTick() to increment
|
||||||
|
* a global variable "uwTick" used as application time base.
|
||||||
|
* @param htim : TIM handle
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
|
||||||
|
{
|
||||||
|
/* USER CODE BEGIN Callback 0 */
|
||||||
|
|
||||||
|
/* USER CODE END Callback 0 */
|
||||||
|
if (htim->Instance == TIM6)
|
||||||
|
{
|
||||||
|
HAL_IncTick();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN Callback 1 */
|
||||||
|
|
||||||
|
/* USER CODE END Callback 1 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief This function is executed in case of error occurrence.
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
void Error_Handler(void)
|
||||||
|
{
|
||||||
|
/* USER CODE BEGIN Error_Handler_Debug */
|
||||||
|
/* User can add his own implementation to report the HAL error return state */
|
||||||
|
__disable_irq();
|
||||||
|
while (1)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
/* USER CODE END Error_Handler_Debug */
|
||||||
|
}
|
||||||
|
#ifdef USE_FULL_ASSERT
|
||||||
|
/**
|
||||||
|
* @brief Reports the name of the source file and the source line number
|
||||||
|
* where the assert_param error has occurred.
|
||||||
|
* @param file: pointer to the source file name
|
||||||
|
* @param line: assert_param error line source number
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
void assert_failed(uint8_t *file, uint32_t line)
|
||||||
|
{
|
||||||
|
/* USER CODE BEGIN 6 */
|
||||||
|
/* User can add his own implementation to report the file name and line number,
|
||||||
|
ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */
|
||||||
|
/* USER CODE END 6 */
|
||||||
|
}
|
||||||
|
#endif /* USE_FULL_ASSERT */
|
||||||
+4
@@ -0,0 +1,4 @@
|
|||||||
|
635E684B79701B039C64EA45C3F84D30=76D5CABA7E36F5DD0D38ED323FA426B4
|
||||||
|
66BE74F758C12D739921AEA421D593D3=0
|
||||||
|
DC22A860405A8BF2F2C095E5B6529F12=BB3BD6F58A87E81DE6E549B37335B23A
|
||||||
|
eclipse.preferences.version=1
|
||||||
+44
@@ -0,0 +1,44 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
breadboard(int traffSPD)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_SET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+728
@@ -0,0 +1,728 @@
|
|||||||
|
/* USER CODE BEGIN Header */
|
||||||
|
/**
|
||||||
|
******************************************************************************
|
||||||
|
* @file : main.c
|
||||||
|
* @brief : Main program body
|
||||||
|
******************************************************************************
|
||||||
|
* @attention
|
||||||
|
*
|
||||||
|
* Copyright (c) 2025 STMicroelectronics.
|
||||||
|
* All rights reserved.
|
||||||
|
*
|
||||||
|
* This software is licensed under terms that can be found in the LICENSE file
|
||||||
|
* in the root directory of this software component.
|
||||||
|
* If no LICENSE file comes with this software, it is provided AS-IS.
|
||||||
|
*
|
||||||
|
******************************************************************************
|
||||||
|
*/
|
||||||
|
/* USER CODE END Header */
|
||||||
|
/* Includes ------------------------------------------------------------------*/
|
||||||
|
#include "main.h"
|
||||||
|
#include "cmsis_os.h"
|
||||||
|
#include "usb_host.h"
|
||||||
|
|
||||||
|
/* Private includes ----------------------------------------------------------*/
|
||||||
|
/* USER CODE BEGIN Includes */
|
||||||
|
|
||||||
|
/* USER CODE END Includes */
|
||||||
|
|
||||||
|
/* Private typedef -----------------------------------------------------------*/
|
||||||
|
/* USER CODE BEGIN PTD */
|
||||||
|
|
||||||
|
/* USER CODE END PTD */
|
||||||
|
|
||||||
|
/* Private define ------------------------------------------------------------*/
|
||||||
|
/* USER CODE BEGIN PD */
|
||||||
|
|
||||||
|
/* USER CODE END PD */
|
||||||
|
|
||||||
|
/* Private macro -------------------------------------------------------------*/
|
||||||
|
/* USER CODE BEGIN PM */
|
||||||
|
|
||||||
|
/* USER CODE END PM */
|
||||||
|
|
||||||
|
/* Private variables ---------------------------------------------------------*/
|
||||||
|
CRC_HandleTypeDef hcrc;
|
||||||
|
|
||||||
|
DMA2D_HandleTypeDef hdma2d;
|
||||||
|
|
||||||
|
I2C_HandleTypeDef hi2c3;
|
||||||
|
|
||||||
|
LTDC_HandleTypeDef hltdc;
|
||||||
|
|
||||||
|
SPI_HandleTypeDef hspi5;
|
||||||
|
|
||||||
|
TIM_HandleTypeDef htim1;
|
||||||
|
|
||||||
|
UART_HandleTypeDef huart1;
|
||||||
|
|
||||||
|
SDRAM_HandleTypeDef hsdram1;
|
||||||
|
|
||||||
|
osThreadId defaultTaskHandle;
|
||||||
|
/* USER CODE BEGIN PV */
|
||||||
|
|
||||||
|
/* USER CODE END PV */
|
||||||
|
|
||||||
|
/* Private function prototypes -----------------------------------------------*/
|
||||||
|
void SystemClock_Config(void);
|
||||||
|
static void MX_GPIO_Init(void);
|
||||||
|
static void MX_CRC_Init(void);
|
||||||
|
static void MX_DMA2D_Init(void);
|
||||||
|
static void MX_FMC_Init(void);
|
||||||
|
static void MX_I2C3_Init(void);
|
||||||
|
static void MX_LTDC_Init(void);
|
||||||
|
static void MX_SPI5_Init(void);
|
||||||
|
static void MX_TIM1_Init(void);
|
||||||
|
static void MX_USART1_UART_Init(void);
|
||||||
|
void StartDefaultTask(void const * argument);
|
||||||
|
|
||||||
|
/* USER CODE BEGIN PFP */
|
||||||
|
|
||||||
|
/* USER CODE END PFP */
|
||||||
|
|
||||||
|
/* Private user code ---------------------------------------------------------*/
|
||||||
|
/* USER CODE BEGIN 0 */
|
||||||
|
|
||||||
|
/* USER CODE END 0 */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief The application entry point.
|
||||||
|
* @retval int
|
||||||
|
*/
|
||||||
|
int main(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN 1 */
|
||||||
|
|
||||||
|
/* USER CODE END 1 */
|
||||||
|
|
||||||
|
/* MCU Configuration--------------------------------------------------------*/
|
||||||
|
|
||||||
|
/* Reset of all peripherals, Initializes the Flash interface and the Systick. */
|
||||||
|
HAL_Init();
|
||||||
|
|
||||||
|
/* USER CODE BEGIN Init */
|
||||||
|
|
||||||
|
/* USER CODE END Init */
|
||||||
|
|
||||||
|
/* Configure the system clock */
|
||||||
|
SystemClock_Config();
|
||||||
|
|
||||||
|
/* USER CODE BEGIN SysInit */
|
||||||
|
|
||||||
|
/* USER CODE END SysInit */
|
||||||
|
|
||||||
|
/* Initialize all configured peripherals */
|
||||||
|
MX_GPIO_Init();
|
||||||
|
MX_CRC_Init();
|
||||||
|
MX_DMA2D_Init();
|
||||||
|
MX_FMC_Init();
|
||||||
|
MX_I2C3_Init();
|
||||||
|
MX_LTDC_Init();
|
||||||
|
MX_SPI5_Init();
|
||||||
|
MX_TIM1_Init();
|
||||||
|
MX_USART1_UART_Init();
|
||||||
|
/* USER CODE BEGIN 2 */
|
||||||
|
|
||||||
|
/* USER CODE END 2 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN RTOS_MUTEX */
|
||||||
|
/* add mutexes, ... */
|
||||||
|
/* USER CODE END RTOS_MUTEX */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN RTOS_SEMAPHORES */
|
||||||
|
/* add semaphores, ... */
|
||||||
|
/* USER CODE END RTOS_SEMAPHORES */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN RTOS_TIMERS */
|
||||||
|
/* start timers, add new ones, ... */
|
||||||
|
/* USER CODE END RTOS_TIMERS */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN RTOS_QUEUES */
|
||||||
|
/* add queues, ... */
|
||||||
|
/* USER CODE END RTOS_QUEUES */
|
||||||
|
|
||||||
|
/* Create the thread(s) */
|
||||||
|
/* definition and creation of defaultTask */
|
||||||
|
//osThreadDef(defaultTask, StartDefaultTask, osPriorityNormal, 0, 4096);
|
||||||
|
//defaultTaskHandle = osThreadCreate(osThread(defaultTask), NULL);
|
||||||
|
|
||||||
|
/* USER CODE BEGIN RTOS_THREADS */
|
||||||
|
/* add threads, ... */
|
||||||
|
/* USER CODE END RTOS_THREADS */
|
||||||
|
|
||||||
|
/* Start scheduler */
|
||||||
|
//osKernelStart();
|
||||||
|
|
||||||
|
/* We should never get here as control is now taken by the scheduler */
|
||||||
|
|
||||||
|
/* Infinite loop */
|
||||||
|
/* USER CODE BEGIN WHILE */
|
||||||
|
while (1)
|
||||||
|
{
|
||||||
|
/* USER CODE END WHILE */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN 3 */
|
||||||
|
}
|
||||||
|
/* USER CODE END 3 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief System Clock Configuration
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
void SystemClock_Config(void)
|
||||||
|
{
|
||||||
|
RCC_OscInitTypeDef RCC_OscInitStruct = {0};
|
||||||
|
RCC_ClkInitTypeDef RCC_ClkInitStruct = {0};
|
||||||
|
|
||||||
|
/** Configure the main internal regulator output voltage
|
||||||
|
*/
|
||||||
|
__HAL_RCC_PWR_CLK_ENABLE();
|
||||||
|
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE3);
|
||||||
|
|
||||||
|
/** Initializes the RCC Oscillators according to the specified parameters
|
||||||
|
* in the RCC_OscInitTypeDef structure.
|
||||||
|
*/
|
||||||
|
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
|
||||||
|
RCC_OscInitStruct.HSEState = RCC_HSE_ON;
|
||||||
|
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
|
||||||
|
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
|
||||||
|
RCC_OscInitStruct.PLL.PLLM = 4;
|
||||||
|
RCC_OscInitStruct.PLL.PLLN = 72;
|
||||||
|
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2;
|
||||||
|
RCC_OscInitStruct.PLL.PLLQ = 3;
|
||||||
|
if (HAL_RCC_OscConfig(&RCC_OscInitStruct) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Initializes the CPU, AHB and APB buses clocks
|
||||||
|
*/
|
||||||
|
RCC_ClkInitStruct.ClockType = RCC_CLOCKTYPE_HCLK|RCC_CLOCKTYPE_SYSCLK
|
||||||
|
|RCC_CLOCKTYPE_PCLK1|RCC_CLOCKTYPE_PCLK2;
|
||||||
|
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
|
||||||
|
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
|
||||||
|
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2;
|
||||||
|
RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;
|
||||||
|
|
||||||
|
if (HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief CRC Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_CRC_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN CRC_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END CRC_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN CRC_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END CRC_Init 1 */
|
||||||
|
hcrc.Instance = CRC;
|
||||||
|
if (HAL_CRC_Init(&hcrc) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN CRC_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END CRC_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief DMA2D Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_DMA2D_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN DMA2D_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END DMA2D_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN DMA2D_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END DMA2D_Init 1 */
|
||||||
|
hdma2d.Instance = DMA2D;
|
||||||
|
hdma2d.Init.Mode = DMA2D_M2M;
|
||||||
|
hdma2d.Init.ColorMode = DMA2D_OUTPUT_ARGB8888;
|
||||||
|
hdma2d.Init.OutputOffset = 0;
|
||||||
|
hdma2d.LayerCfg[1].InputOffset = 0;
|
||||||
|
hdma2d.LayerCfg[1].InputColorMode = DMA2D_INPUT_ARGB8888;
|
||||||
|
hdma2d.LayerCfg[1].AlphaMode = DMA2D_NO_MODIF_ALPHA;
|
||||||
|
hdma2d.LayerCfg[1].InputAlpha = 0;
|
||||||
|
if (HAL_DMA2D_Init(&hdma2d) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
if (HAL_DMA2D_ConfigLayer(&hdma2d, 1) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN DMA2D_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END DMA2D_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief I2C3 Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_I2C3_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN I2C3_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END I2C3_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN I2C3_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END I2C3_Init 1 */
|
||||||
|
hi2c3.Instance = I2C3;
|
||||||
|
hi2c3.Init.ClockSpeed = 100000;
|
||||||
|
hi2c3.Init.DutyCycle = I2C_DUTYCYCLE_2;
|
||||||
|
hi2c3.Init.OwnAddress1 = 0;
|
||||||
|
hi2c3.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT;
|
||||||
|
hi2c3.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE;
|
||||||
|
hi2c3.Init.OwnAddress2 = 0;
|
||||||
|
hi2c3.Init.GeneralCallMode = I2C_GENERALCALL_DISABLE;
|
||||||
|
hi2c3.Init.NoStretchMode = I2C_NOSTRETCH_DISABLE;
|
||||||
|
if (HAL_I2C_Init(&hi2c3) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Configure Analogue filter
|
||||||
|
*/
|
||||||
|
if (HAL_I2CEx_ConfigAnalogFilter(&hi2c3, I2C_ANALOGFILTER_ENABLE) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
|
||||||
|
/** Configure Digital filter
|
||||||
|
*/
|
||||||
|
if (HAL_I2CEx_ConfigDigitalFilter(&hi2c3, 0) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN I2C3_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END I2C3_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief LTDC Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_LTDC_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN LTDC_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END LTDC_Init 0 */
|
||||||
|
|
||||||
|
LTDC_LayerCfgTypeDef pLayerCfg = {0};
|
||||||
|
|
||||||
|
/* USER CODE BEGIN LTDC_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END LTDC_Init 1 */
|
||||||
|
hltdc.Instance = LTDC;
|
||||||
|
hltdc.Init.HSPolarity = LTDC_HSPOLARITY_AL;
|
||||||
|
hltdc.Init.VSPolarity = LTDC_VSPOLARITY_AL;
|
||||||
|
hltdc.Init.DEPolarity = LTDC_DEPOLARITY_AL;
|
||||||
|
hltdc.Init.PCPolarity = LTDC_PCPOLARITY_IPC;
|
||||||
|
hltdc.Init.HorizontalSync = 9;
|
||||||
|
hltdc.Init.VerticalSync = 1;
|
||||||
|
hltdc.Init.AccumulatedHBP = 29;
|
||||||
|
hltdc.Init.AccumulatedVBP = 3;
|
||||||
|
hltdc.Init.AccumulatedActiveW = 269;
|
||||||
|
hltdc.Init.AccumulatedActiveH = 323;
|
||||||
|
hltdc.Init.TotalWidth = 279;
|
||||||
|
hltdc.Init.TotalHeigh = 327;
|
||||||
|
hltdc.Init.Backcolor.Blue = 0;
|
||||||
|
hltdc.Init.Backcolor.Green = 0;
|
||||||
|
hltdc.Init.Backcolor.Red = 0;
|
||||||
|
if (HAL_LTDC_Init(&hltdc) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
pLayerCfg.WindowX0 = 0;
|
||||||
|
pLayerCfg.WindowX1 = 240;
|
||||||
|
pLayerCfg.WindowY0 = 0;
|
||||||
|
pLayerCfg.WindowY1 = 320;
|
||||||
|
pLayerCfg.PixelFormat = LTDC_PIXEL_FORMAT_RGB565;
|
||||||
|
pLayerCfg.Alpha = 255;
|
||||||
|
pLayerCfg.Alpha0 = 0;
|
||||||
|
pLayerCfg.BlendingFactor1 = LTDC_BLENDING_FACTOR1_PAxCA;
|
||||||
|
pLayerCfg.BlendingFactor2 = LTDC_BLENDING_FACTOR2_PAxCA;
|
||||||
|
pLayerCfg.FBStartAdress = 0xD0000000;
|
||||||
|
pLayerCfg.ImageWidth = 240;
|
||||||
|
pLayerCfg.ImageHeight = 320;
|
||||||
|
pLayerCfg.Backcolor.Blue = 0;
|
||||||
|
pLayerCfg.Backcolor.Green = 0;
|
||||||
|
pLayerCfg.Backcolor.Red = 0;
|
||||||
|
if (HAL_LTDC_ConfigLayer(&hltdc, &pLayerCfg, 0) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN LTDC_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END LTDC_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief SPI5 Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_SPI5_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN SPI5_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END SPI5_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN SPI5_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END SPI5_Init 1 */
|
||||||
|
/* SPI5 parameter configuration*/
|
||||||
|
hspi5.Instance = SPI5;
|
||||||
|
hspi5.Init.Mode = SPI_MODE_MASTER;
|
||||||
|
hspi5.Init.Direction = SPI_DIRECTION_2LINES;
|
||||||
|
hspi5.Init.DataSize = SPI_DATASIZE_8BIT;
|
||||||
|
hspi5.Init.CLKPolarity = SPI_POLARITY_LOW;
|
||||||
|
hspi5.Init.CLKPhase = SPI_PHASE_1EDGE;
|
||||||
|
hspi5.Init.NSS = SPI_NSS_SOFT;
|
||||||
|
hspi5.Init.BaudRatePrescaler = SPI_BAUDRATEPRESCALER_16;
|
||||||
|
hspi5.Init.FirstBit = SPI_FIRSTBIT_MSB;
|
||||||
|
hspi5.Init.TIMode = SPI_TIMODE_DISABLE;
|
||||||
|
hspi5.Init.CRCCalculation = SPI_CRCCALCULATION_DISABLE;
|
||||||
|
hspi5.Init.CRCPolynomial = 10;
|
||||||
|
if (HAL_SPI_Init(&hspi5) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN SPI5_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END SPI5_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief TIM1 Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_TIM1_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN TIM1_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END TIM1_Init 0 */
|
||||||
|
|
||||||
|
TIM_ClockConfigTypeDef sClockSourceConfig = {0};
|
||||||
|
TIM_MasterConfigTypeDef sMasterConfig = {0};
|
||||||
|
|
||||||
|
/* USER CODE BEGIN TIM1_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END TIM1_Init 1 */
|
||||||
|
htim1.Instance = TIM1;
|
||||||
|
htim1.Init.Prescaler = 0;
|
||||||
|
htim1.Init.CounterMode = TIM_COUNTERMODE_UP;
|
||||||
|
htim1.Init.Period = 65535;
|
||||||
|
htim1.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
|
||||||
|
htim1.Init.RepetitionCounter = 0;
|
||||||
|
htim1.Init.AutoReloadPreload = TIM_AUTORELOAD_PRELOAD_DISABLE;
|
||||||
|
if (HAL_TIM_Base_Init(&htim1) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
sClockSourceConfig.ClockSource = TIM_CLOCKSOURCE_INTERNAL;
|
||||||
|
if (HAL_TIM_ConfigClockSource(&htim1, &sClockSourceConfig) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
sMasterConfig.MasterOutputTrigger = TIM_TRGO_RESET;
|
||||||
|
sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_DISABLE;
|
||||||
|
if (HAL_TIMEx_MasterConfigSynchronization(&htim1, &sMasterConfig) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN TIM1_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END TIM1_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief USART1 Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_USART1_UART_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN USART1_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END USART1_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN USART1_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END USART1_Init 1 */
|
||||||
|
huart1.Instance = USART1;
|
||||||
|
huart1.Init.BaudRate = 115200;
|
||||||
|
huart1.Init.WordLength = UART_WORDLENGTH_8B;
|
||||||
|
huart1.Init.StopBits = UART_STOPBITS_1;
|
||||||
|
huart1.Init.Parity = UART_PARITY_NONE;
|
||||||
|
huart1.Init.Mode = UART_MODE_TX_RX;
|
||||||
|
huart1.Init.HwFlowCtl = UART_HWCONTROL_NONE;
|
||||||
|
huart1.Init.OverSampling = UART_OVERSAMPLING_16;
|
||||||
|
if (HAL_UART_Init(&huart1) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN USART1_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END USART1_Init 2 */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/* FMC initialization function */
|
||||||
|
static void MX_FMC_Init(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
/* USER CODE BEGIN FMC_Init 0 */
|
||||||
|
|
||||||
|
/* USER CODE END FMC_Init 0 */
|
||||||
|
|
||||||
|
FMC_SDRAM_TimingTypeDef SdramTiming = {0};
|
||||||
|
|
||||||
|
/* USER CODE BEGIN FMC_Init 1 */
|
||||||
|
|
||||||
|
/* USER CODE END FMC_Init 1 */
|
||||||
|
|
||||||
|
/** Perform the SDRAM1 memory initialization sequence
|
||||||
|
*/
|
||||||
|
hsdram1.Instance = FMC_SDRAM_DEVICE;
|
||||||
|
/* hsdram1.Init */
|
||||||
|
hsdram1.Init.SDBank = FMC_SDRAM_BANK2;
|
||||||
|
hsdram1.Init.ColumnBitsNumber = FMC_SDRAM_COLUMN_BITS_NUM_8;
|
||||||
|
hsdram1.Init.RowBitsNumber = FMC_SDRAM_ROW_BITS_NUM_12;
|
||||||
|
hsdram1.Init.MemoryDataWidth = FMC_SDRAM_MEM_BUS_WIDTH_16;
|
||||||
|
hsdram1.Init.InternalBankNumber = FMC_SDRAM_INTERN_BANKS_NUM_4;
|
||||||
|
hsdram1.Init.CASLatency = FMC_SDRAM_CAS_LATENCY_3;
|
||||||
|
hsdram1.Init.WriteProtection = FMC_SDRAM_WRITE_PROTECTION_DISABLE;
|
||||||
|
hsdram1.Init.SDClockPeriod = FMC_SDRAM_CLOCK_PERIOD_2;
|
||||||
|
hsdram1.Init.ReadBurst = FMC_SDRAM_RBURST_DISABLE;
|
||||||
|
hsdram1.Init.ReadPipeDelay = FMC_SDRAM_RPIPE_DELAY_1;
|
||||||
|
/* SdramTiming */
|
||||||
|
SdramTiming.LoadToActiveDelay = 2;
|
||||||
|
SdramTiming.ExitSelfRefreshDelay = 7;
|
||||||
|
SdramTiming.SelfRefreshTime = 4;
|
||||||
|
SdramTiming.RowCycleDelay = 7;
|
||||||
|
SdramTiming.WriteRecoveryTime = 3;
|
||||||
|
SdramTiming.RPDelay = 2;
|
||||||
|
SdramTiming.RCDDelay = 2;
|
||||||
|
|
||||||
|
if (HAL_SDRAM_Init(&hsdram1, &SdramTiming) != HAL_OK)
|
||||||
|
{
|
||||||
|
Error_Handler( );
|
||||||
|
}
|
||||||
|
|
||||||
|
/* USER CODE BEGIN FMC_Init 2 */
|
||||||
|
|
||||||
|
/* USER CODE END FMC_Init 2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief GPIO Initialization Function
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
static void MX_GPIO_Init(void)
|
||||||
|
{
|
||||||
|
GPIO_InitTypeDef GPIO_InitStruct = {0};
|
||||||
|
/* USER CODE BEGIN MX_GPIO_Init_1 */
|
||||||
|
|
||||||
|
/* USER CODE END MX_GPIO_Init_1 */
|
||||||
|
|
||||||
|
/* GPIO Ports Clock Enable */
|
||||||
|
__HAL_RCC_GPIOE_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOC_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOF_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOH_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOA_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOB_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOG_CLK_ENABLE();
|
||||||
|
__HAL_RCC_GPIOD_CLK_ENABLE();
|
||||||
|
|
||||||
|
/*Configure GPIO pin Output Level */
|
||||||
|
HAL_GPIO_WritePin(GPIOE, RedLight_Pin|YellowLight_Pin|GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
/*Configure GPIO pin Output Level */
|
||||||
|
HAL_GPIO_WritePin(GPIOC, NCS_MEMS_SPI_Pin|CSX_Pin|OTG_FS_PSO_Pin, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
/*Configure GPIO pin Output Level */
|
||||||
|
HAL_GPIO_WritePin(ACP_RST_GPIO_Port, ACP_RST_Pin, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
/*Configure GPIO pin Output Level */
|
||||||
|
HAL_GPIO_WritePin(GPIOD, RDX_Pin|WRX_DCX_Pin, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
/*Configure GPIO pin Output Level */
|
||||||
|
HAL_GPIO_WritePin(GPIOG, LD3_Pin|LD4_Pin, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
/*Configure GPIO pins : RedLight_Pin YellowLight_Pin GreenLight_Pin */
|
||||||
|
GPIO_InitStruct.Pin = RedLight_Pin|YellowLight_Pin|GreenLight_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
||||||
|
HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pins : NCS_MEMS_SPI_Pin CSX_Pin OTG_FS_PSO_Pin */
|
||||||
|
GPIO_InitStruct.Pin = NCS_MEMS_SPI_Pin|CSX_Pin|OTG_FS_PSO_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
||||||
|
HAL_GPIO_Init(GPIOC, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pins : B1_Pin MEMS_INT1_Pin MEMS_INT2_Pin TP_INT1_Pin */
|
||||||
|
GPIO_InitStruct.Pin = B1_Pin|MEMS_INT1_Pin|MEMS_INT2_Pin|TP_INT1_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_EVT_RISING;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
HAL_GPIO_Init(GPIOA, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pin : ACP_RST_Pin */
|
||||||
|
GPIO_InitStruct.Pin = ACP_RST_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
||||||
|
HAL_GPIO_Init(ACP_RST_GPIO_Port, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pin : OTG_FS_OC_Pin */
|
||||||
|
GPIO_InitStruct.Pin = OTG_FS_OC_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_EVT_RISING;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
HAL_GPIO_Init(OTG_FS_OC_GPIO_Port, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pin : BOOT1_Pin */
|
||||||
|
GPIO_InitStruct.Pin = BOOT1_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
HAL_GPIO_Init(BOOT1_GPIO_Port, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pin : TE_Pin */
|
||||||
|
GPIO_InitStruct.Pin = TE_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_INPUT;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
HAL_GPIO_Init(TE_GPIO_Port, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pins : RDX_Pin WRX_DCX_Pin */
|
||||||
|
GPIO_InitStruct.Pin = RDX_Pin|WRX_DCX_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
||||||
|
HAL_GPIO_Init(GPIOD, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/*Configure GPIO pins : LD3_Pin LD4_Pin */
|
||||||
|
GPIO_InitStruct.Pin = LD3_Pin|LD4_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
||||||
|
HAL_GPIO_Init(GPIOG, &GPIO_InitStruct);
|
||||||
|
|
||||||
|
/* USER CODE BEGIN MX_GPIO_Init_2 */
|
||||||
|
|
||||||
|
/* USER CODE END MX_GPIO_Init_2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* USER CODE BEGIN 4 */
|
||||||
|
|
||||||
|
/* USER CODE END 4 */
|
||||||
|
|
||||||
|
/* USER CODE BEGIN Header_StartDefaultTask */
|
||||||
|
/**
|
||||||
|
* @brief Function implementing the defaultTask thread.
|
||||||
|
* @param argument: Not used
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
/* USER CODE END Header_StartDefaultTask */
|
||||||
|
void StartDefaultTask(void const * argument)
|
||||||
|
{
|
||||||
|
/* init code for USB_HOST */
|
||||||
|
MX_USB_HOST_Init();
|
||||||
|
/* USER CODE BEGIN 5 */
|
||||||
|
/* Infinite loop */
|
||||||
|
for(;;)
|
||||||
|
{
|
||||||
|
osDelay(1);
|
||||||
|
}
|
||||||
|
/* USER CODE END 5 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Period elapsed callback in non blocking mode
|
||||||
|
* @note This function is called when TIM6 interrupt took place, inside
|
||||||
|
* HAL_TIM_IRQHandler(). It makes a direct call to HAL_IncTick() to increment
|
||||||
|
* a global variable "uwTick" used as application time base.
|
||||||
|
* @param htim : TIM handle
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
void HAL_TIM_PeriodElapsedCallback(TIM_HandleTypeDef *htim)
|
||||||
|
{
|
||||||
|
/* USER CODE BEGIN Callback 0 */
|
||||||
|
|
||||||
|
/* USER CODE END Callback 0 */
|
||||||
|
if (htim->Instance == TIM6)
|
||||||
|
{
|
||||||
|
HAL_IncTick();
|
||||||
|
}
|
||||||
|
/* USER CODE BEGIN Callback 1 */
|
||||||
|
|
||||||
|
/* USER CODE END Callback 1 */
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief This function is executed in case of error occurrence.
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
void Error_Handler(void)
|
||||||
|
{
|
||||||
|
/* USER CODE BEGIN Error_Handler_Debug */
|
||||||
|
/* User can add his own implementation to report the HAL error return state */
|
||||||
|
__disable_irq();
|
||||||
|
while (1)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
/* USER CODE END Error_Handler_Debug */
|
||||||
|
}
|
||||||
|
#ifdef USE_FULL_ASSERT
|
||||||
|
/**
|
||||||
|
* @brief Reports the name of the source file and the source line number
|
||||||
|
* where the assert_param error has occurred.
|
||||||
|
* @param file: pointer to the source file name
|
||||||
|
* @param line: assert_param error line source number
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
void assert_failed(uint8_t *file, uint32_t line)
|
||||||
|
{
|
||||||
|
/* USER CODE BEGIN 6 */
|
||||||
|
/* User can add his own implementation to report the file name and line number,
|
||||||
|
ex: printf("Wrong parameters value: file %s on line %d\r\n", file, line) */
|
||||||
|
/* USER CODE END 6 */
|
||||||
|
}
|
||||||
|
#endif /* USE_FULL_ASSERT */
|
||||||
+56
@@ -0,0 +1,56 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
HAL_Delay(333);
|
||||||
|
Hal_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
|
||||||
|
// Yellow Light
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
HAL_Delay(333);
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
|
||||||
|
// Green Light
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
HAL_DELAY(333);
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
File renamed without changes.
+47
@@ -0,0 +1,47 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePiN(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
HAL_Delay();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+34
@@ -0,0 +1,34 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
breadboard(int traffSPD)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+56
@@ -0,0 +1,56 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
HAL_Delay(333);
|
||||||
|
Hal_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
|
||||||
|
// Yellow Light
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_GPIO_Port, YellowLight_Pin);
|
||||||
|
HAL_Delay(333);
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
|
||||||
|
// Green Light
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
HAL_DELAY(333);
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+52
@@ -0,0 +1,52 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
#define RedLight_Port RedLight_GPIO_Port
|
||||||
|
#define YellowLight_Port YellowLight_GPIO_Port
|
||||||
|
#define GreenLight_Port GreenLight_GPIO_Port
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
HAL_Delay(333);
|
||||||
|
Hal_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
|
||||||
|
// Yellow Light
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
HAL_Delay(333);
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
|
||||||
|
// Green Light
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
HAL_DELAY(333);
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+54
@@ -0,0 +1,54 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
HAL_Delay(500);
|
||||||
|
Hal_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
HAL_Delay(500);
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+55
@@ -0,0 +1,55 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
HAL_Delay(500);
|
||||||
|
Hal_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
|
||||||
|
// Yellow Light
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
HAL_Delay(500);
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
HAL_DELAY(500);
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+52
@@ -0,0 +1,52 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
HAL_Delay(500);
|
||||||
|
Hal_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
HAL_Delay(500);
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+47
@@ -0,0 +1,47 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
HAL_Delay();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+47
@@ -0,0 +1,47 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePiN(RedLight_GPIO_Port, RedLight_Pin);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
HAL_Delay();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+44
@@ -0,0 +1,44 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
breadboard(int traffSPD)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_SET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+55
@@ -0,0 +1,55 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
HAL_Delay(500);
|
||||||
|
Hal_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
HAL_Delay(500);
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
HAL_DELAY(500);
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+50
@@ -0,0 +1,50 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
HAL_Delay(500);
|
||||||
|
Hal_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+56
@@ -0,0 +1,56 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
HAL_Delay(500);
|
||||||
|
Hal_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
|
||||||
|
// Yellow Light
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
HAL_Delay(500);
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
|
||||||
|
// Green Light
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
HAL_DELAY(500);
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+46
@@ -0,0 +1,46 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
HAL_Delay();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
-7
@@ -1,7 +0,0 @@
|
|||||||
/*
|
|
||||||
* breadboard.c
|
|
||||||
*
|
|
||||||
* Created on: Sep 17, 2025
|
|
||||||
* Author: ja
|
|
||||||
*/
|
|
||||||
|
|
||||||
+13
@@ -0,0 +1,13 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.h
|
||||||
|
*
|
||||||
|
* Created on: Sep 20, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef INC_BREADBOARD_H_
|
||||||
|
#define INC_BREADBOARD_H_
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#endif /* INC_BREADBOARD_H_ */
|
||||||
+44
@@ -0,0 +1,44 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
breadboard(int traffSPD)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_SET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+47
@@ -0,0 +1,47 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePiN();
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
HAL_Delay();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+40
@@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
breadboard(int traffSPD)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_SET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+46
@@ -0,0 +1,46 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
#include "breadboard.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
breadboard(int traffSPD)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_SET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_SET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_SET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+50
@@ -0,0 +1,50 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
HAL_Delay(500);
|
||||||
|
Hal_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+56
@@ -0,0 +1,56 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
HAL_Delay(333);
|
||||||
|
Hal_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
|
||||||
|
// Yellow Light
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
HAL_Delay(333);
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
|
||||||
|
// Green Light
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
HAL_DELAY(333);
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+47
@@ -0,0 +1,47 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePiN(s=);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
HAL_Delay();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+50
@@ -0,0 +1,50 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
HAL_Delay(500);
|
||||||
|
Hal_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
HAL_GPIO_TogglePin();
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
+60
@@ -0,0 +1,60 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.c
|
||||||
|
*
|
||||||
|
* Created on: Sep 17, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
|
||||||
|
#define RedLight_Port RedLight_GPIO_Port
|
||||||
|
#define YellowLight_Port YellowLight_GPIO_Port
|
||||||
|
#define GreenLight_Port GreenLight_GPIO_Port
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
reset_traffic(void)
|
||||||
|
{
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
breadboard(void)
|
||||||
|
{
|
||||||
|
// Traffic Light
|
||||||
|
// Red Light
|
||||||
|
HAL_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
HAL_Delay(333);
|
||||||
|
Hal_GPIO_TogglePin(RedLight_Port, RedLight_Pin);
|
||||||
|
|
||||||
|
// Yellow Light
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
HAL_Delay(333);
|
||||||
|
HAL_GPIO_TogglePin(YellowLight_Port, YellowLight_Pin);
|
||||||
|
|
||||||
|
// Green Light
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
HAL_DELAY(333);
|
||||||
|
HAL_GPIO_TogglePin(GreenLight_Port, GreenLight_Pin);
|
||||||
|
|
||||||
|
// Walk signal
|
||||||
|
|
||||||
|
// Light dimmer
|
||||||
|
}
|
||||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
Binary file not shown.
+1
-1
@@ -5,5 +5,5 @@ properties/Calculator.null.2145936831/com.st.stm32cube.ide.mcu.gnu.managedbuild.
|
|||||||
properties/Calculator.null.2145936831/com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.release.1667077525=com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.archiver.422003303\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.111557008\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.1052324815\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.1384674110\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.compiler.672981160\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.linker.1844577398\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.binary.1577836230\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.hex.1085120613\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.srec.882897823\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.symbolsrec.754790563\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.verilog.1342149954\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objdump.listfile.1680861613\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.size.1988390204\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.exe.release.1990850007\=rebuildState\\\=true\\n\n
|
properties/Calculator.null.2145936831/com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.release.1667077525=com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.archiver.422003303\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.111557008\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.1052324815\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.1384674110\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.compiler.672981160\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.linker.1844577398\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.binary.1577836230\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.hex.1085120613\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.srec.882897823\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.symbolsrec.754790563\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.verilog.1342149954\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objdump.listfile.1680861613\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.size.1988390204\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.exe.release.1990850007\=rebuildState\\\=true\\n\n
|
||||||
properties/MyNewProject.null.83337167/com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.1448234781=com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.1448234781\=rcState\\\=0\\nrebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.archiver.354596405\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.1252437589\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.1056844319\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.2122207330\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.compiler.1818827388\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.linker.2139901750\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.binary.805388918\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.hex.1558625880\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.srec.2053603272\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.symbolsrec.475412361\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.verilog.1380220275\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objdump.listfile.525858151\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.size.292402102\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.exe.debug.271126730\=rebuildState\\\=false\\n\n
|
properties/MyNewProject.null.83337167/com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.1448234781=com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.1448234781\=rcState\\\=0\\nrebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.archiver.354596405\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.1252437589\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.1056844319\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.2122207330\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.compiler.1818827388\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.linker.2139901750\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.binary.805388918\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.hex.1558625880\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.srec.2053603272\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.symbolsrec.475412361\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.verilog.1380220275\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objdump.listfile.525858151\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.size.292402102\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.exe.debug.271126730\=rebuildState\\\=false\\n\n
|
||||||
properties/MyNewProject.null.83337167/com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.release.1285969537=com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.archiver.144819249\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.379559059\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.2036727211\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.980685916\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.compiler.1426522156\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.linker.1237423215\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.binary.1282775561\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.hex.1912732982\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.srec.1219327809\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.symbolsrec.899390694\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.verilog.1885585371\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objdump.listfile.1401195929\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.size.337205154\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.exe.release.167142367\=rebuildState\\\=true\\n\n
|
properties/MyNewProject.null.83337167/com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.release.1285969537=com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.archiver.144819249\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.379559059\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.2036727211\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.980685916\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.compiler.1426522156\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.linker.1237423215\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.binary.1282775561\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.hex.1912732982\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.srec.1219327809\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.symbolsrec.899390694\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.verilog.1885585371\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objdump.listfile.1401195929\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.size.337205154\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.exe.release.167142367\=rebuildState\\\=true\\n\n
|
||||||
properties/TrafficLightsPlus.null.1047040538/com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.551871681=com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.551871681\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.archiver.138235671\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.1872140206\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.1477351937\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.1725620854\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.compiler.1637256854\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.linker.835115412\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.binary.1553682423\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.hex.229572010\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.srec.7720070\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.symbolsrec.1699159996\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.verilog.1811087539\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objdump.listfile.1471646069\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.size.43084128\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.exe.debug.2144803112\=rebuildState\\\=true\\n\n
|
properties/TrafficLightsPlus.null.1047040538/com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.551871681=com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.debug.551871681\=rcState\\\=0\\nrebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.archiver.138235671\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.1872140206\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.1477351937\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.1725620854\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.compiler.1637256854\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.linker.835115412\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.binary.1553682423\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.hex.229572010\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.srec.7720070\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.symbolsrec.1699159996\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.verilog.1811087539\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objdump.listfile.1471646069\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.size.43084128\=rebuildState\\\=false\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.exe.debug.2144803112\=rebuildState\\\=false\\n\n
|
||||||
properties/TrafficLightsPlus.null.1047040538/com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.release.1862556084=com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.archiver.1925537181\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.1243695734\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.2098225013\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.256261605\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.compiler.34078085\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.linker.1175117447\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.binary.659878081\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.hex.645101001\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.srec.1300569852\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.symbolsrec.770967083\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.verilog.1618010879\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objdump.listfile.529451660\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.size.353087469\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.exe.release.411830067\=rebuildState\\\=true\\n\n
|
properties/TrafficLightsPlus.null.1047040538/com.st.stm32cube.ide.mcu.gnu.managedbuild.config.exe.release.1862556084=com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.archiver.1925537181\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.1243695734\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.compiler.2098225013\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.c.linker.256261605\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.compiler.34078085\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.cpp.linker.1175117447\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.binary.659878081\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.hex.645101001\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.srec.1300569852\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.symbolsrec.770967083\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objcopy.verilog.1618010879\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.objdump.listfile.529451660\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.tool.size.353087469\=rebuildState\\\=true\\n\ncom.st.stm32cube.ide.mcu.gnu.managedbuild.toolchain.exe.release.411830067\=rebuildState\\\=true\\n\n
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="ASCII"?>
|
<?xml version="1.0" encoding="ASCII"?>
|
||||||
<application:Application xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:advanced="http://www.eclipse.org/ui/2010/UIModel/application/ui/advanced" xmlns:application="http://www.eclipse.org/ui/2010/UIModel/application" xmlns:basic="http://www.eclipse.org/ui/2010/UIModel/application/ui/basic" xmlns:menu="http://www.eclipse.org/ui/2010/UIModel/application/ui/menu" xmi:id="_PGuWwIj-EfCcBcPyH3_z_g" elementId="org.eclipse.e4.legacy.ide.application" contributorURI="platform:/plugin/org.eclipse.ui.workbench" selectedElement="_PGuWwYj-EfCcBcPyH3_z_g" bindingContexts="_PGuWyoj-EfCcBcPyH3_z_g">
|
<application:Application xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:advanced="http://www.eclipse.org/ui/2010/UIModel/application/ui/advanced" xmlns:application="http://www.eclipse.org/ui/2010/UIModel/application" xmlns:basic="http://www.eclipse.org/ui/2010/UIModel/application/ui/basic" xmlns:menu="http://www.eclipse.org/ui/2010/UIModel/application/ui/menu" xmi:id="_PGuWwIj-EfCcBcPyH3_z_g" elementId="org.eclipse.e4.legacy.ide.application" contributorURI="platform:/plugin/org.eclipse.ui.workbench" selectedElement="_PGuWwYj-EfCcBcPyH3_z_g" bindingContexts="_PGuWyoj-EfCcBcPyH3_z_g">
|
||||||
<persistedState key="memento" value="<?xml version="1.0" encoding="UTF-8"?>
<workbench>
<mruList>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="breadboard.c" tooltip="Calc2/Core/Src/breadboard.c">
<persistable path="/Calc2/Core/Src/breadboard.c"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="main.c" tooltip="Calc2/Core/Src/main.c">
<persistable path="/Calc2/Core/Src/main.c"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="breadboard.c" tooltip="TrafficLightsPlus/Core/Src/breadboard.c">
<persistable path="/TrafficLightsPlus/Core/Src/breadboard.c"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="main.c" tooltip="TrafficLightsPlus/Core/Src/main.c">
<persistable path="/TrafficLightsPlus/Core/Src/main.c"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="com.st.stm32cube.common.mx.startCubeMx" name="TrafficLightsPlus.ioc" tooltip="TrafficLightsPlus/TrafficLightsPlus.ioc">
<persistable path="/TrafficLightsPlus/TrafficLightsPlus.ioc"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="com.st.stm32cube.common.mx.startCubeMx" name="Calc2.ioc" tooltip="Calc2/Calc2.ioc">
<persistable path="/Calc2/Calc2.ioc"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="main.h" tooltip="Calc2/Core/Inc/main.h">
<persistable path="/Calc2/Core/Inc/main.h"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="stm32f4xx_hal.h" tooltip="Calc2/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h">
<persistable path="/Calc2/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="stm32f4xx_hal.c" tooltip="Calc2/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c">
<persistable path="/Calc2/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="userloop.c" tooltip="Calculator/Core/Src/userloop.c">
<persistable path="/Calculator/Core/Src/userloop.c"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="main.c" tooltip="MyNewProject/Core/Src/main.c">
<persistable path="/MyNewProject/Core/Src/main.c"/>
</file>
<file factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" id="com.st.stm32cube.common.mx.startCubeMx" name="Calc2.ioc" tooltip="/home/ja/Desktop/UTMProject/Calc2/Calc2.ioc">
<persistable uri="file:/home/ja/Desktop/UTMProject/Calc2/Calc2.ioc"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="com.st.stm32cube.common.mx.startCubeMx" name="Calculator.ioc" tooltip="Calculator/Calculator.ioc">
<persistable path="/Calculator/Calculator.ioc"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="main.c" tooltip="Calculator/Core/Src/main.c">
<persistable path="/Calculator/Core/Src/main.c"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="cmsis_os.h" tooltip="Calculator/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h">
<persistable path="/Calculator/Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="stm32f4xx_hal_gpio.c" tooltip="MyNewProject/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c">
<persistable path=&Line truncated
|
<persistedState key="memento" value="<?xml version="1.0" encoding="UTF-8"?>
<workbench>
<mruList>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="breadboard.h" tooltip="TrafficLightsPlus/Core/Inc/breadboard.h">
<persistable path="/TrafficLightsPlus/Core/Inc/breadboard.h"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="main.c" tooltip="TrafficLightsPlus/Core/Src/main.c">
<persistable path="/TrafficLightsPlus/Core/Src/main.c"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="main.c" tooltip="MyNewProject/Core/Src/main.c">
<persistable path="/MyNewProject/Core/Src/main.c"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="breadboard.c" tooltip="Calc2/Core/Src/breadboard.c">
<persistable path="/Calc2/Core/Src/breadboard.c"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="main.h" tooltip="TrafficLightsPlus/Core/Inc/main.h">
<persistable path="/TrafficLightsPlus/Core/Inc/main.h"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="com.st.stm32cube.common.mx.startCubeMx" name="TrafficLightsPlus.ioc" tooltip="TrafficLightsPlus/TrafficLightsPlus.ioc">
<persistable path="/TrafficLightsPlus/TrafficLightsPlus.ioc"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="breadboard.c" tooltip="TrafficLightsPlus/Core/Src/breadboard.c">
<persistable path="/TrafficLightsPlus/Core/Src/breadboard.c"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="main.c" tooltip="Calc2/Core/Src/main.c">
<persistable path="/Calc2/Core/Src/main.c"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="com.st.stm32cube.common.mx.startCubeMx" name="Calc2.ioc" tooltip="Calc2/Calc2.ioc">
<persistable path="/Calc2/Calc2.ioc"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="main.h" tooltip="Calc2/Core/Inc/main.h">
<persistable path="/Calc2/Core/Inc/main.h"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="stm32f4xx_hal.h" tooltip="Calc2/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h">
<persistable path="/Calc2/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="stm32f4xx_hal.c" tooltip="Calc2/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c">
<persistable path="/Calc2/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="userloop.c" tooltip="Calculator/Core/Src/userloop.c">
<persistable path="/Calculator/Core/Src/userloop.c"/>
</file>
<file factoryID="org.eclipse.ui.ide.FileStoreEditorInputFactory" id="com.st.stm32cube.common.mx.startCubeMx" name="Calc2.ioc" tooltip="/home/ja/Desktop/UTMProject/Calc2/Calc2.ioc">
<persistable uri="file:/home/ja/Desktop/UTMProject/Calc2/Calc2.ioc"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="com.st.stm32cube.common.mx.startCubeMx" name="Calculator.ioc" tooltip="Calculator/Calculator.ioc">
<persistable path="/Calculator/Calculator.ioc"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="main.c" tooltip="Calculator/Core/Src/main.c">
<persistable path="/Calculator/Core/Src/main.c"/>
</file>
<file factoryID="org.eclipse.ui.partLine truncated
|
||||||
<tags>activeSchemeId:org.eclipse.ui.defaultAcceleratorConfiguration</tags>
|
<tags>activeSchemeId:org.eclipse.ui.defaultAcceleratorConfiguration</tags>
|
||||||
<children xsi:type="basic:TrimmedWindow" xmi:id="_PGuWwYj-EfCcBcPyH3_z_g" elementId="IDEWindow" contributorURI="platform:/plugin/org.eclipse.ui.workbench" selectedElement="_QzO74Ij-EfCcBcPyH3_z_g" x="10" y="32" width="950" height="1063">
|
<children xsi:type="basic:TrimmedWindow" xmi:id="_PGuWwYj-EfCcBcPyH3_z_g" elementId="IDEWindow" contributorURI="platform:/plugin/org.eclipse.ui.workbench" selectedElement="_QzO74Ij-EfCcBcPyH3_z_g" x="10" y="32" width="950" height="1063">
|
||||||
<persistedState key="coolBarVisible" value="true"/>
|
<persistedState key="coolBarVisible" value="true"/>
|
||||||
@@ -160,7 +160,6 @@
|
|||||||
<tags>persp.newWizSC:com.st.stm32cube.ide.cmake.newwizard</tags>
|
<tags>persp.newWizSC:com.st.stm32cube.ide.cmake.newwizard</tags>
|
||||||
<children xsi:type="basic:PartSashContainer" xmi:id="_A9HiUYj_EfCcBcPyH3_z_g" selectedElement="_A9HiVIj_EfCcBcPyH3_z_g" horizontal="true">
|
<children xsi:type="basic:PartSashContainer" xmi:id="_A9HiUYj_EfCcBcPyH3_z_g" selectedElement="_A9HiVIj_EfCcBcPyH3_z_g" horizontal="true">
|
||||||
<children xsi:type="basic:PartStack" xmi:id="_A9HiUoj_EfCcBcPyH3_z_g" elementId="left" containerData="1825" selectedElement="_A9HiU4j_EfCcBcPyH3_z_g">
|
<children xsi:type="basic:PartStack" xmi:id="_A9HiUoj_EfCcBcPyH3_z_g" elementId="left" containerData="1825" selectedElement="_A9HiU4j_EfCcBcPyH3_z_g">
|
||||||
<tags>noFocus</tags>
|
|
||||||
<children xsi:type="advanced:Placeholder" xmi:id="_A9HiU4j_EfCcBcPyH3_z_g" elementId="org.eclipse.ui.navigator.ProjectExplorer" ref="_Q2iHgIj-EfCcBcPyH3_z_g" closeable="true">
|
<children xsi:type="advanced:Placeholder" xmi:id="_A9HiU4j_EfCcBcPyH3_z_g" elementId="org.eclipse.ui.navigator.ProjectExplorer" ref="_Q2iHgIj-EfCcBcPyH3_z_g" closeable="true">
|
||||||
<tags>View</tags>
|
<tags>View</tags>
|
||||||
<tags>categoryTag:General</tags>
|
<tags>categoryTag:General</tags>
|
||||||
@@ -221,25 +220,31 @@
|
|||||||
<tags>categoryTag:Help</tags>
|
<tags>categoryTag:Help</tags>
|
||||||
</sharedElements>
|
</sharedElements>
|
||||||
<sharedElements xsi:type="advanced:Area" xmi:id="_Q2bZ0Ij-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.editorss" selectedElement="_Q2bZ0Yj-EfCcBcPyH3_z_g">
|
<sharedElements xsi:type="advanced:Area" xmi:id="_Q2bZ0Ij-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.editorss" selectedElement="_Q2bZ0Yj-EfCcBcPyH3_z_g">
|
||||||
<children xsi:type="basic:PartStack" xmi:id="_Q2bZ0Yj-EfCcBcPyH3_z_g" elementId="org.eclipse.e4.primaryDataStack" selectedElement="_WkWn4JXhEfC7_9YmM1O-2A">
|
<children xsi:type="basic:PartStack" xmi:id="_Q2bZ0Yj-EfCcBcPyH3_z_g" elementId="org.eclipse.e4.primaryDataStack" selectedElement="_jiIOcJX4EfCDGKjzSMf2Qw">
|
||||||
<tags>EditorStack</tags>
|
<tags>EditorStack</tags>
|
||||||
<tags>org.eclipse.e4.primaryDataStack</tags>
|
<tags>org.eclipse.e4.primaryDataStack</tags>
|
||||||
<tags>active</tags>
|
<tags>active</tags>
|
||||||
<tags>noFocus</tags>
|
<tags>noFocus</tags>
|
||||||
<children xsi:type="basic:Part" xmi:id="_Vo_y4JXhEfC7_9YmM1O-2A" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="main.c" iconURI="platform:/plugin/org.eclipse.cdt.ui/icons/obj16/c_file_obj.gif" closeable="true">
|
<children xsi:type="basic:Part" xmi:id="_qXnOoJXvEfCDGKjzSMf2Qw" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="breadboard.c" iconURI="platform:/plugin/org.eclipse.cdt.ui/icons/obj16/c_file_obj.gif" closeable="true">
|
||||||
<persistedState key="memento" value="<?xml version="1.0" encoding="UTF-8"?>
<editor id="org.eclipse.cdt.ui.editor.CEditor" name="main.c" partName="main.c" title="main.c" tooltip="Calc2/Core/Src/main.c">
<input factoryID="org.eclipse.ui.part.FileEditorInputFactory" path="/Calc2/Core/Src/main.c"/>
<editorState selectionHorizontalPixel="0" selectionLength="0" selectionOffset="4377" selectionTopPixel="2736"/>
</editor>"/>
|
<persistedState key="memento" value="<?xml version="1.0" encoding="UTF-8"?>
<editor id="org.eclipse.cdt.ui.editor.CEditor" name="breadboard.c" partName="breadboard.c" title="breadboard.c" tooltip="TrafficLightsPlus/Core/Src/breadboard.c">
<input factoryID="org.eclipse.ui.part.FileEditorInputFactory" path="/TrafficLightsPlus/Core/Src/breadboard.c"/>
<editorState selectionHorizontalPixel="0" selectionLength="0" selectionOffset="95" selectionTopPixel="136"/>
</editor>"/>
|
||||||
<tags>Editor</tags>
|
<tags>Editor</tags>
|
||||||
<tags>removeOnHide</tags>
|
<tags>removeOnHide</tags>
|
||||||
<tags>org.eclipse.cdt.ui.editor.CEditor</tags>
|
<tags>org.eclipse.cdt.ui.editor.CEditor</tags>
|
||||||
</children>
|
</children>
|
||||||
<children xsi:type="basic:Part" xmi:id="_WkWn4JXhEfC7_9YmM1O-2A" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="breadboard.c" iconURI="platform:/plugin/org.eclipse.cdt.ui/icons/obj16/c_file_obj.gif" closeable="true">
|
<children xsi:type="basic:Part" xmi:id="_jiIOcJX4EfCDGKjzSMf2Qw" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="main.c" iconURI="platform:/plugin/org.eclipse.cdt.ui/icons/obj16/c_file_obj.gif" closeable="true">
|
||||||
<persistedState key="memento" value="<?xml version="1.0" encoding="UTF-8"?>
<editor id="org.eclipse.cdt.ui.editor.CEditor" name="breadboard.c" partName="breadboard.c" title="breadboard.c" tooltip="Calc2/Core/Src/breadboard.c">
<input factoryID="org.eclipse.ui.part.FileEditorInputFactory" path="/Calc2/Core/Src/breadboard.c"/>
<editorState selectionHorizontalPixel="0" selectionLength="0" selectionOffset="785" selectionTopPixel="0"/>
</editor>"/>
|
<persistedState key="memento" value="<?xml version="1.0" encoding="UTF-8"?>
<editor id="org.eclipse.cdt.ui.editor.CEditor" name="main.c" partName="main.c" title="main.c" tooltip="TrafficLightsPlus/Core/Src/main.c">
<input factoryID="org.eclipse.ui.part.FileEditorInputFactory" path="/TrafficLightsPlus/Core/Src/main.c"/>
<editorState selectionHorizontalPixel="0" selectionLength="0" selectionOffset="1145" selectionTopPixel="228"/>
</editor>"/>
|
||||||
<tags>Editor</tags>
|
<tags>Editor</tags>
|
||||||
<tags>removeOnHide</tags>
|
<tags>removeOnHide</tags>
|
||||||
<tags>org.eclipse.cdt.ui.editor.CEditor</tags>
|
<tags>org.eclipse.cdt.ui.editor.CEditor</tags>
|
||||||
<tags>active</tags>
|
<tags>active</tags>
|
||||||
<tags>activeOnClose</tags>
|
<tags>activeOnClose</tags>
|
||||||
</children>
|
</children>
|
||||||
|
<children xsi:type="basic:Part" xmi:id="_HXd6EJX5EfCDGKjzSMf2Qw" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="breadboard.h" iconURI="platform:/plugin/org.eclipse.cdt.ui/icons/obj16/c_file_obj.gif" closeable="true">
|
||||||
|
<persistedState key="memento" value="<?xml version="1.0" encoding="UTF-8"?>
<editor id="org.eclipse.cdt.ui.editor.CEditor" name="breadboard.h" partName="breadboard.h" title="breadboard.h" tooltip="TrafficLightsPlus/Core/Inc/breadboard.h">
<input factoryID="org.eclipse.ui.part.FileEditorInputFactory" path="/TrafficLightsPlus/Core/Inc/breadboard.h"/>
<editorState selectionHorizontalPixel="0" selectionLength="0" selectionOffset="149" selectionTopPixel="0"/>
</editor>"/>
|
||||||
|
<tags>Editor</tags>
|
||||||
|
<tags>removeOnHide</tags>
|
||||||
|
<tags>org.eclipse.cdt.ui.editor.CEditor</tags>
|
||||||
|
</children>
|
||||||
</children>
|
</children>
|
||||||
</sharedElements>
|
</sharedElements>
|
||||||
<sharedElements xsi:type="basic:Part" xmi:id="_Q2iHgIj-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.navigator.ProjectExplorer" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Project Explorer" iconURI="platform:/plugin/org.eclipse.ui.navigator.resources/icons/full/eview16/resource_persp.png" tooltip="" closeable="true">
|
<sharedElements xsi:type="basic:Part" xmi:id="_Q2iHgIj-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.navigator.ProjectExplorer" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Project Explorer" iconURI="platform:/plugin/org.eclipse.ui.navigator.resources/icons/full/eview16/resource_persp.png" tooltip="" closeable="true">
|
||||||
@@ -269,7 +274,7 @@
|
|||||||
<sharedElements xsi:type="basic:Part" xmi:id="_Q2j8sYj-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.views.ProblemView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Problems" iconURI="platform:/plugin/org.eclipse.ui.ide/icons/full/eview16/problems_view.png" tooltip="" closeable="true">
|
<sharedElements xsi:type="basic:Part" xmi:id="_Q2j8sYj-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.views.ProblemView" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityView" label="Problems" iconURI="platform:/plugin/org.eclipse.ui.ide/icons/full/eview16/problems_view.png" tooltip="" closeable="true">
|
||||||
<persistedState key="originalCompatibilityViewClass" value="org.eclipse.ui.internal.views.markers.ProblemsView"/>
|
<persistedState key="originalCompatibilityViewClass" value="org.eclipse.ui.internal.views.markers.ProblemsView"/>
|
||||||
<persistedState key="originalCompatibilityViewBundle" value="org.eclipse.ui.ide"/>
|
<persistedState key="originalCompatibilityViewBundle" value="org.eclipse.ui.ide"/>
|
||||||
<persistedState key="memento" value="<?xml version="1.0" encoding="UTF-8"?>
<view PRIMARY_SORT_FIELD="org.eclipse.ui.ide.severityAndDescriptionField" categoryGroup="org.eclipse.ui.ide.severity" markerContentGenerator="org.eclipse.ui.ide.problemsGenerator">
<columnWidths org.eclipse.ui.ide.locationField="105" org.eclipse.ui.ide.markerType="105" org.eclipse.ui.ide.pathField="140" org.eclipse.ui.ide.resourceField="105" org.eclipse.ui.ide.severityAndDescriptionField="350"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.severityAndDescriptionField"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.resourceField"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.pathField"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.locationField"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.markerType"/>
</view>"/>
|
<persistedState key="memento" value="<?xml version="1.0" encoding="UTF-8"?>
<view PRIMARY_SORT_FIELD="org.eclipse.ui.ide.severityAndDescriptionField" categoryGroup="org.eclipse.ui.ide.severity" markerContentGenerator="org.eclipse.ui.ide.problemsGenerator">
<expanded>
<category IMemento.internal.id="Warnings"/>
<category IMemento.internal.id="Infos"/>
</expanded>
<columnWidths org.eclipse.ui.ide.locationField="105" org.eclipse.ui.ide.markerType="105" org.eclipse.ui.ide.pathField="140" org.eclipse.ui.ide.resourceField="105" org.eclipse.ui.ide.severityAndDescriptionField="350"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.severityAndDescriptionField"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.resourceField"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.pathField"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.locationField"/>
<visible IMemento.internal.id="org.eclipse.ui.ide.markerType"/>
</view>"/>
|
||||||
<tags>View</tags>
|
<tags>View</tags>
|
||||||
<tags>categoryTag:General</tags>
|
<tags>categoryTag:General</tags>
|
||||||
<menus xmi:id="_Q8Y34Ij-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.views.ProblemView">
|
<menus xmi:id="_Q8Y34Ij-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.views.ProblemView">
|
||||||
@@ -393,7 +398,7 @@
|
|||||||
</children>
|
</children>
|
||||||
<children xsi:type="menu:ToolBar" xmi:id="_Q0SEwIj-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.workbench.file">
|
<children xsi:type="menu:ToolBar" xmi:id="_Q0SEwIj-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.workbench.file">
|
||||||
<tags>Draggable</tags>
|
<tags>Draggable</tags>
|
||||||
<children xsi:type="menu:HandledToolItem" xmi:id="_JCuO4JXhEfC7_9YmM1O-2A" elementId="print" visible="false" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/print_edit.png" tooltip="Print" command="_PHEVMIj-EfCcBcPyH3_z_g"/>
|
<children xsi:type="menu:HandledToolItem" xmi:id="_mp-fQJXvEfCDGKjzSMf2Qw" elementId="print" visible="false" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/print_edit.png" tooltip="Print" command="_PHEVMIj-EfCcBcPyH3_z_g"/>
|
||||||
</children>
|
</children>
|
||||||
<children xsi:type="menu:ToolBar" xmi:id="_Q0SEwYj-EfCcBcPyH3_z_g" elementId="group.edit" toBeRendered="false">
|
<children xsi:type="menu:ToolBar" xmi:id="_Q0SEwYj-EfCcBcPyH3_z_g" elementId="group.edit" toBeRendered="false">
|
||||||
<tags>toolbarSeparator</tags>
|
<tags>toolbarSeparator</tags>
|
||||||
@@ -401,8 +406,8 @@
|
|||||||
</children>
|
</children>
|
||||||
<children xsi:type="menu:ToolBar" xmi:id="_Q0SEw4j-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.workbench.edit">
|
<children xsi:type="menu:ToolBar" xmi:id="_Q0SEw4j-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.workbench.edit">
|
||||||
<tags>Draggable</tags>
|
<tags>Draggable</tags>
|
||||||
<children xsi:type="menu:HandledToolItem" xmi:id="_JCzHYJXhEfC7_9YmM1O-2A" elementId="undo" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/undo_edit.png" tooltip="Undo" enabled="false" command="_PHEVHoj-EfCcBcPyH3_z_g"/>
|
<children xsi:type="menu:HandledToolItem" xmi:id="_mqBikJXvEfCDGKjzSMf2Qw" elementId="undo" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/undo_edit.png" tooltip="Undo" command="_PHEVHoj-EfCcBcPyH3_z_g"/>
|
||||||
<children xsi:type="menu:HandledToolItem" xmi:id="_JC08kJXhEfC7_9YmM1O-2A" elementId="redo" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/redo_edit.png" tooltip="Redo" enabled="false" command="_PHFjQYj-EfCcBcPyH3_z_g"/>
|
<children xsi:type="menu:HandledToolItem" xmi:id="_mqCJoJXvEfCDGKjzSMf2Qw" elementId="redo" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/redo_edit.png" tooltip="Redo" enabled="false" command="_PHFjQYj-EfCcBcPyH3_z_g"/>
|
||||||
</children>
|
</children>
|
||||||
<children xsi:type="menu:ToolBar" xmi:id="_Q0SExIj-EfCcBcPyH3_z_g" elementId="additions" toBeRendered="false">
|
<children xsi:type="menu:ToolBar" xmi:id="_Q0SExIj-EfCcBcPyH3_z_g" elementId="additions" toBeRendered="false">
|
||||||
<tags>toolbarSeparator</tags>
|
<tags>toolbarSeparator</tags>
|
||||||
@@ -426,7 +431,7 @@
|
|||||||
</children>
|
</children>
|
||||||
<children xsi:type="menu:ToolBar" xmi:id="_Q0SEyIj-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.workbench.navigate">
|
<children xsi:type="menu:ToolBar" xmi:id="_Q0SEyIj-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.workbench.navigate">
|
||||||
<tags>Draggable</tags>
|
<tags>Draggable</tags>
|
||||||
<children xsi:type="menu:HandledToolItem" xmi:id="_JC3_4JXhEfC7_9YmM1O-2A" elementId="org.eclipse.ui.window.pinEditor" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/pin_editor.png" tooltip="Pin Editor" type="Check" command="_PHDuDoj-EfCcBcPyH3_z_g"/>
|
<children xsi:type="menu:HandledToolItem" xmi:id="_mqD-0JXvEfCDGKjzSMf2Qw" elementId="org.eclipse.ui.window.pinEditor" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/pin_editor.png" tooltip="Pin Editor" type="Check" command="_PHDuDoj-EfCcBcPyH3_z_g"/>
|
||||||
</children>
|
</children>
|
||||||
<children xsi:type="menu:ToolBar" xmi:id="_Q0Sr0Ij-EfCcBcPyH3_z_g" elementId="group.editor" toBeRendered="false">
|
<children xsi:type="menu:ToolBar" xmi:id="_Q0Sr0Ij-EfCcBcPyH3_z_g" elementId="group.editor" toBeRendered="false">
|
||||||
<tags>toolbarSeparator</tags>
|
<tags>toolbarSeparator</tags>
|
||||||
@@ -469,6 +474,10 @@
|
|||||||
<tags>TrimStack</tags>
|
<tags>TrimStack</tags>
|
||||||
<tags>Draggable</tags>
|
<tags>Draggable</tags>
|
||||||
</children>
|
</children>
|
||||||
|
<children xsi:type="menu:ToolControl" xmi:id="_d3cAsJXxEfCDGKjzSMf2Qw" elementId="left(IDEWindow).(com.st.stm32cube.common.mx.perspective)" toBeRendered="false" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.minmax.TrimStack">
|
||||||
|
<tags>TrimStack</tags>
|
||||||
|
<tags>Draggable</tags>
|
||||||
|
</children>
|
||||||
</trimBars>
|
</trimBars>
|
||||||
<trimBars xmi:id="_PGuWyIj-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.trim.vertical2" contributorURI="platform:/plugin/org.eclipse.ui.workbench" toBeRendered="false" side="Right">
|
<trimBars xmi:id="_PGuWyIj-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.trim.vertical2" contributorURI="platform:/plugin/org.eclipse.ui.workbench" toBeRendered="false" side="Right">
|
||||||
<children xsi:type="menu:ToolControl" xmi:id="_30Y28I_HEfCmVakrd2WqTQ" elementId="topRight(IDEWindow).(org.eclipse.cdt.ui.CPerspective)" toBeRendered="false" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.minmax.TrimStack">
|
<children xsi:type="menu:ToolControl" xmi:id="_30Y28I_HEfCmVakrd2WqTQ" elementId="topRight(IDEWindow).(org.eclipse.cdt.ui.CPerspective)" toBeRendered="false" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.minmax.TrimStack">
|
||||||
@@ -1986,7 +1995,7 @@
|
|||||||
<addons xmi:id="_PGuW1oj-EfCcBcPyH3_z_g" elementId="MinMax Addon" contributorURI="platform:/plugin/org.eclipse.ui.workbench" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.minmax.MinMaxAddon"/>
|
<addons xmi:id="_PGuW1oj-EfCcBcPyH3_z_g" elementId="MinMax Addon" contributorURI="platform:/plugin/org.eclipse.ui.workbench" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.minmax.MinMaxAddon"/>
|
||||||
<addons xmi:id="_PGuW14j-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.workbench.addon.0" contributorURI="platform:/plugin/org.eclipse.ui.workbench" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.HandlerProcessingAddon"/>
|
<addons xmi:id="_PGuW14j-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.workbench.addon.0" contributorURI="platform:/plugin/org.eclipse.ui.workbench" contributionURI="bundleclass://org.eclipse.e4.ui.workbench/org.eclipse.e4.ui.internal.workbench.addons.HandlerProcessingAddon"/>
|
||||||
<addons xmi:id="_PG1rgIj-EfCcBcPyH3_z_g" elementId="SplitterAddon" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.splitteraddon.SplitterAddon"/>
|
<addons xmi:id="_PG1rgIj-EfCcBcPyH3_z_g" elementId="SplitterAddon" contributionURI="bundleclass://org.eclipse.e4.ui.workbench.addons.swt/org.eclipse.e4.ui.workbench.addons.splitteraddon.SplitterAddon"/>
|
||||||
<addons xmi:id="_IYS0IKimEeS11vbz3f9ezw" elementId="org.eclipse.ui.ide.addon.0" contributorURI="platform:/plugin/org.eclipse.ui.ide" contributionURI="bundleclass://org.eclipse.ui.ide/org.eclipse.ui.internal.ide.addons.SaveAllDirtyPartsAddon"/>
|
<addons xmi:id="_le3XAJXvEfCDGKjzSMf2Qw" elementId="org.eclipse.ui.ide.addon.0" contributionURI="bundleclass://org.eclipse.ui.ide/org.eclipse.ui.internal.ide.addons.SaveAllDirtyPartsAddon"/>
|
||||||
<addons xmi:id="_dz0JgGOlEeSMMaPQU2nlzw" elementId="org.eclipse.ui.ide.application.addon.0" contributorURI="platform:/plugin/org.eclipse.ui.ide.application" contributionURI="bundleclass://org.eclipse.ui.ide.application/org.eclipse.ui.internal.ide.application.addons.ModelCleanupAddon"/>
|
<addons xmi:id="_dz0JgGOlEeSMMaPQU2nlzw" elementId="org.eclipse.ui.ide.application.addon.0" contributorURI="platform:/plugin/org.eclipse.ui.ide.application" contributionURI="bundleclass://org.eclipse.ui.ide.application/org.eclipse.ui.internal.ide.application.addons.ModelCleanupAddon"/>
|
||||||
<categories xmi:id="_PHADkIj-EfCcBcPyH3_z_g" elementId="org.eclipse.team.ui.category.team" name="Version control (Team)" description="Actions that apply when working with a version control system"/>
|
<categories xmi:id="_PHADkIj-EfCcBcPyH3_z_g" elementId="org.eclipse.team.ui.category.team" name="Version control (Team)" description="Actions that apply when working with a version control system"/>
|
||||||
<categories xmi:id="_PHAqoIj-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.category.views" name="Views" description="Commands for opening views"/>
|
<categories xmi:id="_PHAqoIj-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.category.views" name="Views" description="Commands for opening views"/>
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#Sat Sep 20 00:17:37 CDT 2025
|
#Sat Sep 20 02:01:07 CDT 2025
|
||||||
org.eclipse.core.runtime=2
|
org.eclipse.core.runtime=2
|
||||||
org.eclipse.platform=4.33.0.v20240903-0240
|
org.eclipse.platform=4.33.0.v20240903-0240
|
||||||
@@ -127,7 +127,7 @@
|
|||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.floatabi.1458536104" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.floatabi" useByScannerDiscovery="true" value="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.floatabi.value.hard" valueType="enumerated"/>
|
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.floatabi.1458536104" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.floatabi" useByScannerDiscovery="true" value="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.floatabi.value.hard" valueType="enumerated"/>
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_board.1353540178" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_board" useByScannerDiscovery="false" value="STM32F429I-DISC1" valueType="string"/>
|
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_board.1353540178" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.target_board" useByScannerDiscovery="false" value="STM32F429I-DISC1" valueType="string"/>
|
||||||
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults.2094347600" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults" useByScannerDiscovery="false" value="com.st.stm32cube.ide.common.services.build.inputs.revA.1.0.6 || Release || false || Executable || com.st.stm32cube.ide.mcu.gnu.managedbuild.option.toolchain.value.workspace || STM32F429I-DISC1 || 0 || 0 || arm-none-eabi- || ${gnu_tools_for_stm32_compiler_path} || ../Core/Inc | ../USB_HOST/App | ../USB_HOST/Target | ../Drivers/STM32F4xx_HAL_Driver/Inc | ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy | ../Middlewares/Third_Party/FreeRTOS/Source/include | ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS | ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F | ../Middlewares/ST/STM32_USB_Host_Library/Core/Inc | ../Middlewares/ST/STM32_USB_Host_Library/Class/CDC/Inc | ../Drivers/CMSIS/Device/ST/STM32F4xx/Include | ../Drivers/CMSIS/Include || ../Core/Inc | ../USB_HOST/App | ../USB_HOST/Target | ../Drivers/STM32F4xx_HAL_Driver/Inc | ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy | ../Middlewares/Third_Party/FreeRTOS/Source/include | ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS | ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F | ../Middlewares/ST/STM32_USB_Host_Library/Core/Inc | ../Middlewares/ST/STM32_USB_Host_Library/Class/CDC/Inc | ../Drivers/CMSIS/Device/ST/STM32F4xx/Include | ../Drivers/CMSIS/Include || || USE_HAL_DRIVER | STM32F429xx || || Drivers | USB_HOST | Core/Startup | Middlewares | Core || || || ${workspace_loc:/${ProjName}/STM32F429ZITX_FLASH.ld} || true || NonSecure || || secure_nsclib.o || || None || || || " valueType="string"/>
|
<option id="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults.2094347600" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.option.defaults" useByScannerDiscovery="false" value="com.st.stm32cube.ide.common.services.build.inputs.revA.1.0.6 || Release || false || Executable || com.st.stm32cube.ide.mcu.gnu.managedbuild.option.toolchain.value.workspace || STM32F429I-DISC1 || 0 || 0 || arm-none-eabi- || ${gnu_tools_for_stm32_compiler_path} || ../Core/Inc | ../USB_HOST/App | ../USB_HOST/Target | ../Drivers/STM32F4xx_HAL_Driver/Inc | ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy | ../Middlewares/Third_Party/FreeRTOS/Source/include | ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS | ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F | ../Middlewares/ST/STM32_USB_Host_Library/Core/Inc | ../Middlewares/ST/STM32_USB_Host_Library/Class/CDC/Inc | ../Drivers/CMSIS/Device/ST/STM32F4xx/Include | ../Drivers/CMSIS/Include || ../Core/Inc | ../USB_HOST/App | ../USB_HOST/Target | ../Drivers/STM32F4xx_HAL_Driver/Inc | ../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy | ../Middlewares/Third_Party/FreeRTOS/Source/include | ../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS | ../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F | ../Middlewares/ST/STM32_USB_Host_Library/Core/Inc | ../Middlewares/ST/STM32_USB_Host_Library/Class/CDC/Inc | ../Drivers/CMSIS/Device/ST/STM32F4xx/Include | ../Drivers/CMSIS/Include || || USE_HAL_DRIVER | STM32F429xx || || Drivers | USB_HOST | Core/Startup | Middlewares | Core || || || ${workspace_loc:/${ProjName}/STM32F429ZITX_FLASH.ld} || true || NonSecure || || secure_nsclib.o || || None || || || " valueType="string"/>
|
||||||
<option id="com.st.stm32cube.ide.mcu.debug.option.cpuclock.1749339887" superClass="com.st.stm32cube.ide.mcu.debug.option.cpuclock" value="72" valueType="string"/>
|
<option id="com.st.stm32cube.ide.mcu.debug.option.cpuclock.1749339887" superClass="com.st.stm32cube.ide.mcu.debug.option.cpuclock" useByScannerDiscovery="false" value="72" valueType="string"/>
|
||||||
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform.1908333443" isAbstract="false" osList="all" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform"/>
|
<targetPlatform archList="all" binaryParser="org.eclipse.cdt.core.ELF" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform.1908333443" isAbstract="false" osList="all" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.targetplatform"/>
|
||||||
<builder buildPath="${workspace_loc:/TrafficLightsPlus}/Release" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder.219071958" managedBuildOn="true" name="Gnu Make Builder.Release" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder"/>
|
<builder buildPath="${workspace_loc:/TrafficLightsPlus}/Release" id="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder.219071958" managedBuildOn="true" name="Gnu Make Builder.Release" parallelBuildOn="true" parallelizationNumber="optimal" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.builder"/>
|
||||||
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.1243695734" name="MCU/MPU GCC Assembler" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler">
|
<tool id="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler.1243695734" name="MCU/MPU GCC Assembler" superClass="com.st.stm32cube.ide.mcu.gnu.managedbuild.tool.assembler">
|
||||||
|
|||||||
@@ -1,3 +1,11 @@
|
|||||||
|
[PreviousLibFiles]
|
||||||
|
LibFiles=Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_hcd.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_usb.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_bus.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_rcc.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_system.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_utils.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ramfunc.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_dma.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_dmamux.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pwr.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pwr_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_pwr.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_cortex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h;Drivers/STM32F4xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_exti.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_exti.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_crc.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_crc.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma2d.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_dma2d.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_fmc.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_nor.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_sram.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_nand.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pccard.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_sdram.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_i2c.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_ltdc.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_ltdc_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dsi.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_spi.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_tim.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_uart.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_usart.h;Middlewares/Third_Party/FreeRTOS/Source/include/croutine.h;Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h;Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h;Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h;Middlewares/Third_Party/FreeRTOS/Source/include/list.h;Middlewares/Third_Party/FreeRTOS/Source/include/message_buffer.h;Middlewares/Third_Party/FreeRTOS/Source/include/mpu_prototypes.h;Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h;Middlewares/Third_Party/FreeRTOS/Source/include/portable.h;Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h;Middlewares/Third_Party/FreeRTOS/Source/include/queue.h;Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h;Middlewares/Third_Party/FreeRTOS/Source/include/stack_macros.h;Middlewares/Third_Party/FreeRTOS/Source/include/StackMacros.h;Middlewares/Third_Party/FreeRTOS/Source/include/stream_buffer.h;Middlewares/Third_Party/FreeRTOS/Source/include/task.h;Middlewares/Third_Party/FreeRTOS/Source/include/timers.h;Middlewares/Third_Party/FreeRTOS/Source/include/atomic.h;Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h;Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h;Middlewares/ST/STM32_USB_Host_Library/Core/Inc/usbh_core.h;Middlewares/ST/STM32_USB_Host_Library/Core/Inc/usbh_ctlreq.h;Middlewares/ST/STM32_USB_Host_Library/Core/Inc/usbh_def.h;Middlewares/ST/STM32_USB_Host_Library/Core/Inc/usbh_ioreq.h;Middlewares/ST/STM32_USB_Host_Library/Core/Inc/usbh_pipes.h;Middlewares/ST/STM32_USB_Host_Library/Class/CDC/Inc/usbh_cdc.h;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_hcd.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/Line truncated
|
||||||
|
|
||||||
|
[PreviousUsedCubeIDEFiles]
|
||||||
|
SourceFiles=Core/Src/main.c;Core/Src/freertos.c;USB_HOST/App/usb_host.c;USB_HOST/Target/usbh_conf.c;USB_HOST/Target/usbh_platform.c;Core/Src/stm32f4xx_it.c;Core/Src/stm32f4xx_hal_msp.c;Core/Src/stm32f4xx_hal_timebase_tim.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_hcd.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_crc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma2d.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_fmc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_nor.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_sram.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_nand.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pccard.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_sdram.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_ltdc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_ltdc_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dsi.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.c;Middlewares/Third_Party/FreeRTOS/Source/croutine.c;Middlewares/Third_Party/FreeRTOS/Source/event_groups.c;Middlewares/Third_Party/FreeRTOS/Source/list.c;Middlewares/Third_Party/FreeRTOS/Source/queue.c;Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c;Middlewares/Third_Party/FreeRTOS/Source/tasks.c;Middlewares/Third_Party/FreeRTOS/Source/timers.c;Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c;Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c;Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c;Middlewares/ST/STM32_USB_Host_Library/Core/Src/usbh_core.c;Middlewares/ST/STM32_USB_Host_Library/Core/Src/usbh_ctlreq.c;Middlewares/ST/STM32_USB_Host_Library/Core/Src/usbh_ioreq.c;Middlewares/ST/STM32_USB_Host_Library/Core/Src/usbh_pipes.c;Middlewares/ST/STM32_USB_Host_Library/Class/CDC/Src/usbh_cdc.c;Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/system_stm32f4xx.c;Core/Src/system_stm32f4xx.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_hcd.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_crc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma2d.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_fmc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_nor.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_sram.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_nand.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pccard.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_sdram.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_ltdc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_ltdc_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dsi.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.c;Middlewares/Third_Party/FreeRTOS/Source/croutine.c;Middlewares/Third_Party/FreeRTOS/Source/event_groups.c;Middlewares/Third_Party/FreeRTOS/Source/list.c;Middlewares/Third_Party/FreeRTOS/Source/queue.c;Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c;Middlewares/Third_Party/FreeRTOS/Source/tasks.c;Middlewares/Third_Party/FreeRTOS/SoLine truncated
|
||||||
|
HeaderPath=Drivers/STM32F4xx_HAL_Driver/Inc;Drivers/STM32F4xx_HAL_Driver/Inc/Legacy;Middlewares/Third_Party/FreeRTOS/Source/include;Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS;Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F;Middlewares/ST/STM32_USB_Host_Library/Core/Inc;Middlewares/ST/STM32_USB_Host_Library/Class/CDC/Inc;Drivers/CMSIS/Device/ST/STM32F4xx/Include;Drivers/CMSIS/Include;Core/Inc;USB_HOST/App;USB_HOST/Target;
|
||||||
|
CDefines=USE_HAL_DRIVER;STM32F429xx;USE_HAL_DRIVER;USE_HAL_DRIVER;
|
||||||
|
|
||||||
[PreviousGenFiles]
|
[PreviousGenFiles]
|
||||||
AdvancedFolderStructure=true
|
AdvancedFolderStructure=true
|
||||||
HeaderFileListSize=7
|
HeaderFileListSize=7
|
||||||
@@ -28,11 +36,3 @@ SourcePath#1=../USB_HOST/App
|
|||||||
SourcePath#2=../USB_HOST/Target
|
SourcePath#2=../USB_HOST/Target
|
||||||
SourceFiles=;
|
SourceFiles=;
|
||||||
|
|
||||||
[PreviousLibFiles]
|
|
||||||
LibFiles=Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_hcd.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_usb.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_bus.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_rcc.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_system.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_utils.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ramfunc.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_gpio.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_dma.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_dmamux.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pwr.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pwr_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_pwr.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_cortex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h;Drivers/STM32F4xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_exti.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_exti.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_crc.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_crc.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma2d.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_dma2d.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_fmc.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_nor.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_sram.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_nand.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pccard.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_sdram.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_i2c.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_ltdc.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_ltdc_ex.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dsi.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_spi.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_tim.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_uart.h;Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_usart.h;Middlewares/Third_Party/FreeRTOS/Source/include/croutine.h;Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h;Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h;Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h;Middlewares/Third_Party/FreeRTOS/Source/include/list.h;Middlewares/Third_Party/FreeRTOS/Source/include/message_buffer.h;Middlewares/Third_Party/FreeRTOS/Source/include/mpu_prototypes.h;Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h;Middlewares/Third_Party/FreeRTOS/Source/include/portable.h;Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h;Middlewares/Third_Party/FreeRTOS/Source/include/queue.h;Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h;Middlewares/Third_Party/FreeRTOS/Source/include/stack_macros.h;Middlewares/Third_Party/FreeRTOS/Source/include/StackMacros.h;Middlewares/Third_Party/FreeRTOS/Source/include/stream_buffer.h;Middlewares/Third_Party/FreeRTOS/Source/include/task.h;Middlewares/Third_Party/FreeRTOS/Source/include/timers.h;Middlewares/Third_Party/FreeRTOS/Source/include/atomic.h;Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h;Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h;Middlewares/ST/STM32_USB_Host_Library/Core/Inc/usbh_core.h;Middlewares/ST/STM32_USB_Host_Library/Core/Inc/usbh_ctlreq.h;Middlewares/ST/STM32_USB_Host_Library/Core/Inc/usbh_def.h;Middlewares/ST/STM32_USB_Host_Library/Core/Inc/usbh_ioreq.h;Middlewares/ST/STM32_USB_Host_Library/Core/Inc/usbh_pipes.h;Middlewares/ST/STM32_USB_Host_Library/Class/CDC/Inc/usbh_cdc.h;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_hcd.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/Line truncated
|
|
||||||
|
|
||||||
[PreviousUsedCubeIDEFiles]
|
|
||||||
SourceFiles=Core/Src/main.c;Core/Src/freertos.c;USB_HOST/App/usb_host.c;USB_HOST/Target/usbh_conf.c;USB_HOST/Target/usbh_platform.c;Core/Src/stm32f4xx_it.c;Core/Src/stm32f4xx_hal_msp.c;Core/Src/stm32f4xx_hal_timebase_tim.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_hcd.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_crc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma2d.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_fmc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_nor.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_sram.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_nand.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pccard.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_sdram.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_ltdc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_ltdc_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dsi.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.c;Middlewares/Third_Party/FreeRTOS/Source/croutine.c;Middlewares/Third_Party/FreeRTOS/Source/event_groups.c;Middlewares/Third_Party/FreeRTOS/Source/list.c;Middlewares/Third_Party/FreeRTOS/Source/queue.c;Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c;Middlewares/Third_Party/FreeRTOS/Source/tasks.c;Middlewares/Third_Party/FreeRTOS/Source/timers.c;Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.c;Middlewares/Third_Party/FreeRTOS/Source/portable/MemMang/heap_4.c;Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/port.c;Middlewares/ST/STM32_USB_Host_Library/Core/Src/usbh_core.c;Middlewares/ST/STM32_USB_Host_Library/Core/Src/usbh_ctlreq.c;Middlewares/ST/STM32_USB_Host_Library/Core/Src/usbh_ioreq.c;Middlewares/ST/STM32_USB_Host_Library/Core/Src/usbh_pipes.c;Middlewares/ST/STM32_USB_Host_Library/Class/CDC/Src/usbh_cdc.c;Drivers/CMSIS/Device/ST/STM32F4xx/Source/Templates/system_stm32f4xx.c;Core/Src/system_stm32f4xx.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_hcd.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usb.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_crc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma2d.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_fmc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_nor.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_sram.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_nand.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pccard.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_sdram.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_ltdc.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_ltdc_ex.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dsi.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.c;Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.c;Middlewares/Third_Party/FreeRTOS/Source/croutine.c;Middlewares/Third_Party/FreeRTOS/Source/event_groups.c;Middlewares/Third_Party/FreeRTOS/Source/list.c;Middlewares/Third_Party/FreeRTOS/Source/queue.c;Middlewares/Third_Party/FreeRTOS/Source/stream_buffer.c;Middlewares/Third_Party/FreeRTOS/Source/tasks.c;Middlewares/Third_Party/FreeRTOS/SoLine truncated
|
|
||||||
HeaderPath=Drivers/STM32F4xx_HAL_Driver/Inc;Drivers/STM32F4xx_HAL_Driver/Inc/Legacy;Middlewares/Third_Party/FreeRTOS/Source/include;Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS;Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F;Middlewares/ST/STM32_USB_Host_Library/Core/Inc;Middlewares/ST/STM32_USB_Host_Library/Class/CDC/Inc;Drivers/CMSIS/Device/ST/STM32F4xx/Include;Drivers/CMSIS/Include;Core/Inc;USB_HOST/App;USB_HOST/Target;
|
|
||||||
CDefines=USE_HAL_DRIVER;STM32F429xx;USE_HAL_DRIVER;USE_HAL_DRIVER;
|
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
635E684B79701B039C64EA45C3F84D30=76D5CABA7E36F5DD0D38ED323FA426B4
|
635E684B79701B039C64EA45C3F84D30=76D5CABA7E36F5DD0D38ED323FA426B4
|
||||||
66BE74F758C12D739921AEA421D593D3=0
|
66BE74F758C12D739921AEA421D593D3=0
|
||||||
|
8DF89ED150041C4CBC7CB9A9CAA90856=BB3BD6F58A87E81DE6E549B37335B23A
|
||||||
DC22A860405A8BF2F2C095E5B6529F12=BB3BD6F58A87E81DE6E549B37335B23A
|
DC22A860405A8BF2F2C095E5B6529F12=BB3BD6F58A87E81DE6E549B37335B23A
|
||||||
eclipse.preferences.version=1
|
eclipse.preferences.version=1
|
||||||
@@ -0,0 +1,13 @@
|
|||||||
|
/*
|
||||||
|
* breadboard.h
|
||||||
|
*
|
||||||
|
* Created on: Sep 20, 2025
|
||||||
|
* Author: ja
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef INC_BREADBOARD_H_
|
||||||
|
#define INC_BREADBOARD_H_
|
||||||
|
|
||||||
|
void breadboard(int);
|
||||||
|
|
||||||
|
#endif /* INC_BREADBOARD_H_ */
|
||||||
@@ -57,6 +57,12 @@ void Error_Handler(void);
|
|||||||
/* USER CODE END EFP */
|
/* USER CODE END EFP */
|
||||||
|
|
||||||
/* Private defines -----------------------------------------------------------*/
|
/* Private defines -----------------------------------------------------------*/
|
||||||
|
#define RedLight_Pin GPIO_PIN_2
|
||||||
|
#define RedLight_GPIO_Port GPIOE
|
||||||
|
#define YellowLight_Pin GPIO_PIN_3
|
||||||
|
#define YellowLight_GPIO_Port GPIOE
|
||||||
|
#define GreenLight_Pin GPIO_PIN_4
|
||||||
|
#define GreenLight_GPIO_Port GPIOE
|
||||||
#define PC14_OSC32_IN_Pin GPIO_PIN_14
|
#define PC14_OSC32_IN_Pin GPIO_PIN_14
|
||||||
#define PC14_OSC32_IN_GPIO_Port GPIOC
|
#define PC14_OSC32_IN_GPIO_Port GPIOC
|
||||||
#define PC15_OSC32_OUT_Pin GPIO_PIN_15
|
#define PC15_OSC32_OUT_Pin GPIO_PIN_15
|
||||||
|
|||||||
@@ -5,9 +5,40 @@
|
|||||||
* Author: ja
|
* Author: ja
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void breadboard(void)
|
/*
|
||||||
|
* #define RedLight_Pin GPIO_PIN_2
|
||||||
|
* #define RedLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define YellowLight_Pin GPIO_PIN_3
|
||||||
|
* #define YellowLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* #define GreenLight_Pin GPIO_PIN_4
|
||||||
|
* #define GreenLight_GPIO_Port GPIOE
|
||||||
|
*
|
||||||
|
* RedLight: PE2
|
||||||
|
* YellowLight: PE3
|
||||||
|
* GreenLight: PE4
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "main.h"
|
||||||
|
#include "breadboard.h"
|
||||||
|
|
||||||
|
// HAL_GPIO_WritePin(LED_EXT_GPIO_Port, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||||
|
void
|
||||||
|
breadboard(int traffSPD)
|
||||||
{
|
{
|
||||||
// Traffic Light
|
// Traffic Light
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, RedLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, RedLight_Pin, GPIO_PIN_SET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
|
||||||
|
HAL_GPIO_WritePin(RedLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, YellowLight_Pin, GPIO_PIN_SET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
|
||||||
|
HAL_GPIO_WritePin(YellowLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
HAL_GPIO_WritePin(GreenLight_GPIO_Port, GreenLight_Pin, GPIO_PIN_SET);
|
||||||
|
HAL_Delay(traffSPD);
|
||||||
|
|
||||||
// Walk signal
|
// Walk signal
|
||||||
|
|
||||||
|
|||||||
@@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
/* Private includes ----------------------------------------------------------*/
|
/* Private includes ----------------------------------------------------------*/
|
||||||
/* USER CODE BEGIN Includes */
|
/* USER CODE BEGIN Includes */
|
||||||
|
#include "breadboard.h"
|
||||||
|
|
||||||
/* USER CODE END Includes */
|
/* USER CODE END Includes */
|
||||||
|
|
||||||
@@ -144,15 +145,15 @@ int main(void)
|
|||||||
|
|
||||||
/* Create the thread(s) */
|
/* Create the thread(s) */
|
||||||
/* definition and creation of defaultTask */
|
/* definition and creation of defaultTask */
|
||||||
osThreadDef(defaultTask, StartDefaultTask, osPriorityNormal, 0, 4096);
|
//osThreadDef(defaultTask, StartDefaultTask, osPriorityNormal, 0, 4096);
|
||||||
defaultTaskHandle = osThreadCreate(osThread(defaultTask), NULL);
|
//defaultTaskHandle = osThreadCreate(osThread(defaultTask), NULL);
|
||||||
|
|
||||||
/* USER CODE BEGIN RTOS_THREADS */
|
/* USER CODE BEGIN RTOS_THREADS */
|
||||||
/* add threads, ... */
|
/* add threads, ... */
|
||||||
/* USER CODE END RTOS_THREADS */
|
/* USER CODE END RTOS_THREADS */
|
||||||
|
|
||||||
/* Start scheduler */
|
/* Start scheduler */
|
||||||
osKernelStart();
|
//osKernelStart();
|
||||||
|
|
||||||
/* We should never get here as control is now taken by the scheduler */
|
/* We should never get here as control is now taken by the scheduler */
|
||||||
|
|
||||||
@@ -160,6 +161,7 @@ int main(void)
|
|||||||
/* USER CODE BEGIN WHILE */
|
/* USER CODE BEGIN WHILE */
|
||||||
while (1)
|
while (1)
|
||||||
{
|
{
|
||||||
|
breadboard(333);
|
||||||
/* USER CODE END WHILE */
|
/* USER CODE END WHILE */
|
||||||
|
|
||||||
/* USER CODE BEGIN 3 */
|
/* USER CODE BEGIN 3 */
|
||||||
@@ -562,15 +564,18 @@ static void MX_GPIO_Init(void)
|
|||||||
/* USER CODE END MX_GPIO_Init_1 */
|
/* USER CODE END MX_GPIO_Init_1 */
|
||||||
|
|
||||||
/* GPIO Ports Clock Enable */
|
/* GPIO Ports Clock Enable */
|
||||||
|
__HAL_RCC_GPIOE_CLK_ENABLE();
|
||||||
__HAL_RCC_GPIOC_CLK_ENABLE();
|
__HAL_RCC_GPIOC_CLK_ENABLE();
|
||||||
__HAL_RCC_GPIOF_CLK_ENABLE();
|
__HAL_RCC_GPIOF_CLK_ENABLE();
|
||||||
__HAL_RCC_GPIOH_CLK_ENABLE();
|
__HAL_RCC_GPIOH_CLK_ENABLE();
|
||||||
__HAL_RCC_GPIOA_CLK_ENABLE();
|
__HAL_RCC_GPIOA_CLK_ENABLE();
|
||||||
__HAL_RCC_GPIOB_CLK_ENABLE();
|
__HAL_RCC_GPIOB_CLK_ENABLE();
|
||||||
__HAL_RCC_GPIOG_CLK_ENABLE();
|
__HAL_RCC_GPIOG_CLK_ENABLE();
|
||||||
__HAL_RCC_GPIOE_CLK_ENABLE();
|
|
||||||
__HAL_RCC_GPIOD_CLK_ENABLE();
|
__HAL_RCC_GPIOD_CLK_ENABLE();
|
||||||
|
|
||||||
|
/*Configure GPIO pin Output Level */
|
||||||
|
HAL_GPIO_WritePin(GPIOE, RedLight_Pin|YellowLight_Pin|GreenLight_Pin, GPIO_PIN_RESET);
|
||||||
|
|
||||||
/*Configure GPIO pin Output Level */
|
/*Configure GPIO pin Output Level */
|
||||||
HAL_GPIO_WritePin(GPIOC, NCS_MEMS_SPI_Pin|CSX_Pin|OTG_FS_PSO_Pin, GPIO_PIN_RESET);
|
HAL_GPIO_WritePin(GPIOC, NCS_MEMS_SPI_Pin|CSX_Pin|OTG_FS_PSO_Pin, GPIO_PIN_RESET);
|
||||||
|
|
||||||
@@ -583,6 +588,13 @@ static void MX_GPIO_Init(void)
|
|||||||
/*Configure GPIO pin Output Level */
|
/*Configure GPIO pin Output Level */
|
||||||
HAL_GPIO_WritePin(GPIOG, LD3_Pin|LD4_Pin, GPIO_PIN_RESET);
|
HAL_GPIO_WritePin(GPIOG, LD3_Pin|LD4_Pin, GPIO_PIN_RESET);
|
||||||
|
|
||||||
|
/*Configure GPIO pins : RedLight_Pin YellowLight_Pin GreenLight_Pin */
|
||||||
|
GPIO_InitStruct.Pin = RedLight_Pin|YellowLight_Pin|GreenLight_Pin;
|
||||||
|
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||||
|
GPIO_InitStruct.Pull = GPIO_NOPULL;
|
||||||
|
GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_LOW;
|
||||||
|
HAL_GPIO_Init(GPIOE, &GPIO_InitStruct);
|
||||||
|
|
||||||
/*Configure GPIO pins : NCS_MEMS_SPI_Pin CSX_Pin OTG_FS_PSO_Pin */
|
/*Configure GPIO pins : NCS_MEMS_SPI_Pin CSX_Pin OTG_FS_PSO_Pin */
|
||||||
GPIO_InitStruct.Pin = NCS_MEMS_SPI_Pin|CSX_Pin|OTG_FS_PSO_Pin;
|
GPIO_InitStruct.Pin = NCS_MEMS_SPI_Pin|CSX_Pin|OTG_FS_PSO_Pin;
|
||||||
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
GPIO_InitStruct.Mode = GPIO_MODE_OUTPUT_PP;
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
../Core/Src/breadboard.c:28:1:breadboard 1
|
||||||
@@ -0,0 +1,82 @@
|
|||||||
|
Core/Src/breadboard.o: ../Core/Src/breadboard.c ../Core/Inc/main.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h \
|
||||||
|
../Core/Inc/stm32f4xx_hal_conf.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h \
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h \
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f429xx.h \
|
||||||
|
../Drivers/CMSIS/Include/core_cm4.h \
|
||||||
|
../Drivers/CMSIS/Include/cmsis_version.h \
|
||||||
|
../Drivers/CMSIS/Include/cmsis_compiler.h \
|
||||||
|
../Drivers/CMSIS/Include/cmsis_gcc.h \
|
||||||
|
../Drivers/CMSIS/Include/mpu_armv7.h \
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F4xx/Include/system_stm32f4xx.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_exti.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_crc.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma2d.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ramfunc.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_sdram.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_fmc.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_ltdc.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_ltdc_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pwr.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pwr_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_uart.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_hcd.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_usb.h \
|
||||||
|
../Core/Inc/breadboard.h
|
||||||
|
../Core/Inc/main.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h:
|
||||||
|
../Core/Inc/stm32f4xx_hal_conf.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h:
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f429xx.h:
|
||||||
|
../Drivers/CMSIS/Include/core_cm4.h:
|
||||||
|
../Drivers/CMSIS/Include/cmsis_version.h:
|
||||||
|
../Drivers/CMSIS/Include/cmsis_compiler.h:
|
||||||
|
../Drivers/CMSIS/Include/cmsis_gcc.h:
|
||||||
|
../Drivers/CMSIS/Include/mpu_armv7.h:
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F4xx/Include/system_stm32f4xx.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_exti.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_crc.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma2d.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ramfunc.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_sdram.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_fmc.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_ltdc.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_ltdc_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pwr.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pwr_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_uart.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_hcd.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_usb.h:
|
||||||
|
../Core/Inc/breadboard.h:
|
||||||
Binary file not shown.
@@ -0,0 +1 @@
|
|||||||
|
../Core/Src/breadboard.c:28:1:breadboard 16 static
|
||||||
@@ -0,0 +1,4 @@
|
|||||||
|
../Core/Src/freertos.c:64:13:vApplicationIdleHook 1
|
||||||
|
../Core/Src/freertos.c:79:13:vApplicationStackOverflowHook 1
|
||||||
|
../Core/Src/freertos.c:88:13:vApplicationMallocFailedHook 1
|
||||||
|
../Core/Src/freertos.c:107:6:vApplicationGetIdleTaskMemory 1
|
||||||
@@ -0,0 +1,98 @@
|
|||||||
|
Core/Src/freertos.o: ../Core/Src/freertos.c \
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \
|
||||||
|
../Core/Inc/FreeRTOSConfig.h \
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \
|
||||||
|
../Core/Inc/main.h ../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h \
|
||||||
|
../Core/Inc/stm32f4xx_hal_conf.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h \
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h \
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f429xx.h \
|
||||||
|
../Drivers/CMSIS/Include/core_cm4.h \
|
||||||
|
../Drivers/CMSIS/Include/cmsis_version.h \
|
||||||
|
../Drivers/CMSIS/Include/cmsis_compiler.h \
|
||||||
|
../Drivers/CMSIS/Include/cmsis_gcc.h \
|
||||||
|
../Drivers/CMSIS/Include/mpu_armv7.h \
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F4xx/Include/system_stm32f4xx.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_exti.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_crc.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma2d.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ramfunc.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_sdram.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_fmc.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_ltdc.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_ltdc_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pwr.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pwr_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_uart.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_hcd.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_usb.h
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h:
|
||||||
|
../Core/Inc/FreeRTOSConfig.h:
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h:
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h:
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h:
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h:
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h:
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/task.h:
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/list.h:
|
||||||
|
../Core/Inc/main.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h:
|
||||||
|
../Core/Inc/stm32f4xx_hal_conf.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h:
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f429xx.h:
|
||||||
|
../Drivers/CMSIS/Include/core_cm4.h:
|
||||||
|
../Drivers/CMSIS/Include/cmsis_version.h:
|
||||||
|
../Drivers/CMSIS/Include/cmsis_compiler.h:
|
||||||
|
../Drivers/CMSIS/Include/cmsis_gcc.h:
|
||||||
|
../Drivers/CMSIS/Include/mpu_armv7.h:
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F4xx/Include/system_stm32f4xx.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_exti.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_crc.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma2d.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ramfunc.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_sdram.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_fmc.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_ltdc.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_ltdc_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pwr.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pwr_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_uart.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_hcd.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_usb.h:
|
||||||
Binary file not shown.
@@ -0,0 +1,4 @@
|
|||||||
|
../Core/Src/freertos.c:64:13:vApplicationIdleHook 4 static
|
||||||
|
../Core/Src/freertos.c:79:13:vApplicationStackOverflowHook 16 static
|
||||||
|
../Core/Src/freertos.c:88:13:vApplicationMallocFailedHook 4 static
|
||||||
|
../Core/Src/freertos.c:107:6:vApplicationGetIdleTaskMemory 24 static
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
../Core/Src/main.c:93:5:main 1
|
||||||
|
../Core/Src/main.c:176:6:SystemClock_Config 3
|
||||||
|
../Core/Src/main.c:222:13:MX_CRC_Init 2
|
||||||
|
../Core/Src/main.c:248:13:MX_DMA2D_Init 3
|
||||||
|
../Core/Src/main.c:285:13:MX_I2C3_Init 4
|
||||||
|
../Core/Src/main.c:333:13:MX_LTDC_Init 3
|
||||||
|
../Core/Src/main.c:395:13:MX_SPI5_Init 2
|
||||||
|
../Core/Src/main.c:433:13:MX_TIM1_Init 4
|
||||||
|
../Core/Src/main.c:479:13:MX_USART1_UART_Init 2
|
||||||
|
../Core/Src/main.c:508:13:MX_FMC_Init 2
|
||||||
|
../Core/Src/main.c:559:13:MX_GPIO_Init 1
|
||||||
|
../Core/Src/main.c:666:6:StartDefaultTask 1
|
||||||
|
../Core/Src/main.c:687:6:HAL_TIM_PeriodElapsedCallback 2
|
||||||
|
../Core/Src/main.c:705:6:Error_Handler 1
|
||||||
@@ -0,0 +1,117 @@
|
|||||||
|
Core/Src/main.o: ../Core/Src/main.c ../Core/Inc/main.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h \
|
||||||
|
../Core/Inc/stm32f4xx_hal_conf.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h \
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h \
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f429xx.h \
|
||||||
|
../Drivers/CMSIS/Include/core_cm4.h \
|
||||||
|
../Drivers/CMSIS/Include/cmsis_version.h \
|
||||||
|
../Drivers/CMSIS/Include/cmsis_compiler.h \
|
||||||
|
../Drivers/CMSIS/Include/cmsis_gcc.h \
|
||||||
|
../Drivers/CMSIS/Include/mpu_armv7.h \
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F4xx/Include/system_stm32f4xx.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_exti.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_crc.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma2d.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ramfunc.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_sdram.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_fmc.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_ltdc.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_ltdc_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pwr.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pwr_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_uart.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_hcd.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_usb.h \
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h \
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h \
|
||||||
|
../Core/Inc/FreeRTOSConfig.h \
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h \
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h \
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h \
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h \
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h \
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/list.h \
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/task.h \
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h \
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h \
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h \
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h \
|
||||||
|
../USB_HOST/App/usb_host.h ../Core/Inc/breadboard.h
|
||||||
|
../Core/Inc/main.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h:
|
||||||
|
../Core/Inc/stm32f4xx_hal_conf.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h:
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f429xx.h:
|
||||||
|
../Drivers/CMSIS/Include/core_cm4.h:
|
||||||
|
../Drivers/CMSIS/Include/cmsis_version.h:
|
||||||
|
../Drivers/CMSIS/Include/cmsis_compiler.h:
|
||||||
|
../Drivers/CMSIS/Include/cmsis_gcc.h:
|
||||||
|
../Drivers/CMSIS/Include/mpu_armv7.h:
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F4xx/Include/system_stm32f4xx.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_exti.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_crc.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma2d.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ramfunc.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_sdram.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_fmc.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_ltdc.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_ltdc_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pwr.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pwr_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_uart.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_hcd.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_usb.h:
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/CMSIS_RTOS/cmsis_os.h:
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/FreeRTOS.h:
|
||||||
|
../Core/Inc/FreeRTOSConfig.h:
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/projdefs.h:
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/portable.h:
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/deprecated_definitions.h:
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/portable/GCC/ARM_CM4F/portmacro.h:
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/mpu_wrappers.h:
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/task.h:
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/list.h:
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h:
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/task.h:
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h:
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/semphr.h:
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/queue.h:
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/event_groups.h:
|
||||||
|
../Middlewares/Third_Party/FreeRTOS/Source/include/timers.h:
|
||||||
|
../USB_HOST/App/usb_host.h:
|
||||||
|
../Core/Inc/breadboard.h:
|
||||||
Binary file not shown.
@@ -0,0 +1,14 @@
|
|||||||
|
../Core/Src/main.c:93:5:main 8 static
|
||||||
|
../Core/Src/main.c:176:6:SystemClock_Config 88 static
|
||||||
|
../Core/Src/main.c:222:13:MX_CRC_Init 8 static
|
||||||
|
../Core/Src/main.c:248:13:MX_DMA2D_Init 8 static
|
||||||
|
../Core/Src/main.c:285:13:MX_I2C3_Init 8 static
|
||||||
|
../Core/Src/main.c:333:13:MX_LTDC_Init 64 static
|
||||||
|
../Core/Src/main.c:395:13:MX_SPI5_Init 8 static
|
||||||
|
../Core/Src/main.c:433:13:MX_TIM1_Init 32 static
|
||||||
|
../Core/Src/main.c:479:13:MX_USART1_UART_Init 8 static
|
||||||
|
../Core/Src/main.c:508:13:MX_FMC_Init 40 static
|
||||||
|
../Core/Src/main.c:559:13:MX_GPIO_Init 64 static
|
||||||
|
../Core/Src/main.c:666:6:StartDefaultTask 16 static
|
||||||
|
../Core/Src/main.c:687:6:HAL_TIM_PeriodElapsedCallback 16 static
|
||||||
|
../Core/Src/main.c:705:6:Error_Handler 4 static,ignoring_inline_asm
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
../Core/Src/stm32f4xx_hal_msp.c:63:6:HAL_MspInit 1
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:88:6:HAL_CRC_MspInit 2
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:111:6:HAL_CRC_MspDeInit 2
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:133:6:HAL_DMA2D_MspInit 2
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:159:6:HAL_DMA2D_MspDeInit 2
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:184:6:HAL_I2C_MspInit 2
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:229:6:HAL_I2C_MspDeInit 2
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:260:6:HAL_LTDC_MspInit 3
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:388:6:HAL_LTDC_MspDeInit 2
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:452:6:HAL_SPI_MspInit 2
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:490:6:HAL_SPI_MspDeInit 2
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:520:6:HAL_TIM_Base_MspInit 2
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:543:6:HAL_TIM_Base_MspDeInit 2
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:565:6:HAL_UART_MspInit 2
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:602:6:HAL_UART_MspDeInit 2
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:627:13:HAL_FMC_MspInit 2
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:733:6:HAL_SDRAM_MspInit 1
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:745:13:HAL_FMC_MspDeInit 2
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:819:6:HAL_SDRAM_MspDeInit 1
|
||||||
@@ -0,0 +1,80 @@
|
|||||||
|
Core/Src/stm32f4xx_hal_msp.o: ../Core/Src/stm32f4xx_hal_msp.c \
|
||||||
|
../Core/Inc/main.h ../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h \
|
||||||
|
../Core/Inc/stm32f4xx_hal_conf.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h \
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h \
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f429xx.h \
|
||||||
|
../Drivers/CMSIS/Include/core_cm4.h \
|
||||||
|
../Drivers/CMSIS/Include/cmsis_version.h \
|
||||||
|
../Drivers/CMSIS/Include/cmsis_compiler.h \
|
||||||
|
../Drivers/CMSIS/Include/cmsis_gcc.h \
|
||||||
|
../Drivers/CMSIS/Include/mpu_armv7.h \
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F4xx/Include/system_stm32f4xx.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_exti.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_crc.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma2d.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ramfunc.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_sdram.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_fmc.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_ltdc.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_ltdc_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pwr.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pwr_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim_ex.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_uart.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_hcd.h \
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_usb.h
|
||||||
|
../Core/Inc/main.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h:
|
||||||
|
../Core/Inc/stm32f4xx_hal_conf.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_def.h:
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f4xx.h:
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F4xx/Include/stm32f429xx.h:
|
||||||
|
../Drivers/CMSIS/Include/core_cm4.h:
|
||||||
|
../Drivers/CMSIS/Include/cmsis_version.h:
|
||||||
|
../Drivers/CMSIS/Include/cmsis_compiler.h:
|
||||||
|
../Drivers/CMSIS/Include/cmsis_gcc.h:
|
||||||
|
../Drivers/CMSIS/Include/mpu_armv7.h:
|
||||||
|
../Drivers/CMSIS/Device/ST/STM32F4xx/Include/system_stm32f4xx.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/Legacy/stm32_hal_legacy.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_rcc_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_gpio_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_exti.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_cortex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_crc.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_dma2d.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_flash_ramfunc.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_sdram.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_fmc.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_i2c_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_ltdc.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_ltdc_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pwr.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_pwr_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_spi.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_tim_ex.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_uart.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal_hcd.h:
|
||||||
|
../Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_ll_usb.h:
|
||||||
Binary file not shown.
@@ -0,0 +1,19 @@
|
|||||||
|
../Core/Src/stm32f4xx_hal_msp.c:63:6:HAL_MspInit 16 static
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:88:6:HAL_CRC_MspInit 24 static
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:111:6:HAL_CRC_MspDeInit 16 static
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:133:6:HAL_DMA2D_MspInit 24 static
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:159:6:HAL_DMA2D_MspDeInit 16 static
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:184:6:HAL_I2C_MspInit 48 static
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:229:6:HAL_I2C_MspDeInit 16 static
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:260:6:HAL_LTDC_MspInit 112 static
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:388:6:HAL_LTDC_MspDeInit 16 static
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:452:6:HAL_SPI_MspInit 48 static
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:490:6:HAL_SPI_MspDeInit 16 static
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:520:6:HAL_TIM_Base_MspInit 24 static
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:543:6:HAL_TIM_Base_MspDeInit 16 static
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:565:6:HAL_UART_MspInit 48 static
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:602:6:HAL_UART_MspDeInit 16 static
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:627:13:HAL_FMC_MspInit 32 static
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:733:6:HAL_SDRAM_MspInit 16 static
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:745:13:HAL_FMC_MspDeInit 8 static
|
||||||
|
../Core/Src/stm32f4xx_hal_msp.c:819:6:HAL_SDRAM_MspDeInit 16 static
|
||||||
Loaded 100 of 341 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user