File tree Expand file tree Collapse file tree 1 file changed +0
-10
lines changed
megaavr/libraries/USERSIG/src Expand file tree Collapse file tree 1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -200,12 +200,8 @@ int8_t __USigload() {
200
200
}
201
201
for (byte i = 0 ; i < USER_SIGNATURES_SIZE; i++) {
202
202
__USigBuffer[i] = *((volatile uint8_t *) USER_SIGNATURES_START + i);
203
-
204
- GPIOR1 |= 8 ;
205
203
}
206
-
207
204
__USigLoaded = 1 ;
208
- GPIOR1 |= 16 ;
209
205
return 0 ;
210
206
}
211
207
uint8_t __USigread (uint8_t idx) {
@@ -222,25 +218,19 @@ uint8_t __USigreadraw(uint8_t idx) {
222
218
223
219
int8_t __USigwrite (uint8_t idx, uint8_t data) {
224
220
if (NVMCTRL.STATUS & 0x70 ) {
225
- GPIOR1 |= 32 ;
226
221
NVMCTRL.STATUS = 0 ;
227
222
}
228
223
if (CPUINT.STATUS != 0 ) {
229
224
return -16 ;
230
225
}
231
226
idx &= (USER_SIGNATURES_SIZE - 1 );
232
227
if (!__USigLoaded) {
233
- GPIOR1 |= 1 ;
234
228
if ((__USigreadraw (idx) & data) != data) {
235
- GPIOR1 |= 2 ;
236
229
__USigload ();
237
230
} else {
238
- GPIOR1 |= 4 ;
239
231
return __USigwriteraw (idx, data);
240
232
}
241
233
}
242
- GPIOR2 = idx;
243
- GPIOR1 |= 128 ;
244
234
__USigBuffer[idx] = data;
245
235
return 0 ;
246
236
}
You can’t perform that action at this time.
0 commit comments