power_thread.c 382 B

1234567891011121314151617181920
  1. #include <stdio.h>
  2. #include "power_thread.h"
  3. #include "bmc_main.h"
  4. /*
  5. * Power manage thread,power on/off, power cycle, reset.
  6. * Author: Jimbo
  7. */
  8. void *power_main(void *args)
  9. {
  10. printf("start power manage thread!\n");
  11. g_BMCInfo.powerSta.S3 = 0;
  12. g_BMCInfo.powerSta.S4 = 0;
  13. g_BMCInfo.powerSta.S5 = 0;
  14. while(1)
  15. {
  16. // printf("This is power manage thread!\n");
  17. sleep(5);
  18. }
  19. }