progress
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -370,3 +370,18 @@ org.eclipse.ui.PartInitException: Invalid Input: Must be IFileEditorInput
|
||||
|
||||
!ENTRY org.eclipse.cdt.core 1 0 2025-09-12 06:16:24.513
|
||||
!MESSAGE Indexed 'Calc2' (58 sources, 125 headers) in 11.4 sec: 12,712 declarations; 87,377 references; 0 unresolved inclusions; 1 syntax errors; 2 unresolved names (0.002%)
|
||||
!SESSION 2025-09-12 15:11:08.132 -----------------------------------------------
|
||||
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-12 15:11:16.014
|
||||
!MESSAGE CubeMX plugin appears to be active, Log4j initialization might be too late.
|
||||
|
||||
!ENTRY com.st.stm32cube.ide.mcu.informationcenter 1 1 2025-09-12 15:11:16.015
|
||||
!MESSAGE Log4j2 initialized with config file /home/ja/st/Home/.metadata/.log4j2.xml
|
||||
|
||||
!ENTRY com.st.stm32cube.ide.mcu.ide 1 1 2025-09-12 15:11:20.681
|
||||
!MESSAGE Started RMI Server, listening on port 41337
|
||||
|
||||
@@ -8,3 +8,4 @@
|
||||
*** SESSION Sep 11, 2025 15:33:26.999 ------------------------------------------
|
||||
*** SESSION Sep 12, 2025 05:43:58.498 ------------------------------------------
|
||||
*** SESSION Sep 12, 2025 06:13:46.266 ------------------------------------------
|
||||
*** SESSION Sep 12, 2025 15:11:14.847 ------------------------------------------
|
||||
|
||||
Binary file not shown.
@@ -1,10 +1,17 @@
|
||||
08:19:52 **** Incremental Build of configuration Debug for project Calc2 ****
|
||||
16:11:53 **** Incremental Build of configuration Debug for project Calc2 ****
|
||||
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 -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
|
||||
Finished building target: Calc2.elf
|
||||
|
||||
arm-none-eabi-size Calc2.elf
|
||||
arm-none-eabi-objdump -h -S Calc2.elf > "Calc2.list"
|
||||
text data bss dec hex filename
|
||||
32576 16 3480 36072 8ce8 Calc2.elf
|
||||
32592 16 3480 36088 8cf8 Calc2.elf
|
||||
Finished building: default.size.stdout
|
||||
|
||||
Finished building: Calc2.list
|
||||
|
||||
08:19:53 Build Finished. 0 errors, 0 warnings. (took 426ms)
|
||||
|
||||
16:11:53 Build Finished. 0 errors, 0 warnings. (took 471ms)
|
||||
|
||||
|
||||
@@ -1,7 +1,14 @@
|
||||
08:19:52 **** Incremental Build of configuration Debug for project Calc2 ****
|
||||
16:11:53 **** Incremental Build of configuration Debug for project Calc2 ****
|
||||
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 -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
|
||||
Finished building target: Calc2.elf
|
||||
|
||||
arm-none-eabi-size Calc2.elf
|
||||
arm-none-eabi-objdump -h -S Calc2.elf > "Calc2.list"
|
||||
text data bss dec hex filename
|
||||
32576 16 3480 36072 8ce8 Calc2.elf
|
||||
32592 16 3480 36088 8cf8 Calc2.elf
|
||||
Finished building: default.size.stdout
|
||||
|
||||
Finished building: Calc2.list
|
||||
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* breadboard.c
|
||||
*
|
||||
* Created on: Sep 12, 2025
|
||||
* Author: ja
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "main.h"
|
||||
|
||||
void
|
||||
breadboard(int DELAY_MS)
|
||||
{
|
||||
bool Purple = (HAL_GPIO_ReadPin(GPIOD, BTN_PRPL_Pin) == GPIO_PIN_SET); // PD5
|
||||
bool Grey = (HAL_GPIO_ReadPin(GPIOD, BTN_GREY_Pin) == GPIO_PIN_SET); // PD7
|
||||
|
||||
if (Purple && Grey) {
|
||||
HAL_GPIO_WritePin(GPIOA, LED_EXT_Pin, GPIO_PIN_SET);
|
||||
} else {
|
||||
HAL_GPIO_WritePin(GPIOA, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||
}
|
||||
|
||||
HAL_Delay(DELAY_MS); // milliseconds of delay after execution
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
/*
|
||||
* breadboard.c
|
||||
*
|
||||
* Created on: Sep 12, 2025
|
||||
* Author: ja
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "main.h"
|
||||
|
||||
void
|
||||
breadboard(int DELAY_MS)
|
||||
{
|
||||
/*
|
||||
bool Purple = (HAL_GPIO_ReadPin(GPIOD, BTN_PRPL_Pin) == GPIO_PIN_SET); // PD5
|
||||
bool Grey = (HAL_GPIO_ReadPin(GPIOD, BTN_GREY_Pin) == GPIO_PIN_SET); // PD7
|
||||
|
||||
if (Purple || Grey) { // OR, but we want to try and get AND working
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_SET); // PB4
|
||||
} else {
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_RESET); // PB4
|
||||
}
|
||||
|
||||
HAL_Delay(DELAY_MS); // milliseconds of delay after execution
|
||||
*/
|
||||
|
||||
|
||||
/*
|
||||
// Always flash:
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_SET); // PB4 ON
|
||||
HAL_Delay(DELAY_MS);
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_RESET); // PB4 OFF
|
||||
HAL_Delay(DELAY_MS);
|
||||
*/
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* breadboard.c
|
||||
*
|
||||
* Created on: Sep 12, 2025
|
||||
* Author: ja
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "main.h"
|
||||
|
||||
void
|
||||
breadboard(int DELAY_MS)
|
||||
{
|
||||
bool Purple = (HAL_GPIO_ReadPin(GPIOD, BTN_PRPL_Pin) == GPIO_PIN_SET); // PD5
|
||||
bool Grey = (HAL_GPIO_ReadPin(GPIOD, BTN_GREY_Pin) == GPIO_PIN_SET); // PD7
|
||||
|
||||
if (Purple || Grey) { //
|
||||
HAL_GPIO_WritePin(GPIOA, LED_EXT_Pin, GPIO_PIN_SET); // PB4
|
||||
} else {
|
||||
HAL_GPIO_WritePin(GPIOA, LED_EXT_Pin, GPIO_PIN_RESET); // PB4
|
||||
}
|
||||
|
||||
HAL_Delay(DELAY_MS); // milliseconds of delay after execution
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
/*
|
||||
* breadboard.c
|
||||
*
|
||||
* Created on: Sep 12, 2025
|
||||
* Author: ja
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "main.h"
|
||||
|
||||
void
|
||||
breadboard(int DELAY_MS)
|
||||
{
|
||||
bool Purple = (HAL_GPIO_ReadPin(GPIOD, BTN_PRPL_Pin) == GPIO_PIN_SET); // PD5
|
||||
bool Grey = (HAL_GPIO_ReadPin(GPIOD, BTN_GREY_Pin) == GPIO_PIN_SET); // PD7
|
||||
|
||||
//if (Purple && Grey) {
|
||||
if (Purple) {
|
||||
HAL_GPIO_WritePin(GPIOA, LED_EXT_Pin, GPIO_PIN_SET); // PB4
|
||||
} else {
|
||||
HAL_GPIO_WritePin(GPIOA, LED_EXT_Pin, GPIO_PIN_RESET); // PB4
|
||||
}
|
||||
|
||||
HAL_Delay(DELAY_MS); // milliseconds of delay after execution
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* breadboard.c
|
||||
*
|
||||
* Created on: Sep 12, 2025
|
||||
* Author: ja
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "main.h"
|
||||
|
||||
void
|
||||
breadboard(int DELAY_MS)
|
||||
{
|
||||
/*
|
||||
bool Purple = (HAL_GPIO_ReadPin(GPIOD, BTN_PRPL_Pin) == GPIO_PIN_SET); // PD5
|
||||
bool Grey = (HAL_GPIO_ReadPin(GPIOD, BTN_GREY_Pin) == GPIO_PIN_SET); // PD7
|
||||
|
||||
if (Purple || Grey) { // OR, but we want to try and get AND working
|
||||
HAL_GPIO_WritePin(GPIOA, LED_EXT_Pin, GPIO_PIN_SET); // PB4
|
||||
} else {
|
||||
HAL_GPIO_WritePin(GPIOA, LED_EXT_Pin, GPIO_PIN_RESET); // PB4
|
||||
}
|
||||
*/
|
||||
|
||||
HAL_Delay(DELAY_MS); // milliseconds of delay after execution
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* breadboard.c
|
||||
*
|
||||
* Created on: Sep 12, 2025
|
||||
* Author: ja
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "main.h"
|
||||
|
||||
void
|
||||
breadboard(int DELAY_MS)
|
||||
{
|
||||
bool Purple = (HAL_GPIO_ReadPin(GPIOD, BTN_PRPL_Pin) == GPIO_PIN_SET); // PD5
|
||||
bool Grey = (HAL_GPIO_ReadPin(GPIOD, BTN_GREY_Pin) == GPIO_PIN_SET); // PD7
|
||||
|
||||
if (Purple || Grey) { // OR
|
||||
HAL_GPIO_WritePin(GPIOA, LED_EXT_Pin, GPIO_PIN_SET); // PB4
|
||||
} else {
|
||||
HAL_GPIO_WritePin(GPIOA, LED_EXT_Pin, GPIO_PIN_RESET); // PB4
|
||||
}
|
||||
|
||||
HAL_Delay(DELAY_MS); // milliseconds of delay after execution
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* breadboard.c
|
||||
*
|
||||
* Created on: Sep 12, 2025
|
||||
* Author: ja
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "main.h"
|
||||
|
||||
void
|
||||
breadboard(int DELAY_MS)
|
||||
{
|
||||
bool Purple = (HAL_GPIO_ReadPin(GPIOD, BTN_PRPL_Pin) == GPIO_PIN_SET); // PD5
|
||||
bool Grey = (HAL_GPIO_ReadPin(GPIOD, BTN_GREY_Pin) == GPIO_PIN_SET); // PD7
|
||||
|
||||
if (Purple || Grey) { // OR, but we want to try and get AND working
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_SET); // PB4
|
||||
} else {
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_RESET); // PB4
|
||||
}
|
||||
|
||||
HAL_Delay(DELAY_MS); // milliseconds of delay after execution
|
||||
|
||||
/*
|
||||
// Always flash:
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_SET); // PB4 ON
|
||||
HAL_Delay(DELAY_MS);
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_RESET); // PB4 OFF
|
||||
HAL_Delay(DELAY_MS);
|
||||
*/
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* breadboard.c
|
||||
*
|
||||
* Created on: Sep 12, 2025
|
||||
* Author: ja
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "main.h"
|
||||
|
||||
void
|
||||
breadboard(int DELAY_MS)
|
||||
{
|
||||
/*
|
||||
bool Purple = (HAL_GPIO_ReadPin(GPIOD, BTN_PRPL_Pin) == GPIO_PIN_SET); // PD5
|
||||
bool Grey = (HAL_GPIO_ReadPin(GPIOD, BTN_GREY_Pin) == GPIO_PIN_SET); // PD7
|
||||
|
||||
if (Purple || Grey) { // OR, but we want to try and get AND working
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_SET); // PB4
|
||||
} else {
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_RESET); // PB4
|
||||
}
|
||||
|
||||
HAL_Delay(DELAY_MS); // milliseconds of delay after execution
|
||||
*/
|
||||
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_SET); // PB4 ON
|
||||
HAL_Delay(DELAY_MS);
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_RESET); // PB4 OFF
|
||||
HAL_Delay(DELAY_MS);
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* breadboard.c
|
||||
*
|
||||
* Created on: Sep 12, 2025
|
||||
* Author: ja
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "main.h"
|
||||
|
||||
void
|
||||
breadboard(int DELAY_MS)
|
||||
{
|
||||
bool Purple = (HAL_GPIO_ReadPin(GPIOD, BTN_PRPL_Pin) == GPIO_PIN_SET); // PD5
|
||||
bool Grey = (HAL_GPIO_ReadPin(GPIOD, BTN_GREY_Pin) == GPIO_PIN_SET); // PD7
|
||||
|
||||
if (Purple || Grey) { // OR, but we want to try and get AND working
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_SET); // PB4
|
||||
} else {
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_RESET); // PB4
|
||||
}
|
||||
|
||||
|
||||
|
||||
HAL_Delay(DELAY_MS); // milliseconds of delay after execution
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* breadboard.c
|
||||
*
|
||||
* Created on: Sep 12, 2025
|
||||
* Author: ja
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "main.h"
|
||||
|
||||
void
|
||||
breadboard(int DELAY_MS)
|
||||
{
|
||||
bool Purple = (HAL_GPIO_ReadPin(GPIOD, BTN_PRPL_Pin) == GPIO_PIN_SET); // PD5
|
||||
bool Grey = (HAL_GPIO_ReadPin(GPIOD, BTN_GREY_Pin) == GPIO_PIN_SET); // PD7
|
||||
|
||||
if (Purple || Grey) {
|
||||
HAL_GPIO_WritePin(GPIOA, LED_EXT_Pin, GPIO_PIN_SET); // PB4
|
||||
} else {
|
||||
HAL_GPIO_WritePin(GPIOA, LED_EXT_Pin, GPIO_PIN_RESET); // PB4
|
||||
}
|
||||
|
||||
HAL_Delay(DELAY_MS); // milliseconds of delay after execution
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* breadboard.c
|
||||
*
|
||||
* Created on: Sep 12, 2025
|
||||
* Author: ja
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "main.h"
|
||||
|
||||
void
|
||||
breadboard(int DELAY_MS)
|
||||
{
|
||||
bool Purple = (HAL_GPIO_ReadPin(GPIOD, BTN_PRPL_Pin) == GPIO_PIN_SET); // PD5
|
||||
bool Grey = (HAL_GPIO_ReadPin(GPIOD, BTN_GREY_Pin) == GPIO_PIN_SET); // PD7
|
||||
|
||||
if (Purple || Grey) { // OR, but we want to try and get AND working
|
||||
HAL_GPIO_WritePin(GPIOA, LED_EXT_Pin, GPIO_PIN_SET); // PB4
|
||||
} else {
|
||||
HAL_GPIO_WritePin(GPIOA, LED_EXT_Pin, GPIO_PIN_RESET); // PB4
|
||||
}
|
||||
|
||||
HAL_Delay(DELAY_MS); // milliseconds of delay after execution
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* breadboard.c
|
||||
*
|
||||
* Created on: Sep 12, 2025
|
||||
* Author: ja
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "main.h"
|
||||
|
||||
void
|
||||
breadboard(int DELAY_MS)
|
||||
{
|
||||
bool Purple = (HAL_GPIO_ReadPin(GPIOD, BTN_PRPL_Pin) == GPIO_PIN_SET); // PD5
|
||||
bool Grey = (HAL_GPIO_ReadPin(GPIOD, BTN_GREY_Pin) == GPIO_PIN_SET); // PD7
|
||||
|
||||
if (Purple && Grey) {
|
||||
HAL_GPIO_WritePin(GPIOA, LED_EXT_Pin, GPIO_PIN_SET); // PB4
|
||||
} else {
|
||||
HAL_GPIO_WritePin(GPIOA, LED_EXT_Pin, GPIO_PIN_RESET); // PB4
|
||||
}
|
||||
|
||||
HAL_Delay(DELAY_MS); // milliseconds of delay after execution
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* breadboard.c
|
||||
*
|
||||
* Created on: Sep 12, 2025
|
||||
* Author: ja
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "main.h"
|
||||
|
||||
void
|
||||
breadboard(int DELAY_MS)
|
||||
{
|
||||
bool Purple = (HAL_GPIO_ReadPin(GPIOD, BTN_PRPL_Pin) == GPIO_PIN_SET); // PD5
|
||||
bool Grey = (HAL_GPIO_ReadPin(GPIOD, BTN_GREY_Pin) == GPIO_PIN_SET); // PD7
|
||||
|
||||
if (!Purple && !Grey) {
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_SET); // PB4
|
||||
} else {
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_RESET); // PB4
|
||||
}
|
||||
|
||||
HAL_Delay(DELAY_MS); // milliseconds of delay after execution
|
||||
|
||||
/*
|
||||
// Always flash:
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_SET); // PB4 ON
|
||||
HAL_Delay(DELAY_MS);
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_RESET); // PB4 OFF
|
||||
HAL_Delay(DELAY_MS);
|
||||
*/
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* breadboard.c
|
||||
*
|
||||
* Created on: Sep 12, 2025
|
||||
* Author: ja
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "main.h"
|
||||
|
||||
void
|
||||
breadboard(int DELAY_MS)
|
||||
{
|
||||
bool Purple = (HAL_GPIO_ReadPin(GPIOD, BTN_PRPL_Pin) == GPIO_PIN_SET); // PD5
|
||||
bool Grey = (HAL_GPIO_ReadPin(GPIOD, BTN_GREY_Pin) == GPIO_PIN_SET); // PD7
|
||||
|
||||
if (Purple || Grey) { // OR, but we want to try and get AND working
|
||||
HAL_GPIO_WritePin(GPIOA, LED_EXT_Pin, GPIO_PIN_SET); // PB4
|
||||
} else {
|
||||
HAL_GPIO_WritePin(GPIOA, LED_EXT_Pin, GPIO_PIN_RESET); // PB4
|
||||
}
|
||||
|
||||
|
||||
|
||||
HAL_Delay(DELAY_MS); // milliseconds of delay after execution
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
/*
|
||||
* breadboard.c
|
||||
*
|
||||
* Created on: Sep 12, 2025
|
||||
* Author: ja
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "main.h"
|
||||
|
||||
void
|
||||
breadboard(int DELAY_MS)
|
||||
{
|
||||
/*
|
||||
bool Purple = (HAL_GPIO_ReadPin(GPIOD, BTN_PRPL_Pin) == GPIO_PIN_SET); // PD5
|
||||
bool Grey = (HAL_GPIO_ReadPin(GPIOD, BTN_GREY_Pin) == GPIO_PIN_SET); // PD7
|
||||
|
||||
if (Purple || Grey) { // OR, but we want to try and get AND working
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_SET); // PB4
|
||||
} else {
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_RESET); // PB4
|
||||
}
|
||||
|
||||
HAL_Delay(DELAY_MS); // milliseconds of delay after execution
|
||||
*/
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
/*
|
||||
* breadboard.c
|
||||
*
|
||||
* Created on: Sep 12, 2025
|
||||
* Author: ja
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "main.h"
|
||||
|
||||
void
|
||||
breadboard(int DELAY_MS)
|
||||
{
|
||||
bool Purple = (HAL_GPIO_ReadPin(GPIOD, BTN_PRPL_Pin) == GPIO_PIN_SET); // PD5
|
||||
bool Grey = (HAL_GPIO_ReadPin(GPIOD, BTN_GREY_Pin) == GPIO_PIN_SET); // PD7
|
||||
|
||||
if (!Purple && !Grey) { // OR, but we want to try and get AND working
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_SET); // PB4
|
||||
} else {
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_RESET); // PB4
|
||||
}
|
||||
|
||||
HAL_Delay(DELAY_MS); // milliseconds of delay after execution
|
||||
|
||||
/*
|
||||
// Always flash:
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_SET); // PB4 ON
|
||||
HAL_Delay(DELAY_MS);
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_RESET); // PB4 OFF
|
||||
HAL_Delay(DELAY_MS);
|
||||
*/
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* breadboard.c
|
||||
*
|
||||
* Created on: Sep 12, 2025
|
||||
* Author: ja
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "main.h"
|
||||
|
||||
void
|
||||
breadboard(int DELAY_MS)
|
||||
{
|
||||
bool Purple = (HAL_GPIO_ReadPin(GPIOD, BTN_PRPL_Pin) == GPIO_PIN_SET); // PD5
|
||||
bool Grey = (HAL_GPIO_ReadPin(GPIOD, BTN_GREY_Pin) == GPIO_PIN_SET); // PD7
|
||||
|
||||
if (Purple || Grey) { // OR, but we want to try and get AND working
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_SET); // PB4
|
||||
} else {
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_RESET); // PB4
|
||||
}
|
||||
|
||||
HAL_Delay(DELAY_MS); // milliseconds of delay after execution
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
/*
|
||||
* breadboard.c
|
||||
*
|
||||
* Created on: Sep 12, 2025
|
||||
* Author: ja
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "main.h"
|
||||
|
||||
void
|
||||
breadboard(int DELAY_MS)
|
||||
{
|
||||
/*
|
||||
bool Purple = (HAL_GPIO_ReadPin(GPIOD, BTN_PRPL_Pin) == GPIO_PIN_SET); // PD5
|
||||
bool Grey = (HAL_GPIO_ReadPin(GPIOD, BTN_GREY_Pin) == GPIO_PIN_SET); // PD7
|
||||
|
||||
if (Purple || Grey) { // OR, but we want to try and get AND working
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_SET); // PB4
|
||||
} else {
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_RESET); // PB4
|
||||
}
|
||||
|
||||
HAL_Delay(DELAY_MS); // milliseconds of delay after execution
|
||||
*/
|
||||
|
||||
/*
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_SET); // PB4 ON
|
||||
HAL_Delay(DELAY_MS);
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_RESET); // PB4 OFF
|
||||
HAL_Delay(DELAY_MS);
|
||||
*/
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* breadboard.c
|
||||
*
|
||||
* Created on: Sep 12, 2025
|
||||
* Author: ja
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "main.h"
|
||||
|
||||
void
|
||||
breadboard(int DELAY_MS)
|
||||
{
|
||||
bool Purple = (HAL_GPIO_ReadPin(GPIOD, BTN_PRPL_Pin) == GPIO_PIN_SET);
|
||||
bool Grey = (HAL_GPIO_ReadPin(GPIOD, BTN_GREY_Pin) == GPIO_PIN_SET);
|
||||
|
||||
if (Purple && Grey) {
|
||||
HAL_GPIO_WritePin(GPIOA, LED_EXT_Pin, GPIO_PIN_SET);
|
||||
} else {
|
||||
HAL_GPIO_WritePin(GPIOA, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||
}
|
||||
|
||||
HAL_Delay(DELAY_MS); // milliseconds of delay after execution
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* breadboard.c
|
||||
*
|
||||
* Created on: Sep 12, 2025
|
||||
* Author: ja
|
||||
*/
|
||||
|
||||
#include <stdbool.h>
|
||||
#include "main.h"
|
||||
|
||||
void
|
||||
breadboard(int DELAY_MS)
|
||||
{
|
||||
bool Purple = (HAL_GPIO_ReadPin(GPIOE, BTN_PRPL_Pin) == GPIO_PIN_SET);
|
||||
bool Grey = (HAL_GPIO_ReadPin(GPIOE, BTN_GREY_Pin) == GPIO_PIN_SET);
|
||||
|
||||
if (Purple && Grey) {
|
||||
HAL_GPIO_WritePin(GPIOA, LED_EXT_Pin, GPIO_PIN_SET);
|
||||
} else {
|
||||
HAL_GPIO_WritePin(GPIOA, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||
}
|
||||
|
||||
HAL_Delay(DELAY_MS); // milliseconds of delay after execution
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
<?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">
|
||||
<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="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="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="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="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="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="/MyNewProject/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="com.st.stm32cube.common.mx.startCubeMx" name="MyNewProject.ioc" tooltip="MyNewProject/MyNewProject.ioc">
<persistable path="/MyNewProject/MyNewProject.ioc"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="main.h" tooltip="MyNewProject/Core/Inc/main.h">
<persistable path="/MyNewProject/Core/Inc/main.h"/>
</file>
</mruList>
</workbench>"/>
|
||||
<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="main.h" tooltip="Calc2/Core/Inc/main.h">
<persistable path="/Calc2/Core/Inc/main.h"/>
</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="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="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="/MyNewProject/Drivers/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="com.st.stm32cube.common.mx.startCubeMx" name="MyNewProject.ioc" tooltip="MyNewProject/MyNewProject.ioc">
<persistable path="/MyNewProject/MyNewProject.ioc"/>
</file>
<file factoryID="org.eclipse.ui.part.FileEditorInputFactory" id="org.eclipse.cdt.ui.editor.CEditor" name="main.h" tooltip="MyNewProject/Core/Inc/main.h">
<persistable path="/MyNewProject/Core/Inc/main.h"/>
</file>
</mruList>
</workbench>"/>
|
||||
<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">
|
||||
<persistedState key="coolBarVisible" value="true"/>
|
||||
@@ -85,7 +85,7 @@
|
||||
<tags>categoryTag:General</tags>
|
||||
</children>
|
||||
</children>
|
||||
<children xsi:type="basic:PartSashContainer" xmi:id="_Q2rRdoj-EfCcBcPyH3_z_g" containerData="7500" selectedElement="_Q2rRfYj-EfCcBcPyH3_z_g">
|
||||
<children xsi:type="basic:PartSashContainer" xmi:id="_Q2rRdoj-EfCcBcPyH3_z_g" containerData="7500" selectedElement="_Q2rRd4j-EfCcBcPyH3_z_g">
|
||||
<children xsi:type="basic:PartSashContainer" xmi:id="_Q2rRd4j-EfCcBcPyH3_z_g" containerData="7500" selectedElement="_Q2rReIj-EfCcBcPyH3_z_g" horizontal="true">
|
||||
<children xsi:type="advanced:Placeholder" xmi:id="_Q2rReIj-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.editorss" containerData="7500" ref="_Q2bZ0Ij-EfCcBcPyH3_z_g"/>
|
||||
<children xsi:type="basic:PartStack" xmi:id="_Q2rReYj-EfCcBcPyH3_z_g" elementId="topRight" containerData="2500" selectedElement="_Q2rReoj-EfCcBcPyH3_z_g">
|
||||
@@ -105,7 +105,6 @@
|
||||
</children>
|
||||
<children xsi:type="basic:PartSashContainer" xmi:id="_Q2rRfYj-EfCcBcPyH3_z_g" containerData="2500" selectedElement="_Q2rRfoj-EfCcBcPyH3_z_g" horizontal="true">
|
||||
<children xsi:type="basic:PartStack" xmi:id="_Q2rRfoj-EfCcBcPyH3_z_g" elementId="bottom" containerData="6399" selectedElement="_Q2rRgYj-EfCcBcPyH3_z_g">
|
||||
<tags>active</tags>
|
||||
<children xsi:type="advanced:Placeholder" xmi:id="_Q2rRf4j-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.views.ProblemView" ref="_Q2j8sYj-EfCcBcPyH3_z_g" closeable="true">
|
||||
<tags>View</tags>
|
||||
<tags>categoryTag:General</tags>
|
||||
@@ -159,7 +158,7 @@
|
||||
<tags>persp.newWizSC:com.st.stm32cube.common.projectcreation.ui.stm32projectfromiocwizard</tags>
|
||||
<tags>persp.newWizSC:com.st.stm32cube.ide.mpu.linux.projectcreation.ui.wizard.linuxprojectfromsourcewizard</tags>
|
||||
<tags>persp.newWizSC:com.st.stm32cube.ide.cmake.newwizard</tags>
|
||||
<children xsi:type="basic:PartSashContainer" xmi:id="_A9HiUYj_EfCcBcPyH3_z_g" selectedElement="_A9HiUoj_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="advanced:Placeholder" xmi:id="_A9HiU4j_EfCcBcPyH3_z_g" elementId="org.eclipse.ui.navigator.ProjectExplorer" ref="_Q2iHgIj-EfCcBcPyH3_z_g" closeable="true">
|
||||
<tags>View</tags>
|
||||
@@ -221,9 +220,30 @@
|
||||
<tags>categoryTag:Help</tags>
|
||||
</sharedElements>
|
||||
<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">
|
||||
<children xsi:type="basic:PartStack" xmi:id="_Q2bZ0Yj-EfCcBcPyH3_z_g" elementId="org.eclipse.e4.primaryDataStack" selectedElement="_tmD6wJAUEfCRrvQCfOImjQ">
|
||||
<tags>EditorStack</tags>
|
||||
<tags>org.eclipse.e4.primaryDataStack</tags>
|
||||
<tags>active</tags>
|
||||
<children xsi:type="basic:Part" xmi:id="_rC7PoJAUEfCRrvQCfOImjQ" 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="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="13185" selectionTopPixel="8553"/>
</editor>"/>
|
||||
<tags>Editor</tags>
|
||||
<tags>removeOnHide</tags>
|
||||
<tags>org.eclipse.cdt.ui.editor.CEditor</tags>
|
||||
</children>
|
||||
<children xsi:type="basic:Part" xmi:id="_tmD6wJAUEfCRrvQCfOImjQ" 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="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="399" selectionTopPixel="0"/>
</editor>"/>
|
||||
<tags>Editor</tags>
|
||||
<tags>removeOnHide</tags>
|
||||
<tags>org.eclipse.cdt.ui.editor.CEditor</tags>
|
||||
<tags>active</tags>
|
||||
<tags>activeOnClose</tags>
|
||||
</children>
|
||||
<children xsi:type="basic:Part" xmi:id="_X1dqUJAWEfCRrvQCfOImjQ" elementId="org.eclipse.e4.ui.compatibility.editor" contributionURI="bundleclass://org.eclipse.ui.workbench/org.eclipse.ui.internal.e4.compatibility.CompatibilityEditor" label="main.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="main.h" partName="main.h" title="main.h" tooltip="Calc2/Core/Inc/main.h">
<input factoryID="org.eclipse.ui.part.FileEditorInputFactory" path="/Calc2/Core/Inc/main.h"/>
<editorState selectionHorizontalPixel="0" selectionLength="7" selectionOffset="7242" selectionTopPixel="3485"/>
</editor>"/>
|
||||
<tags>Editor</tags>
|
||||
<tags>removeOnHide</tags>
|
||||
<tags>org.eclipse.cdt.ui.editor.CEditor</tags>
|
||||
</children>
|
||||
</children>
|
||||
</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">
|
||||
@@ -253,7 +273,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">
|
||||
<persistedState key="originalCompatibilityViewClass" value="org.eclipse.ui.internal.views.markers.ProblemsView"/>
|
||||
<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">
<expanded>
<category IMemento.internal.id="Errors"/>
<category IMemento.internal.id="Warnings"/>
</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>"/>
|
||||
<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>"/>
|
||||
<tags>View</tags>
|
||||
<tags>categoryTag:General</tags>
|
||||
<menus xmi:id="_Q8Y34Ij-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.views.ProblemView">
|
||||
@@ -280,8 +300,6 @@
|
||||
<persistedState key="memento" value="<?xml version="1.0" encoding="UTF-8"?>
<view/>"/>
|
||||
<tags>View</tags>
|
||||
<tags>categoryTag:General</tags>
|
||||
<tags>active</tags>
|
||||
<tags>activeOnClose</tags>
|
||||
<menus xmi:id="_SorakIj-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.console.ConsoleView">
|
||||
<tags>ViewMenu</tags>
|
||||
<tags>menuContribution:menu</tags>
|
||||
@@ -379,7 +397,7 @@
|
||||
</children>
|
||||
<children xsi:type="menu:ToolBar" xmi:id="_Q0SEwIj-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.workbench.file">
|
||||
<tags>Draggable</tags>
|
||||
<children xsi:type="menu:HandledToolItem" xmi:id="_jWQT8I_JEfCGL7AeMk98VA" 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="_ouCb4JAUEfCRrvQCfOImjQ" 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 xsi:type="menu:ToolBar" xmi:id="_Q0SEwYj-EfCcBcPyH3_z_g" elementId="group.edit" toBeRendered="false">
|
||||
<tags>toolbarSeparator</tags>
|
||||
@@ -387,8 +405,8 @@
|
||||
</children>
|
||||
<children xsi:type="menu:ToolBar" xmi:id="_Q0SEw4j-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.workbench.edit">
|
||||
<tags>Draggable</tags>
|
||||
<children xsi:type="menu:HandledToolItem" xmi:id="_jWSwMI_JEfCGL7AeMk98VA" 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="_jWTXQI_JEfCGL7AeMk98VA" 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="_ouEREJAUEfCRrvQCfOImjQ" 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="_ouE4IJAUEfCRrvQCfOImjQ" 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 xsi:type="menu:ToolBar" xmi:id="_Q0SExIj-EfCcBcPyH3_z_g" elementId="additions" toBeRendered="false">
|
||||
<tags>toolbarSeparator</tags>
|
||||
@@ -412,7 +430,7 @@
|
||||
</children>
|
||||
<children xsi:type="menu:ToolBar" xmi:id="_Q0SEyIj-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.workbench.navigate">
|
||||
<tags>Draggable</tags>
|
||||
<children xsi:type="menu:HandledToolItem" xmi:id="_jWVMcI_JEfCGL7AeMk98VA" elementId="org.eclipse.ui.window.pinEditor" iconURI="platform:/plugin/org.eclipse.ui/icons/full/etool16/pin_editor.png" tooltip="Pin Editor" enabled="false" type="Check" command="_PHDuDoj-EfCcBcPyH3_z_g"/>
|
||||
<children xsi:type="menu:HandledToolItem" xmi:id="_ouGGQJAUEfCRrvQCfOImjQ" 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 xsi:type="menu:ToolBar" xmi:id="_Q0Sr0Ij-EfCcBcPyH3_z_g" elementId="group.editor" toBeRendered="false">
|
||||
<tags>toolbarSeparator</tags>
|
||||
@@ -1972,7 +1990,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="_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="_i_964I_JEfCGL7AeMk98VA" elementId="org.eclipse.ui.ide.addon.0" contributionURI="bundleclass://org.eclipse.ui.ide/org.eclipse.ui.internal.ide.addons.SaveAllDirtyPartsAddon"/>
|
||||
<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="_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="_PHAqoIj-EfCcBcPyH3_z_g" elementId="org.eclipse.ui.category.views" name="Views" description="Commands for opening views"/>
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
<item key="hasShownOverlayPopupBefore" value="true"/>
|
||||
<item key="replaceBarOpen" value="false"/>
|
||||
<list key="searchhistory">
|
||||
<item value="LED_EXT"/>
|
||||
<item value="include"/>
|
||||
<item value="EXT"/>
|
||||
<item value="thread"/>
|
||||
@@ -17,6 +18,5 @@
|
||||
<item value="B1_Pin"/>
|
||||
<item value="osThreadDef"/>
|
||||
<item value="osThreadId"/>
|
||||
<item value="while (1)"/>
|
||||
</list>
|
||||
</section>
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
#Fri Sep 12 06:13:44 CDT 2025
|
||||
#Fri Sep 12 15:11:12 CDT 2025
|
||||
org.eclipse.core.runtime=2
|
||||
org.eclipse.platform=4.33.0.v20240903-0240
|
||||
|
||||
@@ -11,14 +11,22 @@
|
||||
void
|
||||
breadboard(int DELAY_MS)
|
||||
{
|
||||
bool Purple = (HAL_GPIO_ReadPin(GPIOE, BTN_PRPL_Pin) == GPIO_PIN_SET);
|
||||
bool Grey = (HAL_GPIO_ReadPin(GPIOE, BTN_GREY_Pin) == GPIO_PIN_SET);
|
||||
bool Purple = (HAL_GPIO_ReadPin(GPIOD, BTN_PRPL_Pin) == GPIO_PIN_SET); // PD5
|
||||
bool Grey = (HAL_GPIO_ReadPin(GPIOD, BTN_GREY_Pin) == GPIO_PIN_SET); // PD7
|
||||
|
||||
if (Purple && Grey) {
|
||||
HAL_GPIO_WritePin(GPIOA, LED_EXT_Pin, GPIO_PIN_SET);
|
||||
if (!Purple && !Grey) { // inverted for ease of debug, assignment calls for (Purple && Grey)
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_SET); // PB4
|
||||
} else {
|
||||
HAL_GPIO_WritePin(GPIOA, LED_EXT_Pin, GPIO_PIN_RESET);
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_RESET); // PB4
|
||||
}
|
||||
|
||||
HAL_Delay(DELAY_MS); // milliseconds of delay after execution
|
||||
|
||||
/*
|
||||
// Always flash:
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_SET); // PB4 ON
|
||||
HAL_Delay(DELAY_MS);
|
||||
HAL_GPIO_WritePin(GPIOB, LED_EXT_Pin, GPIO_PIN_RESET); // PB4 OFF
|
||||
HAL_Delay(DELAY_MS);
|
||||
*/
|
||||
}
|
||||
|
||||
Binary file not shown.
27201
Calc2/Debug/Calc2.list
27201
Calc2/Debug/Calc2.list
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Reference in New Issue
Block a user