summaryrefslogtreecommitdiff
path: root/bsp/apollo2/board/board.h
blob: ef21bdb05f6e84ffd0caaf1c437b29e53e66f8b9 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
 * Copyright (c) 2006-2021, RT-Thread Development Team
 *
 * SPDX-License-Identifier: Apache-2.0
 *
 * Change Logs:
 * Date           Author       Notes
 * 2017-09-14     Haley        first implementation
 */
#ifndef __BOARD_H_
#define __BOARD_H_

#include <rtthread.h>

// <o> Internal SRAM memory size[Kbytes] <8-256>
// <i>Default: 256
#define AM_SRAM_SIZE         256
#define AM_SRAM_END          (0x10000000 + AM_SRAM_SIZE * 1024)

/* USART driver select. */
#define RT_USING_UART0
//#define RT_USING_UART1

/* ADC driver select. */
#define RT_USING_ADC

/* I2C driver select. */
#define RT_USING_I2C0
//#define RT_USING_I2C2
//#define RT_USING_I2C4

/* SMBUS driver select. */
//#define RT_USING_SMBUS

/* SPI driver select. */
#define RT_USING_SPI1

/* LED driver select. */
#define RT_USING_LED0
//#define RT_USING_LED1
//#define RT_USING_LED2
//#define RT_USING_LED3

/* PWM driver select. */
//#define RT_USING_PWM

/* PDM driver select. */
//#define RT_USING_PDM

void rt_hw_board_init(void);

#endif /* __BOARD_H__ */