Platform/ECM3532/M3/hw/csp/ecm3532/m3/csp/src/eta_csp_gpio.c
/***************************************************************************/
/**
 *
 * EtaCspGpioM3TickGet - get the m3 oscillator tick count
 *
 *
 ******************************************************************************/
get the m3 oscillator tick count
get the m3 oscillator tick count
uint64_t
EtaCspGpioM3TickGet(void)
{
    uint64_t ui64WorkA;
    uint64_t ui64WorkB;
     Freeze the M3 tick count.
    REG_GPIO_M3_TICK.V = 0x4E4F;
     Grab the lower 32 bits of a tick.
    ui64WorkA = REG_GPIO_M3_TICK.V;
     Now grab the upper 4 bits and align them
    ui64WorkB = REG_GPIO_CSR.BF.M3_TICK_HI;
    ui64WorkB <<= 32;
    return(ui64WorkA + ui64WorkB);
}
uint64_t EtaCspGpioM3TickGet ( void ) { uint64_t ui64WorkA ; uint64_t ui64WorkB ; REG_GPIO_M3_TICK . V = 0x4E4F ; ui64WorkA = REG_GPIO_M3_TICK . V ; ui64WorkB = REG_GPIO_CSR . BF . M3_TICK_HI ; ui64WorkB <<= 32 ; return ( ui64WorkA + ui64WorkB ) ; }
EtaCspGpioM3TickGet - get the m3 oscillator tick count
EtaCspGpioM3TickGet - get the m3 oscillator tick count
// // Freeze the M3 tick count. // // // Grab the lower 32 bits of a tick. // // // Now grab the upper 4 bits and align them //