中文版 (Chinese Version) | English Version
Tired of vendor-locked code? Give your embedded soul the freedom it deserves!
Imagine this: You've spent weeks writing drivers for STM32. Suddenly, your boss says: "xx, the chip price just doubled. Switch to GD32 (or some obscure MCU) by tomorrow!"
You look at your screen full of HAL_GPIO_WritePin and __HAL_TIM_SET_COUNTER, and you feel the pain:
- Deep Coupling: Business logic is tangled with vendor HALs like spaghetti.
- Migration Nightmare: Changing chips means rewriting half of your project.
- Zero Reusability: That PID algorithm you wrote last year? Good luck digging it out.
This is why UniQ (Universal Qi) was born.
UniQ is a deeply decoupled embedded functional library initiated and maintained by Li Jiaqi.
Using advanced Dependency Injection and Interface-Oriented Programming, UniQ completely "tears apart" business logic from hardware. Whether you use HAL, LL, or direct register access, UniQ runs flawlessly across different chips through a minimal adapter layer.
- Total Decoupling: No
stm32xxx.hor vendor-specific types in the source code. - All-in-One: Built-in sensor drivers, universal delay libraries, smooth filtering algorithms, and more.
- Ultra-Lightweight: Written in pure C, no OS required, built for speed and stability.
- Porting in Seconds: Just fill in a few function pointers, and your new chip is ready to go!
Here is how you implement cross-platform delay using UniQ's universal interface:
This project is licensed under GPL v3.
- Personal / Educational / Open Source: Fully FREE! Just keep your project open-source as per GPL terms.
- Closed-source / Commercial:
- If you don't want to open-source your code or want to use UniQ in a money-making product:
- Commercial Waiver: A simple "Coffee Sponsorship" ($5 USD) unlocks the commercial achievement!
Check the LICENSE for details.
If UniQ saved your day, consider supporting Jiaqi's hard work!
(Note: Please include "UniQ Commercial Use + Your Email" in the payment note for record-keeping.)
Made with ❤️ by Li Jiaqi (李家琦).
"Hard work pays off, and time never betrays the dedicated."