main.c 519 B

12345678910111213141516171819202122
  1. /*
  2. * Copyright (c) 2006-2021, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2006-08-31 Bernard first implementation
  9. * 2018-03-01 flyingcys add realtek ameba
  10. */
  11. #include <rthw.h>
  12. #include <rtthread.h>
  13. #include <rtdevice.h>
  14. int main(void)
  15. {
  16. rt_kprintf("build time: %s %s\n", __DATE__, __TIME__);
  17. rt_kprintf("Hello RT-Thread!\n");
  18. rt_wlan_set_mode(RT_WLAN_DEVICE_STA_NAME, RT_WLAN_STATION);
  19. return 0;
  20. }