Skip to content

Commit 82ee553

Browse files
KooLruvirtual-maker
authored andcommitted
Code cleanup
1 parent f083604 commit 82ee553

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

hal/architecture/STM32/MyHwSTM32.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -47,29 +47,24 @@ bool hwInit(void)
4747

4848
void hwReadConfigBlock(void *buf, void *addr, size_t length)
4949
{
50-
//MY_SERIALDEVICE.println(F("START hwReadConfigBlock"));
5150
uint8_t *dst = static_cast<uint8_t *>(buf);
5251
int offs = reinterpret_cast<int>(addr);
5352

5453
eeprom_buffer_fill();
5554
while (length-- > 0) {
5655
*dst++ = eeprom_buffered_read_byte(offs++);
5756
}
58-
//MY_SERIALDEVICE.println(F("END hwReadConfigBlock"));
5957
}
6058

6159
void hwWriteConfigBlock(void *buf, void *addr, size_t length)
6260
{
63-
//MY_SERIALDEVICE.println(F("START hwWriteConfigBlock"));
6461
uint8_t *src = static_cast<uint8_t *>(buf);
6562
int offs = reinterpret_cast<int>(addr);
6663

6764
while (length-- > 0) {
6865
eeprom_buffered_write_byte(offs++, *src++);
6966
}
70-
//MY_SERIALDEVICE.println(F("START FLUSH"));
7167
eeprom_buffer_flush();
72-
//MY_SERIALDEVICE.println(F("END hwWriteConfigBlock"));
7368
}
7469

7570
uint8_t hwReadConfig(const int addr)
@@ -119,9 +114,9 @@ int8_t hwSleep(const uint8_t interrupt1, const uint8_t mode1, const uint8_t inte
119114

120115
bool hwUniqueID(unique_id_t *uniqueID)
121116
{
122-
//Fill ID with FF
117+
// Fill ID with FF
123118
(void)memset((uint8_t *)uniqueID, 0xFF, 16);
124-
//Read device ID
119+
// Read device ID
125120
(void)memcpy((uint8_t *)uniqueID, (uint32_t *)UID_BASE, 12);
126121

127122
return true;

0 commit comments

Comments
 (0)