Detect if I2S library should be ignored based on platform characteristics.
(self)
| 128 | self.lib_ignore.append("I2S") |
| 129 | |
| 130 | def _should_ignore_i2s_library(self) -> bool: |
| 131 | """Detect if I2S library should be ignored based on platform characteristics.""" |
| 132 | |
| 133 | # Known problematic platforms - Renesas RA family |
| 134 | if self.platform == "renesas-ra": |
| 135 | return True |
| 136 | |
| 137 | # Known problematic board names |
| 138 | problematic_boards = ["uno_r4_wifi", "uno_r4_minima"] |
| 139 | if self.board_name in problematic_boards: |
| 140 | return True |
| 141 | |
| 142 | # Check for specific defines that indicate I2S problems |
| 143 | if self.defines: |
| 144 | problematic_defines = [ |
| 145 | "ARDUINO_UNOR4_WIFI", |
| 146 | "ARDUINO_UNOR4_MINIMA", |
| 147 | "ARDUINO_ARCH_RENESAS", |
| 148 | "ARDUINO_ARCH_RENESAS_UNO", |
| 149 | "_RENESAS_RA_", |
| 150 | "ARDUINO_FSP", |
| 151 | ] |
| 152 | for define in self.defines: |
| 153 | # Check if define contains any problematic patterns |
| 154 | if any(prob_define in define for prob_define in problematic_defines): |
| 155 | return True |
| 156 | |
| 157 | return False |
| 158 | |
| 159 | def clone(self) -> "Board": |
| 160 | out = Board( |
no test coverage detected