Gregory Nutt
e9bf66989e
LPC43xx: Add RS485 configuration settings to Kconfig; For RS485, add an option to select DTR as the DIR pin
2016-02-19 07:59:24 -06:00
Gregory Nutt
9b96057dc0
LPC43 VBUS sensing option should also depend on CONFIG_USDBDEV
2016-02-18 19:14:38 -06:00
Dave Marples
41b56a5f09
Enable the Ethernet for the LPC4330 and autonegotiation when the MAC is a LAN8720.
2016-02-18 19:07:33 -06:00
Gregory Nutt
de885064d2
SIM: Clean up some comments
2016-02-18 14:56:17 -06:00
Gregory Nutt
526c90986a
sim SMP: CPU0 should not be the main thread. That introduces an asymmetry since the main thread has no pthread_t ID. Instead, start an additional pthread for CPU0. The main thread will just wait and do nothing in this case
2016-02-18 14:54:48 -06:00
Gregory Nutt
08e2fc0be8
Can't call sdbg() from a signal handler; And another name to nuttx-names.dat
2016-02-18 12:29:37 -06:00
Gregory Nutt
3508e22f3f
SMP: Rename sim_cpupause to sim_cpu_pause for consistency with other naming
2016-02-18 11:46:08 -06:00
Gregory Nutt
3deac3d43d
SMP: Initial implementation of up_cpu_pause and up_cpu_resume. Does not yet work.
2016-02-18 11:12:43 -06:00
Gregory Nutt
e3ea40e4f9
SMP: Cosmetic renaming to clarify functionality of SMP interfaces. Update comments.
2016-02-17 13:35:23 -06:00
Gregory Nutt
063caf3a90
Add warnings and some comments
2016-02-16 16:08:59 -06:00
Gregory Nutt
8ac45d4f4d
Add some additional schedule instrumentation
2016-02-16 15:19:44 -06:00
Gregory Nutt
b4dae46fd7
SIM: Add scheduler instrumentation
2016-02-16 13:40:15 -06:00
Gregory Nutt
9234eec334
SIM: Needs to include stdint.h
2016-02-16 10:12:06 -06:00
Gregory Nutt
17cf9a57a0
Update some comments
2016-02-16 07:50:09 -06:00
Gregory Nutt
1e218415d6
Most cosmetic; fix spelling of teriminate
2016-02-16 07:24:28 -06:00
Gregory Nutt
d2f13e4b12
SIM: If SMP is enabled, show CPU on assertion
2016-02-15 13:47:05 -06:00
Gregory Nutt
e238b29ddf
SIM: Add pthread_yield to the list of name collisions
2016-02-15 11:44:53 -06:00
Gregory Nutt
441cd2bf1c
Fix a typo introduced in last set of name changes
2016-02-14 19:58:30 -06:00
Gregory Nutt
349e5bc3ec
Fix some LPC31 and LPC43 errors introduced by a recent pull request
2016-02-14 19:35:40 -06:00
Gregory Nutt
8b7dd552a3
Fix a typo introduced in last big set of name changes
2016-02-14 17:44:45 -06:00
Gregory Nutt
666cc280f4
Rename irqenable() to up_irq_enable(); rename irqdisable() to up_irq_disable()
2016-02-14 16:54:09 -06:00
Gregory Nutt
83bc1c97c3
Rename irqsave() and irqrestore() to up_irq_save() and up_irq_restore()
2016-02-14 16:11:25 -06:00
Gregory Nutt
2cd8d279d2
Missed a few name changes
2016-02-13 19:16:51 -06:00
Gregory Nutt
70e502adb0
Replace irqsave() with enter_critical_section(); replace irqrestore() with leave_critical_section()
2016-02-13 19:11:09 -06:00
Gregory Nutt
3caffdd82e
Standardization of some naming in preparation for a large automated change
2016-02-13 12:57:09 -06:00
Gregory Nutt
a884818e32
SIM: Add empty stubs for SMP function up_cpustop and up_cpustart
2016-02-12 17:12:01 -06:00
Gregory Nutt
e7d077a389
LPC31: Fix some definitions to match LPC43
2016-02-12 16:30:30 -06:00
Gregory Nutt
d22aa4b588
SIM: In SMP simulation, use pthread_yield(), not up_hostusleep() to reliquish the CPU.
2016-02-12 08:13:44 -06:00
Gregory Nutt
62e6275fe5
SIM:Add missing mutex unlock; need to used up_hostusleep(), not usleep(), in up_idle
2016-02-11 17:18:28 -06:00
Gregory Nutt
e41de0a00e
SIM: Move IDLE thread initialization from sim to OS since it should be common
2016-02-11 14:10:19 -06:00
Gregory Nutt
ac6c9cf617
SIM: Add SMP idle thread setup logic -- forgot to add files before last commit.
2016-02-11 12:17:41 -06:00
Gregory Nutt
b087cb7f9a
SIM: Add SMP idle thread setup logic
2016-02-11 12:16:19 -06:00
Gregory Nutt
2f08f2fe6c
Missed something in the last commit
2016-02-10 17:30:29 -06:00
Gregory Nutt
0dbbf19fea
SIM: Kconfig now indicates that it supports multiple CPUs.
2016-02-10 17:29:04 -06:00
Gregory Nutt
52f88b0625
SIM: Add simulation of a multi-CPU processor
2016-02-10 14:58:21 -06:00
Gregory Nutt
5e91bf9a03
SIM: Add a fake spinlock.h header file that may be useful someday for testing of SMP features
2016-02-10 10:33:37 -06:00
Gregory Nutt
6181711942
Correct some comments
2016-02-09 13:48:16 -06:00
Gregory Nutt
a6eb9a351c
Add spinlock support for ARMv7-M architectures
2016-02-09 13:44:22 -06:00
Gregory Nutt
98e9e7d768
Add spinlock support for ARMv7-R architectures
2016-02-09 13:01:32 -06:00
Gregory Nutt
5d449e9991
Add spinlock support for ARMv7-A architectures
2016-02-09 12:53:10 -06:00
Gregory Nutt
24428f7a59
z80 family: Replace explict references to g_readytorun with indirect references via the this_task() macro
2016-02-06 17:32:25 -06:00
Gregory Nutt
4078a3134e
z16: Replace explict references to g_readytorun with indirect references via the this_task() macro
2016-02-06 17:17:17 -06:00
Gregory Nutt
b0bcd82ba7
x86: Replace explict references to g_readytorun with indirect references via the this_task() macro
2016-02-06 17:10:44 -06:00
Gregory Nutt
a1126361da
sim: Replace explict references to g_readytorun with indirect references via the this_task() macro
2016-02-06 17:05:55 -06:00
Gregory Nutt
edc51a14cd
SH: Replace explict references to g_readytorun with indirect references via the this_task() macro
2016-02-06 17:00:02 -06:00
Gregory Nutt
2dff5b27b7
SH: Replace explict references to g_readytorun with indirect references via the this_task() macro
2016-02-06 16:56:49 -06:00
Gregory Nutt
dc574dfd2e
RGMP: Replace explict references to g_readytorun with indirect references via the this_task() macro
2016-02-06 16:52:38 -06:00
Gregory Nutt
b373894fbc
MIPS: Replace explict references to g_readytorun with indirect references via the this_task() macro
2016-02-06 16:49:34 -06:00
Gregory Nutt
2b8d1fcbdb
HC: Replace explicit references to g_readytorun with indirect references via the macro this_task()
2016-02-06 15:20:08 -06:00
Gregory Nutt
c62177be00
AVR: Replace explicit references to g_readytorun with indirect references via the macro this_task()
2016-02-06 13:55:15 -06:00
Gregory Nutt
ed4e3c0a9e
ARM: Replace explicit references to g_readytorun with indirect references via the macro this_task()
2016-02-06 13:41:28 -06:00
Gregory Nutt
03b382d443
SAM3/4, SAMA5, SAMv7 Tickless: Refuse to call lower-level timer logic if not yet initialized
2016-02-05 10:22:11 -06:00
Gregory Nutt
341fbe1186
Rename all tiva_spi functions to tiva_ssi
2016-02-04 10:33:15 -06:00
Gregory Nutt
ef64f8b3f4
Missed spiinitialize name change
2016-02-04 10:15:51 -06:00
Gregory Nutt
d511afd507
LPC31: Fix an unmatching function prototype
2016-02-03 18:11:42 -06:00
Gregory Nutt
1166e311b0
Networking: Remove the HSEC argument from devif_timer.
2016-02-03 11:17:15 -06:00
Gregory Nutt
578402f8b5
Fix some spacing in a comment
2016-02-03 10:33:59 -06:00
Gregory Nutt
d2b2cd3415
Duplicate Manuel's EMAC driver fix to every other driver that supports CONFIG_NET_NOINTS
2016-02-03 10:33:22 -06:00
Manuel Stuehn
7236e742ab
STM32 Ethernet: Fix a cornercase where the TX poll timer is not restarted.
2016-02-03 08:24:49 -06:00
Gregory Nutt
1e4f2ae2c1
Rename up_i2c initialize and uninitialize functions using the correct MCU-specific naming
2016-02-02 12:08:23 -06:00
Gregory Nutt
d2571985ef
I2C: up_i2creset should not be a global function; Now it is an I2C interface method
2016-02-02 11:21:45 -06:00
Gregory Nutt
f1a5a6dfc7
I2C: Fixes/improvements from last massive I2C commits
2016-02-02 07:12:50 -06:00
Gregory Nutt
30624c8dfa
EFM32, STM32, and Tiva I2C Drivers: Clean up some kruft that is no longer needed after the last massive I2C interfcase change
2016-02-01 19:51:55 -06:00
Gregory Nutt
c9a7d48cb2
I2C: Fix some compile time issues found with tools/testbuild.sh
2016-02-01 18:02:39 -06:00
Gregory Nutt
0693e76be8
I2C: Remove the setfrequency method from the interface
2016-02-01 16:30:29 -06:00
Gregory Nutt
bec6f373a7
I2C: Cosmetic changes
2016-02-01 14:15:52 -06:00
Gregory Nutt
a64f36a63e
I2C: Remove setaddress method
2016-02-01 12:14:20 -06:00
Gregory Nutt
ce988c7ed3
Remove the read and write methods from the I2C interface
2016-02-01 09:22:10 -06:00
Gregory Nutt
91fa0b9616
More SPI initialize naming clarification
2016-01-31 15:38:28 -06:00
Gregory Nutt
2171438c61
I2C_TRANSFER support is no longer optional
2016-01-31 14:00:53 -06:00
Gregory Nutt
2d41fb26b8
z8 I2C driver now supports the I2C_TRANSFER method
2016-01-31 13:49:34 -06:00
Gregory Nutt
74d2073fca
ez80: Fix some compile errors when I2C_TRANSFER is enabled
2016-01-31 13:08:43 -06:00
Gregory Nutt
e4629af2bc
ez80: Add I2C_TRANSFER method to the I2C driver; Fixes for working with ZDS-II toolchain (still some problems with internal errors; Various fixes due to bit rot
2016-01-31 12:43:14 -06:00
Gregory Nutt
b5019c4b54
Backport the LPC17xx I2C driver to the LPC2378 in order to get the I2C_TRANSFER method.
2016-01-30 13:06:18 -06:00
Gregory Nutt
8f1b9886a9
Backport the new LPC17xx I2C driver to the LPC11xx in order to get the I2C_TRANSFER method
2016-01-30 12:17:01 -06:00
Gregory Nutt
8a37072e87
Backport the LPC32xx I2C driver to the LPC17xx in order to get the I2C_TRANSFER method
2016-01-30 11:26:38 -06:00
Gregory Nutt
531d73af41
Remove I2C slave methods from I2C master interface; rename i2c_dev_s to i2c_master_s.
2016-01-30 08:35:46 -06:00
Gregory Nutt
9f9b85a932
Move include/nuttx/i2c.h to include/nuttx/i2c/i2c_master.h
2016-01-30 07:59:44 -06:00
Freddie Chopin
8203659ee5
stm32_rtc_endwr(): wait for RTC_CRL_RTOFF bit to be set. This ensures that the write "reaches" RTC registers before access is disabled by stm32_pwr_enablebkp().
2016-01-28 16:58:02 -06:00
Gregory Nutt
5d0c914121
LPC2148: Missing spi initializatin prototype
2016-01-28 09:52:46 -06:00
Gregory Nutt
9f2ae5bb86
LPC43: Fix a naming collision with i2c_read
2016-01-28 07:47:32 -06:00
Gregory Nutt
4d2e423cf6
Calypso: Fix some typos in last SPI changes
2016-01-27 16:40:29 -06:00
Gregory Nutt
7a13837fdd
Remove the final vestiges of up_spiinitialize()
2016-01-27 09:26:14 -06:00
Gregory Nutt
a0ce222318
For M9S12 MCUs, rename up_spiinitialize to hcs12_spibus_initialize
2016-01-27 09:10:36 -06:00
Gregory Nutt
215dfe778b
For LPC2378 MCUs, rename up_spiinitialize to lpc23_spibus_initialize
2016-01-27 09:02:15 -06:00
Gregory Nutt
b4f0ad1af5
For i.MX1 MCUs, rename up_spiinitialize to imx_spibus_initialize
2016-01-27 08:57:34 -06:00
Gregory Nutt
bd5e6f784b
For STR71xx MCUs, rename up_spiinitialize to str71_spibus_initialize
2016-01-27 08:50:01 -06:00
Gregory Nutt
f002980b50
For eZ80 MCUs, rename up_spiinitialize to ez80_spibus_initialize
2016-01-27 08:39:02 -06:00
Gregory Nutt
a9dec09444
Minor fix to comment
2016-01-27 08:16:46 -06:00
Gregory Nutt
120f7ccebf
For Calypso MCUs, rename up_spiinitialize to calypso_spibus_initialize
2016-01-27 08:13:51 -06:00
Gregory Nutt
afbd0f55c3
For AVR MCUs, rename up_spiinitialize to avr_spibus_initialize
2016-01-27 08:00:28 -06:00
Gregory Nutt
c958d83ee1
For LPC43xx MCUs, rename lpc17_spiinitialize to lpc43_spibus_initialize
2016-01-26 17:17:12 -06:00
Gregory Nutt
6305c4274a
For LPC17xx MCUs, rename lpc17_spiinitialize to lpc17_spibus_initialize
2016-01-26 17:07:47 -06:00
Gregory Nutt
cc68a24972
For LPC31xx MCUs, rename up_spiinitialize to lpc31_spibus_initialize
2016-01-26 16:56:28 -06:00
Gregory Nutt
aa2ae3f26a
For Kinetis MCUs, rename up_spiinitialize to kinetis_spibus_initialize
2016-01-26 16:25:50 -06:00
Gregory Nutt
3b6a502eff
For LK MCUs, rename up_spiinitialize to kl_spibus_initialize
2016-01-26 16:19:03 -06:00
Gregory Nutt
d06fae98a3
EFM32: Rename efm_spi_initialize to efm_spibus_initialize for compatibility with corresponding changes to other platforms
2016-01-26 15:58:33 -06:00
Gregory Nutt
ba17c8ea18
For PIC32MX/Z MCUs, rename up_spiinitialize to pic32mx/z_spibus_initialize
2016-01-26 15:47:42 -06:00
Gregory Nutt
8864c78e57
For Tiva/LM MCUs, rename up_spiinitialize to tiva_spibus_initialize
2016-01-26 15:20:31 -06:00
Gregory Nutt
d16978be7f
For SAM MCUs, rename up_spiinitialize to sam_spibus_initialize
2016-01-26 13:03:17 -06:00
Gregory Nutt
04bbd8c67f
For STM32, rename up_spiinitialize to stm32_spibus_initialize
2016-01-26 12:22:27 -06:00
Gregory Nutt
c0fb4e34a7
I2C: Eliminate the I2C_WRITEREAD method
2016-01-26 10:23:09 -06:00
Gregory Nutt
b64a45d667
Add a missing semicolon
2016-01-26 08:00:29 -06:00
Gregory Nutt
c9295c5152
Merge branch 'master' of bitbucket.org:nuttx/arch
2016-01-25 13:26:28 -06:00
Gregory Nutt
a2ce7cc30f
Add SAMV7 AFEC header file
2016-01-25 13:25:12 -06:00
Gregory Nutt
f4115ab45c
Correct LPC11xx priority definitions + fix some typos in comments
2016-01-25 07:36:26 -06:00
Lok Tep
1f4ce9e7f9
LPC43xx: Fix some NVIC priority definitions
2016-01-25 07:23:28 -06:00
Gregory Nutt
fb3baae5a4
Trivial: Change ASSERT to DEBUGASSERT
2016-01-24 10:48:35 -06:00
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
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
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
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
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