Martin Kojtal
3fe0022baf
Merge pull request #12902 from kjbracey-arm/chrono_usb
...
USB: Convert to Chrono
2020-05-12 14:22:59 +02:00
Kevin Bracey
0a9e1db181
Correct Timeout rescheduling
...
Chrono changes "optimised" `Timeout::handler` in a way that broke users
who rescheduled the timeout during their attached callback.
Attempted optimisation is less necessary now that
`platform.callback-nontrivial` is set to false by default - that
setting reduces overhead of copying the `Callback` to almost nothing.
2020-05-07 17:00:59 +03:00
Kevin Bracey
cd6e7bb4cf
USB: Convert to Chrono
2020-04-30 13:33:15 +03:00
Martin Kojtal
d1ae0d570c
Merge pull request #12425 from kjbracey-arm/chrono
...
C++ Chrono support
2020-04-30 11:41:43 +02:00
Rajkumar Kanagaraj
adeae5157f
Add the newline
2020-04-28 16:55:58 +01:00
Rajkumar Kanagaraj
d4e2d6961a
Add MBED_CONF_RTOS_PRESENT guard to enable USBCDC_ECM class device only for MBED OS full profile.
2020-04-27 15:00:33 +01:00
Kevin Bracey
b614bd3113
Durations don't always zero init
...
In a couple of places I assumed that durations and time_points always
zero-initialised. This is incorrect - they act as if they were their
representation, so integer durations only zero-init when static.
You can zero init (like integers) by having `{}` initialisation.
2020-04-27 10:19:08 +03:00
Kevin Bracey
58388b7e5e
Out-of-line LowPowerTimeout etc, lock
...
To match Timer etc, make LowPowerTimer et al out-of-line.
Correct LowPowerTimeout to not lock deep sleep.
2020-04-27 10:19:08 +03:00
Rajkumar Kanagaraj
a10dafdda8
Fix the CI build issue
2020-04-27 10:19:08 +03:00
Rajkumar Kanagaraj
c71c980ccd
Fix the CI build and unit test issue
2020-04-27 10:19:08 +03:00
Kevin Bracey
34428f9d4c
Add Chrono support to Ticker et al
2020-04-27 10:19:08 +03:00
Martin Kojtal
b7664fa78c
Merge pull request #12680 from dustin-crossman/pr/qspi_partial_fix
...
QSPI driver also acquires ownership upon initialization now.
2020-04-02 13:59:40 +02:00
Anna Bridge
292a1b9862
Merge pull request #12693 from maciejbocianski/fix_usb_msd
...
USBMSD security updates
2020-03-27 12:08:02 +00:00
Maciej Bocianski
1ffb4d7356
update USBMSD::memoryWrite implementation
...
Fix prevents unaligned USB transfers
2020-03-24 22:05:46 +01:00
Maciej Bocianski
89e67d3136
update USBMSD::memoryRead implementation
...
Fix protects underlaying block device from out-of-bound reads
2020-03-24 21:52:03 +01:00
Maciej Bocianski
ac105f5a18
update USBMSD::infoTransfer implementation
...
Fix protects underlaying block device from out-of-bound read/writes
- prevents the host from setting block device addres larger then block device size
- prevents the host from setting wrong read/write lenght
2020-03-24 21:28:23 +01:00
Dustin Crossman
1e000bb9ae
QSPI driver also acquires ownership upon initialization now.
2020-03-23 12:11:47 -07:00
Anna Bridge
4a5fac34a1
Merge pull request #12528 from VeijoPesonen/sfdp_split_5
...
SFDP: consolidation of SFDP parsing [5/5]
2020-03-20 16:26:39 +00:00
Anna Bridge
d048cd4c83
Merge pull request #12410 from rajkan01/serial_remove_deprecate
...
Remove the deprecated RawSerial, UARTSerial, Serial
2020-03-20 15:19:32 +00:00
Veijo Pesonen
b89e60ba8f
SFDP: code readability improvements
2020-03-17 17:48:39 +02:00
Veijo Pesonen
eb01afb198
SFDP: fixes a trace print
...
Indexing runs from highest to lowest, not other way round.
2020-03-17 17:48:39 +02:00
Veijo Pesonen
e04a1a4017
SFDP: adds traces to identify known SFDP headers
2020-03-17 17:48:39 +02:00
Veijo Pesonen
43289c74ce
SFDP: converts to smart pointers
...
C++14-ify memory allocation.
2020-03-17 17:43:09 +02:00
Veijo Pesonen
e40ce82fee
SFDP: Sector Map Parameter Tbl parsing refactored
...
Making search for common erase type between regions more clear
2020-03-17 17:43:09 +02:00
Veijo Pesonen
19c9735a9f
Bugfix: SFDP Sector Map Param Tbl size is variable
...
Earlier it was assumed that the table has a certain max length but that
isn't true.
2020-03-17 17:43:09 +02:00
Veijo Pesonen
a088d30b6d
SFDP: whitespace cleanup
2020-03-17 17:43:09 +02:00
Anna Bridge
5aab4c4f11
Merge pull request #12524 from VeijoPesonen/sfdp_split_4
...
Bugfix: Concurrent SFDP header address init fixed
2020-03-06 13:57:07 +00:00
Martin Kojtal
ea3761f38d
Merge pull request #12531 from dustin-crossman/pr/flashiap_fix
...
Add check so that FlashIAP does not allocate memory on flash_init failure
2020-03-05 15:36:57 +00:00
Rajkumar Kanagaraj
df32091c7b
Remove the deprecated RawSerial, UARTSerial, Serial class and SerialBase attach API
2020-03-03 05:19:42 -08:00
Martin Kojtal
a937d30501
Merge pull request #12511 from paul-szczepanek-arm/patch-1
...
allow reconfiguring a running watchdog
2020-03-03 13:00:45 +00:00
Veijo Pesonen
98dbebb3ed
SFDP: Refactor Sector Map Parameter Table parsing
...
Doxygen documentation was updated.
Code reorganized to make it more readable.
Moves SFDP specific bits out from Q/SPIFBlockDevices.
2020-03-02 11:07:03 +02:00
Veijo Pesonen
c84deff782
SFDP: consolidates check for addressability
...
Takes implementations found from SPIFBlockDevice and QSPIFBlockDevice
and makes those as part of the SFDP module.
2020-03-02 11:04:05 +02:00
Veijo Pesonen
2ce3bed910
SFDP: consolidates device density detection
...
Combines implementations found from SPIFBlockDevice and QSPIFBlockDevice
and makes it as part of the SFDP module.
2020-03-02 11:02:09 +02:00
Dustin Crossman
2f97c2d747
Add check so that FlashIAP does not allocate memory on flash_init failure.
2020-02-28 09:58:25 -08:00
Martin Kojtal
1f36b1cf09
Merge pull request #12450 from VeijoPesonen/sfdp_split_bptbl_2
...
SFDP: consolidation of SFDP parsing [3/n]
2020-02-27 17:08:14 +00:00
Martin Kojtal
10842f7a57
Merge pull request #12500 from rajkan01/ethernet_remove_deprecate
...
Remove the deprecated ethernet APIs
2020-02-27 08:46:42 +00:00
Veijo Pesonen
c953b656ac
SFDP: provides doxygen documentation improvements
2020-02-26 13:44:34 +02:00
Martin Kojtal
5969fdf8ef
Merge pull request #12501 from rajkan01/intmgr_remove_deprecated
...
Remove the deprecated the InterruptManager APIs
2020-02-26 10:49:54 +00:00
Veijo Pesonen
ca704a4b3d
SFDP: consolidates erase region search
...
Merges erase region search found from SPIFBlockDevice and
QSPIFBlockDevice. Moves the implementation within the SFDP
component
2020-02-26 12:41:34 +02:00
Paul Szczepanek
fdf1c33a1f
allow reconfiguring a running watchdog
2020-02-25 16:12:50 +00:00
Martin Kojtal
32f615e420
Merge pull request #12495 from kjbracey-arm/override_serial
...
C++11-ify virtualisation in FileHandle + Serials
2020-02-25 16:00:43 +00:00
Martin Kojtal
1c12083949
Merge pull request #12426 from VeijoPesonen/sfdp_split_bptbl
...
SFDP: consolidation of SFDP parsing [2/n]
2020-02-25 13:57:23 +00:00
Rajkumar Kanagaraj
6eb36f3a8e
Remove the deprecated the InterruptManager APIs
2020-02-24 05:32:44 -08:00
Rajkumar Kanagaraj
c4a54e38cb
The `Ethernet` APIs are no longer supported, so removed header and cpp files and its dependency.
2020-02-24 05:23:21 -08:00
Kevin Bracey
c39959ca8b
C++11-ify virtualisation in FileHandle + Serials
...
Use `override` and `final` where appropriate, and eliminate unnecessary
`virtual`.
2020-02-24 10:37:17 +02:00
Anna Bridge
8c17270306
Merge pull request #12480 from 0xc0170/fix_spdx
...
Fix SPDX identifiers and licenses (excluding features and targets)
2020-02-21 16:34:30 +00:00
Martin Kojtal
f1887e875f
drivers: fix SDPX identifiers
2020-02-21 07:00:56 +00:00
Veijo Pesonen
de22648e76
SFDP: refactoring traces and defines
2020-02-20 09:46:41 +02:00
Veijo Pesonen
107f003af6
SFDP: sanitizes API
2020-02-20 09:46:41 +02:00
Veijo Pesonen
6a60574cf5
SFDP: consolidates sfdp_detect_erase_types_inst_and_size
2020-02-20 09:46:40 +02:00