fpga config: fix unwrap bug

This commit is contained in:
occheung 2020-09-17 11:48:32 +08:00
parent e994000df1
commit f77013c290
2 changed files with 2 additions and 1 deletions

View File

@ -79,7 +79,7 @@ fn main() -> ! {
// Pre-load the configuration bytes // Pre-load the configuration bytes
let config_data = include_bytes!("../build/top.bin"); let config_data = include_bytes!("../build/top.bin");
flash_ice40_fpga(fpga_cfg_spi, fpga_ss, fpga_creset, fpga_cdone, delay, config_data)?; flash_ice40_fpga(fpga_cfg_spi, fpga_ss, fpga_creset, fpga_cdone, delay, config_data).unwrap();
loop { loop {
nop(); nop();

View File

@ -13,6 +13,7 @@ use nb::block;
use log::{warn, debug}; use log::{warn, debug};
#[derive(Debug)]
pub enum FPGAFlashError { pub enum FPGAFlashError {
SPICommunicationError, SPICommunicationError,
NegotiationError, NegotiationError,