Skip to content

Access peripherals from different modules #609

Answered by Rahix
keymusic asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

I think you are running into a very nasty cargo behavior that isn't obvious at all: Looking at your dependencies here:

[dependencies.avr-device]
version = "0.6.0"
features = ["atmega328p"]

[dependencies.arduino-hal]
git = "https://github.com/rahix/avr-hal"
rev = "190f2c3cb8d29e10f71119352b912369dc5a1fb7"
features = ["arduino-uno"]

While you are depending on avr-device=0.6, the version of arduino-hal you are pulling in specifies this:

[dependencies.avr-device]
version = "0.5.1"

Cargo now adds both versions of avr-device to your dependency tree to satisfy these requirements. But because avr-device is a low-…

Replies: 3 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@Rahix
Comment options

Answer selected by keymusic
@keymusic
Comment options

Comment options

You must be logged in to vote
1 reply
@keymusic
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants