config.c 663 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) 2006-2020, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2020-08-06 whik first version
  9. */
  10. #include "config.h"
  11. /* hardware initialization */
  12. void boardInit(void)
  13. {
  14. /* disable watchdog timer */
  15. SYSREG->WDOG_CR = 0;
  16. }
  17. INIT_BOARD_EXPORT(boardInit);
  18. /* custom finish command */
  19. extern uint32_t SystemCoreClock;
  20. void sayHello(void)
  21. {
  22. rt_kprintf("Hello RT-Thread! By Microsemi SmartFusion2 Family FPGA-M2S010.\r\n");
  23. rt_kprintf("MSS System Core Clock: %d Hz.\r\n", SystemCoreClock);
  24. }
  25. MSH_CMD_EXPORT(sayHello, "say hello to console");