A lite firmware library for STC8G/STC8H series MCU
Go to file
2022-01-07 19:07:58 +08:00
demo opt: nrf24l01 demo optimization 2022-01-06 00:27:45 +08:00
include fix: pdata macro 2022-01-06 07:59:31 +08:00
src opt: add adc polling methods 2022-01-06 00:39:49 +08:00
.gitignore frist commit 2021-12-30 01:05:13 +08:00
library.json frist commit 2021-12-30 01:05:13 +08:00
LICENSE docs: add apache-2.0 license 2021-12-30 01:16:02 +08:00
README.cn.md docs: add readme 2022-01-07 19:07:58 +08:00
README.md docs: add readme 2022-01-07 19:07:58 +08:00

About

FwLib_STC8 is a lite firmware library for STC8G/STC8H series MCU.

Features

  • Compatible with SDCC and Keil C51
  • Optimized for constrained 8-bit MCU resources
  • Readable code for on-chip resources operation
  • Demos for quick start

PlatformIO Quick Start

  1. Clone this repository to local file system
# GitHub
git clone https://github.com/IOsetting/FwLib_STC8.git FwLib_STC8
# or Giteee (for Chinese users)
git clone https://gitee.com/iosetting/fw-lib_-stc8.git FwLib_STC8
  1. Copy(or move) it to your PlatformIO project library, the file structure
├── include
├── lib
│   └── FwLib_STC8
│       ├── demo
│       ├── include
│       └── src
├── src
└── test
  1. Include fw_hal.h in your code
#include "fw_hal.h"

then it's ready to use.

  1. For more detailed usage, please check the code in demos

Keil C51 Quick Start

  1. Clone this repository to local file system
# GitHub
git clone https://github.com/IOsetting/FwLib_STC8.git FwLib_STC8
# or Giteee (for Chinese users)
git clone https://gitee.com/iosetting/fw-lib_-stc8.git FwLib_STC8
  1. Copy(or move) it to your Keil C51 project directory,
  2. Add it to project through Project -> Manage -> Project Items,
  3. Include fw_hal.h in your code
#include "fw_hal.h"

then it's ready to use.

License

Copyright (c) 2021-present IOsetting iosetting@outlook.com

The FwLib_STC8 is licensed under the permissive Apache 2.0 license, you can use it in both commercial and personal projects with confidence.