Numworks Epsilon
1.4.1
Graphing Calculator Operating System
console.h
Go to the documentation of this file.
1
#ifndef ION_DEVICE_CONSOLE_H
2
#define ION_DEVICE_CONSOLE_H
3
4
#include <
ion/console.h
>
5
#include "
regs/regs.h
"
6
7
namespace
Ion
{
8
namespace
Console {
9
namespace
Device {
10
11
/* Pin | Role | Mode
12
* -----+-------------------+--------------------
13
* PC11 | UART3 RX | Alternate Function
14
* PD8 | UART3 TX | Alternate Function
15
*/
16
17
void
init
();
18
void
shutdown
();
19
bool
peerConnected
();
20
21
constexpr
USART
UARTPort
=
USART
(3);
22
constexpr
static
GPIOPin
RxPin =
GPIOPin
(
GPIOC
, 11);
23
constexpr
static
GPIOPin
TxPin =
GPIOPin
(
GPIOD
, 8);
24
constexpr
static
GPIOPin
Pins[] = { RxPin, TxPin };
25
26
}
27
}
28
}
29
30
#endif
Ion::Console::Device::UARTPort
constexpr USART UARTPort
Definition:
console.h:21
Ion::Console::Device::peerConnected
bool peerConnected()
Definition:
console.cpp:63
GPIOD
constexpr GPIO GPIOD(3)
USART
Definition:
usart.h:6
GPIOPin
Definition:
gpio.h:95
console.h
Ion::Console::Device::init
void init()
Definition:
console.cpp:29
regs.h
Ion::Console::Device::shutdown
void shutdown()
Definition:
console.cpp:56
Ion
Definition:
backlight.h:6
GPIOC
constexpr GPIO GPIOC(2)
epsilon
ion
src
device
console.h
Generated by
1.8.14