Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Eavesdropper BitstreamGenerator SimpleDecimationFilter 11U68_MP3Player with TFTLCD ... more
FastIO_Unsupported.h@22:45b32f07e790, 2016-09-20 (annotated)
- Committer:
- Sissors
- Date:
- Tue Sep 20 20:41:42 2016 +0000
- Revision:
- 22:45b32f07e790
- Parent:
- 17:87872fcf8586
Fixed bug in enabling of port hardware of the F030 (via: https://developer.mbed.org/users/viquiram/)
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| Sissors | 2:1a6ed4b84590 | 1 | #include "mbed.h" |
| Sissors | 2:1a6ed4b84590 | 2 | |
| Sissors | 2:1a6ed4b84590 | 3 | typedef struct { |
| Sissors | 2:1a6ed4b84590 | 4 | DigitalInOut *_pin; |
| Sissors | 2:1a6ed4b84590 | 5 | } fastio_vars; |
| Sissors | 2:1a6ed4b84590 | 6 | |
| Sissors | 17:87872fcf8586 | 7 | #define INIT_PIN this->container._pin = new DigitalInOut(pin) |
| Sissors | 17:87872fcf8586 | 8 | #define DESTROY_PIN delete(this->container._pin) |
| Sissors | 2:1a6ed4b84590 | 9 | |
| Sissors | 17:87872fcf8586 | 10 | #define SET_DIR_INPUT this->container._pin->input() |
| Sissors | 17:87872fcf8586 | 11 | #define SET_DIR_OUTPUT this->container._pin->output() |
| Sissors | 17:87872fcf8586 | 12 | #define SET_MODE(pull) this->container._pin->mode(pull) |
| Sissors | 2:1a6ed4b84590 | 13 | |
| Sissors | 17:87872fcf8586 | 14 | #define WRITE_PIN_SET this->container._pin->write(1) |
| Sissors | 17:87872fcf8586 | 15 | #define WRITE_PIN_CLR this->container._pin->write(0) |
| Sissors | 2:1a6ed4b84590 | 16 | |
| Sissors | 17:87872fcf8586 | 17 | #define READ_PIN this->container._pin->read() |
| Sissors | 2:1a6ed4b84590 | 18 |
