more stuff

This commit is contained in:
2025-07-05 11:49:04 -04:00
parent 2cfd570789
commit cf14804df2
10 changed files with 268 additions and 44 deletions
+5 -2
View File
@@ -1,6 +1,7 @@
mod default;
mod rom_chip;
use std::io::Read;
use crate::constants::constants_system::SIZE_32KB;
use crate::periph::rom_chip::RomChip;
@@ -15,8 +16,10 @@ pub struct At28C256 {
}
impl At28C256 {
pub fn program(&mut self, new_program: &[u8; 32768]) {
self.data= new_program.into();
pub fn program(&mut self, new_program: &[u8; SIZE_32KB]) {
// panic!("FAIL. Cant program the chip.");
// println!("PROGRAMMING {:?}", new_program);
self.data = Box::new(*new_program);
}
}