fork download
  1. #include <stdio.h>
  2.  
  3. static int x = 0;
  4. #define MCU_PLL_LOCKED (5)
  5. static int Mcu_GetPllStatus(void)
  6. {
  7. return x;
  8. }
  9.  
  10. static void Mcu_DistributePllClock(void)
  11. {
  12. x++;
  13. printf("Called Mcu_DistributePllClock\n");
  14. }
  15.  
  16. int main(void) {
  17. // your code goes here
  18. int i = 0;
  19. while (Mcu_GetPllStatus() != MCU_PLL_LOCKED)
  20. Mcu_DistributePllClock();
  21. printf("%d", i);
  22. return 0;
  23. }
  24.  
Success #stdin #stdout 0s 5288KB
stdin
Standard input is empty
stdout
Called Mcu_DistributePllClock
Called Mcu_DistributePllClock
Called Mcu_DistributePllClock
Called Mcu_DistributePllClock
Called Mcu_DistributePllClock
0