Skip to content

board fysetc_f6_13 pins_arduino.h out of date #346

@ellensp

Description

@ellensp

Fysetc has an updated pins_arduino.h file https://github.com/FYSETC/FYSETC-F6/blob/master/pins_arduino.h

But the one that you get when you request

board = fysetc_f6_13

Is a older version that is missing the definitions for change interrupt capable pins 72,75,76 and 77

a small eg, Part of the provided pins_arduino.h

// A majority of the pins are NOT PCINTs, SO BE WARNED (i.e. you cannot use them as receive pins)
// Only pins available for RECEIVE (TRANSMIT can be on any pin):
// (I've deliberately left out pin mapping to the Hardware USARTs - seems senseless to me)
// Pins: 10, 11, 12, 13,  50, 51, 52, 53,  62, 63, 64, 65, 66, 67, 68, 69 ,73
#define digitalPinToPCICR(p)    ( (((p) >= 10) && ((p) <= 13)) || \
                                  (((p) >= 50) && ((p) <= 53)) || \
                                  (((p) >= 62) && ((p) <= 69)) || \
                                  ((p) == 73) ? (&PCICR) : ((uint8_t *)0) )

While the updated pins_arduino.h has the additional pins 72,75,76 and 77 (even if the comment hasn't been updated)

// A majority of the pins are NOT PCINTs, SO BE WARNED (i.e. you cannot use them as receive pins)
// Only pins available for RECEIVE (TRANSMIT can be on any pin):
// (I've deliberately left out pin mapping to the Hardware USARTs - seems senseless to me)
// Pins: 10, 11, 12, 13,  50, 51, 52, 53,  62, 63, 64, 65, 66, 67, 68, 69 ,73							  
#define digitalPinToPCICR(p)    ( (((p) >= 10) && ((p) <= 13)) || \
                                  (((p) >= 50) && ((p) <= 53)) || \
                                  (((p) >= 62) && ((p) <= 69)) || \
                                  (((p) == 72) || ((p) == 73)) || \
                                  (((p) == 75) || ((p) == 76)) || \
                                  ((p) == 77) ? (&PCICR) : ((uint8_t *)0) )

Without this software serial using the RX pins 72,75,76 and 77 will not work.

More information can be found FYSETC/FYSETC-F6#3 (comment)

So how do we go about updating board = fysetc_f6_13 to use latest FYSETC-F6/pins_arduino.h ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions