Skip to content

Commit a1935b9

Browse files
committed
initial gpio port
1 parent fd2f2a4 commit a1935b9

File tree

12 files changed

+3010
-641
lines changed

12 files changed

+3010
-641
lines changed

Cargo.toml

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ authors = ["Vitaly Domnikov <[email protected]>"]
33
categories = ["embedded", "hardware-support", "no-std"]
44
description = "Peripheral access API for STM32C0 series microcontrollers"
55
documentation = "https://docs.rs/stm32c0xx-hal"
6-
edition = "2018"
6+
edition = "2021"
77
keywords = ["arm", "cortex-m", "stm32c0xx", "hal"]
88
license = "MIT/Apache-2.0"
99
name = "stm32c0xx-hal"
1010
readme = "README.md"
1111
repository = "https://github.com/stm32-rs/stm32c0xx-hal"
1212
version = "0.0.0"
13+
rust-version = "1.65"
1314

1415
[package.metadata.docs.rs]
1516
features = ["stm32c031", "rt"]
@@ -46,8 +47,20 @@ panic-semihosting = "0.5.6"
4647
default = ["i2c-blocking"]
4748
device-selected = []
4849
rt = ["stm32c0/rt"]
49-
stm32c011 = ["stm32c0/stm32c011", "device-selected"]
50-
stm32c031 = ["stm32c0/stm32c031", "device-selected"]
50+
stm32c011 = ["stm32c0/stm32c011", "device-selected", "gpio-c0xx"]
51+
stm32c031 = ["stm32c0/stm32c031", "device-selected", "gpio-c0xx_453"]
52+
53+
gpio-c0xx = ["gpiof"]
54+
gpio-c0xx_453 = ["gpiod", "gpiof"]
55+
#gpio-c0xx = [
56+
# "debug", "gpioa", "gpiob", "gpioc", "gpiof", "i2c1", "i2s", "i2s1", "ir", "rcc", "spi1", "tim1", "tim14", "tim16", "tim17", "tim3", "usart1", "usart2",
57+
#]
58+
#gpio-c0xx_453 = [
59+
# "debug", "gpioa", "gpiob", "gpioc", "gpiod", "gpiof", "i2c1", "i2s", "i2s1", "ir", "rcc", "spi1", "tim1", "tim14", "tim16", "tim17", "tim3", "usart1", "usart2",
60+
#]
61+
62+
gpiod = []
63+
gpiof = []
5164

5265
i2c-blocking = []
5366
i2c-nonblocking = []

0 commit comments

Comments
 (0)