me8100_test_int/test.c
changeset 11 a60ff25672a0
parent 4 a90b94337569
child 12 67e56b4bce81
equal deleted inserted replaced
10:b560de13b236 11:a60ff25672a0
    50 
    50 
    51   unsigned char icsr;
    51   unsigned char icsr;
    52 
    52 
    53   printf("IRQ Test %d\n", getpid());
    53   printf("IRQ Test %d\n", getpid());
    54 
    54 
    55   file_handle = open("/dev/me8100_0", O_RDWR, 0);
    55   file_handle = open("/dev/me8100_0a", O_RDONLY, 0);
    56 
    56 
    57   if(file_handle < 0){
    57   if(file_handle < 0){
    58     printf("Cannot open path !\n");
    58     perror("Can't open path");
    59     return 1;
    59     return 1;
    60   }
    60   }
    61 
    61 
    62   /*---------------------- general setup ------------------------------------*/
    62   /*---------------------- general setup ------------------------------------*/
    63 
    63