aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/host.rs20
-rw-r--r--src/target.rs4
2 files changed, 12 insertions, 12 deletions
diff --git a/src/host.rs b/src/host.rs
index 902208a..18b9b62 100644
--- a/src/host.rs
+++ b/src/host.rs
@@ -796,16 +796,16 @@ impl Family {
/// any hard-coded values.
const fn id(self) -> u32 {
match self {
- Family::Imxrt1010 => 1010,
- Family::Imxrt1015 => 1015,
- Family::Imxrt1020 => 1020,
- Family::Imxrt1040 => 1040,
- Family::Imxrt1050 => 1050,
- Family::Imxrt1060 => 1060,
- Family::Imxrt1064 => 1064,
- Family::Imxrt1160 => 1160,
- Family::Imxrt1170 => 1170,
- Family::Imxrt1180 => 1180,
+ Family::Imxrt1010 => 0x1010,
+ Family::Imxrt1015 => 0x1015,
+ Family::Imxrt1020 => 0x1020,
+ Family::Imxrt1040 => 0x1040,
+ Family::Imxrt1050 => 0x1050,
+ Family::Imxrt1060 => 0x1060,
+ Family::Imxrt1064 => 0x1064,
+ Family::Imxrt1160 => 0x1160,
+ Family::Imxrt1170 => 0x1170,
+ Family::Imxrt1180 => 0x1180,
}
}
/// How many FlexRAM banks are available?
diff --git a/src/target.rs b/src/target.rs
index 81cbed0..90b89c3 100644
--- a/src/target.rs
+++ b/src/target.rs
@@ -41,10 +41,10 @@ global_asm! {r#"
__pre_init:
ldr r0, =__imxrt_rt_v0.2 @ Need to know which chip family we're initializing.
- ldr r1, =1180
+ ldr r1, =0x1180
cmp r0, r1 @ Is this an 1180?
beq 1180f
- ldr r1, =1100
+ ldr r1, =0x1100
cmp r0, r1 @ Is this an 1160 or 1170?
# Disable RTWODOG3.