mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-02 03:26:40 -04:00
SGPIO: Use pin constants when changing output enables.
This commit is contained in:
parent
00c7cdf027
commit
5d2ad9c1aa
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ constexpr Slice slice_order[] {
|
|||
};
|
||||
|
||||
constexpr uint32_t gpio_outreg(const Direction direction) {
|
||||
return ((direction == Direction::Transmit) ? (1U << 11) : 0U) | (1U << 10);
|
||||
return ((direction == Direction::Transmit) ? (1U << PIN_DIRECTION) : 0U) | (1U << PIN_DISABLE);
|
||||
}
|
||||
|
||||
constexpr uint32_t gpio_oenreg(const Direction direction) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue