Numworks Epsilon  1.4.1
Graphing Calculator Operating System
swd.h
Go to the documentation of this file.
1 #ifndef ION_DEVICE_SWD_H
2 #define ION_DEVICE_SWD_H
3 
4 #include "regs/regs.h"
5 
6 namespace Ion {
7 namespace SWD {
8 namespace Device {
9 
10 /* Pin | Role | Mode
11  * -----+-------------------+---------------------
12  * PA13 | SWDIO | Alternate Function 0
13  * PA14 | SWCLK | Alternate Function 0
14  * PB3 | SWO | Alternate Function 0
15  */
16 
17 void init();
18 void shutdown();
19 
20 constexpr static GPIOPin Pins[] = {
21  GPIOPin(GPIOA, 13), GPIOPin(GPIOA, 14), GPIOPin(GPIOB, 3)
22 };
23 
24 }
25 }
26 }
27 
28 #endif
constexpr GPIO GPIOB(1)
void shutdown()
Definition: swd.cpp:15
Definition: gpio.h:95
constexpr GPIO GPIOA(0)
Definition: backlight.h:6
void init()
Definition: swd.cpp:8