-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move implementation files to proper directories
- Loading branch information
1 parent
d85ee5b
commit 9101d08
Showing
7 changed files
with
44 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#ifndef ODROIDGPIO_PIN_HPP | ||
#define ODROIDGPIO_PIN_HPP | ||
|
||
class Pin | ||
{ | ||
}; | ||
|
||
#endif // ODROIDGPIO_PIN_HPP |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
#include "odroid/Pin.hpp" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#include "detail/digital/digital.hpp" | ||
|
||
#include <wiringPi.h> | ||
|
||
void gpio::digital::write(uint8_t pin_number, Write mode) | ||
{ | ||
digitalWrite(pin_number, static_cast<int>(mode)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include "detail/pwm/pwm.hpp" | ||
|
||
#include <odroid/pwm/pwm.hpp> | ||
#include <wiringPi.h> | ||
|
||
void gpio::pwm::duty_cycle(uint8_t pin_number, uint8_t duty_cycle) | ||
{ | ||
pwmWrite(pin_number, duty_cycle); | ||
} | ||
|
||
void gpio::pwm::clock(uint8_t hz) | ||
{ | ||
pwmSetClock(hz); | ||
} | ||
void gpio::pwm::range(uint16_t range) | ||
{ | ||
pwmSetRange(range); | ||
} |