Commit Graph

5987 Commits

Author SHA1 Message Date
Gregory Nutt
7a7bb6387b Fix initialization of a semaphore 2016-01-24 09:25:39 -06:00
Gregory Nutt
52109ade2d Flesh out unfinished lock() method implementations in al SPI drivers 2016-01-24 09:15:57 -06:00
Gregory Nutt
b7cbbab761 Remove CONFIG_SPI_OWNBUS: Now it is not just a good idea, it is the law 2016-01-23 18:10:21 -06:00
Gregory Nutt
00aaceaf2f 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:17:42 -06:00
Gregory Nutt
3850b9b70c Remove carriage returns from a file 2016-01-23 15:19:57 -06:00
Gregory Nutt
4bd6adb725 Add dummy hwfeatures method to all SPI interfaces 2016-01-23 15:09:38 -06:00
Gregory Nutt
ece6517607 Kinetis ENET: Move ioctl function; add prototype and function header; split up some long lines 2016-01-21 19:14:04 -06:00
Andrew Webster
43303a5786 Kinetis: add MK60N512VLL100 support 2016-01-21 19:07:18 -06:00
Andrew Webster
9d0c378dbc Kinetis enet: switch to built-in byte swapper. Depends on GCC __builtin functions 2016-01-21 19:05:51 -06:00
Andrew Webster
d3238e6f95 Kinetis enet: buffer management update
This patch manages the packet buffer used by the upper layers by making sure it is always set to a valid transmit buffer that can be used by the MAC-NET core.  The only exception to this is when the upper layer re-uses a receive buffer to send a response. In this case, the updated receive buffer is swapped with an empty transmit buffer.  If there is no empty transmit buffer available, the packet will be dropped.

Signed-off-by: Andrew Webster <awebster@arcx.com>

Kinetis enet: add support for DBSWP

