-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
An FCB generated from this package could launch a program on a MIMXRT1040EVK.
- Loading branch information
Showing
8 changed files
with
52 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
//! Tests specific to 1040 family. | ||
#![cfg(feature = "imxrt1040")] | ||
|
||
#[test] | ||
fn serial_clock_frequency() { | ||
use imxrt_boot_gen::flexspi::SerialClockFrequency; | ||
|
||
assert_eq!(SerialClockFrequency::MHz30 as u32, 1); | ||
assert_eq!(SerialClockFrequency::MHz50 as u32, 2); | ||
assert_eq!(SerialClockFrequency::MHz60 as u32, 3); | ||
assert_eq!(SerialClockFrequency::MHz75 as u32, 4); | ||
assert_eq!(SerialClockFrequency::MHz80 as u32, 5); | ||
assert_eq!(SerialClockFrequency::MHz100 as u32, 6); | ||
assert_eq!(SerialClockFrequency::MHz120 as u32, 7); | ||
assert_eq!(SerialClockFrequency::MHz133 as u32, 8); | ||
assert_eq!(SerialClockFrequency::MHz166 as u32, 9); | ||
} | ||
|
||
#[test] | ||
fn ip_serial_clock_frequency() { | ||
use imxrt_boot_gen::serial_flash::nor::SerialClockFrequency; | ||
|
||
assert_eq!(SerialClockFrequency::NoChange as u32, 0); | ||
|
||
assert_eq!(SerialClockFrequency::MHz30 as u32, 1); | ||
assert_eq!(SerialClockFrequency::MHz50 as u32, 2); | ||
assert_eq!(SerialClockFrequency::MHz60 as u32, 3); | ||
assert_eq!(SerialClockFrequency::MHz75 as u32, 4); | ||
assert_eq!(SerialClockFrequency::MHz80 as u32, 5); | ||
assert_eq!(SerialClockFrequency::MHz100 as u32, 6); | ||
assert_eq!(SerialClockFrequency::MHz120 as u32, 7); | ||
assert_eq!(SerialClockFrequency::MHz133 as u32, 8); | ||
assert_eq!(SerialClockFrequency::MHz166 as u32, 9); | ||
} |