Numworks Epsilon  1.4.1
Graphing Calculator Operating System
device.h
Go to the documentation of this file.
1 #ifndef ION_DEVICE_H
2 #define ION_DEVICE_H
3 
4 namespace Ion {
5 namespace Device {
6 
7 void init();
8 void shutdown();
9 
10 void initFPU();
11 void coreReset();
12 void jumpReset();
13 
14 void initPeripherals();
15 void shutdownPeripherals();
16 void initClocks();
17 void shutdownClocks();
18 
19 /* Pin | Role | Mode | Function
20  * -----+-------------------+-----------------------+----------
21  * PA0 | Battery sensing | |
22  * PA2 | LCD D4 | Alternate Function 12 | FMSC_D4
23  * PA3 | LCD D5 | Alternate Function 12 | FSMC_D5
24  * PA4 | LCD D6 | Alternate Function 12 | FSMC_D6
25  * PA5 | LCD D7 | Alternate Function 12 | FSMC_D7
26  * PA6 | LED red | Alternate Function XX | TIM3_CH1
27  * PA7 | LED green | Alternate Function XX | TIM3_CH2
28  * PA9 | USB VBUS prob | Input, pulled down |
29  * PB0 | LED blue | Alternate Function XX | TIM3_CH3
30  * PB1 | Keyboard row A | Output, open-drain |
31  * PB2 | Keyboard row B | Output, open-drain |
32  * PB3 | Keyboard row C | Output, open-drain |
33  * PB4 | Keyboard row D | Output, open-drain |
34  * PB5 | Keyboard row E | Output, open-drain |
35  * PB6 | Keyboard row F | Output, open-drain |
36  * PB7 | Keyboard row G | Output, open-drain |
37  * PB8 | Keyboard row H | Output, open-drain |
38  * PB9 | Keyboard row I | Output, open-drain |
39  * PB10 | Keyboard row J | Output, open-drain |
40  * PB14 | LCD D0 | Alternate Function 12 | FSMC_D0
41  * PC0 | Keyboard column 1 | Input, pulled-up |
42  * PC1 | Keyboard column 2 | Input, pulled-up |
43  * PC3 | LCD data/command | Alternate Function 12 | FSMC_A0
44  * PC4 | LCD chip select | Alternate Function 12 | FSMC_NE4
45  * PC5 | LCD read signal | Alternate Function 12 | FSMC_NOE
46  * PC6 | LCD D1 | Alternate Function 12 | FSMC_D7
47  * PC9 | LCD backlight | Alternate Function 12 | TIM3_CH4
48  * PC11 | LCD D2 | Alternate Function 12 | FSMC_D2
49  * PC12 | LCD D3 | Alternate Function 12 | FSMC_D3
50  * PC13 | Keyboard column 3 | Input, pulled-up |
51  * PC14 | Keyboard column 4 | Input, pulled-up |
52  * PC15 | Keyboard column 5 | Input, pulled-up |
53  * PD2 | LCD write signal | Alternate Function 12 | FSMC_NWE
54  */
55 
56 }
57 }
58 
59 #endif
void shutdownClocks()
Definition: device.cpp:276
void shutdown()
Definition: device.cpp:153
void jumpReset()
Definition: device.cpp:104
void initClocks()
Definition: device.cpp:186
void init()
Definition: device.cpp:121
void shutdownPeripherals()
Definition: device.cpp:172
void coreReset()
Definition: device.cpp:99
void initPeripherals()
Definition: device.cpp:158
void initFPU()
Definition: device.cpp:92
Definition: backlight.h:6