Skip to content

Commit

Permalink
Merge branch 'esp-rs:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
Are10 authored Jun 3, 2024
2 parents 8b0bde3 + ce5833b commit 47cd8ab
Show file tree
Hide file tree
Showing 3 changed files with 63 additions and 16 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
on:
pull_request:
branches:
- main
push:
workflow_dispatch:

name: CI

env:
CARGO_TERM_COLOR: always

jobs:
check-xtensa:
name: Check the examples
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: esp-rs/[email protected]
with:
default: true
ldproxy: false
- uses: Swatinem/rust-cache@v1
- uses: actions-rs/cargo@v1
with:
command: check
args: --examples --target=xtensa-esp8266-none-elf -Zbuild-std=core
4 changes: 4 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"editor.formatOnSave": true,
"rust-analyzer.checkOnSave.allTargets": false,
}
48 changes: 32 additions & 16 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,39 +1,55 @@
[package]
name = "esp8266-hal"
name = "esp8266-hal"
version = "0.5.0"
authors = ["Robin Appelman <[email protected]>"]
edition = "2021"
license = "MIT OR Apache-2.0"
description = "An experimental hardware abstraction layer for the esp8266"
repository = "https://github.com/esp-rs/esp8266-hal"
authors = [
"Robin Appelman <[email protected]>",
"Jesse Braham <[email protected]>",
]
edition = "2021"
description = "HAL for ESP8266 microcontrollers"
repository = "https://github.com/esp-rs/esp8266-hal"
license = "MIT OR Apache-2.0"

keywords = [
"embedded",
"embedded-hal",
"esp",
"esp8266",
"no-std",
]
categories = [
"embedded",
"hardware-support",
"no-std",
]

[dependencies]
embedded-hal = { version = "0.2", features = ["unproven"] }
esp8266 = "0.5"
nb = "1.0"
paste = { version = "1.0", optional = true }
void = { version = "1.0", default-features = false }
xtensa-lx = "0.6"
xtensa-lx-rt = { version = "0.9", optional = true, features = ["esp8266"] }
esp8266 = "0.6"
nb = "1.0"
paste = { version = "1.0", optional = true }
void = { version = "1.0", default-features = false }
xtensa-lx = { version = "0.7", features = ["esp8266"] }
xtensa-lx-rt = { version = "0.11", features = ["esp8266"], optional = true }

[dependencies.esp8266-hal-proc-macros]
path = "procmacros"
path = "procmacros"
version = "=0.1"

[dev-dependencies]
panic-halt = "0.2"

[features]
default = ["interrupt", "rt"]
default = ["interrupt", "rt"]
interrupt = ["paste"]
rt = ["xtensa-lx-rt"]
rt = ["xtensa-lx-rt"]

# Place program completely in RAM (needed when e.g. using only ROM bootloader,
# or for debugging).
all_in_ram = []

[profile.dev]
lto = true
lto = true
opt-level = 1

# Workaround for linker errors when using lto with the dev profile:
Expand Down

0 comments on commit 47cd8ab

Please sign in to comment.