Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove NVIC, SCB from the 1176 #50

Merged
merged 1 commit into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

## [Unreleased]

**BREAKING** Remove the NVIC and SCB peripherals from the 1176. If you need an
API for Cortex-M registers, check out the
[`cortex-m`][https://crates.io/crates/cortex-m] crate.

**BREAKING** The 1176 GPU2D interrupt is marked as reserved, and it's not
available in the `Interrupt` enum.

**BREAKING** In the 1176 API, there is only one SAI module. All SAI instances,
including those that only have a single channel, now appear to support multiple
channels. The user is responsible for making sure their SAI instance can
Expand Down
18 changes: 18 additions & 0 deletions devices/imxrt1176_cm4.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ _delete:
- USB_OTG2
- USBNC_OTG2

# Do you need these? Check out the cortex-m crate (v0.7).
- NVIC
- SystemControl

_modify:
_peripherals:
CM7_GPIO2:
Expand Down Expand Up @@ -193,3 +197,17 @@ PWM?:
bitOffset: 2
bitWidth: 1
access: read-write

MCM:
_add:
_interrupts:
CORE:
description: CORE
value: 19

GPC_STBY_CTRL:
_add:
_interrupts:
GPC:
description: GPC
value: 117
24 changes: 24 additions & 0 deletions devices/imxrt1176_cm7.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ _delete:
- USB_OTG2
- USBNC_OTG2

# Do you need these? Check out the cortex-m crate (v0.7).
- NVIC
- SystemControl

_include:
- "common_patches/dma0/tcd_cluster.yaml"
- "common_patches/usb1.yaml"
Expand Down Expand Up @@ -133,3 +137,23 @@ PWM?:
bitOffset: 2
bitWidth: 1
access: read-write

CM7_MCM:
_add:
_interrupts:
CTI_TRIGGER_OUT0:
description: CTI_TRIGGER_OUT0
value: 17
CTI_TRIGGER_OUT1:
description: CTI_TRIGGER_OUT1
value: 18
CORE:
description: CORE
value: 19

GPC_STBY_CTRL:
_add:
_interrupts:
GPC:
description: GPC
value: 117
Loading
Loading