Commit Graph

20280 Commits (60b5547b652bbb840afc6e0212d4443890aaf657)

Author SHA1 Message Date
Martin Kojtal 60b5547b65
Merge pull request #8784 from c1728p9/nrf52_serial_fixes
NRF52 serial fixes
2018-11-22 13:43:00 +01:00
Martin Kojtal 30520c9513
Merge pull request #8342 from JuhPuur/icetea_missing_test_doc
Icetea missing test doc
2018-11-22 13:20:39 +01:00
Martin Kojtal 70dfbbfee4
Merge pull request #8189 from deepikabhavnani/wait_updated
Wait API updated to remove deepsleep lock
2018-11-22 11:01:27 +01:00
Martin Kojtal f1f64266c0
Merge pull request #8600 from KariHaapalehto/wisuninterface_created
Wi-SUN interface implementation.
2018-11-22 10:55:58 +01:00
Martin Kojtal 5b42e2886f
Merge pull request #8607 from aashishc1988/ram_rom_fetch
Fetch ram/rom start/size
2018-11-22 10:49:50 +01:00
Martin Kojtal ab1a723611
Merge pull request #8689 from VeijoPesonen/esp8266-driver_v1.7
Add ESP8266 driver v1.7
2018-11-22 10:46:23 +01:00
Martin Kojtal 37630b237d
Merge pull request #8778 from jeromecoutant/PR_LPTIM_DIV
STM32 LPTICKER with LPTIM : reduce clock feature
2018-11-22 09:31:57 +01:00
Martin Kojtal 02266dba98
Merge pull request #8743 from SeppoTakalo/net_stats_doc
Add design document for network statistics.
2018-11-22 09:19:37 +01:00
Martin Kojtal fadaa65da5
Merge pull request #8561 from SenRamakri/sen_CrashReportingDesign
Design document for Crash Reporting feature in MbedOS
2018-11-22 09:18:32 +01:00
Russ Butler 4acdf7012c Disable all NRF52 serial interrupts on init
When initializing serial disable all interrupts as some of these may
have been enabled by a bootloader. This ensures that the NRF52
serial driver remains compatible with any bootloader version.
2018-11-21 14:37:20 -06:00
Martin Kojtal e38d47fed7
Merge pull request #8826 from cmonr/revert-8272
Revert "Merge pull request #8272 from NXPmicro/Ensure_RTC_OSC_Start"
2018-11-21 08:05:41 +01:00
Cruz Monrreal II a5bef60afe Revert "Merge pull request #8272 from NXPmicro/Ensure_RTC_OSC_Start"
This reverts commit 3d859ca1d6, reversing
changes made to 03f4623b80.
2018-11-20 16:58:11 -06:00
Russ Butler 9ce3965ae2 Add flow control for RX FIFO filling
When the RX FIFO is nearly full use flow control to stop receiving
data.
2018-11-19 19:21:46 -06:00
Russ Butler 59bb79b05b NRF52 Serial overhaul
Make the following enhancement:
-Support serial port use without flow control
-Prevent dropped bytes by updating flow control handling
-Remove dead code

Serial port use without flow control:
In the prior implementation there was a window of time between
reloading DMA buffers after a timeout where bytes could be dropped.
This is because the uart needed to be turned off in order to flush the
bytes in the DMA buffer.

This change configures the DMA buffer to only receive one byte at a
time so there is no need to disable the uart to flush it. After each
byte is received the DMA transfer will be over so the transfer will
never be partially complete and need flushing. Since the uart is
always on it is safe to use it even without flow control.

Prevent dropped bytes by updating flow control handling:
To prevent dropped bytes due to high latency the flow control handling
of the RTS line was configured to be asserted automatically by
hardware after each byte. Once the CPU has read the byte and setup
the next receive buffer the RTS line is deasserted to the transfer can
continue. This ensure that when flow control is enabled data won't be
lost due to interrupt latency.

Remove dead code:
With the above changes there is a lot of dead code, such as the timer
handling code. This patch removes the code that is no longer used.
2018-11-19 19:21:45 -06:00
Martin Kojtal 9aef9d3661
Merge pull request #8671 from mray19027/uart_break
Feature: Add non-blocking serial break/unbreak functions
2018-11-19 13:14:55 +00:00
Martin Kojtal 13b60c2991
Merge pull request #8673 from kegilbert/config-range-limits-dev
Add Mbed Configuration Option Range Limits
2018-11-19 13:14:02 +00:00
Martin Kojtal 8dc54f1f76
Merge pull request #8782 from bridadan/fix_test_traceback
Fix traceback when running mbed test
2018-11-19 13:12:34 +00:00
Martin Kojtal 00c5b56e32
Merge pull request #8683 from NXPmicro/feature-qspi-lpc546xx
Feature qspi lpc546xx
2018-11-19 13:11:44 +00:00
Martin Kojtal 31475455ea
Merge pull request #8751 from jarvte/ctx_unittests
Cellular: minor fix to CellularDevice and adding updating unit tests after refactoring
2018-11-19 11:54:56 +00:00
Senthil Ramakrishnan a0e42fa21e Removing config option to print report to terminal on reboot, as it conflicts with current implementation of mbed_error_printf 2018-11-18 20:45:23 -06:00
Senthil Ramakrishnan 2d58f2374c Added more details around crc field and updated document with terminologies used 2018-11-18 20:40:41 -06:00
Senthil Ramakrishnan a87043fd74 Add function to reset the reboot count 2018-11-18 20:40:41 -06:00
Senthil Ramakrishnan 3ffa78ed41 Change phrasing and tense 2018-11-18 20:40:41 -06:00
Senthil Ramakrishnan 340099c9ea Fix code style issues and fix typos in diagrams 2018-11-18 20:40:40 -06:00
Senthil Ramakrishnan 0b9cd601de Updated with crash report region info and new diagrams added 2018-11-18 20:40:40 -06:00
Senthil Ramakrishnan 8c48a24ad4 Fix tab issues in TOC 2018-11-18 20:40:40 -06:00
Senthil Ramakrishnan 108483d5cb Updated TOC 2018-11-18 20:40:40 -06:00
Senthil Ramakrishnan a721158cd6 Boot sequence diagram added 2018-11-18 20:40:39 -06:00
Senthil Ramakrishnan c3d2c446d0 Fixed sentences and context 2018-11-18 20:40:39 -06:00
Senthil Ramakrishnan a6e76049be Adding usage scenarios 2018-11-18 20:40:39 -06:00
Senthil Ramakrishnan 28a0b4554b Updated design doc 2018-11-18 20:40:39 -06:00
Senthil Ramakrishnan 5489eacb18 Crash reporting design doc 2018-11-18 20:40:39 -06:00
Senthil Ramakrishnan d4fc8fe66c Crash Reporting Design 2018-11-18 20:40:38 -06:00
Russ Butler 21dd8e40ab Configure NRF52 uart on interrupt attach
When attaching an irq to serial call nordic_nrf5_serial_configure.
This ensures the serial is ready to receive data at the correct
baudrate.
2018-11-16 17:35:54 -06:00
Marcus Chang bb98ce082e Make serial_putc for NRF52 non-blocking
Busy-wait before sending a charecter instead of after. If
serial_writeable has been called first, the busy-wait loop will
be skipped.

Added initialization code to ensure NRF_UARTE_EVENT_TXDRDY is
armed correctly.
2018-11-16 17:32:53 -06:00
Russ Butler 4cda158e55 Fix uart race condition dropping bytes on NRF52
In nordic_nrf5_uart_event_handler if the events NRF_UARTE_EVENT_ENDRX
and NRF_UARTE_EVENT_RXSTARTED become pending after the check for
NRF_UARTE_EVENT_ENDRX but before the check for
NRF_UARTE_EVENT_RXSTARTED the RX DMA buffers will be setup incorrectly
by nordic_nrf5_uart_event_handler_rxstarted because active_bank hasn't
been updated. This cause dropped and incorrect data.

This patch fixes that problem by adding a second check for
NRF_UARTE_EVENT_ENDRX after checking for NRF_UARTE_EVENT_RXSTARTED
and skipping processing if NRF_UARTE_EVENT_ENDRX is set. The
subsequent interrupt will process both in the correct order. This
ensures that these events cannot be handled out of order and thus fixes
the corruption.
2018-11-16 17:30:31 -06:00
Brian Daniels 6cab1e0018 Fixing traceback when running mbed test 2018-11-16 15:28:50 -06:00
Cruz Monrreal d643034941
Merge pull request #8668 from jamesbeyond/fm_emac
Enable Fast Models emac drivers
2018-11-16 09:52:06 -06:00
Aashish chaddha 329c553595 ifdef ram/rom size/start in case they dont exist 2018-11-16 09:38:26 -06:00
jeromecoutant 1ec222f268 STM32 LPTICKER with LPTIM : reduce clock feature 2018-11-16 15:34:57 +01:00
Mahesh Mahadevan 6bd0be186b Add MT25Q Flash config
Signed-off-by: Maciej Bociański <maciej.bocianski@arm.com>
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-11-16 08:15:48 -06:00
Mahesh Mahadevan c21c599b25 Update the QSPI unit test for NXP LPC546XX board
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-11-16 07:56:30 -06:00
Mahesh Mahadevan f8f9faa841 LPC566XX LPCXpresso: Update to add QSPI support
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-11-16 07:56:29 -06:00
Mahesh Mahadevan b3d0b5c210 Remove QSPI support for FF_LPC546XX target
This needs a device specific file

Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-11-16 07:56:29 -06:00
Mahesh Mahadevan 4bbf0025b8 LPC MCUXpresso: Add QSPI support
Signed-off-by: Mahesh Mahadevan <mahesh.mahadevan@nxp.com>
2018-11-16 07:56:28 -06:00
Martin Kojtal 5299017553
travis: anchor grep for astyle
Should not pick up .cmake files (just .c files)
2018-11-16 13:38:36 +00:00
Teppo Järvelin f5ad355854 travis: exclude deleted files for astyle. 2018-11-16 13:58:04 +02:00
Teppo Järvelin 24213b4601 astyles fixes for UNITESTS. 2018-11-16 13:14:38 +02:00
Teppo Järvelin e5c3024849 Cellular: adding unit tests for new class CellularContext and changed classes. 2018-11-16 13:14:38 +02:00
Qinghao Shi d157e59267 reformat to following codeing style rules 2018-11-16 10:29:31 +00:00