Commit Graph

13662 Commits (8340f5041a3887193d536f3632b2a80b3e7008c6)

Author SHA1 Message Date
Clemens Mandl 25a5c0d844 Removed getattr() where it was not needed 2018-01-27 00:57:46 -06:00
Clemens Mandl 33be40c613 Fixed indention in Line 217 and 218 2018-01-27 00:57:45 -06:00
Clemens Mandl 24e2fc86ed Removed unnecessary list comprehension 2018-01-27 00:57:45 -06:00
Clemens Mandl eed5061783 Refactoring of function get_netbeans_file_list(file_list) to have a clearer code 2018-01-27 00:57:45 -06:00
Clemens Mandl c2ebdf32c6 Removed another block of unused (commented) code 2018-01-27 00:57:45 -06:00
Clemens Mandl be3d5748db Removed commented Line 2018-01-27 00:57:45 -06:00
Clemens Mandl f3a42f400a Fixed Linking with Linker Script 2018-01-27 00:57:45 -06:00
c.mandl 103244da8c Refactoring of Netbeans Exporter...still some more work to do, because linking still not works 2018-01-27 00:57:45 -06:00
c.mandl 979e54b031 Removed commented Line 2018-01-27 00:57:44 -06:00
c.mandl 0ffd251cd2 Added Netbeans Exporter 2018-01-27 00:57:44 -06:00
iotvietmember 88fbf6b341 Add detect_code=0xC006 to the VBLUNO51 boards configuration.
Add detect_code=0xC006 to the VBLUNO51 boards configuration.
Disbale UART Hard flow control feature.

Signed-off-by: iotvietmember <robotden@gmail.com>
2018-01-27 00:57:44 -06:00
Abdelhak Bougouffa 9c464a0338 Add checking for MAX_HUB_NB in a part of code that depend on MAX_HUB_NB 2018-01-27 00:57:44 -06:00
Abdelhak Bougouffa 597633d445 Replace the old deprecated callbacks 2018-01-27 00:57:44 -06:00
Russ Butler 379daa653d Fix LPC17XX and LPC40XX USB data throttling
Only clear the USB read buffer when endpointRead is called. This
allows data to be read with endpointReadResult without also allowing
USB to transfer more data. Instead additional data is transferred explicitly
with a call to endpointRead.
2018-01-27 00:57:43 -06:00
Russ Butler 183526bc04 Fix LPC17XX and LPC40XX USB race condition
If a SETUP packet arrives shortly after an IN then the packets will be
processed in the wrong order - SETUP first then IN. This causes
the subsequent control transfer to fail. Fix this problem by processing
IN packets before processing SETUP packets.
2018-01-27 00:57:43 -06:00
Russ Butler 09bb1c4919 Kinetis USB improvements and fixes
Make the following improvements and fixes:

1.
Update the Kinetis USB driver so that endpointReadResult only reads the
result of the last read and does not trigger a new read. Instead
move the code to trigger new reads into endpointRead.

2.
Fix the race condition in controlIn caused by a call to
EP0read() followed immediately by  EP0readStage(). This is done by
setting up to read the next setup packet (ignoring the status stage)
in endpointReadResult rather than in EP0readStage. This makes the
function EP0readStage unnecissary.

