Compare commits
4 commits
a44fd52652
...
6933084c76
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6933084c76 | ||
|
|
7b52f473f1 | ||
|
|
158ea6eb41 | ||
|
|
a0ed3e8f43 |
4 changed files with 40 additions and 16 deletions
16
.clang-format
Normal file
16
.clang-format
Normal file
|
|
@ -0,0 +1,16 @@
|
||||||
|
BasedOnStyle: LLVM
|
||||||
|
IndentWidth: 4 # Use 4 spaces for indentation
|
||||||
|
TabWidth: 4 # Tab width is also 4 spaces
|
||||||
|
UseTab: Never # Always use spaces instead of tabs
|
||||||
|
ColumnLimit: 120 # Wrap lines after 80 characters
|
||||||
|
AllowShortLoopsOnASingleLine: true
|
||||||
|
AlwaysBreakTemplateDeclarations: true
|
||||||
|
BreakConstructorInitializers: BeforeComma
|
||||||
|
AlignConsecutiveDeclarations:
|
||||||
|
Enabled: true
|
||||||
|
AcrossEmptyLines: false
|
||||||
|
AcrossComments: false
|
||||||
|
AlignCompound: false
|
||||||
|
AlignFunctionPointers: false
|
||||||
|
PadOperators: false
|
||||||
|
AlignConsecutiveMacros: true
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
|
|
@ -4,3 +4,4 @@ bin/
|
||||||
*.bin
|
*.bin
|
||||||
generated.*.ld
|
generated.*.ld
|
||||||
compile_commands.json
|
compile_commands.json
|
||||||
|
tags
|
||||||
|
|
|
||||||
3
main.c
3
main.c
|
|
@ -9,8 +9,7 @@ static void clock_setup(void) {
|
||||||
|
|
||||||
static void gpio_setup(void) {
|
static void gpio_setup(void) {
|
||||||
// gpio_mode_setup(GPIOC, GPIO_MODE_OUTPUT, GPIO_PUPD_NONE, GPIO13);
|
// gpio_mode_setup(GPIOC, GPIO_MODE_OUTPUT, GPIO_PUPD_NONE, GPIO13);
|
||||||
gpio_set_mode(GPIOC, GPIO_MODE_OUTPUT_2_MHZ, GPIO_CNF_OUTPUT_PUSHPULL,
|
gpio_set_mode(GPIOC, GPIO_MODE_OUTPUT_2_MHZ, GPIO_CNF_OUTPUT_PUSHPULL, GPIO13);
|
||||||
GPIO13);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void delay(volatile uint32_t count) {
|
static void delay(volatile uint32_t count) {
|
||||||
|
|
|
||||||
8
sub_init.sh
Normal file
8
sub_init.sh
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
make clean
|
||||||
|
make -C libopencm3 clean
|
||||||
|
|
||||||
|
bear -- make -C libopencm3 -j$(nproc)
|
||||||
|
bear --append -- make -j$(nproc)
|
||||||
|
|
||||||
|
ctags -R .
|
||||||
Loading…
Add table
Add a link
Reference in a new issue