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

src/emu/machine/s3c2440.h
r13763r13764
456456#define S3C24XX_SUBINT_WDT    13
457457#define S3C24XX_SUBINT_CAM_P  12
458458#define S3C24XX_SUBINT_CAM_C  11
459#define S3C24XX_SUBINT_ADC_S  10
459#define S3C24XX_SUBINT_ADC    10
460460#define S3C24XX_SUBINT_TC      9
461461#define S3C24XX_SUBINT_ERR2    8
462462#define S3C24XX_SUBINT_TXD2    7
src/emu/machine/s3c24xx.c
r13763r13764
29832983   verboselog( device->machine(), 1, "ADC start\n");
29842984   s3c24xx->adc.regs.adccon &= ~(1 << 0); // A/D conversion is completed
29852985   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
29862989}
29872990
29882991static WRITE32_DEVICE_HANDLER( s3c24xx_adc_w )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team