-
Notifications
You must be signed in to change notification settings - Fork 188
Expand file tree
/
Copy pathmcal_led.cpp
More file actions
23 lines (18 loc) · 773 Bytes
/
mcal_led.cpp
File metadata and controls
23 lines (18 loc) · 773 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
///////////////////////////////////////////////////////////////////////////////
// Copyright Christopher Kormanyos 2007 - 2020.
// 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>
mcal::led::led_base& mcal::led::led0()
{
using led0_port_type = mcal::port::port_pin<std::uint32_t,
std::uint32_t,
mcal::reg::gpio1_base,
UINT32_C(21)>;
using led0_led_type = mcal::led::led_port<led0_port_type>;
static led0_led_type l0;
return l0;
}