|
3 | 3 | categories = ["embedded", "hardware-support", "no-std"] |
4 | 4 | description = "Peripheral access API for STM32C0 series microcontrollers" |
5 | 5 | documentation = "https://docs.rs/stm32c0xx-hal" |
6 | | -edition = "2018" |
| 6 | +edition = "2021" |
7 | 7 | keywords = ["arm", "cortex-m", "stm32c0xx", "hal"] |
8 | 8 | license = "MIT/Apache-2.0" |
9 | 9 | name = "stm32c0xx-hal" |
10 | 10 | readme = "README.md" |
11 | 11 | repository = "https://github.com/stm32-rs/stm32c0xx-hal" |
12 | 12 | version = "0.0.0" |
| 13 | +rust-version = "1.65" |
13 | 14 |
|
14 | 15 | [package.metadata.docs.rs] |
15 | 16 | features = ["stm32c031", "rt"] |
@@ -46,8 +47,20 @@ panic-semihosting = "0.5.6" |
46 | 47 | default = ["i2c-blocking"] |
47 | 48 | device-selected = [] |
48 | 49 | 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 = [] |
51 | 64 |
|
52 | 65 | i2c-blocking = [] |
53 | 66 | i2c-nonblocking = [] |
|
0 commit comments