-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathboard_profile.hpp
50 lines (41 loc) · 1.55 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
#pragma once
//=========================================================================//
/*! @file
@brief RX72T グループ・ボード・プロファイル @n
基板の基本的な定義 @n
- LED port order @n
- SCI channel, port_map order @n
- CMT 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
DIY RX72T board
*/
//+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++//
// 基板シグネチュア
static constexpr char system_str_[] = "RX72T DIY";
/// LED インジケーター
static constexpr bool LED_ACTIVE = 0;
typedef device::PORT<device::PORT0, device::bitpos::B1, LED_ACTIVE> LED;
// SCI ポートの定義
typedef device::SCI1 SCI_CH;
static constexpr auto SCI_ORDER = device::port_map::ORDER::THIRD;
// インターバル・タイマーの定義
typedef device::CMT0 CMT_CH;
// RIIC ポートの定義
typedef device::RIIC0 RIIC_CH;
// CAN ポートの定義
typedef device::CAN0 CAN0_CH;
static constexpr auto CAN0_PORT = device::port_map::ORDER::FIRST;
// MTU ポートの定義
typedef device::MTU0 MTU_CH;
static constexpr auto MTU_ORDER = device::port_map_mtu::ORDER::FIRST;
}