forked from len0rd/rockbox
More atomic GPIO
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7123 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
25bb98d66a
commit
b3437ecbfe
1 changed files with 2 additions and 2 deletions
|
|
@ -110,8 +110,8 @@ void adc_init(void)
|
|||
|
||||
static unsigned char adcdata[NUM_ADC_CHANNELS];
|
||||
|
||||
#define CS_LO GPIO_OUT &= ~0x80
|
||||
#define CS_HI GPIO_OUT |= 0x80
|
||||
#define CS_LO and_l(~0x80, &GPIO_OUT)
|
||||
#define CS_HI or_l(0x80, &GPIO_OUT)
|
||||
#define CLK_LO and_l(~0x00400000, &GPIO_OUT)
|
||||
#define CLK_HI or_l(0x00400000, &GPIO_OUT)
|
||||
#define DO (GPIO_READ & 0x80000000)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue