zdebanos opened a new pull request, #17208:
URL: https://github.com/apache/nuttx/pull/17208

   ## Summary
   
   This PR adds a new file in the samv7 arch called `sam_chipid.c`. In this 
file a new function called `sam_has_revb_periphs` can be found. This function 
returns true if the chip contains Microchip SAMV7 revB peripherals, false if 
revA.
   
   Despite the PIC32CZ2051CA70 series has only revA revision, it contains revB 
(samv7 wise) peripherals.
   
   ## Impact
   
   Allows to have one binary to be compatible with SAMV7 revA, SAMV7 revB and 
PIC32CZ2051CA70, as the peripheral configuration is done during the runtime.
   
   ## Testing
   
   Tested on both SAMV7 and PIC32CZ2051CA70. The only affected peripherals by 
the configuration logic are MCAN and EMAC. Both peripherals are working.
   
   Thanks to @ppisa and @michallenc for suggested code.
   
   Closes #17042 
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to