-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add STM32C0x #1188
Draft
Apehaenger
wants to merge
20
commits into
modm-io:develop
Choose a base branch
from
Apehaenger:feature/STM32C0x1
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+555
−57
Draft
Add STM32C0x #1188
Changes from 6 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
958d2e0
Init and sample
Apehaenger 2a9e201
[build] Do not raise when :platform:core is not selected
salkinium 89d75c1
fixup! Init and sample
salkinium e557593
WIP hacky way to get rid of RCC dependency
salkinium 7919e7f
Fix RCC issues
Apehaenger d2f6b8c
Add example to CI
Apehaenger 0cd7deb
Fix CI error (HAL implementation table)
Apehaenger 6e399cc
Blindly add some ADC & DMA configs
Apehaenger e1300f4
Add custom board, revert some RCC mods
Apehaenger aa82f05
RCC SysClock settings looks wrong, but work and delay look correct
Apehaenger 29eb880
Fix trailing whitespace
Apehaenger fff646d
Sync Documentation
Apehaenger bd728e8
Add HSI-Sys-Divider, fix board SysClock init, rename blink to blink-d…
Apehaenger 7f0a1c9
Fix trailing whitespace
Apehaenger 20fd9d8
Add example delay-clock
Apehaenger a429199
Add example blink-timer
Apehaenger 68a5e95
Fix USART support
Apehaenger 1b113c1
Remove obsolete hsi48 header stuff
Apehaenger 4aa6445
Add C0x to adc/stm32f0 implementation
Apehaenger f869869
Non-working ADC sequence sample
Apehaenger File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright (c) 2024, Jörg Ebeling | ||
* | ||
* This file is part of the modm project. | ||
* | ||
* This Source Code Form is subject to the terms of the Mozilla Public | ||
* License, v. 2.0. If a copy of the MPL was not distributed with this | ||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. | ||
*/ | ||
|
||
#include <modm/platform.hpp> | ||
|
||
using namespace modm::platform; | ||
using namespace std::chrono_literals; | ||
|
||
using Led = GpioC14; | ||
|
||
int | ||
main() | ||
{ | ||
Led::setOutput(); | ||
while (true) | ||
{ | ||
Led::toggle(); | ||
modm::delay(0.5s); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<library> | ||
<repositories> | ||
<repository> | ||
<path>../../../repo.lb</path> | ||
</repository> | ||
</repositories> | ||
<options> | ||
<option name="modm:target">stm32c011f6p6</option> | ||
<option name="modm:build:build.path">../../../build/stm32c0x/blink</option> | ||
</options> | ||
<modules> | ||
<module>modm:platform:core</module> | ||
<module>modm:platform:rcc</module> | ||
<module>modm:platform:gpio</module> | ||
<module>modm:architecture:delay</module> | ||
<module>modm:build:scons</module> | ||
</modules> | ||
</library> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"c0" requires an empty array for not walking through
%% for id in pll_ids
in rcc.cpp.in.Is [""] a correct option?