#include <stdio.h>
static int x = 0 ;
#define MCU_PLL_LOCKED (5)
static int Mcu_GetPllStatus( void )
{
return x;
}
static void Mcu_DistributePllClock( void )
{
x++;
printf ( "Called Mcu_DistributePllClock\n " ) ; }
int main( void ) {
// your code goes here
int i = 0 ;
while ( Mcu_GetPllStatus( ) != MCU_PLL_LOCKED)
Mcu_DistributePllClock( ) ;
return 0 ;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgpzdGF0aWMgaW50IHggPSAwOwojZGVmaW5lIE1DVV9QTExfTE9DS0VEICg1KQpzdGF0aWMgaW50IE1jdV9HZXRQbGxTdGF0dXModm9pZCkKewoJcmV0dXJuIHg7Cn0KCnN0YXRpYyB2b2lkIE1jdV9EaXN0cmlidXRlUGxsQ2xvY2sodm9pZCkKewoJeCsrOwoJcHJpbnRmKCJDYWxsZWQgTWN1X0Rpc3RyaWJ1dGVQbGxDbG9ja1xuIik7Cn0KCmludCBtYWluKHZvaWQpIHsKCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCWludCBpID0gMDsKICAgICAgICB3aGlsZSAoTWN1X0dldFBsbFN0YXR1cygpICE9IE1DVV9QTExfTE9DS0VEKQogICAgICAgICAgICBNY3VfRGlzdHJpYnV0ZVBsbENsb2NrKCk7CiAgICBwcmludGYoIiVkIiwgaSk7CglyZXR1cm4gMDsKfQo=