src/cpu/arm/at91sam7/serialtoflash.c
static inline int timed_getchar(u_char *c, int ms)
{
    int target_ticks;
    target_ticks = (int)RTT_VR + 1 + (ms << 5);

    while ((DBGU_SR & RXRDY) == 0) {
        if (((int)RTT_VR - target_ticks) > 0) {
            return -1;
        }
    }
    *c = (u_char)DBGU_RHR;
    return 0;
}
// These need to be inlined so that serial_to_flash will be self-contained
// and thus position-independent and easy to copy to an arbitrary RAM address.
// ARM subroutine calls aren't position-independent.
These need to be inlined so that serial_to_flash will be self-contained
and thus position-independent and easy to copy to an arbitrary RAM address.
ARM subroutine calls aren't position-independent.
These need to be inlined so that serial_to_flash will be self - contained and thus position - independent and easy to copy to an arbitrary RAM address . ARM subroutine calls aren ' t position - independent .
static inline int timed_getchar(u_char *c, int ms)
{
    int target_ticks;
    target_ticks = (int)RTT_VR + 1 + (ms << 5);
    while ((DBGU_SR & RXRDY) == 0) {
        if (((int)RTT_VR - target_ticks) > 0) {
            return -1;
        }
    }
    *c = (u_char)DBGU_RHR;
    return 0;
}
static inline int timed_getchar ( u_char * c , int ms ) { int target_ticks ; target_ticks = ( int ) RTT_VR + 1 + ( ms << 5 ) ; while ( ( DBGU_SR & RXRDY ) == 0 ) { if ( ( ( int ) RTT_VR - target_ticks ) > 0 ) { return -1 ; } } * c = ( u_char ) DBGU_RHR ; return 0 ; }
These need to be inlined so that serial_to_flash will be self-contained
and thus position-independent and easy to copy to an arbitrary RAM address.
These need to be inlined so that serial_to_flash will be self - contained and thus position - independent and easy to copy to an arbitrary RAM address .