From 7e0e37a578a033891568e0c233117b39dfcb1f90 Mon Sep 17 00:00:00 2001 From: kachelto100370 Date: Fri, 20 Mar 2026 19:09:23 +0100 Subject: [PATCH] =?UTF-8?q?hab=20ein=20paar=20=C3=A4nderungen=20gemacht?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .metadata/.log | 217 ++ .../task1.1727452765701.pdom | Bin 1667072 -> 1667072 bytes .../org.eclipse.cdt.ui/global-build.log | 14 + .../org.eclipse.cdt.ui/task1.build.log | 4 +- .../21/00d10a47cc2200111412fa6c3f9d8906 | 36 + .../56/40b0b6e7c42200111a10e980504b778a | 0 .../56/9013a47c032200111ca2ee31eda545ee | 211 -- .../73/207d5f35042200111ca2ee31eda545ee | 212 -- .../82/3060ac31042200111ca2ee31eda545ee | 212 -- .../98/a05df39b032200111ca2ee31eda545ee | 212 -- .../b9/50d5dae2c52200111a10e980504b778a | 8 + .../f09ec06d0f2200111ca2ee31eda545ee} | 2 +- .../e9/209aa2a9ca2200111412fa6c3f9d8906 | 24 + .../.projects/task1/.indexes/c4/history.index | Bin 45 -> 45 bytes .../.projects/task1/.markers | Bin 349 -> 2737 bytes .../.projects/task1/.markers.snap | Bin 434 -> 2669 bytes .../.projects/task1/.syncinfo.snap | Bin 32 -> 80 bytes .../.projects/task2/.indexes/properties.index | Bin 564 -> 564 bytes .../.projects/task2/.markers.snap | Bin 32 -> 80 bytes .../.projects/task2/.syncinfo.snap | Bin 32 -> 80 bytes .../.projects/task3/.markers.snap | Bin 32 -> 80 bytes .../.projects/task3/.syncinfo.snap | Bin 32 -> 80 bytes .../.projects/task4/.markers.snap | Bin 32 -> 80 bytes .../.projects/task4/.syncinfo.snap | Bin 32 -> 80 bytes .../org.eclipse.core.resources/.root/.markers | Bin 533 -> 533 bytes .../.root/.markers.snap | Bin 32 -> 80 bytes .../.root/{65.tree => 66.tree} | Bin 7140 -> 7140 bytes .../.safetable/org.eclipse.core.resources | Bin 931 -> 1481 bytes .../org.eclipse.core.resources/65.snap | Bin 2088 -> 0 bytes .../org.eclipse.core.resources/66.snap | Bin 0 -> 914 bytes .../.settings/org.eclipse.ui.ide.prefs | 2 +- .../org.eclipse.e4.workbench/workbench.xmi | 2890 +++++++++-------- .metadata/version.ini | 2 +- task1/.settings/language.settings.xml | 2 +- task1/Debug/Src/task1.o | Bin 638388 -> 638388 bytes task1/Debug/task1.elf | Bin 551852 -> 551852 bytes task1/Debug/task1.list | 4 +- task1/Src/sketch.c | 36 + task1/Src/task1.c | 4 +- task2/.settings/language.settings.xml | 2 +- task3/.settings/language.settings.xml | 2 +- task4/.settings/language.settings.xml | 2 +- 42 files changed, 1801 insertions(+), 2297 deletions(-) create mode 100644 .metadata/.plugins/org.eclipse.core.resources/.history/21/00d10a47cc2200111412fa6c3f9d8906 create mode 100644 .metadata/.plugins/org.eclipse.core.resources/.history/56/40b0b6e7c42200111a10e980504b778a delete mode 100644 .metadata/.plugins/org.eclipse.core.resources/.history/56/9013a47c032200111ca2ee31eda545ee delete mode 100644 .metadata/.plugins/org.eclipse.core.resources/.history/73/207d5f35042200111ca2ee31eda545ee delete mode 100644 .metadata/.plugins/org.eclipse.core.resources/.history/82/3060ac31042200111ca2ee31eda545ee delete mode 100644 .metadata/.plugins/org.eclipse.core.resources/.history/98/a05df39b032200111ca2ee31eda545ee create mode 100644 .metadata/.plugins/org.eclipse.core.resources/.history/b9/50d5dae2c52200111a10e980504b778a rename .metadata/.plugins/org.eclipse.core.resources/.history/{9c/b0f5b2bb032200111ca2ee31eda545ee => cb/f09ec06d0f2200111ca2ee31eda545ee} (96%) create mode 100644 .metadata/.plugins/org.eclipse.core.resources/.history/e9/209aa2a9ca2200111412fa6c3f9d8906 rename .metadata/.plugins/org.eclipse.core.resources/.root/{65.tree => 66.tree} (69%) delete mode 100644 .metadata/.plugins/org.eclipse.core.resources/65.snap create mode 100644 .metadata/.plugins/org.eclipse.core.resources/66.snap create mode 100644 task1/Src/sketch.c diff --git a/.metadata/.log b/.metadata/.log index efeabbb..b1c995e 100644 --- a/.metadata/.log +++ b/.metadata/.log @@ -9042,3 +9042,220 @@ Command-line arguments: -os linux -ws gtk -arch x86_64 !ENTRY com.st.stm32cube.ide.mcu.ide 1 1 2026-03-17 14:15:47.411 !MESSAGE Started RMI Server, listening on port 41337 +!SESSION 2026-03-18 13:19:26.527 ----------------------------------------------- +eclipse.buildId=Version 1.16.0 +java.version=17.0.11 +java.vendor=Eclipse Adoptium +BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE +Command-line arguments: -os linux -ws gtk -arch x86_64 + +!ENTRY com.st.stm32cube.ide.mcu.informationcenter 4 4 2026-03-18 13:19:33.263 +!MESSAGE CubeMX plugin appears to be active, Log4j initialization might be too late. + +!ENTRY com.st.stm32cube.ide.mcu.informationcenter 1 1 2026-03-18 13:19:33.264 +!MESSAGE Log4j2 initialized with config file /home/tobii/02_Uni/09_Mikrocomputertechnik/praktikum/mct_bei_workspace_25w/.metadata/.log4j2.xml + +!ENTRY com.st.stm32cube.ide.mcu.ide 1 1 2026-03-18 13:19:38.483 +!MESSAGE Started RMI Server, listening on port 41337 + +!ENTRY org.eclipse.equinox.p2.transport.ecf 4 1002 2026-03-18 13:20:01.264 +!MESSAGE Unable to connect to repository https://sw-center.st.com/stm32cubeide/openstlinux/updatesite1/compositeContent.xml +!STACK 0 +java.net.ConnectException + at java.net.http/jdk.internal.net.http.common.Utils.toConnectException(Utils.java:1055) + at java.net.http/jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:198) + at java.net.http/jdk.internal.net.http.AsyncSSLConnection.connectAsync(AsyncSSLConnection.java:56) + at java.net.http/jdk.internal.net.http.Http2Connection.createAsync(Http2Connection.java:378) + at java.net.http/jdk.internal.net.http.Http2ClientImpl.getConnectionFor(Http2ClientImpl.java:126) + at java.net.http/jdk.internal.net.http.ExchangeImpl.get(ExchangeImpl.java:93) + at java.net.http/jdk.internal.net.http.Exchange.establishExchange(Exchange.java:343) + at java.net.http/jdk.internal.net.http.Exchange.responseAsyncImpl0(Exchange.java:475) + at java.net.http/jdk.internal.net.http.Exchange.responseAsyncImpl(Exchange.java:380) + at java.net.http/jdk.internal.net.http.Exchange.responseAsync(Exchange.java:372) + at java.net.http/jdk.internal.net.http.MultiExchange.responseAsyncImpl(MultiExchange.java:408) + at java.net.http/jdk.internal.net.http.MultiExchange.lambda$responseAsyncImpl$7(MultiExchange.java:449) + at java.base/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:934) + at java.base/java.util.concurrent.CompletableFuture.uniHandleStage(CompletableFuture.java:950) + at java.base/java.util.concurrent.CompletableFuture.handle(CompletableFuture.java:2340) + at java.net.http/jdk.internal.net.http.MultiExchange.responseAsyncImpl(MultiExchange.java:439) + at java.net.http/jdk.internal.net.http.MultiExchange.lambda$responseAsync0$2(MultiExchange.java:341) + at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1150) + at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) + at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773) + at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) + at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) + at java.base/java.lang.Thread.run(Thread.java:840) +Caused by: java.nio.channels.UnresolvedAddressException + at java.base/sun.nio.ch.Net.checkAddress(Net.java:149) + at java.base/sun.nio.ch.Net.checkAddress(Net.java:157) + at java.base/sun.nio.ch.SocketChannelImpl.checkRemote(SocketChannelImpl.java:816) + at java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:839) + at java.net.http/jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$0(PlainHttpConnection.java:183) + at java.base/java.security.AccessController.doPrivileged(AccessController.java:569) + at java.net.http/jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:185) + ... 21 more + +!ENTRY org.eclipse.equinox.p2.transport.ecf 4 1002 2026-03-18 13:20:01.275 +!MESSAGE Unable to connect to repository https://sw-center.st.com/stm32cubeide/updatesite1/compositeContent.xml +!STACK 0 +java.net.ConnectException + at java.net.http/jdk.internal.net.http.common.Utils.toConnectException(Utils.java:1055) + at java.net.http/jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:198) + at java.net.http/jdk.internal.net.http.AsyncSSLConnection.connectAsync(AsyncSSLConnection.java:56) + at java.net.http/jdk.internal.net.http.Http2Connection.createAsync(Http2Connection.java:378) + at java.net.http/jdk.internal.net.http.Http2ClientImpl.getConnectionFor(Http2ClientImpl.java:126) + at java.net.http/jdk.internal.net.http.ExchangeImpl.get(ExchangeImpl.java:93) + at java.net.http/jdk.internal.net.http.Exchange.establishExchange(Exchange.java:343) + at java.net.http/jdk.internal.net.http.Exchange.responseAsyncImpl0(Exchange.java:475) + at java.net.http/jdk.internal.net.http.Exchange.responseAsyncImpl(Exchange.java:380) + at java.net.http/jdk.internal.net.http.Exchange.responseAsync(Exchange.java:372) + at java.net.http/jdk.internal.net.http.MultiExchange.responseAsyncImpl(MultiExchange.java:408) + at java.net.http/jdk.internal.net.http.MultiExchange.lambda$responseAsyncImpl$7(MultiExchange.java:449) + at java.base/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:934) + at java.base/java.util.concurrent.CompletableFuture.uniHandleStage(CompletableFuture.java:950) + at java.base/java.util.concurrent.CompletableFuture.handle(CompletableFuture.java:2340) + at java.net.http/jdk.internal.net.http.MultiExchange.responseAsyncImpl(MultiExchange.java:439) + at java.net.http/jdk.internal.net.http.MultiExchange.lambda$responseAsync0$2(MultiExchange.java:341) + at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1150) + at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) + at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773) + at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) + at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) + at java.base/java.lang.Thread.run(Thread.java:840) +Caused by: java.nio.channels.UnresolvedAddressException + at java.base/sun.nio.ch.Net.checkAddress(Net.java:149) + at java.base/sun.nio.ch.Net.checkAddress(Net.java:157) + at java.base/sun.nio.ch.SocketChannelImpl.checkRemote(SocketChannelImpl.java:816) + at java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:839) + at java.net.http/jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$0(PlainHttpConnection.java:183) + at java.base/java.security.AccessController.doPrivileged(AccessController.java:569) + at java.net.http/jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:185) + ... 21 more + +!ENTRY org.eclipse.equinox.p2.transport.ecf 4 1002 2026-03-18 13:20:01.285 +!MESSAGE Unable to connect to repository https://download.eclipse.org/tools/cdt/releases/latest/compositeContent.xml +!STACK 0 +java.net.ConnectException + at java.net.http/jdk.internal.net.http.common.Utils.toConnectException(Utils.java:1055) + at java.net.http/jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:198) + at java.net.http/jdk.internal.net.http.AsyncSSLConnection.connectAsync(AsyncSSLConnection.java:56) + at java.net.http/jdk.internal.net.http.Http2Connection.createAsync(Http2Connection.java:378) + at java.net.http/jdk.internal.net.http.Http2ClientImpl.getConnectionFor(Http2ClientImpl.java:126) + at java.net.http/jdk.internal.net.http.ExchangeImpl.get(ExchangeImpl.java:93) + at java.net.http/jdk.internal.net.http.Exchange.establishExchange(Exchange.java:343) + at java.net.http/jdk.internal.net.http.Exchange.responseAsyncImpl0(Exchange.java:475) + at java.net.http/jdk.internal.net.http.Exchange.responseAsyncImpl(Exchange.java:380) + at java.net.http/jdk.internal.net.http.Exchange.responseAsync(Exchange.java:372) + at java.net.http/jdk.internal.net.http.MultiExchange.responseAsyncImpl(MultiExchange.java:408) + at java.net.http/jdk.internal.net.http.MultiExchange.lambda$responseAsyncImpl$7(MultiExchange.java:449) + at java.base/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:934) + at java.base/java.util.concurrent.CompletableFuture.uniHandleStage(CompletableFuture.java:950) + at java.base/java.util.concurrent.CompletableFuture.handle(CompletableFuture.java:2340) + at java.net.http/jdk.internal.net.http.MultiExchange.responseAsyncImpl(MultiExchange.java:439) + at java.net.http/jdk.internal.net.http.MultiExchange.lambda$responseAsync0$2(MultiExchange.java:341) + at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1150) + at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) + at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773) + at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) + at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) + at java.base/java.lang.Thread.run(Thread.java:840) +Caused by: java.nio.channels.UnresolvedAddressException + at java.base/sun.nio.ch.Net.checkAddress(Net.java:149) + at java.base/sun.nio.ch.Net.checkAddress(Net.java:157) + at java.base/sun.nio.ch.SocketChannelImpl.checkRemote(SocketChannelImpl.java:816) + at java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:839) + at java.net.http/jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$0(PlainHttpConnection.java:183) + at java.base/java.security.AccessController.doPrivileged(AccessController.java:569) + at java.net.http/jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:185) + ... 21 more + +!ENTRY org.eclipse.equinox.p2.transport.ecf 4 1002 2026-03-18 13:20:01.294 +!MESSAGE Unable to connect to repository https://download.eclipse.org/releases/2023-12/compositeContent.xml +!STACK 0 +java.net.ConnectException + at java.net.http/jdk.internal.net.http.common.Utils.toConnectException(Utils.java:1055) + at java.net.http/jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:198) + at java.net.http/jdk.internal.net.http.AsyncSSLConnection.connectAsync(AsyncSSLConnection.java:56) + at java.net.http/jdk.internal.net.http.Http2Connection.createAsync(Http2Connection.java:378) + at java.net.http/jdk.internal.net.http.Http2ClientImpl.getConnectionFor(Http2ClientImpl.java:126) + at java.net.http/jdk.internal.net.http.ExchangeImpl.get(ExchangeImpl.java:93) + at java.net.http/jdk.internal.net.http.Exchange.establishExchange(Exchange.java:343) + at java.net.http/jdk.internal.net.http.Exchange.responseAsyncImpl0(Exchange.java:475) + at java.net.http/jdk.internal.net.http.Exchange.responseAsyncImpl(Exchange.java:380) + at java.net.http/jdk.internal.net.http.Exchange.responseAsync(Exchange.java:372) + at java.net.http/jdk.internal.net.http.MultiExchange.responseAsyncImpl(MultiExchange.java:408) + at java.net.http/jdk.internal.net.http.MultiExchange.lambda$responseAsyncImpl$7(MultiExchange.java:449) + at java.base/java.util.concurrent.CompletableFuture.uniHandle(CompletableFuture.java:934) + at java.base/java.util.concurrent.CompletableFuture.uniHandleStage(CompletableFuture.java:950) + at java.base/java.util.concurrent.CompletableFuture.handle(CompletableFuture.java:2340) + at java.net.http/jdk.internal.net.http.MultiExchange.responseAsyncImpl(MultiExchange.java:439) + at java.net.http/jdk.internal.net.http.MultiExchange.lambda$responseAsync0$2(MultiExchange.java:341) + at java.base/java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:1150) + at java.base/java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:510) + at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1773) + at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) + at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) + at java.base/java.lang.Thread.run(Thread.java:840) +Caused by: java.nio.channels.UnresolvedAddressException + at java.base/sun.nio.ch.Net.checkAddress(Net.java:149) + at java.base/sun.nio.ch.Net.checkAddress(Net.java:157) + at java.base/sun.nio.ch.SocketChannelImpl.checkRemote(SocketChannelImpl.java:816) + at java.base/sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:839) + at java.net.http/jdk.internal.net.http.PlainHttpConnection.lambda$connectAsync$0(PlainHttpConnection.java:183) + at java.base/java.security.AccessController.doPrivileged(AccessController.java:569) + at java.net.http/jdk.internal.net.http.PlainHttpConnection.connectAsync(PlainHttpConnection.java:185) + ... 21 more +!SESSION 2026-03-18 13:36:38.191 ----------------------------------------------- +eclipse.buildId=Version 1.16.0 +java.version=17.0.11 +java.vendor=Eclipse Adoptium +BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE +Command-line arguments: -os linux -ws gtk -arch x86_64 + +!ENTRY org.eclipse.core.resources 2 10035 2026-03-18 13:36:40.821 +!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes. + +!ENTRY com.st.stm32cube.ide.mcu.informationcenter 4 4 2026-03-18 13:36:44.318 +!MESSAGE CubeMX plugin appears to be active, Log4j initialization might be too late. + +!ENTRY com.st.stm32cube.ide.mcu.informationcenter 1 1 2026-03-18 13:36:44.319 +!MESSAGE Log4j2 initialized with config file /home/tobii/02_Uni/09_Mikrocomputertechnik/praktikum/mct_bei_workspace_25w/.metadata/.log4j2.xml + +!ENTRY com.st.stm32cube.ide.mcu.ide 1 1 2026-03-18 13:36:49.305 +!MESSAGE Started RMI Server, listening on port 41337 +!SESSION 2026-03-20 17:42:29.905 ----------------------------------------------- +eclipse.buildId=Version 1.16.0 +java.version=17.0.11 +java.vendor=Eclipse Adoptium +BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE +Command-line arguments: -os linux -ws gtk -arch x86_64 + +!ENTRY org.eclipse.core.resources 2 10035 2026-03-20 17:42:32.738 +!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes. + +!ENTRY com.st.stm32cube.ide.mcu.informationcenter 4 4 2026-03-20 17:42:36.387 +!MESSAGE CubeMX plugin appears to be active, Log4j initialization might be too late. + +!ENTRY com.st.stm32cube.ide.mcu.informationcenter 1 1 2026-03-20 17:42:36.388 +!MESSAGE Log4j2 initialized with config file /home/tobii/02_Uni/09_Mikrocomputertechnik/praktikum/mct_bei_workspace_25w/.metadata/.log4j2.xml + +!ENTRY com.st.stm32cube.ide.mcu.ide 1 1 2026-03-20 17:42:42.323 +!MESSAGE Started RMI Server, listening on port 41337 +!SESSION 2026-03-20 18:06:27.774 ----------------------------------------------- +eclipse.buildId=Version 1.16.0 +java.version=17.0.11 +java.vendor=Eclipse Adoptium +BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=de_DE +Command-line arguments: -os linux -ws gtk -arch x86_64 + +!ENTRY org.eclipse.core.resources 2 10035 2026-03-20 18:06:30.631 +!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes. + +!ENTRY com.st.stm32cube.ide.mcu.informationcenter 4 4 2026-03-20 18:06:34.323 +!MESSAGE CubeMX plugin appears to be active, Log4j initialization might be too late. + +!ENTRY com.st.stm32cube.ide.mcu.informationcenter 1 1 2026-03-20 18:06:34.324 +!MESSAGE Log4j2 initialized with config file /home/tobii/02_Uni/09_Mikrocomputertechnik/praktikum/mct_bei_workspace_25w/.metadata/.log4j2.xml + +!ENTRY com.st.stm32cube.ide.mcu.ide 1 1 2026-03-20 18:06:39.545 +!MESSAGE Started RMI Server, listening on port 41337 diff --git a/.metadata/.plugins/org.eclipse.cdt.core/task1.1727452765701.pdom b/.metadata/.plugins/org.eclipse.cdt.core/task1.1727452765701.pdom index 1465b7a620bfc205310b97fd41dea3dfa3d73fc1..03a2b9574298705a9328c29be9791ab995c9621f 100644 GIT binary patch delta 1051 zcma)*Ur1AN6vxl~oo#L|Q`^?OqfE1r^E%BU1bgV_L$n7W%!gh~(rzu3q9sHSZT^9t zg67EkR4)-!5Hx(aJ{ZA#Fi0@)VWC1JAL>a&tl2+*o%?V4*bhG3!}<69ox|^@3QDS= zG{6b~V7L+RNI#%72iWwKJUa)Y>aBauzO1~+5Ti}mwi!&zYg5cUS;4~j%w*uw)K;K) zT=hMx=uOLx%=uWva{}1L8G!Z|nbFuuFGkCOZ5{)R43Fhv4{|YqU<48l!b!M@GQv%G zh;qV9>>(pkT7Yla0X3>!P>qoF(O+5;_wRkZ&&Y85DZu6_J z4vIc4P^{UODy`ve4=Te0@s7BVvwu`8wzP_Z4O6@?Fi>EIwyRK25v% zyt5RtFkAp&WC%|L|3r=TtzBuESSoyZx%7CxF;U9L@TzI^Z`677LSmrR7PtKCrCh_{ zp8yZNrHzdPbmu{9Zxypu)kgLAgmOKu+_-vk=$fMaJS~p;5v5h_evg>+2+QhruNX@5 z0$nd}bfOqwG-TS%f2b`u5$dei2O2AH#8LWc`ut|xcnZ>j6?XtOZy9kR2Hpm$M@g?; z+*Lnk#Gwezq%MGVaY3>CC6BeYeay0QyzE<&^1oK&>&#hnm$}+ z`&@TgJ`m#XsZ*KRDLi7O(^S%IrbDh(r(49zQ@U6Gm;e85HkyrGZ}fjVD{ruW;e`ji delta 855 zcmZvbO=uHQ6oqf*rb%jBlbTGD5!Bcur1@zzDs&-es-VtBiiqvPT7L*cyAliTOx1!e z6byk3g1V~sh&48)hznp;|=e;x#zt5W+toI z$!a!CUx0aE@Un-_t|IC5j@srC0D7d_(Hy1$k=B$ z<;Icy(#BC@#}r8$o z9G}o?(*gg(vihj3+JFQY*g+d`04H#PcCZU{fKJc_b^|x?fNrn{c!3Ydz^|9pK=0d9 zBXAXYORobiJ=X|K{gDz+3u&MBW}o8KE>9|I6X(Q#F6)UPgptVV2<9`&%~9F zQU`gge)W>>O)1lo=DMl4ogDokdZ?YK2NMbO(;PvwRIE91?ap|*|Aw`U8e)i|J%^M} zo^A@77ZACQt{sP@|2nBW@UeKhcTvf=+vc>bQDtwQLd3~=@PX*;UCb+J-V-AKD76uX zZW;Ol*5`;We8*f7M$lij=!;mNCpzDUd36UJHIoZO=lU_Pq5k84@8?Z}3WP-~06rZf zK&!zj^c5?>x@GXLB>;+wU?M>3_YOL0ieMsu_#}-0#`~wN6Ru;!ni(MR+zQZQfTEnl z9f%Humra9U#SEa2j43%+28|NK@E1N2zv;8RO*B$?Cy`&|4A+hQw5^wNO33Ea1_x}z K;@>d2V*3m2<<67< diff --git a/.metadata/.plugins/org.eclipse.cdt.ui/global-build.log b/.metadata/.plugins/org.eclipse.cdt.ui/global-build.log index 0d598bc..8f0e68b 100644 --- a/.metadata/.plugins/org.eclipse.cdt.ui/global-build.log +++ b/.metadata/.plugins/org.eclipse.cdt.ui/global-build.log @@ -309,3 +309,17 @@ Finished building: default.size.stdout Finished building: task1.list +15:01:24 **** Incremental Build of configuration Debug for project task1 **** +make -j12 all +arm-none-eabi-gcc "../Src/task1.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DSTM32G431KBTx -DSTM32 -DSTM32G4 -DNUCLEO_G431KB -c -I../Inc -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Src/task1.d" -MT"Src/task1.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Src/task1.o" +arm-none-eabi-gcc -o "task1.elf" @"objects.list" -mcpu=cortex-m4 -T"/home/tobii/02_Uni/09_Mikrocomputertechnik/praktikum/mct_bei_workspace_25w/task1/STM32G431KBTX_FLASH.ld" --specs=nosys.specs -Wl,-Map="task1.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: task1.elf + +arm-none-eabi-size task1.elf +arm-none-eabi-objdump -h -S task1.elf > "task1.list" + text data bss dec hex filename + 1692 0 1568 3260 cbc task1.elf +Finished building: default.size.stdout + +Finished building: task1.list + diff --git a/.metadata/.plugins/org.eclipse.cdt.ui/task1.build.log b/.metadata/.plugins/org.eclipse.cdt.ui/task1.build.log index cf47185..40362b7 100644 --- a/.metadata/.plugins/org.eclipse.cdt.ui/task1.build.log +++ b/.metadata/.plugins/org.eclipse.cdt.ui/task1.build.log @@ -1,4 +1,4 @@ -14:21:35 **** Incremental Build of configuration Debug for project task1 **** +15:01:24 **** Incremental Build of configuration Debug for project task1 **** make -j12 all arm-none-eabi-gcc "../Src/task1.c" -mcpu=cortex-m4 -std=gnu11 -g3 -DDEBUG -DSTM32G431KBTx -DSTM32 -DSTM32G4 -DNUCLEO_G431KB -c -I../Inc -O0 -ffunction-sections -fdata-sections -Wall -fstack-usage -fcyclomatic-complexity -MMD -MP -MF"Src/task1.d" -MT"Src/task1.o" --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -o "Src/task1.o" arm-none-eabi-gcc -o "task1.elf" @"objects.list" -mcpu=cortex-m4 -T"/home/tobii/02_Uni/09_Mikrocomputertechnik/praktikum/mct_bei_workspace_25w/task1/STM32G431KBTX_FLASH.ld" --specs=nosys.specs -Wl,-Map="task1.map" -Wl,--gc-sections -static --specs=nano.specs -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb -Wl,--start-group -lc -lm -Wl,--end-group @@ -13,5 +13,5 @@ Finished building: default.size.stdout Finished building: task1.list -14:21:36 Build Finished. 0 errors, 0 warnings. (took 332ms) +15:01:24 Build Finished. 0 errors, 0 warnings. (took 330ms) diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/21/00d10a47cc2200111412fa6c3f9d8906 b/.metadata/.plugins/org.eclipse.core.resources/.history/21/00d10a47cc2200111412fa6c3f9d8906 new file mode 100644 index 0000000..7a815ea --- /dev/null +++ b/.metadata/.plugins/org.eclipse.core.resources/.history/21/00d10a47cc2200111412fa6c3f9d8906 @@ -0,0 +1,36 @@ +/* + * sketch.c + * + * Created on: Mar 18, 2026 + * Author: tobii + */ +int reihenfolge[6] = {0, 1, 2, 3, 2, 1}; + +int main(){ + while(1){ + while(/*schalter gedrückt*/){} + delay(); + while(/*schalter losgelassen*/){} + delay(); + + int aktiv = 1; + while(aktiv){ + for(int i; i < reihenfolge.length - 1 && aktiv = 1; i ++){ + //alle LED einschalten + if(i = 0){/*alles bis auf LED0 auschalten*/} + if(i = 1){/*..*/} + //... + for(int zähler = 0; zähler < 333 && aktiv == 1; zähler++){ + if(/*schalter gerückt*/){ + aktiv = 0; + break; + } + else{ + delay(1); + } + } + while(/*Taster gedrückt*/){} + } + } + } +} diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/56/40b0b6e7c42200111a10e980504b778a b/.metadata/.plugins/org.eclipse.core.resources/.history/56/40b0b6e7c42200111a10e980504b778a new file mode 100644 index 0000000..e69de29 diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/56/9013a47c032200111ca2ee31eda545ee b/.metadata/.plugins/org.eclipse.core.resources/.history/56/9013a47c032200111ca2ee31eda545ee deleted file mode 100644 index 09bf9b2..0000000 --- a/.metadata/.plugins/org.eclipse.core.resources/.history/56/9013a47c032200111ca2ee31eda545ee +++ /dev/null @@ -1,211 +0,0 @@ -/* *************************************************************************************** - * Project: task1 - C:GPIO - * File: task1.c - * - * Language: C - * - * Hardware: STefi Light v1.1 - * Processor: STM32G431KBT6U - * - * Author: Manuel Lederhofer - * Datum: 10.09.2021 - * - * Version: 2.1 - * History: - * 10.09.2021 ML create project - * 09.03.2022 ML port from STM32F042K6T6 to STM32G431KBT6U - * 18.02.2025 TK changed projectname to "C: GPIO) - * - * Status: under development - * - * Description: - * Blinks the red LED of STefi Light, currently. - * This file contains the main routine and the initialization. - * - * Notes: - * - MCU speed at startup is 16 MHz - * - * Todo: - * - Change the example code to match the description and requirements - * of the requested application in the lab exercise guide. - * - ************************************************************************************** */ - -/* ------------------------------------ INCLUDES -------------------------------------- */ -#include "stm32g431xx.h" -#include "STefi-Light.h" - -/* ------------------------------------ DEFINES --------------------------------------- */ -#define LOOPS_PER_MS 1244 // NOP-loops for delay() -#define WAITTIME 333 - -/* ------------------------------------ TYPE DEFINITIONS ------------------------------ */ -/* ------------------------------------ GLOBAL VARIABLES ------------------------------ */ -int state = 0; - -/* ------------------------------------ PRIVATE VARIABLES ----------------------------- */ - -/* ------------------------------------ PROTOTYPES ------------------------------------ */ -static void GPIO_init(void); -static void delay(const uint16_t ms); - -/* ------------------------------------ M A I N --------------------------------------- */ -int main(void) -{ - /* --- initialization --- */ - __disable_irq(); // disable interrupts globally - - GPIO_init(); - - __enable_irq(); // enable interrupts globally - - /* --- one time tasks --- */ - - //s0 Hilfvariablen auserhalb von while deklarieren - int running = 0; //0 Lauflicht aus, 1 Lauflicht an - int lastButtonState = 1; // Hilfsvariable zur Flankenerkennung - - /* --- infinite processing loop --- */ - while (1) - { - int buttonState = GPIOB->IDR & (1 << 0); - - // fallende Flanke erkennen - if (lastButtonState && !buttonState) - { - running ^= 1; // toggle running - /* delay(50); // entprellen */ - } - - lastButtonState = buttonState; - - - if(running) - { - switch (state) - { - case 0: - state++; - GPIOA->ODR &= ~(1 << 0); - delay(WAITTIME); - GPIOA->ODR |= (1 << 0); - break; - case 1: - state++; - GPIOA->ODR &= ~(1 << 1); - delay(WAITTIME); - GPIOA->ODR |= (1 << 1); - break; - case 2: - state++; - GPIOA->ODR &= ~(1 << 2); - delay(WAITTIME); - GPIOA->ODR |= (1 << 2); - break; - case 3: - state++; - GPIOA->ODR &= ~(1 << 3); - delay(WAITTIME); - GPIOA->ODR |= (1 << 3); - break; - case 4: - state++; - GPIOA->ODR &= ~(1 << 2); - delay(WAITTIME); - GPIOA->ODR |= (1 << 2); - break; - case 5: - state=0; - GPIOA->ODR &= ~(1 << 1); - delay(WAITTIME); - GPIOA->ODR |= (1 << 1); - break; - - case 99: - GPIOA->ODR |= MASK_LED_ALL; - while(1){ - if((GPIOB->IDR & (1 << 0)) == 0){ - state=0; - break; - } - } - } - } - - } - //aktuell geht er mit drücken durch die cases - // wegen break geht er ganz aus der if bedingung raus, nicht nur ausm switch case - - -return 1; -} - -/* ------------------------------------ GLOBAL FUNCTIONS ------------------------------ */ - -/* ------------------------------------ PRIVATE FUNCTIONS ----------------------------- */ - -/* ------------------------------------------------------------------------------------ *\ - * method: static void GPIO_init(void) - * - * Initializes GPIOs on STefi Light for pins with peripherals attached. - * - * requires: - nothing - - * parameters: - none - - * returns: - nothing - - \* ------------------------------------------------------------------------------------ */ -static void GPIO_init(void) -{ -/* enable port clocks */ -RCC->AHB2ENR |= RCC_AHB2ENR_GPIOAEN; // LEDs: A -RCC->AHB2ENR |= RCC_AHB2ENR_GPIOBEN; //Taster versuch - -/* --- LEDs --- */ -GPIOA->ODR |= MASK_LED_ALL; -GPIOA->MODER &= ~(3 << 0); -GPIOA->MODER |= (1 << 0); // set LED pin to output - -/* LED1 als Output */ -GPIOA->MODER &= ~(3 << 2); // Versuch: LED 1 Mode löschen :klappt so -GPIOA->MODER |= (1 << 2); // Versuch: LED 1 PA1 = output :klappt so - -/* LED2 als Output */ -GPIOA->MODER &= ~(3 << 4); // Versuch: LED 2 Mode löschen :klappt -GPIOA->MODER |= (1 << 4); // Versuch: LED 2 PA1 = output :klappt - -/* LED3 als output */ -GPIOA->MODER &= ~(3 << 6); -GPIOA->MODER |= (1 << 6); - -/* s0 (PB0) als Input Versuch */ -GPIOB->MODER &= ~(3 << 0); - -/* Pull-Up Aktivieren Versuch */ -GPIOB->PUPDR &= ~(3 << 0); -GPIOB->PUPDR |= (1 << 0); // 01 = Pull-Up -} - -/* ------------------------------------------------------------------------------------ *\ - * method: static void delay(const uint16_t ms) - * - * Realizes a millisecond delay by very bad busy-wait. - * - * requires: - nothing - - * parameters: ms - delay time in milliseconds - * returns: - nothing - - \* ------------------------------------------------------------------------------------ */ -static void delay(const uint16_t ms) -{ -for (uint16_t i = 0; i < ms; ++i) -{ - if((GPIOB->IDR & (1 << 0)) == 0){ - state = 99; - break; - } - for (uint16_t j = 0; j < LOOPS_PER_MS; ++j) - { - __asm("NOP"); - } -} -} - -/* ************************************ E O F ***************************************** */ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/73/207d5f35042200111ca2ee31eda545ee b/.metadata/.plugins/org.eclipse.core.resources/.history/73/207d5f35042200111ca2ee31eda545ee deleted file mode 100644 index 196bd9b..0000000 --- a/.metadata/.plugins/org.eclipse.core.resources/.history/73/207d5f35042200111ca2ee31eda545ee +++ /dev/null @@ -1,212 +0,0 @@ -/* *************************************************************************************** - * Project: task1 - C:GPIO - * File: task1.c - * - * Language: C - * - * Hardware: STefi Light v1.1 - * Processor: STM32G431KBT6U - * - * Author: Manuel Lederhofer - * Datum: 10.09.2021 - * - * Version: 2.1 - * History: - * 10.09.2021 ML create project - * 09.03.2022 ML port from STM32F042K6T6 to STM32G431KBT6U - * 18.02.2025 TK changed projectname to "C: GPIO) - * - * Status: under development - * - * Description: - * Blinks the red LED of STefi Light, currently. - * This file contains the main routine and the initialization. - * - * Notes: - * - MCU speed at startup is 16 MHz - * - * Todo: - * - Change the example code to match the description and requirements - * of the requested application in the lab exercise guide. - * - ************************************************************************************** */ - -/* ------------------------------------ INCLUDES -------------------------------------- */ -#include "stm32g431xx.h" -#include "STefi-Light.h" - -/* ------------------------------------ DEFINES --------------------------------------- */ -#define LOOPS_PER_MS 1244 // NOP-loops for delay() -#define WAITTIME 333 - -/* ------------------------------------ TYPE DEFINITIONS ------------------------------ */ -/* ------------------------------------ GLOBAL VARIABLES ------------------------------ */ -int state = 0; - -/* ------------------------------------ PRIVATE VARIABLES ----------------------------- */ - -/* ------------------------------------ PROTOTYPES ------------------------------------ */ -static void GPIO_init(void); -static void delay(const uint16_t ms); - -/* ------------------------------------ M A I N --------------------------------------- */ -int main(void) -{ - /* --- initialization --- */ - __disable_irq(); // disable interrupts globally - - GPIO_init(); - - __enable_irq(); // enable interrupts globally - - /* --- one time tasks --- */ - - //s0 Hilfvariablen auserhalb von while deklarieren - int running = 0; //0 Lauflicht aus, 1 Lauflicht an - int lastButtonState = 1; // Hilfsvariable zur Flankenerkennung - - /* --- infinite processing loop --- */ - while (1) - { - int buttonState = GPIOB->IDR & (1 << 0); - - // fallende Flanke erkennen - if (lastButtonState && !buttonState) - { - running ^= 1; // toggle running - /* delay(50); // entprellen */ - } - - lastButtonState = buttonState; - - - if(running) - { - switch (state) - { - case 0: - state++; - GPIOA->ODR &= ~(1 << 0); - delay(WAITTIME); - GPIOA->ODR |= (1 << 0); - break; - case 1: - state++; - GPIOA->ODR &= ~(1 << 1); - delay(WAITTIME); - GPIOA->ODR |= (1 << 1); - break; - case 2: - state++; - GPIOA->ODR &= ~(1 << 2); - delay(WAITTIME); - GPIOA->ODR |= (1 << 2); - break; - case 3: - state++; - GPIOA->ODR &= ~(1 << 3); - delay(WAITTIME); - GPIOA->ODR |= (1 << 3); - break; - case 4: - state++; - GPIOA->ODR &= ~(1 << 2); - delay(WAITTIME); - GPIOA->ODR |= (1 << 2); - break; - case 5: - state=0; - GPIOA->ODR &= ~(1 << 1); - delay(WAITTIME); - GPIOA->ODR |= (1 << 1); - break; - - case 99: - GPIOA->ODR |= MASK_LED_ALL; - while(1){ - if((GPIOB->IDR & (1 << 0)) == 0){ - delay(10); - state=0; - break; - } - } - } - } - - } - //aktuell geht er mit drücken durch die cases - // wegen break geht er ganz aus der if bedingung raus, nicht nur ausm switch case - - -return 1; -} - -/* ------------------------------------ GLOBAL FUNCTIONS ------------------------------ */ - -/* ------------------------------------ PRIVATE FUNCTIONS ----------------------------- */ - -/* ------------------------------------------------------------------------------------ *\ - * method: static void GPIO_init(void) - * - * Initializes GPIOs on STefi Light for pins with peripherals attached. - * - * requires: - nothing - - * parameters: - none - - * returns: - nothing - - \* ------------------------------------------------------------------------------------ */ -static void GPIO_init(void) -{ -/* enable port clocks */ -RCC->AHB2ENR |= RCC_AHB2ENR_GPIOAEN; // LEDs: A -RCC->AHB2ENR |= RCC_AHB2ENR_GPIOBEN; //Taster versuch - -/* --- LEDs --- */ -GPIOA->ODR |= MASK_LED_ALL; -GPIOA->MODER &= ~(3 << 0); -GPIOA->MODER |= (1 << 0); // set LED pin to output - -/* LED1 als Output */ -GPIOA->MODER &= ~(3 << 2); // Versuch: LED 1 Mode löschen :klappt so -GPIOA->MODER |= (1 << 2); // Versuch: LED 1 PA1 = output :klappt so - -/* LED2 als Output */ -GPIOA->MODER &= ~(3 << 4); // Versuch: LED 2 Mode löschen :klappt -GPIOA->MODER |= (1 << 4); // Versuch: LED 2 PA1 = output :klappt - -/* LED3 als output */ -GPIOA->MODER &= ~(3 << 6); -GPIOA->MODER |= (1 << 6); - -/* s0 (PB0) als Input Versuch */ -GPIOB->MODER &= ~(3 << 0); - -/* Pull-Up Aktivieren Versuch */ -GPIOB->PUPDR &= ~(3 << 0); -GPIOB->PUPDR |= (1 << 0); // 01 = Pull-Up -} - -/* ------------------------------------------------------------------------------------ *\ - * method: static void delay(const uint16_t ms) - * - * Realizes a millisecond delay by very bad busy-wait. - * - * requires: - nothing - - * parameters: ms - delay time in milliseconds - * returns: - nothing - - \* ------------------------------------------------------------------------------------ */ -static void delay(const uint16_t ms) -{ -for (uint16_t i = 0; i < ms; ++i) -{ - if((GPIOB->IDR & (1 << 0) && state != 99) == 0){ - state = 99; - break; - } - for (uint16_t j = 0; j < LOOPS_PER_MS; ++j) - { - __asm("NOP"); - } -} -} - -/* ************************************ E O F ***************************************** */ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/82/3060ac31042200111ca2ee31eda545ee b/.metadata/.plugins/org.eclipse.core.resources/.history/82/3060ac31042200111ca2ee31eda545ee deleted file mode 100644 index b049b77..0000000 --- a/.metadata/.plugins/org.eclipse.core.resources/.history/82/3060ac31042200111ca2ee31eda545ee +++ /dev/null @@ -1,212 +0,0 @@ -/* *************************************************************************************** - * Project: task1 - C:GPIO - * File: task1.c - * - * Language: C - * - * Hardware: STefi Light v1.1 - * Processor: STM32G431KBT6U - * - * Author: Manuel Lederhofer - * Datum: 10.09.2021 - * - * Version: 2.1 - * History: - * 10.09.2021 ML create project - * 09.03.2022 ML port from STM32F042K6T6 to STM32G431KBT6U - * 18.02.2025 TK changed projectname to "C: GPIO) - * - * Status: under development - * - * Description: - * Blinks the red LED of STefi Light, currently. - * This file contains the main routine and the initialization. - * - * Notes: - * - MCU speed at startup is 16 MHz - * - * Todo: - * - Change the example code to match the description and requirements - * of the requested application in the lab exercise guide. - * - ************************************************************************************** */ - -/* ------------------------------------ INCLUDES -------------------------------------- */ -#include "stm32g431xx.h" -#include "STefi-Light.h" - -/* ------------------------------------ DEFINES --------------------------------------- */ -#define LOOPS_PER_MS 1244 // NOP-loops for delay() -#define WAITTIME 333 - -/* ------------------------------------ TYPE DEFINITIONS ------------------------------ */ -/* ------------------------------------ GLOBAL VARIABLES ------------------------------ */ -int state = 0; - -/* ------------------------------------ PRIVATE VARIABLES ----------------------------- */ - -/* ------------------------------------ PROTOTYPES ------------------------------------ */ -static void GPIO_init(void); -static void delay(const uint16_t ms); - -/* ------------------------------------ M A I N --------------------------------------- */ -int main(void) -{ - /* --- initialization --- */ - __disable_irq(); // disable interrupts globally - - GPIO_init(); - - __enable_irq(); // enable interrupts globally - - /* --- one time tasks --- */ - - //s0 Hilfvariablen auserhalb von while deklarieren - int running = 0; //0 Lauflicht aus, 1 Lauflicht an - int lastButtonState = 1; // Hilfsvariable zur Flankenerkennung - - /* --- infinite processing loop --- */ - while (1) - { - int buttonState = GPIOB->IDR & (1 << 0); - - // fallende Flanke erkennen - if (lastButtonState && !buttonState) - { - running ^= 1; // toggle running - /* delay(50); // entprellen */ - } - - lastButtonState = buttonState; - - - if(running) - { - switch (state) - { - case 0: - state++; - GPIOA->ODR &= ~(1 << 0); - delay(WAITTIME); - GPIOA->ODR |= (1 << 0); - break; - case 1: - state++; - GPIOA->ODR &= ~(1 << 1); - delay(WAITTIME); - GPIOA->ODR |= (1 << 1); - break; - case 2: - state++; - GPIOA->ODR &= ~(1 << 2); - delay(WAITTIME); - GPIOA->ODR |= (1 << 2); - break; - case 3: - state++; - GPIOA->ODR &= ~(1 << 3); - delay(WAITTIME); - GPIOA->ODR |= (1 << 3); - break; - case 4: - state++; - GPIOA->ODR &= ~(1 << 2); - delay(WAITTIME); - GPIOA->ODR |= (1 << 2); - break; - case 5: - state=0; - GPIOA->ODR &= ~(1 << 1); - delay(WAITTIME); - GPIOA->ODR |= (1 << 1); - break; - - case 99: - GPIOA->ODR |= MASK_LED_ALL; - while(1){ - if((GPIOB->IDR & (1 << 0)) == 0){ - //delay(10); - state=0; - break; - } - } - } - } - - } - //aktuell geht er mit drücken durch die cases - // wegen break geht er ganz aus der if bedingung raus, nicht nur ausm switch case - - -return 1; -} - -/* ------------------------------------ GLOBAL FUNCTIONS ------------------------------ */ - -/* ------------------------------------ PRIVATE FUNCTIONS ----------------------------- */ - -/* ------------------------------------------------------------------------------------ *\ - * method: static void GPIO_init(void) - * - * Initializes GPIOs on STefi Light for pins with peripherals attached. - * - * requires: - nothing - - * parameters: - none - - * returns: - nothing - - \* ------------------------------------------------------------------------------------ */ -static void GPIO_init(void) -{ -/* enable port clocks */ -RCC->AHB2ENR |= RCC_AHB2ENR_GPIOAEN; // LEDs: A -RCC->AHB2ENR |= RCC_AHB2ENR_GPIOBEN; //Taster versuch - -/* --- LEDs --- */ -GPIOA->ODR |= MASK_LED_ALL; -GPIOA->MODER &= ~(3 << 0); -GPIOA->MODER |= (1 << 0); // set LED pin to output - -/* LED1 als Output */ -GPIOA->MODER &= ~(3 << 2); // Versuch: LED 1 Mode löschen :klappt so -GPIOA->MODER |= (1 << 2); // Versuch: LED 1 PA1 = output :klappt so - -/* LED2 als Output */ -GPIOA->MODER &= ~(3 << 4); // Versuch: LED 2 Mode löschen :klappt -GPIOA->MODER |= (1 << 4); // Versuch: LED 2 PA1 = output :klappt - -/* LED3 als output */ -GPIOA->MODER &= ~(3 << 6); -GPIOA->MODER |= (1 << 6); - -/* s0 (PB0) als Input Versuch */ -GPIOB->MODER &= ~(3 << 0); - -/* Pull-Up Aktivieren Versuch */ -GPIOB->PUPDR &= ~(3 << 0); -GPIOB->PUPDR |= (1 << 0); // 01 = Pull-Up -} - -/* ------------------------------------------------------------------------------------ *\ - * method: static void delay(const uint16_t ms) - * - * Realizes a millisecond delay by very bad busy-wait. - * - * requires: - nothing - - * parameters: ms - delay time in milliseconds - * returns: - nothing - - \* ------------------------------------------------------------------------------------ */ -static void delay(const uint16_t ms) -{ -for (uint16_t i = 0; i < ms; ++i) -{ - if((GPIOB->IDR & (1 << 0) && state != 99) == 0){ - state = 99; - break; - } - for (uint16_t j = 0; j < LOOPS_PER_MS; ++j) - { - __asm("NOP"); - } -} -} - -/* ************************************ E O F ***************************************** */ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/98/a05df39b032200111ca2ee31eda545ee b/.metadata/.plugins/org.eclipse.core.resources/.history/98/a05df39b032200111ca2ee31eda545ee deleted file mode 100644 index c433132..0000000 --- a/.metadata/.plugins/org.eclipse.core.resources/.history/98/a05df39b032200111ca2ee31eda545ee +++ /dev/null @@ -1,212 +0,0 @@ -/* *************************************************************************************** - * Project: task1 - C:GPIO - * File: task1.c - * - * Language: C - * - * Hardware: STefi Light v1.1 - * Processor: STM32G431KBT6U - * - * Author: Manuel Lederhofer - * Datum: 10.09.2021 - * - * Version: 2.1 - * History: - * 10.09.2021 ML create project - * 09.03.2022 ML port from STM32F042K6T6 to STM32G431KBT6U - * 18.02.2025 TK changed projectname to "C: GPIO) - * - * Status: under development - * - * Description: - * Blinks the red LED of STefi Light, currently. - * This file contains the main routine and the initialization. - * - * Notes: - * - MCU speed at startup is 16 MHz - * - * Todo: - * - Change the example code to match the description and requirements - * of the requested application in the lab exercise guide. - * - ************************************************************************************** */ - -/* ------------------------------------ INCLUDES -------------------------------------- */ -#include "stm32g431xx.h" -#include "STefi-Light.h" - -/* ------------------------------------ DEFINES --------------------------------------- */ -#define LOOPS_PER_MS 1244 // NOP-loops for delay() -#define WAITTIME 333 - -/* ------------------------------------ TYPE DEFINITIONS ------------------------------ */ -/* ------------------------------------ GLOBAL VARIABLES ------------------------------ */ -int state = 0; - -/* ------------------------------------ PRIVATE VARIABLES ----------------------------- */ - -/* ------------------------------------ PROTOTYPES ------------------------------------ */ -static void GPIO_init(void); -static void delay(const uint16_t ms); - -/* ------------------------------------ M A I N --------------------------------------- */ -int main(void) -{ - /* --- initialization --- */ - __disable_irq(); // disable interrupts globally - - GPIO_init(); - - __enable_irq(); // enable interrupts globally - - /* --- one time tasks --- */ - - //s0 Hilfvariablen auserhalb von while deklarieren - int running = 0; //0 Lauflicht aus, 1 Lauflicht an - int lastButtonState = 1; // Hilfsvariable zur Flankenerkennung - - /* --- infinite processing loop --- */ - while (1) - { - int buttonState = GPIOB->IDR & (1 << 0); - - // fallende Flanke erkennen - if (lastButtonState && !buttonState) - { - running ^= 1; // toggle running - /* delay(50); // entprellen */ - } - - lastButtonState = buttonState; - - - if(running) - { - switch (state) - { - case 0: - state++; - GPIOA->ODR &= ~(1 << 0); - delay(WAITTIME); - GPIOA->ODR |= (1 << 0); - break; - case 1: - state++; - GPIOA->ODR &= ~(1 << 1); - delay(WAITTIME); - GPIOA->ODR |= (1 << 1); - break; - case 2: - state++; - GPIOA->ODR &= ~(1 << 2); - delay(WAITTIME); - GPIOA->ODR |= (1 << 2); - break; - case 3: - state++; - GPIOA->ODR &= ~(1 << 3); - delay(WAITTIME); - GPIOA->ODR |= (1 << 3); - break; - case 4: - state++; - GPIOA->ODR &= ~(1 << 2); - delay(WAITTIME); - GPIOA->ODR |= (1 << 2); - break; - case 5: - state=0; - GPIOA->ODR &= ~(1 << 1); - delay(WAITTIME); - GPIOA->ODR |= (1 << 1); - break; - - case 99: - GPIOA->ODR |= MASK_LED_ALL; - while(1){ - if((GPIOB->IDR & (1 << 0)) == 0){ - delay(10); - state=0; - break; - } - } - } - } - - } - //aktuell geht er mit drücken durch die cases - // wegen break geht er ganz aus der if bedingung raus, nicht nur ausm switch case - - -return 1; -} - -/* ------------------------------------ GLOBAL FUNCTIONS ------------------------------ */ - -/* ------------------------------------ PRIVATE FUNCTIONS ----------------------------- */ - -/* ------------------------------------------------------------------------------------ *\ - * method: static void GPIO_init(void) - * - * Initializes GPIOs on STefi Light for pins with peripherals attached. - * - * requires: - nothing - - * parameters: - none - - * returns: - nothing - - \* ------------------------------------------------------------------------------------ */ -static void GPIO_init(void) -{ -/* enable port clocks */ -RCC->AHB2ENR |= RCC_AHB2ENR_GPIOAEN; // LEDs: A -RCC->AHB2ENR |= RCC_AHB2ENR_GPIOBEN; //Taster versuch - -/* --- LEDs --- */ -GPIOA->ODR |= MASK_LED_ALL; -GPIOA->MODER &= ~(3 << 0); -GPIOA->MODER |= (1 << 0); // set LED pin to output - -/* LED1 als Output */ -GPIOA->MODER &= ~(3 << 2); // Versuch: LED 1 Mode löschen :klappt so -GPIOA->MODER |= (1 << 2); // Versuch: LED 1 PA1 = output :klappt so - -/* LED2 als Output */ -GPIOA->MODER &= ~(3 << 4); // Versuch: LED 2 Mode löschen :klappt -GPIOA->MODER |= (1 << 4); // Versuch: LED 2 PA1 = output :klappt - -/* LED3 als output */ -GPIOA->MODER &= ~(3 << 6); -GPIOA->MODER |= (1 << 6); - -/* s0 (PB0) als Input Versuch */ -GPIOB->MODER &= ~(3 << 0); - -/* Pull-Up Aktivieren Versuch */ -GPIOB->PUPDR &= ~(3 << 0); -GPIOB->PUPDR |= (1 << 0); // 01 = Pull-Up -} - -/* ------------------------------------------------------------------------------------ *\ - * method: static void delay(const uint16_t ms) - * - * Realizes a millisecond delay by very bad busy-wait. - * - * requires: - nothing - - * parameters: ms - delay time in milliseconds - * returns: - nothing - - \* ------------------------------------------------------------------------------------ */ -static void delay(const uint16_t ms) -{ -for (uint16_t i = 0; i < ms; ++i) -{ - if((GPIOB->IDR & (1 << 0)) == 0){ - state = 99; - break; - } - for (uint16_t j = 0; j < LOOPS_PER_MS; ++j) - { - __asm("NOP"); - } -} -} - -/* ************************************ E O F ***************************************** */ diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/b9/50d5dae2c52200111a10e980504b778a b/.metadata/.plugins/org.eclipse.core.resources/.history/b9/50d5dae2c52200111a10e980504b778a new file mode 100644 index 0000000..83aa265 --- /dev/null +++ b/.metadata/.plugins/org.eclipse.core.resources/.history/b9/50d5dae2c52200111a10e980504b778a @@ -0,0 +1,8 @@ +/* + * sketch.c + * + * Created on: Mar 18, 2026 + * Author: tobii + */ + + diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/9c/b0f5b2bb032200111ca2ee31eda545ee b/.metadata/.plugins/org.eclipse.core.resources/.history/cb/f09ec06d0f2200111ca2ee31eda545ee similarity index 96% rename from .metadata/.plugins/org.eclipse.core.resources/.history/9c/b0f5b2bb032200111ca2ee31eda545ee rename to .metadata/.plugins/org.eclipse.core.resources/.history/cb/f09ec06d0f2200111ca2ee31eda545ee index 196bd9b..5d32b18 100644 --- a/.metadata/.plugins/org.eclipse.core.resources/.history/9c/b0f5b2bb032200111ca2ee31eda545ee +++ b/.metadata/.plugins/org.eclipse.core.resources/.history/cb/f09ec06d0f2200111ca2ee31eda545ee @@ -125,7 +125,7 @@ int main(void) GPIOA->ODR |= MASK_LED_ALL; while(1){ if((GPIOB->IDR & (1 << 0)) == 0){ - delay(10); + delay(150); state=0; break; } diff --git a/.metadata/.plugins/org.eclipse.core.resources/.history/e9/209aa2a9ca2200111412fa6c3f9d8906 b/.metadata/.plugins/org.eclipse.core.resources/.history/e9/209aa2a9ca2200111412fa6c3f9d8906 new file mode 100644 index 0000000..814d013 --- /dev/null +++ b/.metadata/.plugins/org.eclipse.core.resources/.history/e9/209aa2a9ca2200111412fa6c3f9d8906 @@ -0,0 +1,24 @@ +/* + * sketch.c + * + * Created on: Mar 18, 2026 + * Author: tobii + */ +int reihenfolge[6] = {0, 1, 2, 3, 2, 1}; + +int main(){ + while(1){ + while(/*schalter gedrückt*/){} + delay(); + while(/*schalter losgelassen*/){} + delay(); + + int aktiv = 1; + while(aktiv){ + for(int i; i < reihenfolge.length - 1; i ++){ + //alle LED einschalten + if(i = 0) + } + } + } +} diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/task1/.indexes/c4/history.index b/.metadata/.plugins/org.eclipse.core.resources/.projects/task1/.indexes/c4/history.index index 49210ed766823bb1fdd1bc9b4a60d5b5cc5b2049..c9360478a701d0f3a99c5fbcc1c5f62f1153ac30 100644 GIT binary patch delta 29 lcmdPZoggalVcvmUekBG$nMLmm-!651SF}&^&m2Yu1^}sh3z+}_ delta 29 lcmdPZoggZ4VP|FtlM;iV_~$R*8$xX!N!)+&dk!N50|2JT3-SN} diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/task1/.markers b/.metadata/.plugins/org.eclipse.core.resources/.projects/task1/.markers index b4b8d47a47a3f9c25a44912a9d68bd141b9ca624..f8efdb4d9d615aebaec5f0f4772729f2f0a88ce7 100644 GIT binary patch literal 2737 zcmeH|&rj4q6vtm%$*x2%CYuN$q=`i1!FE~PC>%HlB$9v}b_oaF)OPx4C*97}=`@4` z-ne@3%t4KbC;txr8vO?((HV9F_1CU@V7crhO`CZ$Z@%xn&zk~(1-D)4=gFeG$%xx( z<34?`MWa|cF#s6q(c_H?Gh9Rtk}l11bVw*2!UZ~dD^#GG^Fk2Z3@xzM*4uEM#J*@r zUq}1`DeK|zgr_`f{@zI3(@1jEtil`@@Y$>l#1o}zFDU;j2 zNKn8u+#j$fIA7jA%utH~xI17yjhM>P8ZVemgc>&mzA7-680ypY+#bxA9h3wj)7c7* zKN7H4%Ge$4$G*_DVxLvhA@*~fwH5pEqYl*0Pi>vm>8a1cu1fa{H|8n2k_VK!^@g|0 z)N9$>ritK$r&%FUNF*_%iJJ*Oku)h%Hzm>wka`DPBzfi&^cu~Bzf|HEVoGsQMagVA zW=+$D9Txs=Q>#MN))N7g{O<`Rd)D%{=RO0_? ziaB-i$?591*L@Z5vrkARmnJx0a^Gr@;7h#^()%j{>3DRIj!Pgd r47(Q>mnI}#_8&l#WX#t3Bz?Fdl8#0v>1ZU98qLX_G=@9L`n>xSn}>Vv delta 25 dcmdledY5U!HBLqbFkqZKIgGiA<@ZZ5ZU9^@2N?hW diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/task1/.markers.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/task1/.markers.snap index 7f76ed9377fcc2ce02534379cb821da7d6afcf6c..1b39a065cbe90d00dba45d2fa29684a4227b6707 100644 GIT binary patch literal 2669 zcmeH}&1(}u6u{qREr~@hVh#;b7FrcAyJ;1l0(x=2A18K_ujns=KW@NmOedyHuVKA zmM*{g`R?V{NdU;f1xI>GIO9|W>3rEljgP5EHRF8_%3L&TBrO^zXp=zN0s3jfCS0iQ z9m?>gKrf6rWpd3EAqp6WYkh3|ef8RAjJeFul|K5k!IZ0Io-)}{J}>ZbiiyNPd)H(4 zVX}9Eo&b?~ehUM`fbo`6zMDoqijGM>!X)t;Xu_19$2y2>(aM&@Ce}l3v}j$QuS0R) zYn7*h;4O~@EoJ=3Y4Qji$$d(la>db2mm(NJ*0qd1i)B$6hhp%V))lr&5uCnD1I zk-BXz!X)+xx|O;1e=0F?L|!y7q0}ooTo{->TBa(;0xBtIrdqnIeH4=+CJM&RUNJY3 z(E!GW930AAXO{t|3j=v5bV9qWR>53esli#&^h8y9LL*|HfpcksVpV0St8W10wS1KY zT3UdE%8%97SJo{k#Da1`<)$X%A5<=>v7Nmezn*r3d#xr^ZRnKO2dBK=lk2gRFU*c8 zKjH1HL4qIUE=X@q38d}8LE7#CY5KV1a%Of!(nGDlgy7B-yZzl%`S)cc3(XC-2T4w*JW|g{vVM@eM|rV delta 67 zcmaDWvWa^nkI1|;`e9eJq#jJ MfuDP-cb6Xn0FMY3umAu6 diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/task1/.syncinfo.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/task1/.syncinfo.snap index 0b368ce14fbcdffc79d020bc00b88646cda52674..414a6b37c4de976cc65a3e6047ebd48c8e896c47 100644 GIT binary patch delta 13 PcmY!gn4mCGKmdXO7{3EF delta 4 LcmWGgn4kav0^|W9 diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/task2/.indexes/properties.index b/.metadata/.plugins/org.eclipse.core.resources/.projects/task2/.indexes/properties.index index fb0e92918d4c8a7ffc2c550f6605b990196174d0..755788d95070d13b72cf4f847e24c417442744a3 100644 GIT binary patch delta 37 scmdnOvV}#Ek%57MnSn>&-Ne{1J~1VwXd-U~JBNNrVsW<7#tBOp0hquExc~qF delta 37 scmdnOvW110k%57MnSn#UB(XT#Xrf>RH;=x%iLqgPVoFNU#tBOp0h<5`y#N3J diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/task2/.markers.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/task2/.markers.snap index 0b368ce14fbcdffc79d020bc00b88646cda52674..414a6b37c4de976cc65a3e6047ebd48c8e896c47 100644 GIT binary patch delta 13 PcmY!gn4mCGKmdXO7{3EF delta 4 LcmWGgn4kav0^|W9 diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/task2/.syncinfo.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/task2/.syncinfo.snap index 0b368ce14fbcdffc79d020bc00b88646cda52674..414a6b37c4de976cc65a3e6047ebd48c8e896c47 100644 GIT binary patch delta 13 PcmY!gn4mCGKmdXO7{3EF delta 4 LcmWGgn4kav0^|W9 diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/task3/.markers.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/task3/.markers.snap index 0b368ce14fbcdffc79d020bc00b88646cda52674..414a6b37c4de976cc65a3e6047ebd48c8e896c47 100644 GIT binary patch delta 13 PcmY!gn4mCGKmdXO7{3EF delta 4 LcmWGgn4kav0^|W9 diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/task3/.syncinfo.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/task3/.syncinfo.snap index 0b368ce14fbcdffc79d020bc00b88646cda52674..414a6b37c4de976cc65a3e6047ebd48c8e896c47 100644 GIT binary patch delta 13 PcmY!gn4mCGKmdXO7{3EF delta 4 LcmWGgn4kav0^|W9 diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/task4/.markers.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/task4/.markers.snap index 0b368ce14fbcdffc79d020bc00b88646cda52674..414a6b37c4de976cc65a3e6047ebd48c8e896c47 100644 GIT binary patch delta 13 PcmY!gn4mCGKmdXO7{3EF delta 4 LcmWGgn4kav0^|W9 diff --git a/.metadata/.plugins/org.eclipse.core.resources/.projects/task4/.syncinfo.snap b/.metadata/.plugins/org.eclipse.core.resources/.projects/task4/.syncinfo.snap index 0b368ce14fbcdffc79d020bc00b88646cda52674..414a6b37c4de976cc65a3e6047ebd48c8e896c47 100644 GIT binary patch delta 13 PcmY!gn4mCGKmdXO7{3EF delta 4 LcmWGgn4kav0^|W9 diff --git a/.metadata/.plugins/org.eclipse.core.resources/.root/.markers b/.metadata/.plugins/org.eclipse.core.resources/.root/.markers index 9e5bd1582b707c2aea080c7a0b9a43267383af16..661c3b50a12a4199f6cc9ef56e2e732a349ab60d 100644 GIT binary patch delta 47 zcmbQrGL>b5FQewfIO&N?zfWGvXfe^(Mu;mXGcVPzG&d==h>3xL!J9z^C_kBzNdy3d C1rAmK delta 48 zcmbQrGL>b5@8lVbHjJ7R-%C%-{4T(ilbM(5SDKrYTExV_z~DVOp3#y~1t>Y0kx2vq Dmg5gR diff --git a/.metadata/.plugins/org.eclipse.core.resources/.root/.markers.snap b/.metadata/.plugins/org.eclipse.core.resources/.root/.markers.snap index 0b368ce14fbcdffc79d020bc00b88646cda52674..414a6b37c4de976cc65a3e6047ebd48c8e896c47 100644 GIT binary patch delta 13 PcmY!gn4mCGKmdXO7{3EF delta 4 LcmWGgn4kav0^|W9 diff --git a/.metadata/.plugins/org.eclipse.core.resources/.root/65.tree b/.metadata/.plugins/org.eclipse.core.resources/.root/66.tree similarity index 69% rename from .metadata/.plugins/org.eclipse.core.resources/.root/65.tree rename to .metadata/.plugins/org.eclipse.core.resources/.root/66.tree index f3057aae1564d0fbe95866e5744e01ab3f89d49f..a8bbfbfbd20e109abe68e07f150397a37bf4c893 100644 GIT binary patch delta 1217 zcmZ9MJ8u&~5P)}mYdf(62@)hWSP-4HQG}35C@@8o#OCP~JR}MV3ZKsghny29=SZY7 z1qDS4#8yZtkZ33n5^@1m{s9z7K!c!(C@4?}LV#k)%z9?UIaA!MXTF)8ot^bob}O3_ zRw%@}BFm`Fmp^-%8VV(Lx5p;Pv>)^^t)-gUcT)MG7tMBZXA+IlAtxwVVl3Kl{DsL( znQ=D6VHdsu>?vgIU!VtYodzGVOFis0^y^$kq{~+S`D?!Gc%C0@E#Q9; zvpb+^N8Q^0c%Zv*ZbBqvG$PM27RT&ONRJ)Hs|%C^kP&$vZV>`%m0HGKbG@D&3ZD_v zkP&$S?vDZjg8|vUAd=R11*Jvw&vZo9BZqV=zM@x$8<7_o>!(zEDm5DeVMJbnjcd+A z<<`7cfx!_u*o1FDY8q*AAJ91B;vpPssdT5}HvEjIMD(#9^C~)J5w-s6k&odxdh>px zXL{?1**l>1(*a3yC>imZQ}3ZEx&0Hc!7j{nE3Cqz3mj{u`rdGUP<`vae)K@M^7i!i zB64g5G`+!aRo#r;JIZ)M4kbirFFe^FFwj)j>kQ+EQ2-={6XvWz(@W3 zPn6LcErF(UM3?pRZ+#dXivV%_GR3b4;-3PMY2}CK!Z+H<%@rbarSx|az70L5);X(- ZZk5BO(5!V{qd-|XDL+(6#Y zV=>kqZbMl4)NVb=cg3uC3p;BxwH|Dae3uWd>*rytQEh$hr%888<}&8i8B0_O;piUk zEYnz*2CHbdBi8-}tRZ-Nag8l^uzN)uwd8OgF_sj%;RM3`jvlunU5v}&HuwvDi#1c6 z`XHw4KVUWT7x{O+M-Bc}f-T->V6aZb!7Z+3F7XqFrDnF2;4-foCwpPdd$i7y5?o=t zZdfZu{ zSVG{X!gvQw;`UF#8z-|}5ndfKH zm-vzHjr?Q!@-`-K-ho+S_ks1uKi9mH>C@nndtYhhBG_*7uQi`#-{L30qjeHP5Xp*Y zqKuz_=9>*W;z-~raa@O=%)bkS*F3cOn0dPO>G@1MF81mO-^_pK5-jM(R diff --git a/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources b/.metadata/.plugins/org.eclipse.core.resources/.safetable/org.eclipse.core.resources index 0e7c9f4a2c90a9a1922576829b4dfc17d91773f2..d32477e2532a23314a8e8f25ffaf409af13d8e8c 100644 GIT binary patch delta 194 zcmZ3?ev*5FHoK{niJ_IL$>a(~-HGuA>=vemCZ-0alN%W&Ca!B^G@D${WP_w84pjl? zv&{`97G! diff --git a/.metadata/.plugins/org.eclipse.core.resources/65.snap b/.metadata/.plugins/org.eclipse.core.resources/65.snap deleted file mode 100644 index d68f871099e87868677630abb2be1c4c59c54647..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2088 zcmb7F&ubG=5T5OB`csO6TJ+#y!;?}Z*ruQ!)K;rDIf%9XXisIEZqv}+TDu!;5n2Qf zf<**D5xhwM0=+8YNyLK({{X$|HKZ&m_1CCKpf%q?cqb3g|0NfP7{@Z=4ayoZi$DN}>{fRSo+^dg zbXW2w0mUgUK;5SSI+K!m>6N@iF#9KF^*(HToEp4deI=h(?8wL=hCp>u3ep~+rUo$_ zVi-F!9y&{5dC}~Io`8;1LFi`(ii6qy`RQ;uqp8e&q++QoQTZ2|)oPM+pQu*;EQdIQ zJq%WYg5!C?_8#WGs}h89h_l#~q(oQugFrSaVs&ZkWeu(g%Bwa@Mh-E8Jxtj39wurK z!y(QA>_WWn`VHiNCYS_qi1TPMRiKOiLXfodjZ&6wt${V^xvvD4Y#ibOK!;-fPdMv9 z1cw+!YTuc6XG@-oR=0-nH|4zM)Qnnp5!yv?>mgFpT)5tB{a{S?6GB{KVstr9D%m#U zm4Z-%pCFiB#mobWv!%#=XHi2BDD)=g4t4$wv@s0c00pUj52>$?t`iJ;F!$0qbqwDT zsrQ`nLSYUIcs*6;o~wf6n6v8a;d+t<1GwRKxbAwfHjbP4&Fk)-;>+%w@5l_%wM}D| zD-@#*xnq5UJLl`WNE{#=#rihj?Znn*d?}1=uHSxj>)lZEOJYJ1sAN2q2iZ|LH&S4t2`jc#UZYv=g0@z zeAGlBfJ5M8Hne=SrXcmVrIg>;^3fXGTw0!0@6oNdU=$iN(2 zlnkUeinCKok~8#@feKg{fhI7{Wq9J~3el_j0Z7A4{mgJ6;`e8;m4Tmos&|(kbHMF{ zPY?rOBymmvIuGWASL=0 zhG>G3ND;w;NDG{L#i=DFnR)5Oz!V{xlbDxYnwXvn7u2iB%>l*@10;FyD6H5GHI5HR zi$mFJ3=s2-fJTsL-s&k(GYXN+>x7zTOuBh%r6K0ACjn`GD7y%1o(UP|$wACu=mF9& J|1QCZ1puFSz|#N# literal 0 HcmV?d00001 diff --git a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs index 7ba146d..3a0425b 100644 --- a/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs +++ b/.metadata/.plugins/org.eclipse.core.runtime/.settings/org.eclipse.ui.ide.prefs @@ -1,6 +1,6 @@ IMPORT_FILES_AND_FOLDERS_RELATIVE=true IMPORT_FILES_AND_FOLDERS_TYPE=23,1 eclipse.preferences.version=1 -platformState=1772304866315 +platformState=1772304866316 quickStart=false tipsAndTricks=true diff --git a/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi b/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi index 9e53e4d..a041b0b 100644 --- a/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi +++ b/.metadata/.plugins/org.eclipse.e4.workbench/workbench.xmi @@ -1,8 +1,8 @@ - - + + activeSchemeId:org.eclipse.ui.defaultAcceleratorConfiguration - + @@ -11,9 +11,9 @@ topLevel shellMaximized - - - + + + persp.actionSet:com.st.stm32cube.ide.mcu.informationcenter.actionSet3 persp.actionSet:org.eclipse.ui.cheatsheets.actionSet @@ -67,70 +67,70 @@ persp.viewSC:com.st.stm32cube.ide.mcu.buildanalyzer.view persp.viewSC:com.st.stm32cube.ide.mcu.stackanalyzer.stackanalyzer.view persp.viewSC:com.st.stm32cube.ide.mcu.sfrview - - - + + + View categoryTag:General - + View categoryTag:C/C++ - + View categoryTag:General - - - - - - + + + + + + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + General - + View categoryTag:C/C++ - + View categoryTag:C/C++ - + View categoryTag:General - - + + View categoryTag:General - + View categoryTag:General - + View categoryTag:Make @@ -138,7 +138,7 @@ - + persp.actionSet:com.st.stm32cube.ide.mcu.informationcenter.actionSet3 persp.actionSet:org.eclipse.ui.cheatsheets.actionSet @@ -192,121 +192,121 @@ persp.editorOnboardingCommand:Step Over$$$F6 persp.editorOnboardingCommand:Step Return$$$F7 persp.editorOnboardingCommand:Resume$$$F8 - - - + + + org.eclipse.e4.primaryNavigationStack - + View categoryTag:Debug - + View categoryTag:General - - + + View categoryTag:Debug - - - - + + + + org.eclipse.e4.secondaryNavigationStack - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + Debug noFocus - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug @@ -315,2179 +315,2195 @@ - - + + View categoryTag:Help - + View categoryTag:General - + View categoryTag:Help - + View categoryTag:Help - + View categoryTag:General - + ViewMenu menuContribution:menu - + - + View categoryTag:Help - - + + org.eclipse.e4.primaryDataStack EditorStack active - + noFocus + Editor removeOnHide org.eclipse.cdt.ui.editor.asm.AsmEditor - - + + Editor removeOnHide org.eclipse.cdt.ui.editor.CEditor - + Editor removeOnHide org.eclipse.cdt.ui.editor.CEditor - + Editor removeOnHide org.eclipse.cdt.ui.editor.CEditor - - + + Editor removeOnHide org.eclipse.cdt.ui.editor.CEditor + + + + Editor + removeOnHide + org.eclipse.cdt.ui.editor.CEditor + + + + Editor + removeOnHide + org.eclipse.cdt.ui.editor.asm.AsmEditor active - + View categoryTag:General - + ViewMenu menuContribution:menu - + - + View categoryTag:C/C++ - + View categoryTag:General - + View categoryTag:General - + ViewMenu menuContribution:menu - + - + View categoryTag:General - + ViewMenu menuContribution:menu - + - + View categoryTag:General - + ViewMenu menuContribution:menu - + - + View categoryTag:General - + ViewMenu menuContribution:menu - + - + View categoryTag:General - + ViewMenu menuContribution:menu - + - + View categoryTag:General - + View categoryTag:Make - + ViewMenu menuContribution:menu - + - + View categoryTag:C/C++ - + ViewMenu menuContribution:menu - + - + View categoryTag:C/C++ - + ViewMenu menuContribution:menu - + - + View categoryTag:Debug - + ViewMenu menuContribution:menu - + - + View categoryTag:Debug - + ViewMenu menuContribution:menu - + - + View categoryTag:General - + View categoryTag:Debug - + ViewMenu menuContribution:menu - + - + View categoryTag:Debug - + ViewMenu menuContribution:menu - + - + View categoryTag:Debug - + ViewMenu menuContribution:menu - + - + View categoryTag:General - + View categoryTag:Debug - + View categoryTag:Debug - + ViewMenu menuContribution:menu - + - + View categoryTag:Debug - + ViewMenu menuContribution:menu - + - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + ViewMenu menuContribution:menu - + - + View categoryTag:Debug - + View categoryTag:Debug - + ViewMenu menuContribution:menu - + - + View categoryTag:Debug activeOnClose - + ViewMenu menuContribution:menu - + - + View categoryTag:Debug - + ViewMenu menuContribution:menu - + - + View categoryTag:General - + ViewMenu menuContribution:menu - + - - + + toolbarSeparator - + - + Draggable - + - + toolbarSeparator - + - + Draggable - - + + - + toolbarSeparator - + - + Draggable - + Draggable - + Draggable - + Draggable - + toolbarSeparator - + - + Draggable - + - + Draggable - + + Draggable + + toolbarSeparator - + - + toolbarSeparator - + - + Draggable - + stretch SHOW_RESTORE_MENU - + Draggable HIDEABLE SHOW_RESTORE_MENU - - + + stretch - + Draggable - + Draggable - - + + TrimStack Draggable - + TrimStack Draggable - + TrimStack Draggable - - + + TrimStack Draggable - + TrimStack Draggable - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + platform:gtk - + platform:gtk - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + - - - - - - - + + + + + + + - - + + - - - - + + + + - - - - + + + + - - - - - + + + + + - - + + - - + + - - - - - - - - - - - + + + + + + + + + + + - - + + - - - - - - + + + + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + type:user - + type:user - - + + - - - - - - - - - - + + + + + + + + + + - - - - - - - + + + + + + + - - - + + + - - - - + + + + - - - - - - + + + + + + - - - - - - - + + + + + + + - - - - + + + + - - - + + + - - + + - - - - - - + + + + + + - - - - + + + + - - + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - + + + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Editor removeOnHide - + View categoryTag:Device Configuration Tool - + View categoryTag:C/C++ - + View categoryTag:SWV - + View categoryTag:SWV - + View categoryTag:SWV - + View categoryTag:SWV - + View categoryTag:SWV - + View categoryTag:SWV - + View categoryTag:Debug - + View categoryTag:FreeRTOS - + View categoryTag:FreeRTOS - + View categoryTag:FreeRTOS - + View categoryTag:FreeRTOS - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:C/C++ - + View categoryTag:ThreadX - + View categoryTag:ThreadX - + View categoryTag:ThreadX - + View categoryTag:ThreadX - + View categoryTag:ThreadX - + View categoryTag:ThreadX - + View categoryTag:ThreadX - + View categoryTag:ThreadX - + View categoryTag:C/C++ - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Make - + View categoryTag:C/C++ - + View categoryTag:C/C++ - + View categoryTag:C/C++ - + View categoryTag:C/C++ - + View categoryTag:C/C++ - + View categoryTag:General - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Debug - + View categoryTag:Help - + View categoryTag:Connections - + View categoryTag:General - + View categoryTag:Version Control (Team) - + View categoryTag:Version Control (Team) - + View categoryTag:General - + View categoryTag:General - + View categoryTag:Help - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:General - + View categoryTag:C/C++ - + View categoryTag:Debug - + View categoryTag:Other - - + + glue move_after:PerspectiveSpacer SHOW_RESTORE_MENU - + move_after:Spacer Glue HIDEABLE SHOW_RESTORE_MENU - + glue move_after:SearchField SHOW_RESTORE_MENU - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - + + + - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - + + + + + + + + + + + - - - - + + + + - - - - - - - + + + + + + + - - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + - - - - - - - - - - + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + - - - - + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + - - - + + + - - + + - - - - - + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/.metadata/version.ini b/.metadata/version.ini index 9520d58..5a2a0e8 100644 --- a/.metadata/version.ini +++ b/.metadata/version.ini @@ -1,3 +1,3 @@ -#Tue Mar 17 14:15:39 CET 2026 +#Fri Mar 20 18:06:30 CET 2026 org.eclipse.core.runtime=2 org.eclipse.platform=4.30.0.v20231201-0110 diff --git a/task1/.settings/language.settings.xml b/task1/.settings/language.settings.xml index db73c0f..9699d9b 100644 --- a/task1/.settings/language.settings.xml +++ b/task1/.settings/language.settings.xml @@ -13,7 +13,7 @@ - + diff --git a/task1/Debug/Src/task1.o b/task1/Debug/Src/task1.o index 4c618fbc5e3c62e00f5a291224dcf9fcccf3fbc6..ea0955bda292784f819baec36c9579c52a51ab7f 100644 GIT binary patch delta 52 xcmdn;TW!m4wGA7X7^gLFWNP2Y#0bP7ni+^$fS47C*?^cGh&i@zWa4Dr4FE7S68``I delta 52 xcmdn;TW!m4wGA7X7)6>lGPQ4HVgzCk%?!jWK+FonY(UHo#2ni - delay(20); - 80003e0: 2014 movs r0, #20 + delay(150); + 80003e0: 2096 movs r0, #150 @ 0x96 80003e2: f000 f87b bl 80004dc state=0; 80003e6: 4b03 ldr r3, [pc, #12] @ (80003f4 ) diff --git a/task1/Src/sketch.c b/task1/Src/sketch.c new file mode 100644 index 0000000..c6da3cc --- /dev/null +++ b/task1/Src/sketch.c @@ -0,0 +1,36 @@ +/* + * sketch.c + * + * Created on: Mar 18, 2026 + * Author: tobii + */ +int reihenfolge[6] = {0, 1, 2, 3, 2, 1}; + +int main(){ + while(1){ + while(/*schalter nicht gedrückt*/){} + delay(10); + while(/*schalter losgelassen*/){} + delay(150); + + int aktiv = 1; + while(aktiv){ + for(int i; i < reihenfolge.length - 1 && aktiv = 1; i ++){ + //alle LED einschalten + if(i = 0){/*alles bis auf LED0 auschalten*/} + if(i = 1){/*..*/} + //... + for(int zähler = 0; zähler < 333 && aktiv == 1; zähler++){ + if(/*schalter gerückt*/){ + aktiv = 0; + break; + } + else{ + delay(1); + } + } + while(/*Taster gedrückt*/){} + } + } + } +} diff --git a/task1/Src/task1.c b/task1/Src/task1.c index 4de8f74..1011581 100644 --- a/task1/Src/task1.c +++ b/task1/Src/task1.c @@ -125,7 +125,7 @@ int main(void) GPIOA->ODR |= MASK_LED_ALL; while(1){ if((GPIOB->IDR & (1 << 0)) == 0){ - delay(20); + delay(150); state=0; break; } @@ -166,7 +166,7 @@ GPIOA->MODER &= ~(3 << 0); GPIOA->MODER |= (1 << 0); // set LED pin to output /* LED1 als Output */ -GPIOA->MODER &= ~(3 << 2); // Versuch: LED 1 Mode löschen :klappt so +GPIOA->MODER &= ~(3 ^<< 2); // Versuch: LED 1 Mode löschen :klappt so GPIOA->MODER |= (1 << 2); // Versuch: LED 1 PA1 = output :klappt so /* LED2 als Output */ diff --git a/task2/.settings/language.settings.xml b/task2/.settings/language.settings.xml index 8238781..ac94a18 100644 --- a/task2/.settings/language.settings.xml +++ b/task2/.settings/language.settings.xml @@ -14,7 +14,7 @@ - + diff --git a/task3/.settings/language.settings.xml b/task3/.settings/language.settings.xml index db73c0f..9699d9b 100644 --- a/task3/.settings/language.settings.xml +++ b/task3/.settings/language.settings.xml @@ -13,7 +13,7 @@ - + diff --git a/task4/.settings/language.settings.xml b/task4/.settings/language.settings.xml index 2996d0b..89b9f24 100644 --- a/task4/.settings/language.settings.xml +++ b/task4/.settings/language.settings.xml @@ -13,7 +13,7 @@ - +