| Previous | 15994 Revisions | Next |
| r13764 Wednesday 28th December, 2011 at 14:25:42 UTC by Tim Schuerewegen |
|---|
| s3c24xx: trigger ADC interrupt when A/D conversion ends (nw) |
| [src/emu/machine] | s3c2440.h s3c24xx.c |
| r13763 | r13764 | |
|---|---|---|
| 456 | 456 | #define S3C24XX_SUBINT_WDT 13 |
| 457 | 457 | #define S3C24XX_SUBINT_CAM_P 12 |
| 458 | 458 | #define S3C24XX_SUBINT_CAM_C 11 |
| 459 | #define S3C24XX_SUBINT_ADC | |
| 459 | #define S3C24XX_SUBINT_ADC 10 | |
| 460 | 460 | #define S3C24XX_SUBINT_TC 9 |
| 461 | 461 | #define S3C24XX_SUBINT_ERR2 8 |
| 462 | 462 | #define S3C24XX_SUBINT_TXD2 7 |
| r13763 | r13764 | |
|---|---|---|
| 2983 | 2983 | verboselog( device->machine(), 1, "ADC start\n"); |
| 2984 | 2984 | s3c24xx->adc.regs.adccon &= ~(1 << 0); // A/D conversion is completed |
| 2985 | 2985 | s3c24xx->adc.regs.adccon |= (1 << 15); // End of A/D conversion |
| 2986 | #if defined(DEVICE_S3C2410) || defined(DEVICE_S3C2440) | |
| 2987 | s3c24xx_request_subirq( device, S3C24XX_SUBINT_ADC); | |
| 2988 | #endif | |
| 2986 | 2989 | } |
| 2987 | 2990 | |
| 2988 | 2991 | static WRITE32_DEVICE_HANDLER( s3c24xx_adc_w ) |
| Previous | 15994 Revisions | Next |