Skip to content

Commit

Permalink
[stm32] Do not enable FDCAN driver on STM32G0
Browse files Browse the repository at this point in the history
FDCAN on STM32G0 is currently not supported due to the shared interrupt
handler.
  • Loading branch information
chris-durand committed Jun 7, 2023
1 parent a28177d commit 76d2d49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ Please [discover modm's peripheral drivers for your specific device][discover].
<td align="center">✅</td>
<td align="center">✅</td>
<td align="center">✅</td>
<td align="center"></td>
<td align="center"></td>
<td align="center">✅</td>
<td align="center">○</td>
<td align="center">✕</td>
Expand Down
5 changes: 5 additions & 0 deletions src/modm/platform/can/stm32-fdcan/module.lb
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ def prepare(module, options):
if not device.has_driver("fdcan:stm32"):
return False

# STM32G0 devices are currently unsupported due to shared interrupt handler
# TODO: fix driver
if device.identifier.family == "g0":
return False

module.depends(
":architecture:assert",
":architecture:atomic",
Expand Down

0 comments on commit 76d2d49

Please sign in to comment.