summaryrefslogtreecommitdiff
path: root/bsp/bl808/m0/drivers/board.h
blob: ead8fbdf84841c5f989c367b5ac319670af76c1c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
 * Copyright (c) 2006-2023, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2022/12/25     flyingcys    first version
 */

#ifndef BOARD_H__
#define BOARD_H__

#include <rtconfig.h>

#include "core_rv32.h"
#include "bl_sys.h"
#include "bl_irq.h"
#include "bl808_clock.h"

#ifdef BL808
#include "bl808.h"
#elif defined(BL606P)
#include "bl606p.h"
#endif

extern uint8_t _heap_start;
extern uint8_t _heap_size;

#define RT_HW_HEAP_BEGIN    (void*)&_heap_start
#define RT_HW_HEAP_END      (void*)(&_heap_start + (rt_ubase_t)&_heap_size)

void rt_hw_board_init(void);

#endif