board.h 654 B

1234567891011121314151617181920212223242526272829
  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. * 2021-01-28 flybreak first version
  9. */
  10. #ifndef __BOARD_H__
  11. #define __BOARD_H__
  12. #include "pico/stdlib.h"
  13. #include "hardware/pll.h"
  14. #include "hardware/clocks.h"
  15. #include "hardware/structs/pll.h"
  16. #include "hardware/structs/clocks.h"
  17. #define PICO_SRAM_SIZE 256
  18. #define PICO_SRAM_END (0x20000000 + PICO_SRAM_SIZE * 1024)
  19. extern int __bss_end__;
  20. #define HEAP_BEGIN (&__bss_end__)
  21. #define HEAP_END ((void *)PICO_SRAM_END)
  22. int rt_hw_uart_init(void);
  23. #endif