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.
include/Peripheral.h@2:131555dc6fb7, 2022-12-20 (annotated)
- Committer:
- hudakz
- Date:
- Tue Dec 20 12:16:18 2022 +0000
- Revision:
- 2:131555dc6fb7
- Parent:
- 1:1f2d9982fa8c
Mbed API for Raspberry Pi boards equipped with BCM2836 SoC.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| hudakz | 1:1f2d9982fa8c | 1 | #ifndef PERIPHERAL_H |
| hudakz | 1:1f2d9982fa8c | 2 | #define PERIPHERAL_H |
| hudakz | 1:1f2d9982fa8c | 3 | |
| hudakz | 1:1f2d9982fa8c | 4 | #include "BCM2835.h" |
| hudakz | 1:1f2d9982fa8c | 5 | |
| hudakz | 1:1f2d9982fa8c | 6 | class Peripheral |
| hudakz | 1:1f2d9982fa8c | 7 | { |
| hudakz | 1:1f2d9982fa8c | 8 | private: |
| hudakz | 1:1f2d9982fa8c | 9 | int memfd; |
| hudakz | 1:1f2d9982fa8c | 10 | int map_peripheral(struct bcm2835_peripheral* p); |
| hudakz | 1:1f2d9982fa8c | 11 | void unmap_peripheral(struct bcm2835_peripheral* p); |
| hudakz | 1:1f2d9982fa8c | 12 | public: |
| hudakz | 1:1f2d9982fa8c | 13 | Peripheral(); |
| hudakz | 1:1f2d9982fa8c | 14 | ~ Peripheral(); |
| hudakz | 1:1f2d9982fa8c | 15 | }; |
| hudakz | 1:1f2d9982fa8c | 16 | |
| hudakz | 1:1f2d9982fa8c | 17 | #endif // PERIPHERAL_H |
| hudakz | 1:1f2d9982fa8c | 18 |