Commit a1a617bcde41ad8585289858e1d47dd182f7e2f1
1 parent
002c4ac8
Changed PIO messages
Showing
2 changed files
with
11 additions
and
3 deletions
hw/at91_pio.c
| ... | ... | @@ -220,7 +220,11 @@ static void at91_pio_mem_write(void *opaque, target_phys_addr_t offset, |
| 220 | 220 | qemu_set_irq(s->out[i], 1); |
| 221 | 221 | if(prev != s->odsr) |
| 222 | 222 | { |
| 223 | - printf("Port %c%d set\n",'A' + s->portid, i); | |
| 223 | + DPRINTF("Port %c%d set\n",'A' + s->portid, i); | |
| 224 | + if ((s->portid == 1) && (i == 8)) | |
| 225 | + printf("LED1 off\n"); | |
| 226 | + if ((s->portid == 2) && (i == 29)) | |
| 227 | + printf("LED2 off\n"); | |
| 224 | 228 | } |
| 225 | 229 | } |
| 226 | 230 | break; |
| ... | ... | @@ -233,7 +237,11 @@ static void at91_pio_mem_write(void *opaque, target_phys_addr_t offset, |
| 233 | 237 | qemu_set_irq(s->out[i], 0); |
| 234 | 238 | if(prev != s->odsr) |
| 235 | 239 | { |
| 236 | - printf("Port %c%d reset\n",'A' + s->portid, i); | |
| 240 | + DPRINTF("Port %c%d reset\n",'A' + s->portid, i); | |
| 241 | + if ((s->portid == 1) && (i == 8)) | |
| 242 | + printf("LED1 on\n"); | |
| 243 | + if ((s->portid == 2) && (i == 29)) | |
| 244 | + printf("LED2 on\n"); | |
| 237 | 245 | } |
| 238 | 246 | } |
| 239 | 247 | break; | ... | ... |