mirror of
https://github.com/apache/nuttx.git
synced 2026-03-27 02:29:15 +08:00
Many third-party CC1101 modules (such as those populated on the Evil Crow RF V2) feature clone silicon that hardcodes the VERSION register to 0x00 instead of the official 0x14. Previously, the cc1101_checkpart() function strictly enforced VERSION == 0x14, which caused cc1101_register() to return -ENODEV (-19) and abort initialization on these compatible modules. This commit introduces the CONFIG_WL_CC1101_IGNORE_VERSION Kconfig option. - When disabled (default), the driver maintains strict official silicon validation. This preserves the diagnostic ability to catch hardware faults, such as a MISO line shorted to GND (which also reads as 0x00). - When enabled, the driver explicitly permits VERSION == 0x00, allowing successful initialization and interoperability with clone chips while printing a warning to the syslog. Signed-off-by: Chip L. <chplee@gmail.com>