diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-03 13:39:27 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-11-03 13:39:27 +0000 |
commit | feff83cc2bca59bfab0b6f4a2d72355f63276214 (patch) | |
tree | 2ef00133ca90489fbcc3a288262b4a9ce6437b54 /nuttx/configs/olimex-strp711/src | |
parent | fe10483ec5700858086349844c1259bcf8113ccb (diff) | |
download | px4-nuttx-feff83cc2bca59bfab0b6f4a2d72355f63276214.tar.gz px4-nuttx-feff83cc2bca59bfab0b6f4a2d72355f63276214.tar.bz2 px4-nuttx-feff83cc2bca59bfab0b6f4a2d72355f63276214.zip |
Move LPC214X scripts to a subdirectory
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1126 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/olimex-strp711/src')
-rw-r--r-- | nuttx/configs/olimex-strp711/src/up_spi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nuttx/configs/olimex-strp711/src/up_spi.c b/nuttx/configs/olimex-strp711/src/up_spi.c index a4d6074a3..707f7fa06 100644 --- a/nuttx/configs/olimex-strp711/src/up_spi.c +++ b/nuttx/configs/olimex-strp711/src/up_spi.c @@ -665,8 +665,10 @@ static void spi_recvblock(FAR struct spi_dev_s *dev, FAR ubyte *buffer, size_t b FAR struct spi_dev_s *up_spiinitialize(int port) { FAR struct spi_dev_s *ret; + irqstate_t flags; uint16 reg16; + flags = irqsave(); #ifdef CONFIG_STR71X_BSPI0 if (port == 0) { @@ -762,6 +764,7 @@ FAR struct spi_dev_s *up_spiinitialize(int port) { ret = NULL; } + irqrestore(flags); return ret; } |