Laurent Huot
/
SPI
drtgddf
UART.h@1:2b2be189b4db, 2016-01-11 (annotated)
- Committer:
- larryspaghetti
- Date:
- Mon Jan 11 21:09:20 2016 +0000
- Revision:
- 1:2b2be189b4db
- Parent:
- 0:aab1f335cf6b
f
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
larryspaghetti | 0:aab1f335cf6b | 1 | class UART |
larryspaghetti | 0:aab1f335cf6b | 2 | { |
larryspaghetti | 0:aab1f335cf6b | 3 | public: |
larryspaghetti | 0:aab1f335cf6b | 4 | //Le constructeur prend en parametre des valeurs de REGISTRES pour les pins, pas les "pin names" |
larryspaghetti | 1:2b2be189b4db | 5 | UART(); |
larryspaghetti | 0:aab1f335cf6b | 6 | //Ecrit un caractere |
larryspaghetti | 0:aab1f335cf6b | 7 | int putc(int c); |
larryspaghetti | 0:aab1f335cf6b | 8 | //Sert a savoir si un bit peut etre ecrit dans le registre |
larryspaghetti | 0:aab1f335cf6b | 9 | int writeable(); |
larryspaghetti | 0:aab1f335cf6b | 10 | |
larryspaghetti | 0:aab1f335cf6b | 11 | private: |
larryspaghetti | 0:aab1f335cf6b | 12 | //Registre du POWER |
larryspaghetti | 0:aab1f335cf6b | 13 | int * PCOMP; |
larryspaghetti | 0:aab1f335cf6b | 14 | //Registre du CLOCK |
larryspaghetti | 0:aab1f335cf6b | 15 | int * PCLKSEL0; |
larryspaghetti | 0:aab1f335cf6b | 16 | //Registre pour le BAUD RATE |
larryspaghetti | 0:aab1f335cf6b | 17 | int * U0LCR; |
larryspaghetti | 0:aab1f335cf6b | 18 | //Registre pour le BAUD RATE |
larryspaghetti | 0:aab1f335cf6b | 19 | int * U0DLL; |
larryspaghetti | 0:aab1f335cf6b | 20 | //Registre pour le BAUD RATE |
larryspaghetti | 0:aab1f335cf6b | 21 | int * U0DLM; |
larryspaghetti | 0:aab1f335cf6b | 22 | //Registre du FIFO |
larryspaghetti | 0:aab1f335cf6b | 23 | int * U0FCR; |
larryspaghetti | 0:aab1f335cf6b | 24 | int * PINSEL0; |
larryspaghetti | 1:2b2be189b4db | 25 | }; |