Signed-off-by: Andrew Webster <awebster@arcx.com>
2016-01-21 19:00:21 -06:00
Andrew Webster
64a0f54767 Kinetis enet: add PHY ioctl support. 2016-01-21 18:54:04 -06:00
Andrew Webster
a118233a59 Kinetis enet: set the MII_MODE bit. The RM states that this bit should always be 1. 2016-01-21 18:50:53 -06:00
Andrew Webster
36408697ca Kinetis enet: leave the write buffer wrap bit alone. The wrap buffer bit is initialized when the buffers are set up and should not be changed later 2016-01-21 18:49:23 -06:00
Andrew Webster
6ba74a281a Kinetis enet: RDAR should be called after ETHER_EN 2016-01-21 18:46:54 -06:00
Andrew Webster
c1a8443416 inetis enet: disallow transmit when the queue is full 2016-01-21 18:45:46 -06:00
Andrew Webster
a3f8be04ac Kinetis enet: initialize the MAC address 2016-01-21 18:44:10 -06:00
Andrew Webster
a16cae2b74 Kinetis enet: support multiple transmits between interrupts. Accounts for the unlikely event that more than one packet has been transmitted before the tx done is processed 2016-01-21 18:40:52 -06:00
Andrew Webster
409d499fc8 Kinetis enet: use rounded up MTU size for buffers. The buffers must be evenly divisible by 16, so round up the MTU size and use that for the buffer sizes 2016-01-21 18:39:12 -06:00
Andrew Webster
d09eec1066 Kinetis enet: fix minor logic errors 2016-01-21 18:36:27 -06:00
Andrew Webster
8dc63d6016 Kinetis enet: fix typos 2016-01-21 18:35:19 -06:00
Gregory Nutt
5ebd84c890 Update to use 64-bit timer when available 2016-01-21 11:53:58 -06:00
Stefan Kolb
b6dd44bdcd SAMV71 TC: Fix compilation errors when certain timers are enabled. 2016-01-20 09:39:12 -06:00
Gregory Nutt
fcc7af3ab0 Merged in paulpatience/nuttx-arch/stm32_tim (pull request #53)
STM32 TIM: Fix comment
2016-01-19 16:04:47 -06:00
Paul A. Patience
3ecdb0c21c STM32 TIM: Fix comment 2016-01-19 17:02:00 -05:00
Gregory Nutt
b7e9fb9284 Merged in paulpatience/nuttx-arch/stm32_qencoder (pull request #52)
STM32 QEncoder: Fix typo
2016-01-19 15:47:07 -06:00
Paul A. Patience
d81001326c STM32 QEncoder: Fix typo 2016-01-19 16:44:21 -05:00
Gregory Nutt
be5afc3cf9 Merged in paulpatience/nuttx-arch/stm32_tim (pull request #51)
STM32 TIM: Fix typos and add forgotten bit
2016-01-19 14:57:25 -06:00
Paul A. Patience
26a434d76a STM32 TIM: Fix typos and add forgotten bit 2016-01-19 15:49:03 -05:00
Gregory Nutt
727361d736 Remove Eclipse project files from repository. Noted by Sebastien Lorquet 2016-01-19 10:00:26 -06:00
Frank Benkert
dd13fcde44 CAN: Add more extensive error reporting information 2016-01-18 12:21:20 -06:00
Gregory Nutt
74c7e3d0bf STM32 OTF FS/HS Host. Fix two cases where stm32_putreg parameters were backward. Noted by Hang Xu 2016-01-18 08:10:37 -06:00
Gregory Nutt
0e86ee747a Merged in paulpatience/nuttx-arch/stm32_qencoder (pull request #50)
STM32 QEncoder: Fix some typos
2016-01-18 07:35:10 -06:00
Paul A. Patience
196d379010 STM32 QEncoder: Fix some typos 2016-01-17 21:52:03 -05:00
Gregory Nutt
4e8772dfca ATMEGA: A few trivial updates to USART-related macros 2016-01-16 14:38:28 -06:00
Gregory Nutt
6ca2315cf0 ATMEGA: Make some naming used with the 2560 compatible with other ATmega parts 2016-01-16 13:41:49 -06:00
Gregory Nutt
b5584c3cf9 Trivia, cosmetic 2016-01-15 13:38:35 -06:00
Gregory Nutt
027e5ef1a1 LPC43xx: Fix some errors/warnings in ADC driver 2016-01-15 13:37:12 -06:00
Gregory Nutt
6c2cd3edee Changes from review of last pull request 2016-01-15 10:55:58 -06:00
Gregory Nutt
aea0c7c3ef Merged in petekol/arch (pull request #49)
Master
2016-01-15 10:21:19 -06:00
Lok Tep
a089847f39 Merged nuttx/arch into master 2016-01-15 15:32:55 +01:00
Gregory Nutt
2030784891 sim: Add more symbols to nuttx-names.dat 2016-01-14 15:14:25 -06:00
Juha Niskanen
8a671d604d stm32/chip: Fix STM32L15 TIM5 base address. 2016-01-11 07:25:50 -06:00
Gregory Nutt
4b71d74a2b Minor typo fix in warning 2016-01-09 19:57:48 -06:00
Gregory Nutt
10001f8556 WINTOOl should be selected only for Cygwin. MSYS and native should not have it. 2016-01-09 16:34:33 -06:00
Gregory Nutt
7231439290 Test for CONFIG_AVR_HAS_MEMX_PTR must be after inclusion of config.h 2016-01-09 08:11:25 -06:00
Gregory Nutt
d0578bfc2b Changes to last pull request needed for conformance with coding standard 2016-01-09 07:25:24 -06:00
Gregory Nutt
203899cca8 Merged in kloper/arch/atmega2560 (pull request #48)
debug macros for AVR (take #2): Introduce debug macro hooks for AVR
2016-01-09 07:17:35 -06:00
Dimitry Kloper
642b92b391 Introduce debug macro hooks for AVR
When AVR_HAS_MEMX_PTR is enabled provide dbg macro hooks that place
the format strings in program memory releasing RAM for other tasks.
2016-01-09 14:44:38 +02:00
Gregory Nutt
7a393f9e8b Eliminate some warnings 2016-01-08 11:26:16 -06:00
Gregory Nutt
278701f93d Eliminate warnings (one of which looks like a bug) 2016-01-08 11:22:57 -06:00