-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathboard_profile.hpp
66 lines (56 loc) · 2.12 KB
/
board_profile.hpp
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
#pragma once
//=========================================================================//
/*! @file
@brief RX62N/RX621 グループ・ボード・プロファイル @n
基板の基本的な定義 @n
- LED port order @n
- SCI channel, port_map order @n
- CMT channel @n
- RIIC channel @n
- CAN channel
@author 平松邦仁 (hira@rvf-rc45.net)
@copyright Copyright (C) 2024 Kunihito Hiramatsu @n
Released under the MIT license @n
https://github.com/hirakuni45/RX/blob/master/LICENSE
*/
//=========================================================================//
#include "common/device.hpp"
namespace board_profile {
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
/*!
@brief 基板プロファイル空間 @n
- FRK-RX62N(CQ 出版社) @n
- BlueBoard-RX62N_100pin
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
#if defined(CQ_FRK)
// FRK-RX62N(CQ 出版社) 基板シグネチュア
static const char system_str_[] = "RX62N FRK-RX62N";
/// LED インジケーター
static constexpr bool LED_ACTIVE = 0;
typedef device::PORT<device::PORT1, device::bitpos::B5, LED_ACTIVE> LED;
// SCI ポートの定義
typedef device::SCI1 SCI_CH;
static constexpr auto SCI_ORDER = device::port_map::ORDER::FIRST;
// MTU ポートの定義
// See 'RX62x/port_map_mtu.hpp' J6_6
typedef device::MTU0 MTU_CH;
static constexpr auto MTU_ORDER = device::port_map_mtu::ORDER::FIRST;
#else
// BlueBoard-RX62N_100pin 基板シグネチュア
static const char system_str_[] = "RX62N BlueBoard-RX62N_100pin";
/// LED インジケーター
static constexpr bool LED_ACTIVE = 0;
typedef device::PORT<device::PORT0, device::bitpos::B5, LED_ACTIVE> LED;
// SCI ポートの定義
typedef device::SCI1 SCI_CH;
static constexpr auto SCI_ORDER = device::port_map::ORDER::FIRST;
#endif
// インターバル・タイマーの定義
typedef device::CMT0 CMT_CH;
// RIIC ポートの定義
typedef device::RIIC0 RIIC_CH;
// CAN ポートの定義
typedef device::CAN CAN0_CH;
static constexpr auto CAN0_PORT = device::port_map::ORDER::FIRST;
}