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
constexpr USART UARTPort
Definition: console.h:21
constexpr GPIO GPIOD(3)
Definition: usart.h:6
Definition: gpio.h:95
Definition: backlight.h:6
constexpr GPIO GPIOC(2)