3.
Remove the Kinetis workaround in controlOut in USBDevice.cpp since
point 2 fixes this bug. For more info on this see the PR which
added this workaround - https://github.com/ARMmbed/mbed-os/pull/414
2018-01-27 00:57:43 -06:00
Ashok Rao 4e38baf637 Adding MTB MTS_Dragonfly as a new target 2018-01-27 00:57:43 -06:00
Arto Kinnunen 8801b0f0e9 Squashed 'features/nanostack/FEATURE_NANOSTACK/coap-service/' changes from d0a2597..8689fca
8689fca Reverting address check from transaction find (#89)
ca3c3ab Fix transactions to handle all token lengths (#87)

git-subtree-dir: features/nanostack/FEATURE_NANOSTACK/coap-service
git-subtree-split: 8689fca7b18e03776dce7083a03bd570a8bc0d43
2018-01-27 00:57:35 -06:00
Christopher Haster 08a4b0e4b6 Added COMMON folder for tests
A COMMON folder allows code reuse across different test cases. This
avoids code duplication or code enterying the application space.

The COMMON folder is uppercase to match naming conventions in Mbed OS.
2018-01-27 00:57:28 -06:00
Christopher Haster c917231427 littlefs: Fixed issue with immediate exhaustion and small unaligned storage
This was a small hole in the logic that handles initializing the
lookahead buffer. To imitate exhaustion (so the block allocator
will trigger a scan), the lookahead buffer is rewound a full
lookahead and set up to look like it is exhausted. However,
unlike normal allocation, this rewind was not kept aligned to
a multiple of the scan size, which is limited by both the
lookahead buffer and the total storage size.

This bug went unnoticed for so long because it only causes
problems when the block device is both:
1. Not aligned to the lookahead buffer (not a power of 2)
2. Smaller than the lookahead buffer

While this seems like a strange corner case for a block device,
this turned out to be very common for internal flash, especially
when a handleful of blocks are reserved for code.
2018-01-27 00:57:28 -06:00
Kevin Bracey 0cc7a9d647 NSAPI: Add Nanostack multicast membership support
Add support for recently introduced NSAPI generic socket options to
control group membership. Previously applications using Nanostack would
have had to use Nanostack's native socket options.
2018-01-27 00:57:28 -06:00
chrisyang 9e813569f7 rtl8195am - reorder some defines properly in ota header file 2018-01-27 00:57:28 -06:00
chrisyang 0e9249a381 rtl8195am - move region headers to 0xb000 and 0xc000
The new layout is as follows:

0x000000 - 0x008000  => bootloader
0x008000 - 0x00b000  => system sectors
0x00b000 - 0x00c000  => region1 header
0x00c000 - 0x00d000  => region2 header
0x00d000 - 0x010000  => reserved
0x010000 - 0x040000  => mbed file system
0x040000 - 0x120000  => region1 image
0x120000 - 0x200000  => region2 image

This is to ensure when daplink erases sections, both regions' headers
are erased properly.
2018-01-27 00:57:28 -06:00
ccli8 74fdd09939 Add gpio_is_connected 2018-01-27 00:57:27 -06:00
Vincent Coubard a786d347db BLE: Fix inclusion of BLE.h (case) 2018-01-27 00:57:27 -06:00
jeromecoutant c4bff4ef58 STM32 LPT optimisation 2018-01-27 00:57:27 -06:00
bcostm 5e85ff9133 STM32 CAN: fix wrong ID and MASK filter 2018-01-27 00:57:27 -06:00
jeromecoutant 5bdeb14424 STM32F4: STDIO_UART_TX and STDIO_UART_RX can be now user defined
NB for UBLOX targets: usb_rx and usb_tx config name are still available
in order to not break current applications.
2018-01-27 00:57:27 -06:00
jeromecoutant cd3a35e79c STM32L4: STDIO_UART_TX and STDIO_UART_RX can be now user defined 2018-01-27 00:57:25 -06:00
jeromecoutant 346d4cd986 STM32L1: STDIO_UART_TX and STDIO_UART_RX can be now user defined 2018-01-27 00:57:25 -06:00
jeromecoutant c92c7cfbc6 STM32L0: STDIO_UART_TX and STDIO_UART_RX can be now user defined 2018-01-27 00:57:25 -06:00
jeromecoutant 4edae1a028 STM32F7: STDIO_UART_TX and STDIO_UART_RX can be now user defined 2018-01-27 00:57:24 -06:00
jeromecoutant 3812bdb1bc STM32F3: STDIO_UART_TX and STDIO_UART_RX can be now user defined 2018-01-27 00:57:24 -06:00
jeromecoutant 2bf5222024 STM32F2: STDIO_UART_TX and STDIO_UART_RX can be now user defined 2018-01-27 00:57:24 -06:00
jeromecoutant fc91827a52 STM32F1: STDIO_UART_TX and STDIO_UART_RX can be now user defined 2018-01-27 00:57:24 -06:00
jeromecoutant 12106236e1 STM32F0: STDIO_UART_TX and STDIO_UART_RX can be now user defined 2018-01-27 00:57:24 -06:00
jeromecoutant 0b5fe8de99 STM32: update init procedure
- STDIO_UART define is no more used
- configuring a new serial with the same UART as STDIO is no more allowed
2018-01-27 00:57:24 -06:00
Steven Cooreman 54bd620b6f Fix for #5840
This commit fixes #5840. Fix verified by running mbed_hal-lp_ticker test suite with preloaded RTC counter such that it wrapped in the middle of the suite.
Also removes explicit sleep blocking from the us_ticker implementation, since sleep blocking for us tickers is done at mbed HAL level now. This was causing one of the lp_ticker tests to fail.
2018-01-27 00:57:23 -06:00
Christopher Haster 388041afeb littlefs: Fix block addr overflow
deepikabhavnani did the hard work in tracking this issue down.  Block
addresses are not cast to the correct type until after multiplying to
convert to byte addresses. This results in an overflow when the storage
is larger than 4 GB.
2018-01-27 00:57:23 -06:00
Steven Cooreman 3ca6c55feb Allow overriding of DCDC settings per target
Allow custom targets to override the DCDC settings by defining EMU_DCDCINIT_STK_DEFAULT to target-specific initialization values.
2018-01-27 00:57:23 -06:00
Daniel Schuler 6ca58de840 Add presentation format descriptor support for NRF52 2018-01-27 00:57:23 -06:00
Tero Jääskö e86a2b090f platform: Fix C++ allocation wrappers for GCC compilation
Fix the caller address logging on the GCC compilation too.
Previously the code logged the caller address as C++ wrapper,
not the actual caller of the C++ operator new or delete.
2018-01-27 00:57:23 -06:00
Tero Jääskö ae5a5862f1 platform: make C++ allocation wrappers log the correct caller address
The C++ "operator new" and "operator delete" (and their array
variants) were logging the the caller address wrong. In practice
if one used "operator new", the logged caller address pointed
to mbed_retarget.cpp, not to the client. Fix this by exposing
the alloc wrappers to the the retarget.

Note: this fixes only the ARMCC variants, as the GCC ones have
different different API and implementation.
2018-01-27 00:57:22 -06:00
Seppo Takalo 544d6b5d88 Clarify TCPSocket::recv() and UDPSocket::recvfrom() documentation. 2018-01-27 00:57:22 -06:00
Tero Heinonen 44bf90b716 mesh-api documentation removed
All documentation is now in Handbook
2018-01-27 00:57:22 -06:00
jeromecoutant 72c648ae62 STM32 LOWPOWERTIMER : introduce LPTIM feature
STM32L0, L4, F7 and few F4 chip are supporting LPTIM feature.
We propose to allow user to use LPTIM for MBED LowPowerTimer API instead of using RTC wakeup timers.

By default, all targets that are supporting this feature have been configured.
2018-01-27 00:57:22 -06:00
Amanda Butler 09f6c63219 Copy edit Thread.h
Copy edit file for active voice.
2018-01-27 00:57:22 -06:00
Amanda Butler 5e289cba3b Copy edit Semaphore.h
Copy edit file for active voice.
2018-01-27 00:57:22 -06:00
Amanda Butler 6d77c7fc8e Copy edit RtosTimer.h
Copy edit file for active voice.
2018-01-27 00:57:22 -06:00
Amanda Butler 06b8b8ccff Copy edit Queue.h
Copy edit file for active voice.
2018-01-27 00:57:21 -06:00