board.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * File : board.h
  3. * This file is part of RT-Thread RTOS
  4. * COPYRIGHT (C) 2014, RT-Thread Development Team
  5. *
  6. * The license and distribution terms for this file may be
  7. * found in the file LICENSE in this distribution or at
  8. * http://www.rt-thread.org/license/LICENSE
  9. *
  10. * Change Logs:
  11. * Date Author Notes
  12. * 2014-11-23 Bright add board.h to this bsp
  13. */
  14. // <<< Use Configuration Wizard in Context Menu >>>
  15. #ifndef __BOARD_H__
  16. #define __BOARD_H__
  17. #include "M051Series.h"
  18. #define BOARD_PLL_CLOCK 50000000
  19. /* board configuration */
  20. #ifdef __CC_ARM
  21. extern int Image$$RW_IRAM1$$ZI$$Limit;
  22. #define M05X_SRAM_BEGIN (&Image$$RW_IRAM1$$ZI$$Limit)
  23. #elif __ICCARM__
  24. #pragma section="HEAP"
  25. #define M05X_SRAM_BEGIN (__segment_end("HEAP"))
  26. #else
  27. extern int __bss_end;
  28. #define M05X_SRAM_BEGIN (&__bss_end)
  29. #endif
  30. #define M05X_SRAM_SIZE 4
  31. #define M05X_SRAM_END (0x20000000 + M05X_SRAM_SIZE * 1024)
  32. void rt_hw_board_init(void);
  33. //#define PRINT_RCC_FREQ_INFO
  34. #endif
  35. // <<< Use Configuration Wizard in Context Menu >>>