implement lock & fuse writing

This commit is contained in:
Olaf Rempel 2006-05-26 14:29:02 +02:00
parent cef12b5a51
commit bfd813f22d

View File

@ -351,11 +351,17 @@ int main(void)
break; break;
// Write lock bits // Write lock bits
// TODO: not implemented case 'l': {
case 'l': uint8_t val = ser_recv();
ser_recv(); spi_rxtx(0xAC);
spi_rxtx(0xE0);
spi_rxtx(0x00);
spi_rxtx(val);
_delay_ms(25);
ser_send('\r'); ser_send('\r');
break; break;
}
// Read fuse bits // Read fuse bits
case 'F': case 'F':
@ -560,11 +566,17 @@ int main(void)
} }
// Write fuse bits // Write fuse bits
// TODO: implement case 'f': {
case 'f': uint8_t val = ser_recv();
ser_recv(); spi_rxtx(0xAC);
spi_rxtx(0xA0);
spi_rxtx(0x00);
spi_rxtx(val);
_delay_ms(25);
ser_send('\r'); ser_send('\r');
break; break;
}
// Universial command // Universial command
case ':': { case ':': {