Skip to content

Conversation

dtwood
Copy link
Collaborator

@dtwood dtwood commented Jul 19, 2020

This adds a downgrade() method to the semi-abstracted GPIOs, to allow them to be downgraded to be generic over all GPIO ports.

@dtwood dtwood requested a review from thejpster July 19, 2020 19:51
]);

macro_rules! get_field {
($j:expr, $field:ident) => {
Copy link
Member

Choose a reason for hiding this comment

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

What's the field parameter for?

#[macro_export]
macro_rules! gpio_macro {
($chip_crate:ident, $GPIOX:ident, $gpiox:ident, $iopd:ident, $PXx:ident, [
($chip_crate:ident, $GPIOX:ident, $gpiox:ident, $iopd:ident, $PXx:ident, $j:expr, [
Copy link
Member

Choose a reason for hiding this comment

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

What's the $j parameter for?

() => {
/// Fully erased pin
pub struct Pxx<MODE> {
i: u8,
Copy link
Member

Choose a reason for hiding this comment

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

Maybe s/i/pin/ and s/j/port/?

@thejpster
Copy link
Member

Paging @dtwood :)

@thejpster
Copy link
Member

(and I totally understand GitHub notifications getting lost - I had so many I just turned them all off)

@thejpster
Copy link
Member

Paging @dtwood

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants