Skip to content

Commit

Permalink
Merge branch 'release/v1.0.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Aug 20, 2018
2 parents f59dd14 + b2b802d commit 81a8f17
Show file tree
Hide file tree
Showing 23 changed files with 635 additions and 347 deletions.
19 changes: 6 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,7 @@ python:
- "2.7"

env:
# - PLATFORMIO_PROJECT_DIR=examples/arduino-blink
# - PLATFORMIO_PROJECT_DIR=examples/arduino-external-libs
# - PLATFORMIO_PROJECT_DIR=examples/arduino-internal-libs
# - PLATFORMIO_PROJECT_DIR=examples/arduino-own-src_dir
# - PLATFORMIO_PROJECT_DIR=examples/digitstump-mouse
# - PLATFORMIO_PROJECT_DIR=examples/engduino-magnetometer
# - PLATFORMIO_PROJECT_DIR=examples/native-blink
# - PLATFORMIO_PROJECT_DIR=examples/simba-blink
- PLATFORMIO_PROJECT_DIR=examples/native-blink

install:
- pip install -U https://github.com/platformio/platformio/archive/develop.zip
Expand All @@ -22,8 +15,8 @@ script:
notifications:
email: false

# slack:
# rooms:
# secure: JZsFjgJTcERjMOY5NnVUOrVWK2nfnGKmDNhmblWMGGnF/OpkhgTtScuM6ZJtmI8FOjWmgLy0iV6JSMZLtiKFuaUbIKkJvGU7X1H4ctQNter179ZEPjch4taiUOAZf2Jpa5vpVbBNPsafSxnvuBhFX2iXMghnWED910G2zji8gvepDjKEHUl39pIR05Hx6rlMYd+FAI325ACjnAWX0DVLbCoWI2ho4IhBYko8pEA5Uuy9FQFSchFlI9FfYQOx60/F8zAAyLbf77X6mZj7f7Z0/Y4Y5pwW6oVHZ8/Ok1BpBaOQlI1bCJAoRM2NxQjLhg7KnWD/Mp0WtybCD5oWlZsOxieZfa8Fb5OQSNC3eIbw6EQtrez+6Ug+RsvO05//4IKatGQhSlECoBCR6ImNF5PDCa1nPbmDJ+vgE4LIS8FzgAsOfGXrtAujthnVAq6jzVJ6C/i2qBRXowmYFv7epfkP+c+evjOOtWg0OZIDbdSOPSYt2JdA42mEmH3kYF5t46m6934Im0nwVsd3MEEnmuGbPQIf1S8Fq+QOS+rB8+tF4cD626+0FJpLpZTI8oCDglABP+kdV6CG5yl/zHO2n+4POeuG8h+f/WHvUotnZY4q/5PmwpjWYl7A8qG5Qp51opc5B15aCMf1HD4aCFNFXGuQM6VNfgXMGgntu7isFe/kTUg=
# on_failure: always
# on_success: change
slack:
rooms:
secure: rj5uPo81WQHQ6o5hNkIwvptlQezVY6jjsdedqsTAPzRxDGGa3M8NdXJyPLmR2MgN7wDF0UctJC+btiedAcW1G1Szbi7YNTGPhEvUDcJAhTmDVBbNlviHO0xL77wQLXWmEZBLAIiHGGaVoE0wbCryVqCf7pHfK5q7FkgJ1t2tM2QtzBn8IZdAi05RqSuiq6rOZlevg3txUMji6kNaAu3OiqQQmQzDuTyELEi3G/nkqJ5Wze5KoY3ILxYhqCSplodptksZfE+b1o9rMgutNR0QlTORmzP2FM71TtlU9b68XB24Gc1nv49wHdhiZ/EnqAZfyDdFa4IoHPk+GleY0Nm2eCOTSdkbmMagtp8ZhZS9okHsWLhKHkJTNjGawUOHRy99jti1kEWf/Uici1rkqi4CJHbxr83cEFOjGYZYI4SQWBBKyYAB0uqAfRK6QUAQKwutjiyOSwtfzncWtVpP4bSLE2n8prt1Vhbphy8w9etyy+DjjqSgAj4Mr13k/HlaVxfm9OwU2qHtx/TkzA76tNe0af5DNsmDGl8nEV3sMmtT0SselSUkE5DWTag/RiEVM8fX/K+/gw8PnCmxiY28I9F0EisGlitUS19NbUA0nLIO/3V6E8heilzAhMxe3FYPil/0FdQQE/vT4tefofrg4fEV4l9mP3AFNB3yomGIx1h6Bfs=
on_failure: always
on_success: change
59 changes: 24 additions & 35 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,46 +1,35 @@
# platform-mcs51
MCS51: development platform for PlatformIO https://github.com/platformio/platform-mcs51/wiki
# Intel MCS-51 (8051): development platform for [PlatformIO](http://platformio.org)
[![Build Status](https://travis-ci.org/platformio/platform-intel_mcs51.svg?branch=develop)](https://travis-ci.org/platformio/platform-intel_mcs51)
[![Build status](https://ci.appveyor.com/api/projects/status/0207sb475heyoaxa/branch/develop?svg=true)](https://ci.appveyor.com/project/ivankravets/platform-intel-mcs51/branch/develop)

**This platform is EXPERIMENTAL, expect things to fail.**
The Intel MCS-51 (commonly termed 8051) is an internally Harvard architecture, complex instruction set computer (CISC) instruction set, single chip microcontroller (µC) series developed by Intel in 1980 for use in embedded systems.

# HOWTO (Setup Platform.io for MCS-51)
* [Home](http://platformio.org/platforms/intel_mcs51) (home page in PlatformIO Registry)
* [Documentation](http://docs.platformio.org/page/platforms/intel_mcs51.html) (advanced usage, packages, boards, frameworks, etc.)

You only need one magic command:
# Usage

- `$ platformio platforms install https://github.com/platformio/platform-mcs51.git`
1. [Install PlatformIO](http://platformio.org)
2. Create PlatformIO project and configure a platform option in [platformio.ini](http://docs.platformio.org/page/projectconf.html) file:

# HOWTO (Setup your MCS-51 project)
## The simple way:
## Stable version

1. PlatformIO -> Initialize or Update PlatformIO Project
2. Select Board -> Nuvoton -> n79e85x
3. Choose a directory
4. Process!
```ini
[env:stable]
platform = intel_mcs51
board = ...
...
```

## The manual way:
## Development version

1. Add your project folder
2. move your project into PlatformIO layout (that is, source codes in `/src`, and library files in `/lib`)
3. create `platformio.ini`, and put in the following content:
```
[env:n79e85x]
platform = mcs51
board = n79e85x ;
framework = naked
```ini
[env:development]
platform = https://github.com/platformio/platform-intel_mcs51.git
board = ...
...
```

## mcu support
### Nuvoton
* n79e85x
### STC
(Experimental!)
* STC15F204EA (Ram: 256, Flash: 4k)
* STC15W404AS (Ram: 256 + 256, Flash: 4k)
* STC15W408AS (Ram: 256 + 256, Flash: 8k)
# Configuration

example:
```
board = stc15w408as
upload_protocol = stcgal
upload_port = /dev/ttyUSB0
```
Please navigate to [documentation](http://docs.platformio.org/page/platforms/intel_mcs51.html).
22 changes: 22 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
build: off
environment:

matrix:
- PLATFORMIO_PROJECT_DIR: "examples/native-blink"

install:
- cmd: git submodule update --init --recursive
- cmd: SET PATH=%PATH%;C:\Python27\Scripts
- cmd: pip install -U https://github.com/platformio/platformio/archive/develop.zip
- cmd: platformio platform install file://.

test_script:
- cmd: platformio run -d %PLATFORMIO_PROJECT_DIR%

notifications:
- provider: Slack
incoming_webhook:
secure: E9H0SU0Ju7WLDvgxsV8cs3J62T3nTTX7QkEjsczN0Sto/c9hWkVfhc5gGWUkxhlD975cokHByKGJIdwYwCewqOI+7BrcT8U+nlga4Uau7J8=
on_build_success: false
on_build_failure: true
on_build_status_changed: true
13 changes: 5 additions & 8 deletions boards/n79e8432.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
{
"build": {
"core": "naked",
"extra_flags": [
"-DN79E84X", "-DN79E8432", "-DNAKED_ARCH_MCS51", "-DNAKED_MCS51_N79E84X"
],
"extra_flags": "-DN79E84X -DN79E8432 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_N79E84X",
"f_cpu": "22118400L",
"size_iram": 256,
"size_xram": 256,
"size_code": 4096,
"size_heap": 128,
"mcu": "mcs51",
"mcu": "n79e8432",
"cpu": "mcs51",
"variant": "n79e84x"
},
"frameworks": [
"naked"
],
"frameworks": [],
"upload": {
"maximum_ram_size": 512,
"maximum_size": 4096
},
"name": "n79e8432",
"name": "Generic N79E8432",
"url": "http://www.nuvoton.com/hq/products/microcontrollers/8bit-8051-mcus/low-pin-count-8051-series/n79e8432/",
"vendor": "Nuvoton"
}
13 changes: 6 additions & 7 deletions boards/n79e844.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
{
"build": {
"core": "naked",
"extra_flags": "-DN79E84X -DN79E844 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_N79E84X --iram-size 256 --xram-size 256 --code-size 8192 --stack-size 128",
"extra_flags": "-DN79E84X -DN79E844 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_N79E84X",
"f_cpu": "22118400L",
"size_iram": 256,
"size_xram": 256,
"size_code": 8192,
"mcu": "mcs51",
"mcu": "n79e844",
"cpu": "mcs51",
"variant": "n79e84x"
},
"frameworks": [
"naked"
],
"frameworks": [],
"upload": {
"maximum_ram_size": 512,
"maximum_size": 8192
},
"name": "n79e844",
"url": "www.nuvoton.com/hq/products/microcontrollers/8bit-8051-mcus/low-pin-count-8051-series/n79e844/",
"name": "Generic N79E844",
"url": "http://www.nuvoton.com/hq/products/microcontrollers/8bit-8051-mcus/low-pin-count-8051-series/n79e844/",
"vendor": "Nuvoton"
}
13 changes: 6 additions & 7 deletions boards/n79e845.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
{
"build": {
"core": "naked",
"extra_flags": "-DN79E84X -DN79E845 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_N79E84X --iram-size 256 --xram-size 256 --code-size 16384 --stack-size 128",
"extra_flags": "-DN79E84X -DN79E845 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_N79E84X",
"f_cpu": "22118400L",
"size_iram": 256,
"size_xram": 256,
"size_code": 16384,
"mcu": "mcs51",
"mcu": "n79e845",
"cpu": "mcs51",
"variant": "n79e84x"
},
"frameworks": [
"naked"
],
"frameworks": [],
"upload": {
"maximum_ram_size": 512,
"maximum_size": 16384
},
"name": "n79e845",
"url": "www.nuvoton.com/hq/products/microcontrollers/8bit-8051-mcus/low-pin-count-8051-series/n79e845/",
"name": "Generic N79E845",
"url": "http://www.nuvoton.com/hq/products/microcontrollers/8bit-8051-mcus/low-pin-count-8051-series/n79e845/",
"vendor": "Nuvoton"
}
13 changes: 6 additions & 7 deletions boards/n79e854.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
{
"build": {
"core": "naked",
"extra_flags": "-DN79E85X -DN79E854 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_N79E85X --iram-size 256 --xram-size 256 --code-size 8192 --stack-size 128",
"extra_flags": "-DN79E85X -DN79E854 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_N79E85X",
"f_cpu": "22118400L",
"size_iram": 256,
"size_xram": 256,
"size_code": 8192,
"mcu": "mcs51",
"mcu": "n79e854",
"cpu": "mcs51",
"variant": "n79e85x"
},
"frameworks": [
"naked"
],
"frameworks": [],
"upload": {
"maximum_ram_size": 512,
"maximum_size": 8192
},
"name": "n79e854",
"url": "www.nuvoton.com/hq/products/microcontrollers/8bit-8051-mcus/low-pin-count-8051-series/n79e854/",
"name": "Generic N79E854",
"url": "http://www.nuvoton.com/hq/products/microcontrollers/8bit-8051-mcus/low-pin-count-8051-series/n79e854/",
"vendor": "Nuvoton"
}
15 changes: 6 additions & 9 deletions boards/n79e855.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
{
"build": {
"core": "naked",
"extra_flags": [
"-DN79E85X", "-DN79E855", "-DNAKED_ARCH_MCS51", "-DNAKED_MCS51_N79E85X"
],
"extra_flags": "-DN79E85X -DN79E855 -DNAKED_ARCH_MCS51 -DNAKED_MCS51_N79E85X",
"f_cpu": "22118400L",
"size_iram": 256,
"size_xram": 256,
"size_code": 16384,
"size_heap": 128,
"mcu": "mcs51",
"mcu": "n79e855",
"cpu": "mcs51",
"variant": "n79e85x"
},
"frameworks": [
"naked"
],
"frameworks": [],
"upload": {
"maximum_ram_size": 512,
"maximum_size": 16384
},
"name": "n79e855",
"url": "www.nuvoton.com/hq/products/microcontrollers/8bit-8051-mcus/low-pin-count-8051-series/n79e855/",
"name": "Generic N79E855",
"url": "http://www.nuvoton.com/hq/products/microcontrollers/8bit-8051-mcus/low-pin-count-8051-series/n79e855/",
"vendor": "Nuvoton"
}
19 changes: 9 additions & 10 deletions boards/stc15f204ea.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
{
"build": {
"extra_flags": [
""
],
"f_cpu": "11059200",
"size_iram": 256,
"size_xram": 0,
"size_code": 4096,
"size_heap": 64,
"mcu": "mcs51",
"cpu": "8051",
"variant": "stc15f204ea"
"mcu": "stc15f204ea",
"cpu": "mcs51"
},
"frameworks": [
],
"frameworks": [],
"upload": {
"maximum_ram_size": 256,
"maximum_size": 4096
"maximum_size": 4096,
"protocol": "stcgal",
"protocols": [
"stcgal"
]
},
"name": "stc15f204ea",
"name": "Generic STC15F204EA",
"url": "https://www.stcmicro.com/STC/STC15F204EA.html",
"vendor": "STC"
}
19 changes: 9 additions & 10 deletions boards/stc15w404as.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
{
"build": {
"extra_flags": [
""
],
"f_cpu": "11059200",
"size_iram": 256,
"size_xram": 256,
"size_code": 4096,
"size_heap": 128,
"mcu": "mcs51",
"cpu": "8051",
"variant": "stc15w404as"
"mcu": "stc15w408as",
"cpu": "mcs51"
},
"frameworks": [
],
"frameworks": [],
"upload": {
"maximum_ram_size": 512,
"maximum_size": 4096
"maximum_size": 4096,
"protocol": "stcgal",
"protocols": [
"stcgal"
]
},
"name": "stc15w404as",
"name": "Generic STC15W408AS",
"url": "https://www.stcmicro.com/STC/STC15W408AS.html",
"vendor": "STC"
}
19 changes: 9 additions & 10 deletions boards/stc15w408as.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
{
"build": {
"extra_flags": [
""
],
"f_cpu": "11059200",
"size_iram": 256,
"size_xram": 256,
"size_code": 8192,
"size_heap": 128,
"mcu": "mcs51",
"cpu": "8051",
"variant": "stc15w408as"
"mcu": "stc15w408as",
"cpu": "mcs51"
},
"frameworks": [
],
"frameworks": [],
"upload": {
"maximum_ram_size": 512,
"maximum_size": 8192
"maximum_size": 8192,
"protocol": "stcgal",
"protocols": [
"stcgal"
]
},
"name": "stc15w408as",
"name": "Generic STC15W408AS",
"url": "https://www.stcmicro.com/STC/STC15W408AS.html",
"vendor": "STC"
}
Loading

0 comments on commit 81a8f17

Please sign in to comment.