mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2025-05-30 22:45:17 -04:00
thermosphere: refactor tegra uart code, etc.
This commit is contained in:
parent
8dc9be9f8e
commit
1086c0612c
10 changed files with 261 additions and 149 deletions
|
@ -56,6 +56,12 @@ static inline u##sz __##op##sz(u##sz n)\
|
|||
_DECLARE_ASM_ARITHMETIC_UNARY_HELPER64(rbit)
|
||||
_DECLARE_ASM_ARITHMETIC_UNARY_HELPER32(rbit)
|
||||
|
||||
typedef enum ReadWriteDirection {
|
||||
DIRECTION_READ = BIT(0),
|
||||
DIRECTION_WRITE = BIT(1),
|
||||
DIRECTION_READWRITE = DIRECTION_READ | DIRECTION_WRITE,
|
||||
} ReadWriteDirection;
|
||||
|
||||
static inline void __dmb_sy(void)
|
||||
{
|
||||
__asm__ __volatile__ ("dmb sy" ::: "memory");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue