M Seiser
/
Aufgabe4_PortIn_PortOut
p15-20 Maskieren
main.cpp@1:e7bb2d3d4400, 2016-01-11 (annotated)
- Committer:
- mSeiser
- Date:
- Mon Jan 11 16:19:26 2016 +0000
- Revision:
- 1:e7bb2d3d4400
- Parent:
- 0:74e499089331
Maskieren von p15-20;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mSeiser | 0:74e499089331 | 1 | |
mSeiser | 0:74e499089331 | 2 | |
mSeiser | 0:74e499089331 | 3 | #include "mbed.h" |
mSeiser | 0:74e499089331 | 4 | |
mSeiser | 0:74e499089331 | 5 | |
mSeiser | 1:e7bb2d3d4400 | 6 | #define Pin_MASK 0x00417800 |
mSeiser | 0:74e499089331 | 7 | |
mSeiser | 1:e7bb2d3d4400 | 8 | PortIn p(Port0, Pin_MASK); |
mSeiser | 0:74e499089331 | 9 | |
mSeiser | 0:74e499089331 | 10 | int main() { |
mSeiser | 0:74e499089331 | 11 | while(1) { |
mSeiser | 0:74e499089331 | 12 | |
mSeiser | 0:74e499089331 | 13 | } |
mSeiser | 0:74e499089331 | 14 | } |