use crate::constants::constants_system::SIZE_32KB; use crate::periph::hm62256::Hm62256; impl Default for Hm62256 { fn default() -> Self { let vec = vec![0x00; SIZE_32KB]; let boxed_slice: Box<[u8]> = vec.into_boxed_slice(); let boxed_array: Box<[u8; SIZE_32KB]> = boxed_slice.try_into().expect("Unable to box the ram"); Hm62256 { offset: 0x0000, data: boxed_array, address_bus: 0x0000, data_bus: 0x00 } } }