This file contains hidden or 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
| import * as fs from "fs"; | |
| import * as path from "path"; | |
| function updateImportsToUseFileExtension(directoryPath: string): void { | |
| const files = fs.readdirSync(directoryPath); | |
| files.forEach((file) => { | |
| const filePath = path.join(directoryPath, file); | |
| // Check if the file is a TypeScript file |
This file contains hidden or 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
| # Treat C3 like C++ for clang-format | |
| Language: Cpp | |
| BasedOnStyle: LLVM | |
| # Indentation & Tabs | |
| UseTab: ForIndentation | |
| TabWidth: 4 | |
| IndentWidth: 4 | |
| ContinuationIndentWidth: 8 |
This file contains hidden or 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
| #!/bin/bash | |
| MODE="raspi" | |
| ARGS=() | |
| for arg in "$@"; do | |
| case $arg in | |
| MODE=*) MODE="${arg#MODE=}" ;; | |
| *) ARGS+=("$arg") ;; | |
| esac |
This file contains hidden or 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
| { | |
| "version": "0.2.0", | |
| "configurations": [ | |
| { | |
| "name": "Attach to QEMU GDB Server", | |
| "type": "cppdbg", | |
| "request": "launch", | |
| "program": "${workspaceFolder}/kernel.elf", | |
| "cwd": "${workspaceFolder}", | |
| "MIMode": "gdb", |
This file contains hidden or 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
| diff --git a/kernel/async.c b/kernel/async.c | |
| index 8b37a2b..b113ab0 100644 | |
| --- a/kernel/async.c | |
| +++ b/kernel/async.c | |
| @@ -17,7 +17,7 @@ void delay(uint32_t ms) { | |
| } | |
| } | |
| -#define WAIT_COND (*reg & expected_value) == expected_value | |
| +#define WAIT_COND (((*reg) & (expected_value))) == (expected_value) |
This file contains hidden or 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
| $ cloc --exclude-dir=.git --exclude-dir=.misc --exclude-ext=d . | |
| 351 text files. | |
| 248 unique files. | |
| 211 files ignored. | |
| github.com/AlDanial/cloc v 1.98 T=0.56 s (439.4 files/s, 35020.5 lines/s) | |
| -------------------------------------------------------------------------------- | |
| Language files blank comment code | |
| -------------------------------------------------------------------------------- | |
| C 60 1264 58 6614 |
OlderNewer