File tree Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Expand file tree Collapse file tree 2 files changed +18
-8
lines changed Original file line number Diff line number Diff line change @@ -400,7 +400,7 @@ pub static FLASH_CONFIG: HalFlashConfig = HalFlashConfig::new(SpiFlashCfgType {
400
400
time_e_sector : 300 ,
401
401
time_e_32k : 1200 ,
402
402
time_e_64k : 1200 ,
403
- time_ce : 30000 ,
403
+ time_ce : 33000 ,
404
404
time_page_pgm : 50 ,
405
405
pd_delay : 20 ,
406
406
qe_data : 0 ,
@@ -511,14 +511,14 @@ mod tests {
511
511
time_e_sector : 300 ,
512
512
time_e_32k : 1200 ,
513
513
time_e_64k : 1200 ,
514
- time_ce : 30000 ,
514
+ time_ce : 33000 ,
515
515
time_page_pgm : 50 ,
516
516
pd_delay : 20 ,
517
517
qe_data : 0 ,
518
518
} ;
519
519
let test_config = HalFlashConfig :: new ( test_spi_flash_config) ;
520
520
assert_eq ! ( test_config. magic, 0x47464346 ) ;
521
- assert_eq ! ( test_config. crc32, 0x18c5feb5 ) ;
521
+ assert_eq ! ( test_config. crc32, 0x482adef8 ) ;
522
522
}
523
523
524
524
#[ test]
Original file line number Diff line number Diff line change @@ -563,7 +563,7 @@ pub static CLOCK_CONFIG: HalPllConfig = HalPllConfig::new(HalSysClkConfig {
563
563
564
564
dsp_bclk_div : 0x01 ,
565
565
dsp_pbclk : 0x02 ,
566
- dsp_pbclk_div : 0x02 ,
566
+ dsp_pbclk_div : 0x00 ,
567
567
emi_clk : 0x02 ,
568
568
569
569
emi_clk_div : 0x01 ,
@@ -627,7 +627,17 @@ pub static CPU_CONFIG: [HalCpuCfg; 3] = [
627
627
msp_val : 0 ,
628
628
} ,
629
629
#[ cfg( not( feature = "bl808-lp" ) ) ]
630
- HalCpuCfg :: disabled ( ) ,
630
+ HalCpuCfg {
631
+ config_enable : 0 ,
632
+ halt_cpu : 0 ,
633
+ cache_flags : 0 ,
634
+ _rsvd : 0 ,
635
+ cache_range_h : 1476722688 ,
636
+ cache_range_l : 1476657152 ,
637
+ image_address_offset : 0x42000 ,
638
+ boot_entry : 0x58040000 ,
639
+ msp_val : 0 ,
640
+ } ,
631
641
] ;
632
642
633
643
/// Code patches on flash reading.
@@ -799,7 +809,7 @@ impl HalCpuCfg {
799
809
cache_range_h : 0 ,
800
810
cache_range_l : 0 ,
801
811
image_address_offset : 0 ,
802
- boot_entry : 0x0 ,
812
+ boot_entry : 0x58000000 ,
803
813
msp_val : 0 ,
804
814
}
805
815
}
@@ -1013,7 +1023,7 @@ mod tests {
1013
1023
#[ test]
1014
1024
fn magic_crc32_hal_pll_config ( ) {
1015
1025
let test_sys_clk_config = HalSysClkConfig {
1016
- xtal_type : 4 ,
1026
+ xtal_type : 7 ,
1017
1027
mcu_clk : 4 ,
1018
1028
mcu_clk_div : 0 ,
1019
1029
mcu_bclk_div : 0 ,
@@ -1036,6 +1046,6 @@ mod tests {
1036
1046
} ;
1037
1047
let test_config = HalPllConfig :: new ( test_sys_clk_config) ;
1038
1048
assert_eq ! ( test_config. magic, 0x47464350 ) ;
1039
- assert_eq ! ( test_config. crc32, 0x29e2c4c0 ) ;
1049
+ assert_eq ! ( test_config. crc32, 0x864b890a ) ;
1040
1050
}
1041
1051
}
You can’t perform that action at this time.
0 commit comments