Preliminary main mbed library for nexpaq development
libraries/tests/mbed/pin_toggling/main.cpp@1:d96dbedaebdb, 2016-11-04 (annotated)
- Committer:
- nexpaq
- Date:
- Fri Nov 04 20:54:50 2016 +0000
- Revision:
- 1:d96dbedaebdb
- Parent:
- 0:6c56fb4bc5f0
Removed extra directories for other platforms
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
nexpaq | 0:6c56fb4bc5f0 | 1 | #include "mbed.h" |
nexpaq | 0:6c56fb4bc5f0 | 2 | |
nexpaq | 0:6c56fb4bc5f0 | 3 | #if defined(TARGET_SAMR21G18A) || defined(TARGET_SAMD21J18A) || defined(TARGET_SAMD21G18A) || defined(TARGET_SAML21J18A) |
nexpaq | 0:6c56fb4bc5f0 | 4 | DigitalOut out(PB02); |
nexpaq | 0:6c56fb4bc5f0 | 5 | if defined(TARGET_SAMG55J19) |
nexpaq | 0:6c56fb4bc5f0 | 6 | DigitalOut out(PA17); |
nexpaq | 0:6c56fb4bc5f0 | 7 | #else |
nexpaq | 0:6c56fb4bc5f0 | 8 | DigitalOut out(p5); |
nexpaq | 0:6c56fb4bc5f0 | 9 | #endif |
nexpaq | 0:6c56fb4bc5f0 | 10 | |
nexpaq | 0:6c56fb4bc5f0 | 11 | int main() { |
nexpaq | 0:6c56fb4bc5f0 | 12 | while (true) { |
nexpaq | 0:6c56fb4bc5f0 | 13 | out = 1; |
nexpaq | 0:6c56fb4bc5f0 | 14 | out = 0; |
nexpaq | 0:6c56fb4bc5f0 | 15 | } |
nexpaq | 0:6c56fb4bc5f0 | 16 | } |