application.c 635 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * File : main.c
  3. * This file is part of RT-Thread RTOS
  4. *
  5. * The license and distribution terms for this file may be
  6. * found in the file LICENSE in this distribution or at
  7. * http://www.rt-thread.org/license/LICENSE
  8. *
  9. * Change Logs:
  10. * Date Author Notes
  11. * 2017-12-12 Bluebear233 first implementation
  12. */
  13. #include <rtconfig.h>
  14. #include <rtthread.h>
  15. int main(void)
  16. {
  17. #ifdef RT_USING_LWIP
  18. /* initialize eth interface */
  19. extern void rt_hw_nuc472_emac_init(void);
  20. rt_hw_nuc472_emac_init();
  21. #endif /* RT_USING_LWIP */
  22. while(1)
  23. {
  24. rt_thread_delay(RT_TICK_PER_SECOND);
  25. }
  26. }