Commit Graph

776 Commits (f56cbfa53e8855c85dcdf19722a3080a3ad98ddc)

Author SHA1 Message Date
Yihui Xiong d3ca818905 add readable(), writeable() and settings changed callback to USBSerial 2013-11-01 12:38:27 +08:00
0xc0170 8ae57ce8db KL25Z GCC_ARM export 2013-10-31 16:00:50 -04:00
Andreas Rebert 09cf4ef128 Support for exporting to GCC_ARM 2013-10-31 13:28:05 +01:00
Andreas Rebert 83d4facb0e Added support for GCC_ARM 2013-10-31 13:25:58 +01:00
Adam Green 64620e2e78 lwip: Stop dropping long TCP segments
If lwIP placed more than 2 pbufs in a TCP segment, the ethernet driver
would fail to send it as it didn't have enough Tx descriptors.  The
maximum number of pbufs outstanding for transmit that lwIP keeps is
defined by the TCP_SND_QUEUELEN macro.  I modifed the value of
LPC_NUM_BUFF_TXDESCS to take advantage of this lwIP value.  The +1
takes into account that LPC_EMAC->TxProduceIndex ==
LPC->TxConsumeIndex is reserved for indicating that the queue is empty
so a full queue uses one less than the maximum count.
2013-10-29 23:41:21 -07:00
Adam Green 692cbd11f6 lwip: Fix invalid checksum bug
tcp_write() would incorrectly byte swap the checksum 1 too many times
when concatenating a pbuf to an existing TCP segment if the number of
bytes in the concatenated data was odd.  I hit this issue when I tried
to reproduce a lost segment issue reported by a mbed user in this forum
thread: http://mbed.org/forum/mbed/topic/4354/?page=2#comment-22657
2013-10-29 23:41:21 -07:00
Matthew Else 908c0da471 (Hopefully) got rid of all of the setup output 2013-10-29 12:29:57 +00:00
Matthew Else 73d8eb426c Redirected some commands in Travis setup to go to /dev/null
Now, we don't get all of the verbose output from the tar command, etc.
2013-10-29 12:19:09 +00:00
Matthew Else 9ef1fdec45 Update .travis.yml 2013-10-29 12:07:21 +00:00
Matthew Else 1054f86806 Added support for microlib compilation. 2013-10-29 12:02:03 +00:00
Stephen Paulger 779657221e Merge branch 'master' into ds5_exporter 2013-10-29 10:55:59 +00:00
Stephen Paulger 50d8cb0bce Merge remote-tracking branch 'upstream/master' 2013-10-29 10:55:29 +00:00
Stephen Paulger a27dae0977 Merge branch 'master' into ds5_exporter 2013-10-29 10:40:31 +00:00
Stephen Paulger 43eeaa338f Fix DS5 11U24 exporter 2013-10-29 10:35:15 +00:00
Matthew Else 8786cbf17a Hopefully fixed install_dependencies.sh 2013-10-28 18:35:10 +00:00
Matthew Else 0a9019bd32 Fixed install_dependencies.sh 2013-10-28 18:20:32 +00:00
Matthew Else cb87dbc742 I think, I've added support for ARM_CC using wine... 2013-10-28 18:13:29 +00:00
Matthew Else 3da254960f Fixed file permissions for install_dependencies.sh 2013-10-28 09:35:14 +00:00
Matthew Else 56de616b93 Updated travis :D 2013-10-28 09:32:25 +00:00
Matthew Else d5cc572df1 Added travis image to readme. 2013-10-28 09:29:07 +00:00
Matthew Else ea181069b0 Now using sudo in the travis install commands 2013-10-28 09:27:03 +00:00
Matthew Else ca5a5a4f5f mbedmicro/mbed#87 Added some travis support, I hope. Only currently supports GCC_ARM and untested so far... 2013-10-28 09:23:39 +00:00
Emilio Monti 5aad98af4b Merge pull request #94 from pbrier/master
fixed can_filter() prototype (prevents build of LPC1768)
2013-10-27 09:26:19 -07:00
pbrier b1d88905a9 fixed can_filter() prototype (prevents build of LPC1768) 2013-10-26 17:02:29 +02:00
Emilio Monti 317a1f66d2 Merge pull request #91 from jorisa/master
Add CAN api filter support and LPC11CXX CAN implementation
2013-10-25 06:58:05 -07:00
Bogdan Marinescu 9d881770c9 Merge remote-tracking branch 'github/master' 2013-10-25 15:43:01 +03:00
Emilio Monti 7a15854fb8 Merge pull request #93 from spectaclelabs/bugfix-STM32-vectors
Make STM32F4 vectors relocate properly
2013-10-25 05:20:06 -07:00
Adam Green 969733ae8f serial_putc() to make better use of Tx FIFO
If don't know if this is an issue that anyone cares about.  I am also
not sure what the best way to solve it is either.  I just thought I
would issue a pull request with this commit to bring the issue to light
and show a possible solution that I have tested on my mbed-1768 device.

