main.c 532 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2006-2022, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2017-5-30 Bernard the first version
  9. */
  10. #include <rthw.h>
  11. #include <rtthread.h>
  12. int main(int argc, char** argv)
  13. {
  14. const char *oem;
  15. #ifdef RT_USING_SMART
  16. oem = "Smart";
  17. #else
  18. oem = "Thread";
  19. #endif
  20. rt_ubase_t level = rt_hw_interrupt_disable();
  21. rt_kprintf("Hi, this is RT-%s!!\n", oem);
  22. rt_hw_interrupt_enable(level);
  23. return 0;
  24. }