https://github.com/leoliu0605/uC
Integrate some commonly used modules for developing embedded systems.
https://github.com/leoliu0605/uC
c clang common library utitlity
Last synced: 4 months ago
JSON representation
Integrate some commonly used modules for developing embedded systems.
- Host: GitHub
- URL: https://github.com/leoliu0605/uC
- Owner: leoli0605
- License: mit
- Created: 2023-11-27T06:56:40.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-26T08:56:02.000Z (about 1 year ago)
- Last Synced: 2024-11-16T21:10:43.354Z (about 1 year ago)
- Topics: c, clang, common, library, utitlity
- Language: C
- Homepage:
- Size: 43.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> 本專案大改版中!請勿使用!
# UtilityClang
本專案的目的為創建一個純 C 語言的通用 library,且不依賴任何第三方 lib。並且主要專注於 `ARM Cortex-M` 系列的 MCU 上。
### Features
| Feature | Description |
| :--------------- | :----------------------------------------------------------------------- |
| `arm_c` | 一些 `ARM Cortex-M` 系列的 MCU 上常用的功能 |
| `debug_c` | 一些除錯用的功能, 例如輸出以顏色標記的 `ERROR`, `WARNING`, `INFORMATION` |
| `math_c` | 一些數學運算的功能 |
| `progressbar` | 一個簡單的使用 `printf` 進行進度條的功能 |
| `utility_c` | 一些通用的功能 |
| `utility_config` | 一些通用的配置 |
### Usage
- fork 本專案後,使用以下指令將本專案加入到你的專案中
```shell
git submodule add
```
- 更新本專案
```shell
git submodule update --init --recursive
```
### Appendix
- 添加下列 `git config` 配置,使 `USER_CODE` 的部分內容不會被 `git` 追蹤
```shell
git config --local filter.gitignore.clean "sed '/\/\/ #USER_CODE_BEGIN/,/\/\/ #USER_CODE_END/{//!d;};/\/\/ #USER_CODE_BEGIN/a\\'"
git config --local filter.gitignore.smudge cat
```
### 參考連結
- https://github.com/doches/progressbar