Previously the serial_putc() API didn't make any use of the Tx FIFO
since the serial_writable() API it utilizes only returns true when the
FIFO is completely empty.  This is due to the fact that the THRE bit of
the UART's LSR (Line Status Register) only goes high when the whole
FIFO is empty.

I noticed this when doing some performance testing with the network
stack.  I went from calling printf() to output 3 bytes every 10 seconds
(with packet drop stats) to instead output 4 bytes every 10 seconds.
I thought these should easily fit in the 16 byte FIFO but outputting
one extra byte caused an additional three 550 byte UDP packets to be
dropped.  This should only happen if the additional character being
sent to the UART was taking away extra CPU cycles from the network
stack.

My solution is to keep track of the number of bytes that have been
placed in the Tx FIFO since it was last detected as being completely
empty (via the THRE bit).  Only once this count hits 16 does the code
then block, waiting for the THRE bit to go high.  Each time the THRE
bit does go high, the count is reset to 0 again and it is incremented
for each byte that is loaded into the THR.
2013-10-25 15:17:06 +03:00
Joe Turner 6ae1e9e360 Merge branch 'master' of git://github.com/mbedmicro/mbed into bugfix-STM32-vectors 2013-10-25 13:11:25 +01:00
Joe Turner 0ef4905728 Fix relocation of vector on STM32. 2013-10-25 13:09:06 +01:00
Bogdan Marinescu 544ac9e728 Disable DEVICE_STDIO_MESSAGES for LPC81X
Because the LPC81X HAL implementation calls error(), which in turn calls
fprintf(), quite a bit of code is added to the image, which is not a good
idea on such resource constrained targets.
2013-10-25 14:51:01 +03:00
Emilio Monti 430869d251 Merge pull request #92 from parisk/feature/pypi
Feature/pypi updates [package name, synced with upstream master]
2013-10-24 02:27:55 -07:00
Paris Kasidiaris 3ec4c4f974 Merge branch 'master' into feature/pypi 2013-10-24 10:19:09 +01:00
Paris Kasidiaris 1de931b04a Updated package name 2013-10-24 10:17:17 +01:00
Bogdan Marinescu 5742abe6d9 Added the new RawSerial.h in mbed.h 2013-10-23 17:28:05 +03:00
Bogdan Marinescu 6af18d0946 Fix error in 'update_repo' call 2013-10-23 17:27:36 +03:00
Bogdan Marinescu 2404dc0092 Added new serial class, remove interrupt chaining
The new RawSerial class is a simple wrapper over the serial HAL that can
be safely used from an interrupt handler.
Interrupt chaining code was removed from InterruptIn, Serial and Ticker
because it caused lots of issues with the RTOS. Interrupt chaining is
still possible using the InterruptManager class.
2013-10-23 16:08:34 +03:00
Joris Aerts 739f2a6375 Add can_api hal implementation to LPC11CXX target
Most of the functionality works, interrupts might need a little more work.
2013-10-22 11:02:10 -07:00
Joris Aerts 08c1483eb3 Add bitfields definition to LPC11XX target
Generated from UM10398
2013-10-22 11:00:17 -07:00
Joris Aerts 067e446ae2 Add CAN->filter to API and add placeholders to hal's
Add filter function and modify CAN->read definition to allow reading specific messages.
2013-10-22 10:57:28 -07:00
Emilio Monti 00c641cf26 Merge pull request #90 from parisk/feature/pypi
PyPI Distribution Code
2013-10-22 05:30:51 -07:00
Paris Kasidiaris ae77a10212 Merge branch 'master' into feature/pypi 2013-10-22 13:25:01 +01:00
Paris Kasidiaris d2318804f1 Restructuring 2013-10-22 12:13:04 +01:00
Bogdan Marinescu fe7021d433 Renamed ubloxusbgsm in main to ubloxusb
Since the tests are now generic (both GSM and CDMA), rename the directory
to reflect this.
2013-10-22 12:41:01 +03:00
Bogdan Marinescu 07519d3bce Merge remote-tracking branch 'github/master' 2013-10-22 12:29:08 +03:00
Bogdan Marinescu ae0bc41693 Added support for CDMA modem in SMSTest
Also remove unnecessary thread from main
2013-10-22 12:27:18 +03:00
Bogdan Marinescu 7f35fc4b76 Added support for CMDA modem in HTTPClientTest
Also remove unnecessary thread from main
2013-10-22 11:59:11 +03:00
Bogdan Marinescu cabc4b6b9d Remove invalid default value for '-p' in make.py
This prevented make.py from running properly.
2013-10-22 11:50:52 +03:00
Bogdan Marinescu 87d93542d1 Merge pull request #89 from amullins83/master
Added 'macros' keyword to build_api.py to allow building USB libraries

Thanks! This is something I've neglected to do in one of my latest commits.
2013-10-21 09:20:56 -07:00
Austin Mullins 081453e376 Merge remote-tracking branch 'origin/master' 2013-10-21 11:07:43 -05:00