platform-atmelavr icon indicating copy to clipboard operation
platform-atmelavr copied to clipboard

board fysetc_f6_13 pins_arduino.h out of date

Open ellensp opened this issue 1 month ago • 1 comments

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 https://github.com/FYSETC/FYSETC-F6/issues/3#issuecomment-3478630368

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

ellensp avatar Nov 03 '25 01:11 ellensp