main.c 444 B

123456789101112131415161718192021
  1. /*
  2. * Copyright (c) 2019 Winner Microelectronics Co., Ltd.
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2019-02-13 tyx first implementation
  9. */
  10. #include <rtthread.h>
  11. #include <rtdevice.h>
  12. int main(void)
  13. {
  14. /* set wifi work mode */
  15. rt_wlan_set_mode(RT_WLAN_DEVICE_STA_NAME, RT_WLAN_STATION);
  16. rt_wlan_set_mode(RT_WLAN_DEVICE_AP_NAME, RT_WLAN_AP);
  17. return 0;
  18. }