diff options
author | Keith Packard <keithp@keithp.com> | 2012-07-14 02:44:17 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-07-14 02:44:17 -0700 |
commit | 0cfd22baa6af44e053428c30c1a95cf5551b68af (patch) | |
tree | a347ac877f882bb6eaef11f0a88d46fe89915514 /src/drivers/ao_25lc1024.c | |
parent | 37032e4b0cbac4c823e3dd18e60ad8900e9ceff1 (diff) |
src: Add explicit 'pin' argument to ao_enable_output
This lets the cc1111 use the atomic bit operation instead of a mask,
which is immune to interrupt issues as well as being a shorter code sequence.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/drivers/ao_25lc1024.c')
-rw-r--r-- | src/drivers/ao_25lc1024.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/ao_25lc1024.c b/src/drivers/ao_25lc1024.c index c5d811f7..fac0a430 100644 --- a/src/drivers/ao_25lc1024.c +++ b/src/drivers/ao_25lc1024.c @@ -236,5 +236,5 @@ void ao_storage_device_init(void) { /* set up CS */ - ao_enable_output(EE_CS_PORT, EE_CS_PIN,1); + ao_enable_output(EE_CS_PORT, EE_CS_PIN, EE_CS, 1); } |