Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
470 commits
Select commit Hold shift + click to select a range
75803d8
Update MBED_LIBRARY_VERSION to 128
adbridge Oct 21, 2016
de41409
Merge pull request #3109 from ARMmbed/release-candidate
adbridge Oct 21, 2016
83f74b0
Update README.md
sg- Oct 21, 2016
e435a07
Merge pull request #3111 from ARMmbed/release-candidate
adbridge Oct 24, 2016
482cc91
Add support for FRDM KW24D
mmahadevan108 Oct 3, 2016
f520135
Sleep API Update. Call Board RUN function as some platforms need more…
mmahadevan108 Oct 7, 2016
f20deb6
clean up peripheral pins & add new pin names
mfiore02 Oct 17, 2016
3fb6738
remove duplicate PWMs, fix swapped pins
mfiore02 Oct 18, 2016
21ab7e0
Kinetis HAL: Remove clock initialization code from serial and ticker …
mmahadevan108 Oct 20, 2016
03653b7
Intorduce NVIC_SetVector functionality for nRF5 port
nvlsianpu Oct 6, 2016
212a133
Remove unwanted #ifdef form nRF5 targets spi_api implementations. Red…
nvlsianpu Oct 6, 2016
bd18ede
Fix error in nRF5 build of Travis CI caused by request of "target hal…
nvlsianpu Oct 6, 2016
e3d12d4
Fix: reverted unwanted changes in ARM5's scatter files of legacy nRF5…
nvlsianpu Oct 7, 2016
647bdcd
nRF5x Add registering bluetooth's IRQn vector by NVIC_SetVector.
nvlsianpu Oct 7, 2016
505ea34
NRF5: Reduce vector table size in FLASH by cutting unused endians. Mo…
nvlsianpu Oct 7, 2016
8339f9c
Fix - Remove unwanted changes to the legacy nrf51822 target (caused b…
nvlsianpu Oct 10, 2016
d72553e
fix - added proper code of cmsis_nvic.c for regular nrf51 target
nvlsianpu Oct 12, 2016
5a35583
Serial printf and InterruptIn changes
radhika-raghavendran Oct 13, 2016
823f4dc
Fixed automerge problems.
radhika-raghavendran Oct 14, 2016
14afd59
gpio is connected API
radhika-raghavendran Oct 17, 2016
0358d62
Reverting Clock GPIO code to previous implementation of the gpio_api.…
radhika-raghavendran Oct 19, 2016
22556d8
IRQ enable code moved out.
radhika-raghavendran Oct 19, 2016
38b45aa
Enable not checking against 0 or 1.
radhika-raghavendran Oct 19, 2016
350a5a4
events - Removed unused variable warning in ndebug builds
geky Oct 21, 2016
8dcbf63
nsapi - Fixed leftover bytes from suffix during ipv6 parsing
geky Oct 6, 2016
333aee7
nsapi - Added rudimentary ip parsing tests
geky Oct 6, 2016
20e97b0
nsapi - Fixed unaligned writes from <word-sized scanf calls
geky Oct 19, 2016
0098e98
Fix sleep function for NRF52.
pan- Oct 21, 2016
e763793
Add define for FPU_EXCEPTION_MASK
pan- Oct 24, 2016
0287ecc
STM32F1: correct the read of timer master value
bcostm Oct 13, 2016
9fc1064
Add LOWPOWERTIMER capability for NUCLEO_F303ZE
jeromecoutant Oct 20, 2016
8b3ae98
Enable / Disable serial debug.
BrunoMPires Oct 20, 2016
aa6fbb6
Fixed tab spacing from 0e8ba85
BrunoMPires Oct 24, 2016
b923566
Remove pycurl dependency
theotherjimmy Oct 20, 2016
600f049
Update disable dualtimer irq function
mmorenobarm Oct 17, 2016
21788ea
Update BLE Cordio libraries
mmorenobarm Oct 17, 2016
93ea2e8
New build profile and docs
c1728p9 Oct 12, 2016
67878fc
Remove non-code profiles
c1728p9 Oct 13, 2016
9f479e1
Condense common header files
stevew817 Oct 22, 2016
9a584b8
Clean up per-target Modules.h
stevew817 Oct 22, 2016
7eccfbd
Use targets.json to improve directory structure
stevew817 Oct 22, 2016
ac66d02
Small fixes
stevew817 Oct 22, 2016
f0ce896
Use serial configuration from platform
stevew817 Oct 22, 2016
21c7926
More condensation
stevew817 Oct 22, 2016
209437f
Fix typo to targets.json
stevew817 Oct 22, 2016
576556c
Update emlib to version 5.0.0 in preparation for new targets
stevew817 Oct 22, 2016
c25a513
Patch CMSIS v4.2+ macros into mbed
stevew817 Oct 22, 2016
a65e793
Collapse NVIC relocation handling
stevew817 Oct 22, 2016
f5e96d3
Move clock configuration to target settings
stevew817 Oct 22, 2016
9b5411d
EFM32: Use SECURE_ACCESS to access the ROM table
AlessandroA Sep 16, 2016
8d7a05c
EFM32: Add support for uVisor
AlessandroA Sep 16, 2016
f9b873d
This one slipped through
stevew817 Oct 24, 2016
dbd32f9
NVIC virtualization was not committed for CM0
stevew817 Oct 25, 2016
88c9e07
Workaround for SDK5.0.0 and USB
stevew817 Oct 25, 2016
8d4abba
OnSemi RAM usage fix
Oct 14, 2016
0fdbe3d
STM32F3: Correct UART4 and UART5 defines when using DEVICE_SERIAL_ASYNCH
bscott-zebra Oct 24, 2016
4634902
STM32F3: Eliminate two unused variable warnings
bscott-zebra Oct 25, 2016
1703ed3
nsapi - Standardized support of NSAPI_UNSPEC
geky Oct 3, 2016
d36bda7
lwip - Added support for NSAPI_UNSPEC to lwip
geky Oct 4, 2016
c9ced22
analog_loop tests update for STM32
jeromecoutant Oct 12, 2016
9fbb939
analog_loop test - keep mcu list and update with STM32 boards
jeromecoutant Oct 19, 2016
03edc37
Targets- NUMAKER_PFM_NUC47216 remove mbed 2
0xc0170 Oct 27, 2016
e2617cc
Merge pull request #3144 from ARMmbed/release-candidate
0xc0170 Oct 27, 2016
b6366e3
Making building and linking tests fully parallel.
bridadan Oct 10, 2016
d1eaefe
Modifying behavior of 'silent' option in toolchains
bridadan Oct 11, 2016
09a09f7
Handling output of parallelized test building.
bridadan Oct 11, 2016
32b4e60
Removing need for memap to printed through toolchains
bridadan Oct 11, 2016
beb7ec2
Removing dependency on StringIO, only change return type of table export
bridadan Oct 11, 2016
62c5298
Fix wrong timer channel number of pwm PB_5 pin
bcostm Oct 13, 2016
f118e89
STM32xx - Change how the ADC internal pins are checked before pinmap_…
bcostm Oct 13, 2016
ad11567
digital_loop tests update for STM32
jeromecoutant Oct 12, 2016
957c073
nRF5 - added serial flow control configure API implementation
nvlsianpu Oct 17, 2016
f549391
Making IAR exporter build test parallelized
bridadan Oct 20, 2016
1b82e8c
nrf5 fix - gpioe pin was uninitialzied for new mode, should been unin…
nvlsianpu Oct 20, 2016
2a9bc59
Add u-blox Sara-N target.
RobMeades Oct 13, 2016
5b7d40b
LOAD_ADDRESS added
pradeep-gr Oct 20, 2016
5b9638c
To resolve conflict
pradeep-gr Oct 26, 2016
c968f58
Conflict resolved
pradeep-gr Oct 26, 2016
c07b9a0
mbed-os-tests-mbedtls-selftest issue fixed
pradeep-gr Oct 26, 2016
bd3f728
Handle [NOT_SUPPORTED] exception in make.py
bulislaw Oct 26, 2016
c254e07
STM32F207: GCC_ARM remove zero bss, in startup. zero bss is done in l…
jamike Oct 17, 2016
829c053
STM32F3xxx : GCC_ARM remove zero bss, in startup. zero bss is done in…
jamike Oct 17, 2016
0bd2ba6
STM32F4xx: GCC_ARM remove zero bss, in startup. zero bss is done in l…
jamike Oct 17, 2016
58fbe60
STM32L4xx : GCC_ARM remove zero bss, in startup. zero bss is done in …
jamike Oct 17, 2016
981ebbc
STM32F7xx : GCC_ARM remove zero bss, in startup. zero bss is done in …
jamike Oct 17, 2016
b6f411e
STM32L1xx : GCC_ARM a call to _start which performs zero bss, C++ ini…
jamike Oct 17, 2016
550afdf
STM32L1xx : GCC_ARM remove zero bss, in startup. zero bss is done in …
jamike Oct 17, 2016
00c9839
STM32L0xx : GCC_ARM remove zero bss, in startup. zero bss is done in …
jamike Oct 17, 2016
0af5d10
STM32F0xx : GCC_ARM use a call to _start which performs zero bss, C++…
jamike Oct 17, 2016
3245ad6
STM32F0xx: GCC_ARM remove zero bss, in startup. zero bss is done in l…
jamike Oct 17, 2016
142cdb1
STM32F1xx : GCC_ARM remove zero bss done at startup. Zero bss is done…
jamike Oct 17, 2016
169e577
INIT:GCC add call to HAL_Init system_init, stops all on going timer. …
jamike Oct 7, 2016
9e8f5bc
Replacing getchar with RawSerial getc in greentea-client.
bridadan Oct 26, 2016
9e8195f
Added support for 6lowpan PAN ID filter to mbed mesh api configuration
Oct 28, 2016
45bd8ce
Update of can_api.c fixing #2987
martinjaeger Oct 11, 2016
5a153dd
Fixing some typos
martinjaeger Oct 30, 2016
af21169
Updating IAR definition for the NCS36510 for IAR EW v7.8
bridadan Oct 31, 2016
1106c36
Preventing test from printing before Greentea __sync
bridadan Oct 31, 2016
7cccf2e
Update USB driver for devices with Kinetis SDK support
mmahadevan108 Oct 13, 2016
81733d3
FAT tests: Add support for KL43Z
mmahadevan108 Oct 28, 2016
e3561fa
Add K64F, K22F and KL43Z to travis build
mmahadevan108 Oct 27, 2016
25fa65c
Adding Kinetis devices to mbed 2 tests and updating build_travis script
bridadan Oct 31, 2016
4600de6
Removed static declaration for the StorageVolumeManager in the CFStor…
Oct 27, 2016
14f9518
lwip - Fixed memory leak in k64f cyclic-buffer overflow
geky Oct 25, 2016
5c97ea9
lwip - Change k64f emac layer to drop frames on buffer exhaustion
geky Oct 28, 2016
0665a17
Make update.py test compile examples prior to updating mbed-os version.
adbridge Oct 17, 2016
56c0a4d
Review: Update example_lib.py to use rmtree rather than rm system cal…
adbridge Oct 18, 2016
1a1c41e
Minor review comments plus add new 'compile' option to examples json …
adbridge Oct 25, 2016
7801c50
Update ble example meta data to fix unsupported compilation combinati…
adbridge Oct 26, 2016
dbe95cf
Remove superfluous debugging line.
adbridge Oct 28, 2016
9d7049e
Switch off compilation of wifi example while awaiting a fix for issue…
adbridge Oct 28, 2016
7efae2e
lwip/nsapi - Cleaned up warnings in network code
geky Oct 28, 2016
7657db4
nsapi - Added better heuristic for the default record of DNS queries
geky Oct 28, 2016
8194427
Add a device_name to microbit entry in targets.json
sarahmarshy Oct 31, 2016
f6ced86
i2c_loop tests update for STM32
jeromecoutant Oct 19, 2016
efa90de
Allowing mbed_app.json files to be discovered for tests.
bridadan Oct 6, 2016
c268f97
nRF52 - switch irq priorities of driver handlers to level (APP_IRQ_PR…
nvlsianpu Oct 10, 2016
9e25e1e
lwip: Allow several configuration macros to be set externally.
Oct 3, 2016
3eefc86
lwip: Annotate with memory used by config parameters
Oct 5, 2016
d484d57
lwip: Expose principal socket limits as configuration parameters.
Oct 19, 2016
7f4986f
Adding new Maxim Integrated target.
jeremybrodt Aug 31, 2016
8d9174e
Adding new Maxim Integrated target.
jeremybrodt Oct 7, 2016
5d9df77
Prevent serial activity if tx/rx pin is NC.
jeremybrodt Oct 25, 2016
9363f2b
Add wait for serial characters to transmit before deleting serial obj…
jeremybrodt Oct 25, 2016
8e9e595
Removed progen from target configuration.
jeremybrodt Nov 2, 2016
c1403a9
Add support for FRDM-K82F
mmahadevan108 Sep 20, 2016
6582aa4
NanostackInterface: Check input address is IPv6
kjbracey Oct 31, 2016
cef0a8f
NanostackInterface: Allow binding to address
kjbracey Oct 31, 2016
df07f61
NanostackInterface: Remove string round-trips
kjbracey Oct 31, 2016
24016a1
nsapi_dns: Provide 2 IPv6-hosted default servers
kjbracey Oct 31, 2016
2130701
Fixing project.py -S printing problem
bridadan Oct 31, 2016
fe02951
Adding check to Travis for exporter support matrix
bridadan Nov 1, 2016
027f2b2
New export-build tests.
sarahmarshy Oct 31, 2016
5e4289a
changing variable names and respecting requirement kwargs
sarahmarshy Oct 31, 2016
718d0c0
Make ArmPackManager cache a static variable (to avoid reading index.j…
sarahmarshy Oct 31, 2016
21ac243
Build method documentation. Removal of unused Exception classes.
sarahmarshy Nov 1, 2016
96259cd
Add boolean 'export' to examples.json.
sarahmarshy Nov 1, 2016
9b1c735
Folder re-org to fit new MCU K22F variances
Oct 25, 2016
15f3d3f
Incorporating Brian Daniel's review comments for PR 3136
Nov 1, 2016
f3ec635
Remove the variable ret due to compiler warning: Compile [ 94.6%]: tr…
Nov 2, 2016
dc7f020
Update tests to fix build failures. Also make the code similar to oth…
mmahadevan108 Nov 2, 2016
06b7d5d
Rename SD_0/SD_1 SD_0_0/SD_0_1 to match real SD H/W
ccli8 Oct 13, 2016
c4f0ce2
Fix PWM1 clock source setting error
ccli8 Oct 18, 2016
6af9ee2
support NUC472 CAN
cyliangtw Oct 18, 2016
ad329f7
Support CAN
cyliangtw Oct 20, 2016
b0df87c
Fix SetBaudRate 5% inaccuracy issue
cyliangtw Oct 21, 2016
83d657b
replace tab by 4 space char
cyliangtw Oct 27, 2016
a3698ab
remove dead code in device.h of NUC472 & M453
cyliangtw Oct 28, 2016
12f3cb8
remove dead code in can_api.c of NUC472 & M453
cyliangtw Nov 1, 2016
f824231
fixed misaligned lines in can_api.c of NUC472 & M453
cyliangtw Nov 1, 2016
9cf3c56
Exporter documentation
sarahmarshy Nov 2, 2016
0058695
add back SPI3 pins that shouldn't have been removed
mfiore02 Nov 2, 2016
07cb268
Use internal class variable for resolving templates in makefiles
theotherjimmy Nov 2, 2016
9ef6986
Quote the shell call in mkdir and rmdir
theotherjimmy Nov 3, 2016
8f138f6
Quote make invocation too
theotherjimmy Nov 4, 2016
93e5e23
Directory traversal error
sarahmarshy Nov 4, 2016
8a37995
Force make exporter to search PATH for compilers
theotherjimmy Nov 2, 2016
868dcdc
Using Popen for uvision and unifying the structure of the build funct…
bridadan Nov 3, 2016
67dcb9f
nsapi - Added standardized return types for size and errors
geky Oct 18, 2016
e769c79
nsapi - Adopted standardized return types in lwip
geky Oct 18, 2016
33b600e
nsapi - Adopted standardized return types in the Odin wifi interface
geky Nov 2, 2016
a49783c
nsapi - Adopted standardized return types in the Nanostack interfaces
geky Nov 2, 2016
10cfea3
Added emac_stack_mem_copy. Needed by the u-blox ODIN-W2 driver.
Oct 27, 2016
2c1c845
Added copying of the wifi_link_out buffer since the buffer might chan…
Oct 27, 2016
9ddfed2
Added missing checks for wifi_link_out when allocating packets
Oct 31, 2016
d255de6
Added cbMAIN_dispatchEventQueue
Nov 6, 2016
3fccdea
Fixed dynamic message queue for scan results
Nov 6, 2016
4736cab
Updated ublox ODIN-W2 binaries
Nov 7, 2016
f764479
Tab -> spaces
Nov 7, 2016
639bd4f
Update MBED_LIBRARY_VERSION to 129
adbridge Nov 8, 2016
a1c0840
Merge pull request #3227 from ARMmbed/release-candidate
0xc0170 Nov 8, 2016
ad66e48
Added static assert macro
geky Oct 21, 2016
14b7ca7
Adopted MBED_STATIC_ASSERT where possible
geky Oct 21, 2016
3ada0fd
Added mbed_preprocessor.h to collect common cpp definitions
geky Nov 2, 2016
57631a6
Fixed the issue about push/pop of VFP register.
TomoYamanaka Oct 25, 2016
5ba1732
Ensured all NORDIC platforms define P0_{0..30} to match existing p{0.…
RidaJichi Nov 1, 2016
c22c1ab
Replaced p{0..30} with P0_{0..30} in the NRF51822 api's
RidaJichi Nov 1, 2016
539b350
Modified micro:bit pin names to mirror micro:bit edge connector
RidaJichi Nov 1, 2016
f91bfe3
Fixed arithmetic error in rtos-based wait
geky Nov 4, 2016
d55e739
Capable of testing export only to IDEs that do not have build functions
sarahmarshy Nov 4, 2016
6a9a732
Add mbed OS version macros
Oct 20, 2016
f323545
Adding a clone and a deploy step to allow optimizations in CI.
bridadan Nov 4, 2016
8d873bf
Adding MCU and example filter options to example test CLI
bridadan Nov 4, 2016
3f1dce3
Implement filtering of targets and examples.
sarahmarshy Nov 4, 2016
6855da6
conditional intersection for targets
sarahmarshy Nov 4, 2016
fd80f40
update mbed-os in selected examples
sarahmarshy Nov 4, 2016
191e989
Correcting example, toolchain, and ide filters
bridadan Nov 7, 2016
9ff4f50
Fixing use of get_repo_list in update function
bridadan Nov 8, 2016
df72f3a
Fixing issue with target_cross_ide
bridadan Nov 8, 2016
2cd5403
Ignoring args parameter for functions that don't use them
bridadan Nov 8, 2016
a2729c1
Add .hpp to list of Uvision Exporter extensions
unu-iot Oct 13, 2016
1c4a2df
Fix wrong index at LPC43xx tx end ring assignment
peter-harliman Oct 28, 2016
1fa22a8
WiFi: Minor fixes to docs and includes
bulislaw Nov 10, 2016
eaff804
nsapi - Fixed missing NSAPI_UNSPEC check in gethostbyname for ip lite…
geky Nov 9, 2016
b724f0c
nsapi - Added test cases for gethostbyname
geky Nov 9, 2016
fc6c450
Add message that informs the user which hex to flash
theotherjimmy Nov 7, 2016
34e061f
Marked the RtosTimer class as deprecated
geky Nov 7, 2016
bfba208
Add I2C_ASYNCH capability for DISCO_F469NI
jeromecoutant Nov 7, 2016
1e48058
Support UART H/W module shared by multiple serial S/W objects
ccli8 Nov 4, 2016
251b0b6
Remove dead code in device.h
ccli8 Nov 4, 2016
dc88742
Reduce (interrupt) stack size from 12 KB to 4 KB
ccli8 Nov 4, 2016
9d9d432
Reduce (interrupt) stack size from 4 KB to 2 KB
ccli8 Nov 7, 2016
2bc0139
NUCLEO_F410RB: Add I2C_ASYNCH capability
jeromecoutant Nov 4, 2016
6c9715b
K64F: Update to the latest SDK drivers
mmahadevan108 Oct 31, 2016
0a134b8
K64F ENET: Update to remove unused variable. This is no longer availa…
mmahadevan108 Oct 31, 2016
608eace
Added the commit: Access MCG and SIM through secure access
salkinium Nov 4, 2016
82df0e1
lwip - Fix lwip_mac_address buffer overflow
tung7970 Nov 3, 2016
81d667e
netsocket - Fix set_ip_bytes out-of-bound access
tung7970 Nov 3, 2016
bb9c278
Append targets to scan list for exporting tests
theotherjimmy Nov 2, 2016
b531cb9
User trim added. Astyle and pylint run on code.
radhika-raghavendran Oct 27, 2016
09134cd
Configuration of user trim moved to targets.json
radhika-raghavendran Nov 8, 2016
81c4681
Modified user trim default values.
radhika-raghavendran Nov 9, 2016
f037e32
Renames all prebuilt binaries to be prefixed with 'lib'
bridadan Nov 9, 2016
1d99d7e
Fixing invalid comment notation in assembly file
bridadan Nov 9, 2016
fdf77e7
Allow dependency parsing to fail, gracefully continuing
theotherjimmy Nov 8, 2016
c36af53
STM32F3: DISCO_F303VC - Add missing UART pin muxing options
bscott-zebra Nov 8, 2016
a5544cd
STM32F3: DISCO_F303VC - Add missing ADC pin muxing options
bscott-zebra Nov 8, 2016
b0153b7
Calculate PWM clock relative to bus clock
brimston3 Nov 9, 2016
c1d5e5d
Added back USART 6 pins
javierpedrido Nov 9, 2016
7f329fe
test i2c slave: use standard Arduino pins for NUCLEO_F411RE
LMESTM Nov 9, 2016
9d7dbcd
Change MBED_DEPRECATED def order to support Keil 4
Nov 9, 2016
99631da
Fix default polarity on LPC43XX PWM driver
Nov 10, 2016
3162e6c
Correctly casting toolchain features to a set.
bridadan Nov 10, 2016
bcf83c0
Test spec baud_rate now set based on mbed config
bridadan Nov 10, 2016
6918c96
Prevent process pool inside of process pool when building tests
Nov 10, 2016
16bba05
nsapi - Removed assertions on same-thread send/recv
geky Oct 18, 2016
cd04c2e
STM32: I2C: configure slave address with HAL API
LMESTM Oct 20, 2016
dc0980b
STM32: I2C: Move up get_i2c_obj
LMESTM Oct 20, 2016
ae6dbbc
STM32: I2C: Don't use global init variables
LMESTM Oct 20, 2016
4bf3ba7
STM32: I2C: Add-up irq handlers
LMESTM Oct 20, 2016
90a2cb3
STM32: I2C: use irq helper function
LMESTM Oct 20, 2016
abc3c8d
STM32: I2C: Change the slave API implementation to use ITs
LMESTM Oct 20, 2016
c6e8bba
STM32: I2C: Update Timeout computation
LMESTM Oct 20, 2016
e0c8def
STM32: I2C: Reset I2C in case of errors to recover
LMESTM Oct 27, 2016
4c0db1d
STM32: I2C: Change the master sync implementation to use ITs
LMESTM Oct 20, 2016
8a2df8c
Master receive sequential - fix for HAL I2C
LMESTM Oct 27, 2016
2cf044d
Add few prints for I2C debug
LMESTM Oct 20, 2016
21b4f03
test i2c asynch: Remove printf usage from interrupt context
LMESTM Nov 8, 2016
84d8a88
test i2c asynch : test transfer return value
LMESTM Nov 8, 2016
dd77d25
stm32f4 make comment more explicit
LMESTM Nov 10, 2016
d6e81b0
callback - Fixed type-deduction when inheritance is involved
geky Nov 9, 2016
dce5212
callback - Adopted relaxed type-deduction for bound functions
geky Nov 9, 2016
a328756
callback - Added tests for inheritance and implicit casts
geky Nov 9, 2016
4c18f0b
STM32L0: Cube update V1.5.0 to v1.7.0
LMESTM Nov 9, 2016
2430dea
Update Serial following L0 HAL update
LMESTM Nov 10, 2016
f63fb2a
Fix a bug related to the RTC interrupt enabled.
pan- Nov 10, 2016
5859a36
Add API which cleans Dcache in IAR compiler.
TomoYamanaka Nov 14, 2016
d81681e
Update MBED_LIBRARY_VERSION to 130
adbridge Nov 18, 2016
342e565
Merge pull request #3290 from ARMmbed/release-candidate
adbridge Nov 21, 2016
d5de476
Fixup MBED_PATCH_VERSION
adbridge Nov 22, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
5 changes: 2 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ script:
- python tools/test/pylint.py
- py.test tools/test/toolchains/api.py
- python tools/test/memap/memap_test.py
- python tools/project.py -S
- python tools/build_travis.py
before_install:
- sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded
Expand All @@ -16,9 +17,7 @@ before_install:
- arm-none-eabi-gcc --version
- python --version
install:
- sudo pip install colorama
- sudo pip install prettytable
- sudo pip install jinja2
- sudo pip install -r requirements.txt
- sudo pip install pytest
- sudo pip install pylint
- sudo pip install hypothesis
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ mbed OS accelerates the process of creating a connected product by providing a p

## Current release

Our current release series is mbed OS 5.1:
Our current release series is mbed OS 5.2:

- [Release Note](https://docs.mbed.com/docs/mbed-os-release-notes/en/latest/5_1/release/)
- [Release Note](https://docs.mbed.com/docs/mbed-os-release-notes/en/latest/5_2/release_note/)

## Getting Started for Developers

We have a getting started guide for developers using mbed OS in applications:

- [Getting Started](https://docs.mbed.com/docs/mbed-os-handbook/en/5.1/)
- [Getting Started](https://docs.mbed.com/docs/mbed-os-handbook/en/5.2/)

## Getting Started for Contributors

Expand Down
18 changes: 14 additions & 4 deletions TESTS/mbed_drivers/lp_timeout/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,18 @@ void lp_timeout_1s_deepsleep(void)
{
complete = false;

/*
* We use here lp_ticker_read() instead of us_ticker_read() for start and
/*
* Since deepsleep() may shut down the UART peripheral, we wait for 10ms
* to allow for hardware serial buffers to completely flush.

* This should be replaced with a better function that checks if the
* hardware buffers are empty. However, such an API does not exist now,
* so we'll use the wait_ms() function for now.
*/
wait_ms(10);

/*
* We use here lp_ticker_read() instead of us_ticker_read() for start and
* end because the microseconds timer might be disable during deepsleep.
*/
timestamp_t start = lp_ticker_read();
Expand Down Expand Up @@ -108,7 +118,7 @@ void lp_timeout_500us(void)

}

status_t greentea_failure_handler(const Case *const source, const failure_t reason) {
utest::v1::status_t greentea_failure_handler(const Case *const source, const failure_t reason) {
greentea_case_failure_abort_handler(source, reason);
return STATUS_CONTINUE;
}
Expand All @@ -124,7 +134,7 @@ Case cases[] = {
#endif /* DEVICE_SLEEP */
};

status_t greentea_test_setup(const size_t number_of_cases) {
utest::v1::status_t greentea_test_setup(const size_t number_of_cases) {
GREENTEA_SETUP(20, "default_auto");
return greentea_test_setup_handler(number_of_cases);
}
Expand Down
23 changes: 23 additions & 0 deletions TESTS/mbed_functional/callback/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,11 @@ template <typename T>
T const_volatile_void_func5(const volatile void *t, T a0, T a1, T a2, T a3, T a4)
{ return static_cast<const volatile Thing<T>*>(t)->t | a0 | a1 | a2 | a3 | a4; }

// Inheriting class
template <typename T>
class Thing2 : public Thing<T> {
};


// function call and result verification
template <typename T>
Expand Down Expand Up @@ -315,15 +320,18 @@ struct Verifier {
template <typename T>
void test_dispatch0() {
Thing<T> thing;
Thing2<T> thing2;
Verifier<T>::verify0(static_func0<T>);
Verifier<T>::verify0(&thing, &Thing<T>::member_func0);
Verifier<T>::verify0((const Thing<T>*)&thing, &Thing<T>::const_member_func0);
Verifier<T>::verify0((volatile Thing<T>*)&thing, &Thing<T>::volatile_member_func0);
Verifier<T>::verify0((const volatile Thing<T>*)&thing, &Thing<T>::const_volatile_member_func0);
Verifier<T>::verify0(&thing2, &Thing2<T>::member_func0);
Verifier<T>::verify0(&bound_func0<T>, &thing);
Verifier<T>::verify0(&const_bound_func0<T>, (const Thing<T>*)&thing);
Verifier<T>::verify0(&volatile_bound_func0<T>, (volatile Thing<T>*)&thing);
Verifier<T>::verify0(&const_volatile_bound_func0<T>, (const volatile Thing<T>*)&thing);
Verifier<T>::verify0(&bound_func0<T>, &thing2);
Verifier<T>::verify0(&void_func0<T>, &thing);
Verifier<T>::verify0(&const_void_func0<T>, (const Thing<T>*)&thing);
Verifier<T>::verify0(&volatile_void_func0<T>, (volatile Thing<T>*)&thing);
Expand All @@ -342,15 +350,18 @@ void test_dispatch0() {
template <typename T>
void test_dispatch1() {
Thing<T> thing;
Thing2<T> thing2;
Verifier<T>::verify1(static_func1<T>);
Verifier<T>::verify1(&thing, &Thing<T>::member_func1);
Verifier<T>::verify1((const Thing<T>*)&thing, &Thing<T>::const_member_func1);
Verifier<T>::verify1((volatile Thing<T>*)&thing, &Thing<T>::volatile_member_func1);
Verifier<T>::verify1((const volatile Thing<T>*)&thing, &Thing<T>::const_volatile_member_func1);
Verifier<T>::verify1(&thing2, &Thing2<T>::member_func1);
Verifier<T>::verify1(&bound_func1<T>, &thing);
Verifier<T>::verify1(&const_bound_func1<T>, (const Thing<T>*)&thing);
Verifier<T>::verify1(&volatile_bound_func1<T>, (volatile Thing<T>*)&thing);
Verifier<T>::verify1(&const_volatile_bound_func1<T>, (const volatile Thing<T>*)&thing);
Verifier<T>::verify1(&bound_func1<T>, &thing2);
Verifier<T>::verify1(&void_func1<T>, &thing);
Verifier<T>::verify1(&const_void_func1<T>, (const Thing<T>*)&thing);
Verifier<T>::verify1(&volatile_void_func1<T>, (volatile Thing<T>*)&thing);
Expand All @@ -369,15 +380,18 @@ void test_dispatch1() {
template <typename T>
void test_dispatch2() {
Thing<T> thing;
Thing2<T> thing2;
Verifier<T>::verify2(static_func2<T>);
Verifier<T>::verify2(&thing, &Thing<T>::member_func2);
Verifier<T>::verify2((const Thing<T>*)&thing, &Thing<T>::const_member_func2);
Verifier<T>::verify2((volatile Thing<T>*)&thing, &Thing<T>::volatile_member_func2);
Verifier<T>::verify2((const volatile Thing<T>*)&thing, &Thing<T>::const_volatile_member_func2);
Verifier<T>::verify2(&thing2, &Thing2<T>::member_func2);
Verifier<T>::verify2(&bound_func2<T>, &thing);
Verifier<T>::verify2(&const_bound_func2<T>, (const Thing<T>*)&thing);
Verifier<T>::verify2(&volatile_bound_func2<T>, (volatile Thing<T>*)&thing);
Verifier<T>::verify2(&const_volatile_bound_func2<T>, (const volatile Thing<T>*)&thing);
Verifier<T>::verify2(&bound_func2<T>, &thing2);
Verifier<T>::verify2(&void_func2<T>, &thing);
Verifier<T>::verify2(&const_void_func2<T>, (const Thing<T>*)&thing);
Verifier<T>::verify2(&volatile_void_func2<T>, (volatile Thing<T>*)&thing);
Expand All @@ -396,15 +410,18 @@ void test_dispatch2() {
template <typename T>
void test_dispatch3() {
Thing<T> thing;
Thing2<T> thing2;
Verifier<T>::verify3(static_func3<T>);
Verifier<T>::verify3(&thing, &Thing<T>::member_func3);
Verifier<T>::verify3((const Thing<T>*)&thing, &Thing<T>::const_member_func3);
Verifier<T>::verify3((volatile Thing<T>*)&thing, &Thing<T>::volatile_member_func3);
Verifier<T>::verify3((const volatile Thing<T>*)&thing, &Thing<T>::const_volatile_member_func3);
Verifier<T>::verify3(&thing2, &Thing2<T>::member_func3);
Verifier<T>::verify3(&bound_func3<T>, &thing);
Verifier<T>::verify3(&const_bound_func3<T>, (const Thing<T>*)&thing);
Verifier<T>::verify3(&volatile_bound_func3<T>, (volatile Thing<T>*)&thing);
Verifier<T>::verify3(&const_volatile_bound_func3<T>, (const volatile Thing<T>*)&thing);
Verifier<T>::verify3(&bound_func3<T>, &thing2);
Verifier<T>::verify3(&void_func3<T>, &thing);
Verifier<T>::verify3(&const_void_func3<T>, (const Thing<T>*)&thing);
Verifier<T>::verify3(&volatile_void_func3<T>, (volatile Thing<T>*)&thing);
Expand All @@ -423,15 +440,18 @@ void test_dispatch3() {
template <typename T>
void test_dispatch4() {
Thing<T> thing;
Thing2<T> thing2;
Verifier<T>::verify4(static_func4<T>);
Verifier<T>::verify4(&thing, &Thing<T>::member_func4);
Verifier<T>::verify4((const Thing<T>*)&thing, &Thing<T>::const_member_func4);
Verifier<T>::verify4((volatile Thing<T>*)&thing, &Thing<T>::volatile_member_func4);
Verifier<T>::verify4((const volatile Thing<T>*)&thing, &Thing<T>::const_volatile_member_func4);
Verifier<T>::verify4(&thing2, &Thing2<T>::member_func4);
Verifier<T>::verify4(&bound_func4<T>, &thing);
Verifier<T>::verify4(&const_bound_func4<T>, (const Thing<T>*)&thing);
Verifier<T>::verify4(&volatile_bound_func4<T>, (volatile Thing<T>*)&thing);
Verifier<T>::verify4(&const_volatile_bound_func4<T>, (const volatile Thing<T>*)&thing);
Verifier<T>::verify4(&bound_func4<T>, &thing2);
Verifier<T>::verify4(&void_func4<T>, &thing);
Verifier<T>::verify4(&const_void_func4<T>, (const Thing<T>*)&thing);
Verifier<T>::verify4(&volatile_void_func4<T>, (volatile Thing<T>*)&thing);
Expand All @@ -450,15 +470,18 @@ void test_dispatch4() {
template <typename T>
void test_dispatch5() {
Thing<T> thing;
Thing2<T> thing2;
Verifier<T>::verify5(static_func5<T>);
Verifier<T>::verify5(&thing, &Thing<T>::member_func5);
Verifier<T>::verify5((const Thing<T>*)&thing, &Thing<T>::const_member_func5);
Verifier<T>::verify5((volatile Thing<T>*)&thing, &Thing<T>::volatile_member_func5);
Verifier<T>::verify5((const volatile Thing<T>*)&thing, &Thing<T>::const_volatile_member_func5);
Verifier<T>::verify5(&thing2, &Thing2<T>::member_func5);
Verifier<T>::verify5(&bound_func5<T>, &thing);
Verifier<T>::verify5(&const_bound_func5<T>, (const Thing<T>*)&thing);
Verifier<T>::verify5(&volatile_bound_func5<T>, (volatile Thing<T>*)&thing);
Verifier<T>::verify5(&const_volatile_bound_func5<T>, (const volatile Thing<T>*)&thing);
Verifier<T>::verify5(&bound_func5<T>, &thing2);
Verifier<T>::verify5(&void_func5<T>, &thing);
Verifier<T>::verify5(&const_void_func5<T>, (const Thing<T>*)&thing);
Verifier<T>::verify5(&volatile_void_func5<T>, (volatile Thing<T>*)&thing);
Expand Down
18 changes: 14 additions & 4 deletions TESTS/mbed_hal/lp_ticker/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,22 @@ void lp_ticker_1s_deepsleep()
complete = false;
uint32_t delay_ts;

/*
* Since deepsleep() may shut down the UART peripheral, we wait for 10ms
* to allow for hardware serial buffers to completely flush.

* This should be replaced with a better function that checks if the
* hardware buffers are empty. However, such an API does not exist now,
* so we'll use the wait_ms() function for now.
*/
wait_ms(10);

ticker_set_handler(lp_ticker_data, cb_done);
ticker_remove_event(lp_ticker_data, &delay_event);
delay_ts = lp_ticker_read() + 1000000;

/*
* We use here lp_ticker_read() instead of us_ticker_read() for start and
/*
* We use here lp_ticker_read() instead of us_ticker_read() for start and
* end because the microseconds timer might be disable during deepsleep.
*/
timestamp_t start = lp_ticker_read();
Expand Down Expand Up @@ -123,7 +133,7 @@ void lp_ticker_5s(void)
lp_ticker_delay_us(5000000, LONG_TIMEOUT);
}

status_t greentea_failure_handler(const Case *const source, const failure_t reason) {
utest::v1::status_t greentea_failure_handler(const Case *const source, const failure_t reason) {
greentea_case_failure_abort_handler(source, reason);
return STATUS_CONTINUE;
}
Expand All @@ -139,7 +149,7 @@ Case cases[] = {
#endif /* DEVICE_SLEEP */
};

status_t greentea_test_setup(const size_t number_of_cases) {
utest::v1::status_t greentea_test_setup(const size_t number_of_cases) {
GREENTEA_SETUP(20, "default_auto");
lp_ticker_data->interface->init();
return greentea_test_setup_handler(number_of_cases);
Expand Down
9 changes: 6 additions & 3 deletions TESTS/mbedmicro-mbed/cpp/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ class Test {
const int pattern;

public:
Test(const char* _name) : name(_name), pattern(PATTERN_CHECK_VALUE) {
print("init");
Test(const char* _name, bool print_message=true) : name(_name), pattern(PATTERN_CHECK_VALUE) {
if (print_message) {
print("init");
}
}

void print(const char *message) {
Expand Down Expand Up @@ -39,7 +41,7 @@ class Test {
};

/* Check C++ startup initialisation */
Test s("Static");
Test s("Static", false);

/* EXPECTED OUTPUT:
*******************
Expand All @@ -59,6 +61,7 @@ int main (void) {
bool result = true;
for (;;)
{
s.print("init");
// Global stack object simple test
s.stack_test();
if (s.check_init() == false)
Expand Down
26 changes: 26 additions & 0 deletions TESTS/mbedmicro-mbed/static_assert/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#include <stdio.h>
#include <stdint.h>

#include "toolchain.h"
#include "greentea-client/test_env.h"
#include "unity.h"
#include "utest.h"

using namespace utest::v1;

void no_test() {}

utest::v1::status_t test_setup(const size_t number_of_cases) {
GREENTEA_SETUP(5, "default_auto");
return verbose_test_setup_handler(number_of_cases);
}

Case cases[] = {
Case("Compilation test", no_test),
};

Specification specification(test_setup, cases);

int main() {
return !Harness::run(specification);
}
39 changes: 39 additions & 0 deletions TESTS/mbedmicro-mbed/static_assert/test_c.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#include "mbed_assert.h"
#define THE_ANSWER 42

// Tests for static asserts in different contexts
// multiple asserts are used to garuntee no conflicts occur in generated labels

// Test for static asserts in global context
MBED_STATIC_ASSERT(sizeof(int) >= sizeof(char),
"An int must be larger than char");
MBED_STATIC_ASSERT(2 + 2 == 4,
"Hopefully the universe is mathematically consistent");
MBED_STATIC_ASSERT(THE_ANSWER == 42,
"Said Deep Thought, with infinite majesty and calm");

struct test {
int dummy;

// Test for static asserts in struct context
MBED_STRUCT_STATIC_ASSERT(sizeof(int) >= sizeof(char),
"An int must be larger than char");
MBED_STRUCT_STATIC_ASSERT(2 + 2 == 4,
"Hopefully the universe is mathematically consistent");
MBED_STRUCT_STATIC_ASSERT(THE_ANSWER == 42,
"Said Deep Thought, with infinite majesty and calm");
};

MBED_STATIC_ASSERT(sizeof(struct test) == sizeof(int),
"Static assertions should not change the size of a struct");

void doit_c(void) {
// Test for static asserts in function context
MBED_STATIC_ASSERT(sizeof(int) >= sizeof(char),
"An int must be larger than char");
MBED_STATIC_ASSERT(2 + 2 == 4,
"Hopefully the universe is mathematically consistent");
MBED_STATIC_ASSERT(THE_ANSWER == 42,
"Said Deep Thought, with infinite majesty and calm");
}

46 changes: 46 additions & 0 deletions TESTS/mbedmicro-mbed/static_assert/test_cpp.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#include "mbed_assert.h"
#define THE_ANSWER 42

// Tests for static asserts in different contexts
// multiple asserts are used to garuntee no conflicts occur in generated labels

// Test for static asserts in global context
MBED_STATIC_ASSERT(sizeof(int) >= sizeof(char),
"An int must be larger than char");
MBED_STATIC_ASSERT(2 + 2 == 4,
"Hopefully the universe is mathematically consistent");
MBED_STATIC_ASSERT(THE_ANSWER == 42,
"Said Deep Thought, with infinite majesty and calm");

struct test {
int dummy;

// Test for static asserts in struct context
MBED_STRUCT_STATIC_ASSERT(sizeof(int) >= sizeof(char),
"An int must be larger than char");
MBED_STRUCT_STATIC_ASSERT(2 + 2 == 4,
"Hopefully the universe is mathematically consistent");
MBED_STRUCT_STATIC_ASSERT(THE_ANSWER == 42,
"Said Deep Thought, with infinite majesty and calm");

MBED_STATIC_ASSERT(sizeof(int) >= sizeof(char),
"An int must be larger than char");
MBED_STATIC_ASSERT(2 + 2 == 4,
"Hopefully the universe is mathematically consistent");
MBED_STATIC_ASSERT(THE_ANSWER == 42,
"Said Deep Thought, with infinite majesty and calm");
};

MBED_STATIC_ASSERT(sizeof(struct test) == sizeof(int),
"Static assertions should not change the size of a struct");

void doit_c(void) {
// Test for static asserts in function context
MBED_STATIC_ASSERT(sizeof(int) >= sizeof(char),
"An int must be larger than char");
MBED_STATIC_ASSERT(2 + 2 == 4,
"Hopefully the universe is mathematically consistent");
MBED_STATIC_ASSERT(THE_ANSWER == 42,
"Said Deep Thought, with infinite majesty and calm");
}

2 changes: 2 additions & 0 deletions TESTS/mbedmicro-rtos-mbed/threads/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
#define STACK_SIZE 512
#elif defined(TARGET_XDOT_L151CC)
#define STACK_SIZE 1024
#elif defined(TARGET_HI2110)
#define STACK_SIZE 512
#else
#define STACK_SIZE DEFAULT_STACK_SIZE
#endif
Expand Down
Loading