pea-pod
e1c754b179
Add SPI bitwidths to ST targets where supported
2021-01-11 07:53:07 -06:00
Rajkumar Kanagaraj
20fb74f829
Add CMake support
2021-01-05 09:10:05 -08:00
Ahmet Alincak
9eec40873b
Add internal subfolder to USBDriver's CMakelists
...
To build USB Drivers for targets which have USBDevice attribute,
subfolder added as header file path.
2020-12-18 13:54:59 +03:00
Hugues Kamba
5082e957e2
CMake: Remove TODO note in device_key list input source file
...
The Device Key API is a security API that relies on storage. It is not a storage API
2020-12-16 11:47:51 +00:00
Anna Bridge
9f18c445ee
Merge pull request #13908 from LDong-Arm/kvstore_libraries
...
Restructure KVStore to one library per store type
2020-12-11 13:41:16 +00:00
Martin Kojtal
be295e42a4
Merge pull request #13917 from LDong-Arm/move_SFDP
...
Move SFDP to blockdevice
2020-12-10 13:03:23 +00:00
Lingkai Dong
c2cc43875a
CMake: add missing linkages of storage libraries
2020-12-09 17:26:32 +00:00
Lingkai Dong
386926615c
CMake fix: SFDP already moved to BlockDevice
2020-12-09 17:26:32 +00:00
Lingkai Dong
8ba64c4139
Update include paths
2020-12-09 17:20:42 +00:00
Martin Kojtal
4c94b4b495
Merge pull request #14005 from kjbracey-arm/teinsert
...
Correct/clarify TimerEvent::insert documentation
2020-12-09 14:18:06 +00:00
Kevin Bracey
cf66a6ed13
Correct/clarify TimerEvent::insert documentation
...
There was much confusion over the functionality of the original
`TimerEvent::insert` call which was described as "Set relative timestamp
of the internal event".
This then extended to my Chrono conversion, meaning the new `insert`
call is not equivalent.
Clarify the original documentation, correct the deprecation messages,
and add more notes on conversion.
No functional change, as the new Chrono API makes more sense - it's just
different from the old API.
Problem actually spotted when I saw the strange code `convert_timestamp`
was producing for the 32-bit->64-bit timestamp conversion. The caller of
it was actually making the mistake of issuing
"TimerEvent::insert(rel_timeout)`, meaning they'd also misunderstood the
documentation, and were not getting the timeout they expected.
(Chrono would have prevented that mistake as durations and time points
are incompatible types).
2020-12-07 16:28:52 +02:00
Lingkai Dong
562b31ccd3
Move SFDP unit tests
2020-12-07 12:05:07 +00:00
Lingkai Dong
5d2fbdc11e
Move SFDP into blockdevice where it belongs to
2020-11-26 17:31:31 +00:00
Martin Kojtal
61e4b55a22
Merge pull request #13947 from LDong-Arm/erase_algorithm_fix
...
Fix erase type determination for [Q/O/]BlockDevice::erase()
2020-11-26 15:53:03 +00:00
Lingkai Dong
c41f7cb864
Fix integer type warnings in SFDP and *SPIFBlockDevice
2020-11-26 10:28:58 +00:00
Lingkai Dong
fb0f9687e4
Initial unit test for SFDP
...
As a starting point, only sfdp_iterate_next_largest_erase_type(),
which the pull request is intended to fix, is tested. More test
cases shall be added in the future.
2020-11-26 09:55:47 +00:00
Lingkai Dong
e0bd9a1c6a
sfdp_iterate_next_largest_erase_type: return -1 if no erase type is applicable
2020-11-25 13:34:01 +00:00
Lingkai Dong
ac86aff928
sfdp_iterate_next_largest_erase_type: do not modify type_mask
...
The supported erase types of a given flash region are indicated
in bitfields of the variable `type_mask`. Even if an erase type
is unused for the current chunk (e.g. size too large, unaligned, etc.),
its bitfield should NOT be cleared - the same erase type might
actually be useful for the next chunk.
The function argument is now a value instead of a reference.
2020-11-24 18:07:34 +00:00
Martin Kojtal
57bbb4739b
Merge pull request #13085 from pea-pod/remove-deprecated-mbed-assert
...
Change MBED_STATIC_ASSERTs version for built-in
2020-11-24 13:38:07 +00:00
Lingkai Dong
52627dbc59
sfdp_iterate_next_largest_erase_type: fix size check and add alignment check
2020-11-23 15:45:43 +00:00
Evelyne Donnaes
b7c6bd34f5
Updated CMakeLists.txt
2020-11-12 15:34:47 +00:00
Evelyne Donnaes
30e9050f10
Moved USB greentea tests
2020-11-12 14:57:01 +00:00
Evelyne Donnaes
9964212f9e
Moved USB drivers under drivers/usb
2020-11-12 14:57:00 +00:00
Martin Kojtal
f333c3ead1
Merge pull request #13699 from boraozgen/bugfix/sfdp-find-addr-region
...
Fix sfdp_find_addr_region algorithm
2020-11-12 08:43:02 +00:00
Martin Kojtal
e8a3282181
Merge pull request #13816 from pennam/patch-stm32-usbhs-pull
...
STM32: allow HS USB endpoints and increase USB OTG_HS endpoints number
2020-11-11 08:27:19 +00:00
Martino Facchin
db7954bc9b
STM32: allow high speed USB endpoints
2020-11-10 17:22:28 +01:00
Hugues Kamba
794e32df74
CMake: Use relative paths to list source files and directories
...
The absolute path is still required for listing linker
files as they are referenced from a function in the top
level CMake input source file.
2020-11-09 12:32:30 +00:00
Rajkumar Kanagaraj
e7c0d93ad4
CMake: add mbed-os and mbed-baremetal targets
...
mbed-os consists of mbed-core and mbed-rtos
mbed-baremetal consists of mbed-core
The main change is for mbed-core. Changing from object library to be interface. This way it allows us to do the above to have 2 main targets for users to use.
This should be backward compatible change as mbed-os target we used contains the same files/options as previously set.
2020-11-06 17:25:22 +00:00
Hugues Kamba
bf84a5b329
CMake: Rename CMake targets
...
* mbed-os renamed mbed-core
* mbed-os-<COMPONENT> renamed mbed-<COMPONENT>
2020-11-06 17:25:22 +00:00
Hugues Kamba
fa98689639
CMake: Componentize Mbed OS into multiple CMake targets ( #13732 )
...
Aside from the core mbed-os CMake target, a number of targets have been created so they can optionally be included by application executables that require them using `target_link_libraries()`.
Co-authored-by: Martin Kojtal <martin.kojtal@arm.com>
Co-authored-by: Rajkumar Kanagaraj <rajkumar.kanagaraj@arm.com>
2020-11-06 17:25:21 +00:00
Hugues Kamba
f12f9adbed
CMake: Fix failures due to device_key and storage dirs move
2020-11-06 17:25:19 +00:00
Hugues Kamba
e744208c07
CMake: Fix build failure due to drivers and lwipstack dirs move
2020-11-06 17:25:18 +00:00
Hugues Kamba
840828947d
CMake: Add support for drivers dir
2020-11-06 17:25:15 +00:00
Bora Özgen
7f0716ad60
Fix sfdp_find_addr_region algorithm
...
sfdp_find_addr_region() was causing issues with SPI
flashes with sector table parsed from SFDP (in
particular SST26VF016B).
In particular, it was returning -1 when address 0 is
passed (probably also if the address in the first
region). I do not know why the search algorithm is
written to search from the higher to lower regions,
but it was obvious that it would fail for the first
region. Also it was harder to read due to the index
manipulation.
2020-11-03 14:23:02 +01:00
pea-pod
507181d262
Change MBED_STATIC_ASSERTs version for built-in
2020-10-27 08:30:40 -05:00
Harrison Mutai
4fad1112e5
Add SPDX license identifier to Arm files
...
Add license identifier to files which Arm owns the copyright to,
and contain either BSD-3 or Apache-2.0 licenses. This is to address
license errors raised by scancode analysis.
2020-10-15 10:47:27 +01:00
Martin Kojtal
21652971a5
Merge pull request #12644 from macronix/macronix_ospi
...
Add OSPI driver to support the Octa mode of Macronix octaflash MX25LM51245G
2020-09-30 16:07:20 +01:00
Martin Kojtal
d829ac3fa8
Merge pull request #13649 from LDong-Arm/mbed-trace-default
...
Make mbed-trace available to bare metal
2020-09-22 16:24:18 +01:00
Lingkai Dong
7a8460a759
drivers/SFDP: mbed-trace header is now always available
...
This reverts commit 183ca7729c
.
Now the "mbed_trace.h" header is always available and maps
trace functions to dummy macros when tracing is disabled.
2020-09-21 15:40:38 +01:00
Rajkumar Kanagaraj
19908b2b21
Refactor hal, platform, rtos docs
2020-09-17 16:03:43 +01:00
rogeryou
48524f25ae
add opsi driver
2020-09-16 11:27:23 +08:00
Martin Kojtal
468372e759
Merge pull request #13492 from talorion/fix-PwmOut-resets-after-suspend
...
Fix pwm out resets after suspend
2020-09-10 12:40:18 +01:00
Martin Kojtal
b2ac60924c
Merge pull request #13476 from talorion/bugfix/fix-warnings
...
Fix trivial compiler Warnings
2020-09-07 09:58:41 +01:00
Martin Kojtal
1778c6d501
Merge pull request #13501 from jeromecoutant/PR_USB_TEST
...
USB-DEVICE tests: move host scripts
2020-09-07 09:37:41 +01:00
Lingkai Dong
183ca7729c
drivers/SFDP should compile without mbed-trace
...
The library "drivers" is a core one available to bare metal.
It should not depend on mbed-trace which is an optional library.
2020-09-02 15:50:25 +01:00
talorion
6625bdb9f3
fixed resets after suspend
2020-09-02 13:39:16 +02:00
Lingkai Dong
af1950fb16
Add include/ path for mbed-trace
2020-09-02 12:30:59 +01:00
Lingkai Dong
a88438ce04
Move mbed-trace into platform
2020-09-02 12:30:59 +01:00
jeromecoutant
f9832cb3be
USB_DEVICE MSD test skipped when RAM is limited
2020-08-27 11:13:21 +02:00
jeromecoutant
ccece2fdee
Move USB host tests
2020-08-27 11:13:16 +02:00
talorion
a721767c00
fixed warnings: comparison of integer expressions of different signedness
2020-08-24 15:34:20 +02:00
Anna Bridge
4ba1a5433f
Merge pull request #13433 from LDong-Arm/refactor_device_key
...
Refactor device_key
2020-08-24 12:56:10 +01:00
Lingkai Dong
2f92378642
Move TESTS/usb_device -> drivers/tests/TESTS/usb_device
2020-08-14 17:57:13 +01:00
Lingkai Dong
3681a874e6
Restruture device_key
...
Restructure device_key to have
* include/device_key - header
* source - source file
* tests/TESTS - Greentea test
2020-08-14 17:31:11 +01:00
Lingkai Dong
ccacd5caf6
Move device_key into drivers
2020-08-14 17:16:40 +01:00
George Psimenos
bb5c2cf32a
Duplicate host tests for drivers
2020-07-31 10:04:36 +01:00
George Psimenos
0a759aaa38
Move drivers greentea tests
2020-07-31 10:04:36 +01:00
George Psimenos
973c1dc2ff
Move drivers unit tests
2020-07-31 10:04:36 +01:00
George Psimenos
009f91e2cc
Move drivers headers
2020-07-31 10:02:47 +01:00
Martin Kojtal
f20f93a648
Merge pull request #13333 from gpsimenos/gp-events-restruct
...
Events directory restructuring
2020-07-29 12:44:17 +01:00
George Psimenos
76f37fb2bc
Restructure events directory & move tests
2020-07-28 09:17:19 +01:00
Kyle Kearney
9e4be5e494
Call HAL free functions from C++ destructors
...
Add missing calls to HAL free to the following drivers
- AnalogIn
- QSPI
- SerialBase
2020-07-20 12:15:40 -07:00
Rajkumar Kanagaraj
e92efbd800
Update the header file reference
2020-07-17 03:10:58 -07:00
Rajkumar Kanagaraj
aafdb8a0a3
Update the header reference from feature/storage to stroage
2020-07-10 14:59:53 +01:00
Martin Kojtal
802c89707e
Merge pull request #12905 from kjbracey-arm/timer_tweaks
...
Timer: minor revisions
2020-06-18 22:23:56 +02:00
Martin Kojtal
86dad5cda9
Merge pull request #12471 from AGlass0fMilk/adc-voltage-api
...
Extend AnalogIn API: read_voltage
2020-06-17 19:57:28 +02:00
George Beckstein
7f19f8226e
Revised doxygen comments and fixed code style inconsistencies
2020-05-20 06:23:22 -04:00
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
2540ab1802
Timer: minor revisions
...
* C++11-ify a little.
* Make it copy/move constructible.
2020-05-11 16:20:13 +03: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
Martin Kojtal
57b6df9b2e
USBCDC: add doxy only to provide doxygen for this object always
2020-05-04 12:11:45 +01:00
George Beckstein
aeb91c2598
Updated default vref to be NAN. Made vref an optional constructor arg
2020-04-30 12:40:19 -04:00
George Beckstein
746f2f5fb5
Changed default ADC vref configuration from driver-level to target-level
2020-04-30 12:40:19 -04:00
George Beckstein
5d3d633566
Update voltage wording to be consistent
2020-04-30 12:40:19 -04:00
George Beckstein
7b70843632
Fix styling and fix mbed_lib.json syntax error
2020-04-30 12:40:19 -04:00
George Beckstein
b76300f57c
Add reference voltage getter and clarify some comments
2020-04-30 12:40:19 -04:00
George Beckstein
3717c982e3
Rename default adc vref parameter.
2020-04-30 12:39:58 -04:00
George Beckstein
5a543918ca
Added API to reconfigure ADC reference voltage at runtime.
2020-04-30 12:39:58 -04:00
George Beckstein
6ffacaef05
Added API call to return ADC reading in volts, scaled by configurable system ADC reference voltage.
2020-04-30 12:39:58 -04: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
f0ee31f119
Add RealTimeClock
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
Kevin Bracey
b9aa69a376
Add HighResClock and LowPowerClock
2020-04-27 10:19:08 +03:00
Rajkumar Kanagaraj
9b2cea75ad
Add the Doxygen note to non-supported RTOS and Driver class.
2020-04-20 18:24:37 +01:00
Martin Kojtal
098c72a312
Merge pull request #12161 from AGlass0fMilk/nrf-i2c-slave
...
nRF52 I2CSlave Implementation
2020-04-14 16:31:31 +02:00
Rajkumar Kanagaraj
9739b565b2
Fix the CI build issue
2020-04-08 10:35:07 +01:00
Rajkumar Kanagaraj
83be3f24a5
Remove mbed wait deprecated APIs
2020-04-08 10:35:07 +01:00
George Beckstein
6baab6cd33
Changed pin names in example to be more universal
2020-04-03 06:10:53 -04:00
George Beckstein
8b264fd821
Attmpted to fix astyle of I2CSlave example 🤞
2020-04-03 05:38:23 -04:00
George Beckstein
0dbc2606be
Improved I2CSlave example with code for both Mbed master and slave to test with
2020-04-03 05:38:23 -04:00
Martin Kojtal
8376303092
Merge pull request #12698 from hugueskamba/hk-remove-armc5-support-drivers
...
Drivers: Remove support for ARM Compiler 5
2020-04-03 09:00:49 +02: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