Wrap this a little so it's slightly easier on the eyes.
This commit is contained in:
parent
c84b4ebb24
commit
830c1c46f3
@ -514,7 +514,8 @@ isBigEndian(void)
|
|||||||
|
|
||||||
/* Analog register writes may require a delay between each one (eg Merlin?) */
|
/* Analog register writes may require a delay between each one (eg Merlin?) */
|
||||||
#define OS_A_REG_RMW_FIELD(_a, _r, _f, _v) \
|
#define OS_A_REG_RMW_FIELD(_a, _r, _f, _v) \
|
||||||
do { OS_REG_WRITE(_a, _r, (OS_REG_READ(_a, _r) &~ (_f)) | (((_v) << _f##_S) & (_f))) ; OS_DELAY(100); } while (0)
|
do { OS_REG_WRITE(_a, _r, (OS_REG_READ(_a, _r) &~ (_f)) | \
|
||||||
|
(((_v) << _f##_S) & (_f))) ; OS_DELAY(100); } while (0)
|
||||||
#define OS_A_REG_WRITE(_a, _r, _v) \
|
#define OS_A_REG_WRITE(_a, _r, _v) \
|
||||||
do { OS_REG_WRITE(_a, _r, _v); OS_DELAY(100); } while (0)
|
do { OS_REG_WRITE(_a, _r, _v); OS_DELAY(100); } while (0)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user