|
@@ -57,7 +57,7 @@ public:
|
57
|
57
|
auto sd2card = diskIODriver();
|
58
|
58
|
// single block
|
59
|
59
|
if (blkLen == 1) {
|
60
|
|
- watchdog_refresh();
|
|
60
|
+ hal.watchdog_refresh();
|
61
|
61
|
sd2card->writeBlock(blkAddr, pBuf);
|
62
|
62
|
return true;
|
63
|
63
|
}
|
|
@@ -65,7 +65,7 @@ public:
|
65
|
65
|
// multi block optimization
|
66
|
66
|
sd2card->writeStart(blkAddr, blkLen);
|
67
|
67
|
while (blkLen--) {
|
68
|
|
- watchdog_refresh();
|
|
68
|
+ hal.watchdog_refresh();
|
69
|
69
|
sd2card->writeData(pBuf);
|
70
|
70
|
pBuf += BLOCK_SIZE;
|
71
|
71
|
}
|
|
@@ -77,7 +77,7 @@ public:
|
77
|
77
|
auto sd2card = diskIODriver();
|
78
|
78
|
// single block
|
79
|
79
|
if (blkLen == 1) {
|
80
|
|
- watchdog_refresh();
|
|
80
|
+ hal.watchdog_refresh();
|
81
|
81
|
sd2card->readBlock(blkAddr, pBuf);
|
82
|
82
|
return true;
|
83
|
83
|
}
|
|
@@ -85,7 +85,7 @@ public:
|
85
|
85
|
// multi block optimization
|
86
|
86
|
sd2card->readStart(blkAddr);
|
87
|
87
|
while (blkLen--) {
|
88
|
|
- watchdog_refresh();
|
|
88
|
+ hal.watchdog_refresh();
|
89
|
89
|
sd2card->readData(pBuf);
|
90
|
90
|
pBuf += BLOCK_SIZE;
|
91
|
91
|
}
|