mirror of
https://github.com/apache/nuttx.git
synced 2025-12-16 17:56:38 +08:00
This function can identify (during the runtime) whether the chip is revB or revA. Bear in mind PIC32CZ2051CA70 is always revB. Allows to have one binary compatible with SAMV7 and PIC32. Thanks to Pavel Pisa and Michal Lenc for the suggested code. Signed-off-by: Stepan Pressl <pressl.stepan@gmail.com>