2021-01-28 19:59:31 +08:00
|
|
|
/*
|
2021-01-28 22:22:57 +08:00
|
|
|
* Copyright (c) 2006-2021, RT-Thread Development Team
|
2021-01-28 19:59:31 +08:00
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
|
|
*
|
|
|
|
* Change Logs:
|
2021-01-28 22:22:57 +08:00
|
|
|
* Date Author Notes
|
|
|
|
* 2021-01-28 flybreak first version
|
2021-01-28 19:59:31 +08:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __BOARD_H__
|
|
|
|
#define __BOARD_H__
|
|
|
|
|
|
|
|
#include "pico/stdlib.h"
|
|
|
|
#include "hardware/pll.h"
|
|
|
|
#include "hardware/clocks.h"
|
|
|
|
#include "hardware/structs/pll.h"
|
|
|
|
#include "hardware/structs/clocks.h"
|
|
|
|
|
|
|
|
#define PICO_SRAM_SIZE 256
|
|
|
|
#define PICO_SRAM_END (0x20000000 + PICO_SRAM_SIZE * 1024)
|
|
|
|
|
|
|
|
extern int __bss_end;
|
|
|
|
#define HEAP_BEGIN (&__bss_end)
|
|
|
|
#define HEAP_END PICO_SRAM_END
|
|
|
|
|
|
|
|
int rt_hw_uart_init(void);
|
|
|
|
|
|
|
|
#endif
|