-
Notifications
You must be signed in to change notification settings - Fork 194
Expand file tree
/
Copy pathmcal_led.cpp
More file actions
32 lines (23 loc) · 831 Bytes
/
mcal_led.cpp
File metadata and controls
32 lines (23 loc) · 831 Bytes
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
///////////////////////////////////////////////////////////////////////////////
// Copyright Christopher Kormanyos 2007 - 2026.
// Distributed under the Boost Software License,
// Version 1.0. (See accompanying file LICENSE_1_0.txt
// or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <mcal_led.h>
#include <mcal_led/mcal_led_port.h>
#include <mcal_port.h>
auto mcal::led::led0() -> mcal::led::led_base&
{
using led0_port_type = mcal::port::port_pin<unsigned { UINT8_C(54) }>;
using led0_led_type = mcal::led::led_port<led0_port_type>;
static led0_led_type l0;
return l0;
}
auto mcal::led::led1() -> mcal::led::led_base&
{
using led1_port_type = mcal::port::port_pin<unsigned { UINT8_C(19) }>;
using led1_led_type = mcal::led::led_port<led1_port_type>;
static led1_led_type l1;
return l1;
}