Samsung S5PC100 User Manual page 519

Table of Contents

Advertisement

CF CONTROLLER
3.2 INTERRUPT SERVICE ROUTINE
PCCARD MODE:-
Void interrupt_service_routine ( void ) {
//Poll for the INTSRC_ERR_N bit to be set to 0 in the PCCARD_INTMSK_SRC register
wait_for_cfc_intstat();
//Read the INTSRC_ERR_N bit of the PCCARD_INTMSK_SRC register
apbif_single_read (SEND_FROM_CFC, PCCARD_INTMSK_SRC);
//Write '1' to the INTSRC_ERR_N bit of the PCCARD_INTMSK_SRC register (this clears the interrupt)
apbif_single_write (SEND_TO_CFC, PCCARD_INTMSK_SRC, 0Xaaaa_aff4);
};
Void interrupt_service_routine ( void ) {
//Poll for the INTSRC_IREQ bit to be set to 0 in the PCCARD_INTMSK_SRC register
wait_for_cfc_intstat();
//Read the INTSRC_IREQ bit of the PCCARD_INTMSK_SRC register
apbif_single_read (SEND_FROM_CFC, PCCARD_INTMSK_SRC);
//Write '1' to the INTSRC_IREQ bit of the PCCARD_INTMSK_SRC register (this clears the interrupt)
apbif_single_write (SEND_TO_CFC, PCCARD_INTMSK_SRC, 0Xaaaa_aff2);
};
Void interrupt_service_routine ( void ) {
//Poll for the INTSRC_CD bit to be set to 0 in the PCCARD_INTMSK_SRC register
wait_for_cfc_intstat();
//Read the INTSRC_CD bit of the PCCARD_INTMSK_SRC register
apbif_single_read (SEND_FROM_CFC, PCCARD_INTMSK_SRC);
//Write '1' to the INTSRC_CD bit of the PCCARD_INTMSK_SRC register (this clears the interrupt)
apbif_single_write (SEND_TO_CFC, PCCARD_INTMSK_SRC, 0Xaaaa_aff1);
};
ATA MODE:-
Void interrupt_service_routine ( void ) {
//Poll for the sbuf_empty_int bit to be set to 0 in the ATA_IRQ register
wait_for_cfc_intstat();
//Read the sbuf_empty_int bit of the ATA_IRQ register
apbif_single_read (SEND_FROM_CFC, ATA_IRQ);
//Write '1' to the sbuf_empty_int bit of the ATA_IRQ register (this clears the interrupt)
apbif_single_write (SEND_TO_CFC, ATA_IRQ, 0Xaaaa_afe0);
};
Void interrupt_service_routine ( void ) {
//Poll for the tbuf_full_int bit to be set to 0 in the ATA_IRQ register
wait_for_cfc_intstat();
//Read the tbuf_full_int bit of the ATA_IRQ register
apbif_single_read (SEND_FROM_CFC, ATA_IRQ);
//Write '1' to the tbuf_full_int bit of the ATA_IRQ register (this clears the interrupt)
5.5-24
S5PC100 USER'S MANUAL (REV1.0)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents