Gregory Nutt
21859af6d9
Add check of return value in drivers affected by last change: Report the error on a failure to set the bit order.
2016-08-08 08:40:37 -06:00
Gregory Nutt
7d4cb73bd6
STM32 and EFM32 SPI drivers adopted an incompatible conventions somewhere along the line. The set the number of bits to negative when calling SPI_SETBITS which had the magical side-effect of setting LSB first order of bit transmission. This is not only a hokey way to pass control information but is supported by no other SPI drivers.
...
This change three things: (1) It adds HWFEAT_LSBFIRST as a new H/W feature. (2) It changes the implementations of SPI_SETBITS in the STM32 and EFM32 derivers so that negated bit numbers are simply errors and it adds the SPI_HWFEATURES method that can set the LSB bit order, and (3) It changes all calls with negative number of bits from all drivers: The number of bits is now always positive and SPI_HWFEATUREs is called with HWFEAT_LSBFIRST to set the bit order.
2016-08-08 08:28:13 -06:00
Gregory Nutt
9965cbe428
drivers/: Review and correct some stylistic inconsistencies
2016-08-07 09:43:48 -06:00
Alan Carvalho de Assis
10a7698112
drivers/wireless/mfrc522.c: Fix memory free command
2016-08-07 07:34:01 -06:00
Alan Carvalho de Assis
bfac90f720
Add MFRC522 RFID ISO14443 and Mifare transceiver driver
2016-08-06 08:45:52 -06:00
Gregory Nutt
1660329d06
Rename up_rnginitialize to devrandom_register
2016-07-18 10:55:37 -06:00
Gregory Nutt
2a751068e6
Without lowsyslog() *llerr() is not useful. Eliminate and replace with *err().
2016-06-20 12:44:38 -06:00
Gregory Nutt
43eb04bb8f
Without lowsyslog() *llinfo() is not useful. Eliminate and replace with *info().
2016-06-20 11:59:15 -06:00
Gregory Nutt
2b445ddccc
Remove lowsyslog(). The new syslog() includes all of the functionality of lowsyslog(). No longer any need for two interfaces.
2016-06-20 08:57:08 -06:00
Gregory Nutt
0c8c7fecf0
Add _ to the beginning of all debug macros to avoid name collisions
2016-06-16 12:33:32 -06:00
Gregory Nutt
7d0950bb22
net/: Change some nerr() ERRORS to nwarn() WARNINGS. Anomolous network events are not errors.
2016-06-12 07:09:37 -06:00
Gregory Nutt
e18e2b351b
Need a info() macro mapping
2016-06-11 19:05:32 -06:00
Gregory Nutt
f12da847d8
drivers/wireless: Change some *err() message to *info() messages if what was a *dbg() message does not indicate and error condition.
2016-06-11 19:03:57 -06:00
Gregory Nutt
a1469a3e95
Add CONFIG_DEBUG_ERROR. Change names of *dbg() * *err()
2016-06-11 15:50:49 -06:00
Gregory Nutt
e99301d7c2
Rename *lldbg to *llerr
2016-06-11 14:55:27 -06:00
Gregory Nutt
1cdc746726
Rename CONFIG_DEBUG to CONFIG_DEBUG_FEATURES
2016-06-11 14:14:08 -06:00
Gregory Nutt
fc3540cffe
Replace all occurrences of vdbg with vinfo
2016-06-11 11:59:51 -06:00
Sebastien Lorquet
0ef10e6d0e
fix atmel driver for new 802154 radio api
2016-06-01 13:11:49 +02:00
Sebastien Lorquet
b0afc4807d
synthetic commit to import ieee branch from old repo
2016-06-01 12:12:21 +02:00
Gregory Nutt
1f8212679c
NRF24L01: Fix backward calculation of relative frequency. Noted by Henry Zhang
2016-04-15 07:07:22 -06:00
Paul A. Patience
c62bb9beb1
Fix issues detected by cppcheck
2016-03-22 15:46:47 -04:00
Gregory Nutt
1c31e10397
NRF2410L: Add missing conditional logic in vtable initialization
2016-03-08 16:11:08 -06:00
Gregory Nutt
0970d43ab8
Cosmetic changes to comments
2016-02-28 07:48:16 -06:00
Gregory Nutt
d777110cbe
Eliminate a warning
2016-02-27 07:27:45 -06:00
Sebastien Lorquet
dc7adfa817
drivers/wireless/ieee802154/Kconfig
...
drivers/wireless/ieee802154/Make.defs
Changes to the build infrastructure to include the mrf24j40 driver
include/nuttx/spi/spi.h
Define a IEEE SPI device
include/nuttx/wireless/ieee802154/ieee802154_radio.h
This file defines the API of a IEEE 802.15.4 radio device, to be used by the future common MAC 802.15.4 layer
drivers/wireless/ieee802154/mrf24j40.c
drivers/wireless/ieee802154/mrf24j40.h
The main MRF24J40 IEEE 802.15.4 radio driver
include/nuttx/wireless/ieee802154/mrf24j40.h
This file allows instanciation of the MRF24j40 driver from board configurations
2016-02-26 18:39:27 -06:00
Gregory Nutt
1ecb092e51
Add wireless/ieee802154 to the build
2016-02-26 17:27:58 -06:00
Gregory Nutt
cfe018e991
Rename CONFIG_WIRELESS to CONFIG_DRIVERS_WIRELESS
2016-02-26 16:50:26 -06:00
Gregory Nutt
309beae2cd
Move drivers/ieee802154 to drivers/wireless/ieee802154; rename include/nuttx/net ieee802154 to 6lowpan.h
2016-02-26 15:03:16 -06:00
Gregory Nutt
0fb035f76b
Standardize some naming in code section comments
2016-02-21 18:09:04 -06:00
Gregory Nutt
2244ed46bc
nuttx/drivers: Replace irqsave() with enter_critical_section(); replace irqrestore() with leave_critical_section()
2016-02-14 07:32:58 -06:00
Gregory Nutt
bf8120d51d
Fix some odd logic in CC3000 semaphore handling. Noted by Vladimir Komendantskiy
2016-02-10 09:50:28 -06:00
Gregory Nutt
564a1ce606
Cosmetic clean-up of comments
2016-01-24 08:21:55 -06:00
Gregory Nutt
7edf921c5e
Remove CONFIG_SPI_OWNBUS: Now it is not just a good idea, it is the law
2016-01-23 18:54:36 -06:00
Gregory Nutt
f6e49caba8
All SPI-based device drivers needs to call SPI_HWFEATURES() with zero in order to co-exist with drivers that use H/W features
2016-01-23 16:18:13 -06:00
Gregory Nutt
63301fe213
Cosmetic changes from review of last pull request
2016-01-17 14:52:11 -06:00
Janne Rosberg
fb1bf10a3d
add pn532 support
...
Signed-off-by: Janne Rosberg <janne.rosberg@offcode.fi>
2016-01-17 22:17:49 +02:00
Gregory Nutt
c955cdccd9
Move rivers/wireless/cc3000/security.c to crypto/aes.c; move include/nuttx/wireless/cc3000/security.h to include/nuttx/crypto/aes.h
2015-11-16 13:31:02 -06:00
Gregory Nutt
cdc646ae68
Another typo introduced in previous commit
2015-10-10 12:31:31 -06:00
Gregory Nutt
5f9c47a83f
drivers/wireless: Fixes to spacing and alignement
2015-10-10 11:51:32 -06:00
Gregory Nutt
863ded3584
Standardize the width of all comment boxes in C header files
2015-10-03 07:45:15 -06:00
Gregory Nutt
16b32bbadd
Standardize the width of all comment boxes in C files
2015-10-03 07:25:53 -06:00
Gregory Nutt
0f90500f72
Standardize the width of all comment boxes in header files
2015-10-02 17:48:24 -06:00
Gregory Nutt
5b51a9fcdd
Standardize the width of all comment boxes in C files
2015-10-02 17:43:18 -06:00
Pierre-noel Bouteville
8651e0f2ca
CC3300: Add const to pointers in arguments to wlan_connect; remove an unused function prototype
2015-09-09 16:34:37 -06:00
Gregory Nutt
afdb3c751a
Fix typos from a previous commit
2015-09-08 12:45:30 -06:00
Gregory Nutt
a7e43c7fdb
Eliminate some warnings
2015-09-08 09:20:18 -06:00
Gregory Nutt
48d7930631
CC3300: Eliminate some compile time warnings
2015-09-08 07:37:19 -06:00
Gregory Nutt
342f5fe33d
Fix references to the no-longer-existent misc/ directory in comments, README files, and documentation
2015-06-28 08:08:57 -06:00
Gregory Nutt
0476d8168a
More missing semicolons after DEBUGASSERT
2015-05-27 13:32:39 -06:00
Gregory Nutt
e4d2822af8
Make some file section headers more consistent with standard
2015-04-08 07:15:32 -06:00
Gregory Nutt
e2e7c791c1
Refreshed Spark Configurations
2015-02-28 15:44:58 -06:00
Gregory Nutt
d6704a1cd7
Suffer the consequences of moving struct timeval to its correct location
2015-02-15 15:18:35 -06:00
Gregory Nutt
f24520acbb
Backout use of named initializers. Not C99
2015-01-31 12:29:21 -06:00
Gregory Nutt
64ce7563f2
CC3000: Fix yet another typo in last two commitsgit diff I should not be doing this when I have the flugit diff
2014-12-18 16:27:46 -06:00
Gregory Nutt
49a22f1ccb
CC3000: Oops. Fix an error in the last commit
2014-12-18 07:39:55 -06:00
Gregory Nutt
2fe506d70c
CC3000 Fix: Data can be unaligned. When dereferences as an input ntosh(), a bad value is returned. Reported by Alan Carvalho de Assis
2014-12-18 07:18:00 -06:00
Gregory Nutt
e42f7b552f
This commit is a set of patches 02/11 through 03/11 correcting issues with the CC3000 networking (01/11 was committed separated). Among these 10 patches:
...
03/11: CC3000 driver was getting stuck at recv() when remote host closed connection and application tried to read data from remotely shutdown socket. This patch adds proper handling for remotely closed socket event.
07/11: Socket state initialization was done in 'register', while it should be initialized in 'open' and deinitialized in 'close'. Old way caused problems when device is closed, power-cycled and then reopened as old socket state was left enabled.
08/11: Select thread was getting stuck after 'close, power-cycle, reopen', since selectsem was not properly setup and cleaned up.
09/11 'maxFD' was not properly reset in select worker and not checked for before calling cc3000_select().
10/11: After wlan_stop()/cc3000_close(), irqsem was left with count '-1'. Therefore on next wlan_start()/cc3000_open(), initial value for irqsem was wrong. Additional repeated wlan_start()/wlan_stop() decreased irqsem value further. Obviously this causes driver not to function correctly and freeze.
Patch moves initialization and destruction of waitsem, irqsem and readysem to cc3000_open/cc3000_close.
All are: Signed-off-by: Jussi Kivilinna <jussi.kivilinna@haltian.com>
2014-11-28 08:52:52 -06:00
Gregory Nutt
5f0343bed9
Use usleep instead of usdelay as CONFIG_BOARD_LOOPSPERMSEC might not be calibrated correctly and CC3000 is fine with longer wait.
...
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@haltian.com>
2014-11-28 08:16:30 -06:00
Gregory Nutt
9ac09db800
More fixes to problems noted by cppcheck. Some are kind of risky; some are real bugs.
2014-11-25 13:46:14 -06:00
Gregory Nutt
d7d759f7a7
Update everything under nuttx/drivers to use the corrected syslog interfaces
2014-10-08 10:18:58 -06:00
Gregory Nutt
1780810d3d
Rename kmalloc to kmm_malloc for consistency
2014-08-31 17:26:36 -06:00
Gregory Nutt
54fa3b0b59
Rename kfree to kmm_free for consistency with other naming conventions
2014-08-31 17:04:02 -06:00
Gregory Nutt
9cd1ddada4
Rename kmemalign to kmm_memalign and krealloc to kmm_realooc for consistency with other naming
2014-08-31 15:27:37 -06:00
Gregory Nutt
2a509d560f
CC3000: Fix build when POLL is enabled. From Jussi Kivilinna.
2014-05-21 07:37:46 -06:00
Gregory Nutt
b584ecb967
CC3000: Fix a race condition in start-up of unsoliced_thread. From Jussi Kivilinna
2014-05-21 07:32:32 -06:00
Gregory Nutt
b2d26436de
Configuration has CC3000_SPI_MODE settings but source uses CONFIG_CC3000_SPIMODE. From Jussi Kivilinna
2014-05-21 07:20:09 -06:00
Gregory Nutt
a9d89b5442
Correct SPI mode for CC3000 is CPOL=0 CHPA=1. From Jussi Kivilinna
2014-05-21 07:17:46 -06:00
Gregory Nutt
972c4cbab5
Nucleo F401RE: Remove PX4 cruft that can in with the port
2014-04-22 12:18:08 -06:00
Gregory Nutt
3a1324741a
More trailing whilespace removal
2014-04-13 14:32:20 -06:00
Gregory Nutt
056aed1274
Make sure that there is one space between while and condition
2014-04-12 13:09:48 -06:00
Gregory Nutt
6092b5813a
Numerous updates to the CC3000 driver from David Sidrane
2014-02-18 14:16:51 -06:00
Gregory Nutt
91b002a043
Many changes to reduce complaints from CppCheck. Several latent bugs fixes, but probably some new typos introduced
2014-02-10 18:08:49 -06:00
Gregory Nutt
0d0c3e66fb
Updates to sparck configuration from David Sidrane
2013-11-01 11:40:19 -06:00
Gregory Nutt
890417a0f4
Missing files from last CC3000 driver update from David Sidrane
2013-10-31 09:00:05 -06:00
Gregory Nutt
85e90b0064
Updated CC3000 driver from David Sidrane
2013-10-30 14:37:13 -06:00
Gregory Nutt
6b8c1cc480
CC3000 driver updates from David Sidrane
2013-10-30 10:50:26 -06:00
Gregory Nutt
77c0c6c2d6
CC3000 driver updates from David Sidrane
2013-10-27 18:54:10 -06:00
Gregory Nutt
70a191159b
drivers/wireless/cc3000: CC3000 driver update from David Sidrane
2013-10-26 17:42:08 -06:00
Gregory Nutt
607acec781
CC3000 driver update from David Sidrane
2013-10-25 16:23:53 -06:00
Gregory Nutt
ba5e6669d0
CC3000 driver update from David Sidrane
2013-10-24 08:03:32 -06:00
Gregory Nutt
76764003a5
Add logic to enable DEBUG_NET if NET=n but WL_CC3000=y
2013-10-23 11:48:57 -06:00
Gregory Nutt
4cf9540563
CC3000 driver updates from David Sidrane
2013-10-23 09:07:32 -06:00
Gregory Nutt
6fda497bc1
Updated Spark/cc3000 files from David Sidrane
2013-10-18 17:14:58 -06:00
Gregory Nutt
8ad32012ab
New touchscreen scaling algorithm for the case where measured X values vary with y position (and vice versa)
2013-10-17 12:07:14 -06:00
Gregory Nutt
8cd7eea7ad
CC3000 driver changes from David Sidrane
2013-10-16 13:18:53 -06:00
Gregory Nutt
4e44868f12
CC3000 driver changes from David Sidrane
2013-10-16 11:59:26 -06:00
Gregory Nutt
48a8364267
CC3000 driver changes from David Sidrane
2013-10-16 11:59:22 -06:00
Gregory Nutt
e555cfaa5b
Updated CC30000 example from David Sidrane
2013-10-16 07:29:25 -06:00
Gregory Nutt
ce6368793a
Some restructing of the CC3000 build
2013-09-04 16:40:57 -06:00
Gregory Nutt
64f1c78367
CC3000 driver updates from Alan Carvalho de Assis
2013-09-04 09:45:59 -06:00
Gregory Nutt
29d4748b1b
Initial cut of a driver for the TI CC3000 network module with support on the Freescale KL25Z board from Alan Carvalho de Assis
2013-09-03 14:59:48 -06:00
Gregory Nutt
09faaccc02
Created new directories to hold SPI-related files
2013-07-01 08:11:54 -06:00
Gregory Nutt
0e37ec1bfc
Add NSRF42L01 driver. From Laurent Latil
2013-06-01 08:03:55 -06:00
patacongo
2def0d877d
A few native window build updates
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5387 42af7a65-404d-4744-a932-0658087f49c3
2012-11-25 20:58:39 +00:00
patacongo
4ee266d94b
Centralized the definition of the INCDIR script in tools/Config.mk
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5346 42af7a65-404d-4744-a932-0658087f49c3
2012-11-13 20:24:30 +00:00
patacongo
50321df42d
Remove executable property from source and make files
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5146 42af7a65-404d-4744-a932-0658087f49c3
2012-09-13 18:46:10 +00:00
patacongo
7a9457bb07
Email address change in nuttx/
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5145 42af7a65-404d-4744-a932-0658087f49c3
2012-09-13 18:32:24 +00:00
patacongo
cc5b31a286
Add support for the TI PGA11x amplifier/multiplexer
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4977 42af7a65-404d-4744-a932-0658087f49c3
2012-07-25 18:41:10 +00:00
patacongo
330b89ca0e
Add kconfig documentation
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4567 42af7a65-404d-4744-a932-0658087f49c3
2012-04-06 16:45:52 +00:00
patacongo
4b8c0c41c8
Adding skeleton Kconfig files (part 1 of 2)
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4564 42af7a65-404d-4744-a932-0658087f49c3
2012-04-06 15:49:35 +00:00
patacongo
a87259ebc6
Add support for multiplexed SDIO pins from Uros
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3898 42af7a65-404d-4744-a932-0658087f49c3
2011-08-19 16:51:04 +00:00
patacongo
8501188ee2
More TSC2007 driver updates
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3830 42af7a65-404d-4744-a932-0658087f49c3
2011-07-30 15:31:23 +00:00
patacongo
c472fe3913
Add support for STM3210E-EVAL button interrupts
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3750 42af7a65-404d-4744-a932-0658087f49c3
2011-07-07 16:20:35 +00:00
patacongo
1ba2240762
Add initial CC1101 wireless logic from Uros
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3617 42af7a65-404d-4744-a932-0658087f49c3
2011-05-16 15:09:39 +00:00
patacongo
9a9ebcd417
Mostly cosmetic changes from Uros
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3575 42af7a65-404d-4744-a932-0658087f49c3
2011-05-07 19:22:15 +00:00
patacongo
5867444e73
Fix RTL driver MAC address
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3529 42af7a65-404d-4744-a932-0658087f49c3
2011-04-21 18:17:41 +00:00
patacongo
8da8486fcb
Updates from Uros
...
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3527 42af7a65-404d-4744-a932-0658087f49c3
2011-04-20 13:32:49 +00:00