优化cons性能

This commit is contained in:
zhangzheng
2024-11-12 23:17:01 +08:00
parent 2f1ed5ae88
commit fb5de6c4f4
15 changed files with 79 additions and 25 deletions

View File

@@ -75,11 +75,11 @@ int main(int argc, char *argv[])
while (1)
{
val = 1;
delay_ms(500);
// delay_ms(500);
lseek(fd, 12, SEEK_SET);
write(fd, &val, 1);
val = 0;
delay_ms(500);
// delay_ms(500);
lseek(fd, 12, SEEK_SET);
write(fd, &val, 1);
}