1.8.18.4 1.25.18.4 1.26.16.4 1.28.21.4 1.34.17.4 1.35.12.4 1.36.15.4 1.41.18.4 1.42.16.4 RTT_Disable Function

C

void RTT_Disable( struct tm *time )

Summary

Disables the real Time Timer

Description

This API is used to stop the real time timer.

Precondition

RTT should be running.

Parameters

None.

Returns

None.

Example

void My_callback(uintptr_t context)
{
    //Interrupt recieved stop RTT
    RTT_Disable();
}
int main(void)
{
    RTT_Initialize();
    
    //Enable callback for the periodic interrupt
    RTT_CallbackRegister(My_callback, NULL);
    
    //start RTT
    RTT_Enable();
}