Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feather 32u4 RFM support #297

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

calvin-laurenson
Copy link

Based off of #224. It should work with the RFM69 and RFM9x variants. I successfully got blinky to run on my RFM69 variant. I can't figure out how to get serial logging to work so someone else might want to give that a shot. Next I want to add ravedude support but since that requires serial logging support I might just work on adding more examples first.

@calvin-laurenson
Copy link
Author

Now that I think about it maybe "lora" is a better identifier than "rfm". I only chose "rfm" because that's whats in the product name

Copy link
Owner

@Rahix Rahix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, thanks a lot for the PR and sorry for only getting to it now. The changes look mostly good but of course I don't have hardware to test them. I've left a few comments below.

Re. ravedude integration: I'd handle this like the Arduino Leonardo. You can just copy what we did for that board and it should be fine. It's okay when no serial console is available, ravedude can also only do the flashing without opening a console session. That said, I'm fine with merging this without ravedude integration for the time being. This is something we can get back to later.

arduino-hal/src/port/feather_32u4_rfm.rs Outdated Show resolved Hide resolved
arduino-hal/src/port/feather_32u4_rfm.rs Outdated Show resolved Hide resolved
arduino-hal/src/port/mod.rs Outdated Show resolved Hide resolved
examples/feather-32u4-rfm/README.md Outdated Show resolved Hide resolved
Comment on lines +126 to +148
/// `D8`
/// For radio module
///
/// * PCINT4
/// * CS
/// * ADC11
pub d8: atmega_hal::port::PB4 = pb4,

/// `D7`
/// For radio module
///
/// * INT6
/// * IRQ
/// * AIN0
pub d7: atmega_hal::port::PE6 = pe6,

/// `D4`
/// For radio module
///
/// * ICP1
/// * RST
/// * ADC8
pub d4: atmega_hal::port::PD4 = pd4,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You mention For radio module in these pins' documentation. Maybe we can give the pins more descriptive names about their function on the board?

@Rahix Rahix added the mcu-support Support for a new Microcontroller label Oct 8, 2022
calvin-laurenson and others added 3 commits October 26, 2022 10:09
Co-authored-by: Rahix <rahix@rahix.de>
Co-authored-by: Rahix <rahix@rahix.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mcu-support Support for a new Microcontroller
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants