mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-02-28 19:47:20 +00:00
SGPIO: Use pin constants when changing output enables.
This commit is contained in:
parent
00c7cdf027
commit
5d2ad9c1aa
@ -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…
x
Reference in New Issue
Block a user