Skip to content

Release candidate for mbed-os-5.6.5 #5523

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 80 commits into from
Nov 20, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
d116c9d
RealTek WiFi test configuration
SenRamakri Oct 8, 2017
889e22c
Checking in the fixes related to I2C issues.
danclement Oct 27, 2017
2f36cd7
test: realtek net config default to none
0xc0170 Nov 7, 2017
c2bba67
STM32F412 IAR linker file issue
jeromecoutant Nov 9, 2017
e20d35d
STM32F4: Flash: fix 2MB GetSector computation
LMESTM Nov 8, 2017
f81521a
STM32: remove trailing white spaces
LMESTM Nov 8, 2017
ce04e3d
Increase flash size on Realtek RTL8195AM
Nov 7, 2017
157150e
STM32: Extend Ethernet RMII workaround
LMESTM Nov 2, 2017
3aa46e6
small supplement for PR #5338
maciejbocianski Nov 3, 2017
781c0c7
Shrink RTOS classes
kjbracey Nov 3, 2017
5fe9ee5
Tests: RTOS: RtosTimer: Fix tests for NRF51_DK board
fkjagodzinski Oct 31, 2017
5ead8ec
Tests: RTOS: RtosTimer: Refactor for readability
fkjagodzinski Nov 3, 2017
27d4b52
NUCLEO_L496ZG minor update
jeromecoutant Oct 6, 2017
5382081
NUCLEO_L496ZG_P support
jeromecoutant Nov 3, 2017
c4a034f
Add mbed-cloud-client support on DISCO_L475VG_IOT01A with wifi_esp826…
soramame21 Nov 2, 2017
b66b28c
Threaded wrapper for rail driver on EFR32 platforms
ryankurte Oct 6, 2017
b1c4fa3
Added critical section around rf_start_cca
ryankurte Oct 11, 2017
a95fcbf
Swapped to macro definition for debug prints
ryankurte Oct 31, 2017
bb3bd00
ncs36510: fire interrupt correct timer fix
0xc0170 Oct 27, 2017
d3ca63e
Doxygen comment updates and fixes
SenRamakri Oct 24, 2017
88a91a5
Fix comments on mbed_assert.h
SenRamakri Oct 27, 2017
6d967bb
Fixed doxygen_options.json
SenRamakri Oct 31, 2017
69df251
event queue test: fix out of memory problem for NUCLEO_F070RB
maciejbocianski Oct 24, 2017
9f9666e
add new target L-Tek FF-LPC546XX
Oct 18, 2017
761c578
Fix ETHMEM_SECTION placement for ARM on LPC1768
chrissnow Oct 15, 2017
05a36aa
Remove build warnings in LWIP
kegilbert Oct 13, 2017
8dceef0
HEXIWEAR: define HEXIWEAR target to support bootloader.
Nov 3, 2017
6de5b39
introduced mbed Connect Cloud board based on ODIN-W2 Module rety comm…
Oct 12, 2017
0105347
Added support for ADI EV-COG-AD4050LZ platform.
dave-wu Sep 20, 2017
b1b4cfb
Fixed issues raised in the feedback from ARM for the ADuCM4050 platform.
dave-wu Oct 2, 2017
f5b6cda
Fixed a merge error for LPC11U34_421.
dave-wu Oct 2, 2017
af8b5d9
- Added definiton for i2c_reset; - Removed unneeded code from i2c and…
dave-wu Oct 2, 2017
aa68725
- Fixed an issue where the TRNG device is read even when it is not re…
dave-wu Oct 3, 2017
78d8379
Removed undefined spi slave related functions.
dave-wu Oct 3, 2017
1a0470f
Removed the custom app thread stack size.
dave-wu Oct 3, 2017
477c728
- Added error checking for trng_get_bytes function; - Added curly bra…
dave-wu Oct 9, 2017
46eae9f
Added curly brackets for the single line if else statement.
dave-wu Oct 9, 2017
a85563b
- Cleaned up some formatting issues; - Fixed a build error in spi_mas…
dave-wu Oct 11, 2017
c4220ec
Added default delay and sample times for the ADC during initialization.
dave-wu Oct 12, 2017
41c6084
- Added code to clear temporary variable on the stack before exiting …
dave-wu Oct 30, 2017
f53e037
Added a check for the STUCK bit before reading the RNG data register …
dave-wu Nov 2, 2017
5408dae
- Removed .mbedignore due to an issue with the eclipse exporter not p…
dave-wu Nov 9, 2017
de51bca
Add support for RedBear's BLE Nano 2
Oct 1, 2017
44fc331
rtl8195am - fix us_ticker interrupt handling
tung7970 Oct 25, 2017
d56959a
Update HAL code to resolve ticker lockup issue
Archcady Nov 7, 2017
9c416ae
Update HAL library to fix lockup issue
Archcady Nov 9, 2017
dbbe227
Remove lines to improve readability
Archcady Nov 9, 2017
5ca8869
Reorganize defines for firmware updates on Realtek RTL8195AM
Nov 9, 2017
337a506
Limit size of equeue for sigio net test
sarahmarshy Nov 9, 2017
6923d0d
fix TRUE/FALSE redefinition
cyliangtw Nov 8, 2017
23a1629
STM32: HAL smartcard, fix memory corruption in Receive
LMESTM Nov 15, 2017
2ff12b4
Remove mbed-cloud-client-example-internal.
adbridge Nov 14, 2017
e56598c
STM32: Add support of CAN3 on STM32F413/F767
bcostm Nov 13, 2017
061edef
STM32: Use CAN3_BASE + typos
bcostm Nov 14, 2017
b3406e3
STM32: fix compilation error with STM32F1
bcostm Nov 15, 2017
21fcb75
STM32: fix error with CAN_3 not defined
bcostm Nov 15, 2017
1e7d12a
Fix bug for issue 5462, initial pin value not retained
nvlsianpu Nov 13, 2017
f2155a3
DISCO_L072CZ: align SetSysClock_PLL_HSE() with SetSysClock_PLL_HSI()
bcostm Nov 13, 2017
4be1146
DISCO_L072CZ: add comment in clock_source config
bcostm Nov 13, 2017
1b6e1ab
DISCO_L072CZ: remove dead code
bcostm Nov 15, 2017
dba0135
BLE: Update BatteryService documentation.
pan- Nov 9, 2017
b2b2480
Copy edit BatteryService.h
Nov 9, 2017
948f472
BLE: Fix assertion in Battery service.
pan- Nov 10, 2017
1886e8b
Provide fix for Timer and LowPowerTimer tests (time accumulation).
mprse Nov 13, 2017
329dfc5
Move Timer test, modify ASERT macros, fix comments.
mprse Nov 13, 2017
7efa2f7
Provide fix for Issue #5468.
mprse Nov 13, 2017
bc38af8
Extends test set for Ticker class (round 2)
maciejbocianski Oct 5, 2017
704a0dc
cryptographic acceleration support
stevew817 Jul 28, 2017
843d5c1
Apply feedback from @RonEld
stevew817 Aug 2, 2017
c5ac3ee
Applied @yanesca and @andresag01 comments (#4825)
stevew817 Oct 19, 2017
c6a6585
Cosmetic fix
stevew817 Oct 31, 2017
8657958
Apply feedback by @Patater
stevew817 Nov 11, 2017
4a5ad4e
Use ethernet as default config if target has LWIP feature
Oct 17, 2017
6abc761
Updated get_test_config function returns comment
Oct 17, 2017
4dc8ae5
Updated if statements for conciseness
Oct 17, 2017
e1e3453
Removed special config for K64F
Oct 17, 2017
9976bc2
Added support for ADI EV-COG-AD3029LZ platform.
dave-wu Sep 19, 2017
6b55c2a
Cleaned up some formatting issues.
dave-wu Nov 15, 2017
3a2de81
Added SystemCoreClock as an extern.
dave-wu Nov 16, 2017
2550c88
Update Mbed version block for patch release
adbridge Nov 17, 2017
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
  •  
  •  
  •  
5 changes: 4 additions & 1 deletion TESTS/events/queue/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@

using namespace utest::v1;

#define TEST_EQUEUE_SIZE 1024
// TEST_EQUEUE_SIZE was reduced below 1024B to fit this test to devices with small RAM (RAM <= 16kB)
// additionally TEST_EQUEUE_SIZE was expressed in EVENTS_EVENT_SIZE to increase readability
// (for more details about EVENTS_EVENT_SIZE see EventQueue constructor)
#define TEST_EQUEUE_SIZE (18*EVENTS_EVENT_SIZE)

// flag for called
volatile bool touched = false;
Expand Down
97 changes: 50 additions & 47 deletions TESTS/mbed_drivers/lp_timer/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,22 @@ extern uint32_t SystemCoreClock;
* DELTA = TOLERANCE_FACTOR / SystemCoreClock * US_FACTOR
*
* e.g.
* For K64F DELTA = (40000 / 120000000) * 1000000 = 333[us]
* For NUCLEO_F070RB DELTA = (40000 / 48000000) * 1000000 = 833[us]
* For NRF51_DK DELTA = (40000 / 16000000) * 1000000 = 2500[us]
* For K64F DELTA = (80000 / 120000000) * 1000000 = 666[us]
* For NUCLEO_F070RB DELTA = (80000 / 48000000) * 1000000 = 1666[us]
* For NRF51_DK DELTA = (80000 / 16000000) * 1000000 = 5000[us]
*/
#define US_PER_SEC 1000000
#define TOLERANCE_FACTOR 40000.0f
#define US_PER_MSEC 1000
#define TOLERANCE_FACTOR 80000.0f
#define US_FACTOR 1000000.0f

static const int delta_sys_clk_us = ((int) (TOLERANCE_FACTOR / (float) SystemCoreClock * US_FACTOR));

#define DELTA_US delta_sys_clk_us
#define DELTA_S ((float)delta_sys_clk_us/US_PER_SEC)
#define DELTA_MS 1
/* When test performs time measurement using Timer in sequence, then measurement error accumulates
* in the successive attempts. */
#define DELTA_US(i) (delta_sys_clk_us * i)
#define DELTA_S(i) ((float)delta_sys_clk_us * i / US_PER_SEC)
#define DELTA_MS(i) (1 + ( (i * delta_sys_clk_us) / US_PER_MSEC))

/* This test verifies if low power timer is stopped after
* creation.
Expand All @@ -75,19 +78,19 @@ void test_lptimer_creation()

/* Check results. */
TEST_ASSERT_EQUAL_FLOAT(0, lp_timer.read());
TEST_ASSERT_EQUAL(0, lp_timer.read_ms());
TEST_ASSERT_EQUAL(0, lp_timer.read_us());
TEST_ASSERT_EQUAL(0, lp_timer.read_high_resolution_us());
TEST_ASSERT_EQUAL_INT32(0, lp_timer.read_ms());
TEST_ASSERT_EQUAL_INT32(0, lp_timer.read_us());
TEST_ASSERT_EQUAL_UINT64(0, lp_timer.read_high_resolution_us());

/* Wait 10 ms.
* After that operation timer read routines should still return 0. */
wait_ms(10);

/* Check results. */
TEST_ASSERT_EQUAL_FLOAT(0, lp_timer.read());
TEST_ASSERT_EQUAL(0, lp_timer.read_ms());
TEST_ASSERT_EQUAL(0, lp_timer.read_us());
TEST_ASSERT_EQUAL(0, lp_timer.read_high_resolution_us());
TEST_ASSERT_EQUAL_INT32(0, lp_timer.read_ms());
TEST_ASSERT_EQUAL_INT32(0, lp_timer.read_us());
TEST_ASSERT_EQUAL_UINT64(0, lp_timer.read_high_resolution_us());
}

/* This test verifies if read(), read_us(), read_ms(),
Expand Down Expand Up @@ -115,10 +118,10 @@ void test_lptimer_time_accumulation()
lp_timer.stop();

/* Check results - totally 10 ms have elapsed. */
TEST_ASSERT_FLOAT_WITHIN(DELTA_S, 0.010f, lp_timer.read());
TEST_ASSERT_INT32_WITHIN(DELTA_MS, 10, lp_timer.read_ms());
TEST_ASSERT_INT32_WITHIN(DELTA_US, 10000, lp_timer.read_us());
TEST_ASSERT_UINT64_WITHIN(DELTA_US, 10000, lp_timer.read_high_resolution_us());
TEST_ASSERT_FLOAT_WITHIN(DELTA_S(1), 0.010f, lp_timer.read());
TEST_ASSERT_INT32_WITHIN(DELTA_MS(1), 10, lp_timer.read_ms());
TEST_ASSERT_INT32_WITHIN(DELTA_US(1), 10000, lp_timer.read_us());
TEST_ASSERT_UINT64_WITHIN(DELTA_US(1), 10000, lp_timer.read_high_resolution_us());

/* Wait 50 ms - this is done to show that time elapsed when
* the timer is stopped does not have influence on the
Expand All @@ -137,10 +140,10 @@ void test_lptimer_time_accumulation()
lp_timer.stop();

/* Check results - totally 30 ms have elapsed. */
TEST_ASSERT_FLOAT_WITHIN(2 * DELTA_S, 0.030f, lp_timer.read());
TEST_ASSERT_INT32_WITHIN(DELTA_MS, 30, lp_timer.read_ms());
TEST_ASSERT_INT32_WITHIN(2 * DELTA_US, 30000, lp_timer.read_us());
TEST_ASSERT_UINT64_WITHIN(2 * DELTA_US, 30000, lp_timer.read_high_resolution_us());
TEST_ASSERT_FLOAT_WITHIN(DELTA_S(2), 0.030f, lp_timer.read());
TEST_ASSERT_INT32_WITHIN(DELTA_MS(2), 30, lp_timer.read_ms());
TEST_ASSERT_INT32_WITHIN(DELTA_US(2), 30000, lp_timer.read_us());
TEST_ASSERT_UINT64_WITHIN(DELTA_US(2), 30000, lp_timer.read_high_resolution_us());

/* Wait 50 ms - this is done to show that time elapsed when
* the timer is stopped does not have influence on the
Expand All @@ -158,10 +161,10 @@ void test_lptimer_time_accumulation()
lp_timer.stop();

/* Check results - totally 60 ms have elapsed. */
TEST_ASSERT_FLOAT_WITHIN(3 * DELTA_S, 0.060f, lp_timer.read());
TEST_ASSERT_INT32_WITHIN(DELTA_MS, 60, lp_timer.read_ms());
TEST_ASSERT_INT32_WITHIN(3 * DELTA_US, 60000, lp_timer.read_us());
TEST_ASSERT_UINT64_WITHIN(3 * DELTA_US, 60000, lp_timer.read_high_resolution_us());
TEST_ASSERT_FLOAT_WITHIN(DELTA_S(3), 0.060f, lp_timer.read());
TEST_ASSERT_INT32_WITHIN(DELTA_MS(3), 60, lp_timer.read_ms());
TEST_ASSERT_INT32_WITHIN(DELTA_US(3), 60000, lp_timer.read_us());
TEST_ASSERT_UINT64_WITHIN(DELTA_US(3), 60000, lp_timer.read_high_resolution_us());

/* Wait 50 ms - this is done to show that time elapsed when
* the timer is stopped does not have influence on the
Expand All @@ -179,11 +182,11 @@ void test_lptimer_time_accumulation()
/* Stop the timer. */
lp_timer.stop();

/* Check results - totally 5060 ms have elapsed. */
TEST_ASSERT_FLOAT_WITHIN(4 * DELTA_S, 1.060f, lp_timer.read());
TEST_ASSERT_INT32_WITHIN(DELTA_MS, 1060, lp_timer.read_ms());
TEST_ASSERT_INT32_WITHIN(4 * DELTA_US, 1060000, lp_timer.read_us());
TEST_ASSERT_UINT64_WITHIN(4 * DELTA_US, 1060000, lp_timer.read_high_resolution_us());
/* Check results - totally 1060 ms have elapsed. */
TEST_ASSERT_FLOAT_WITHIN(DELTA_S(4), 1.060f, lp_timer.read());
TEST_ASSERT_INT32_WITHIN(DELTA_MS(4), 1060, lp_timer.read_ms());
TEST_ASSERT_INT32_WITHIN(DELTA_US(4), 1060000, lp_timer.read_us());
TEST_ASSERT_UINT64_WITHIN(DELTA_US(4), 1060000, lp_timer.read_high_resolution_us());
}

/* This test verifies if reset() function resets the
Expand All @@ -209,10 +212,10 @@ void test_lptimer_reset()
lp_timer.stop();

/* Check results - totally 10 ms elapsed. */
TEST_ASSERT_FLOAT_WITHIN(DELTA_S, 0.010f, lp_timer.read());
TEST_ASSERT_INT32_WITHIN(DELTA_MS, 10, lp_timer.read_ms());
TEST_ASSERT_INT32_WITHIN(DELTA_US, 10000, lp_timer.read_us());
TEST_ASSERT_UINT64_WITHIN(DELTA_US, 10000, lp_timer.read_high_resolution_us());
TEST_ASSERT_FLOAT_WITHIN(DELTA_S(1), 0.010f, lp_timer.read());
TEST_ASSERT_INT32_WITHIN(DELTA_MS(1), 10, lp_timer.read_ms());
TEST_ASSERT_INT32_WITHIN(DELTA_US(1), 10000, lp_timer.read_us());
TEST_ASSERT_UINT64_WITHIN(DELTA_US(1), 10000, lp_timer.read_high_resolution_us());

/* Reset the timer - previous measured time should be lost now. */
lp_timer.reset();
Expand All @@ -227,10 +230,10 @@ void test_lptimer_reset()
lp_timer.stop();

/* Check results - 20 ms elapsed since the reset. */
TEST_ASSERT_FLOAT_WITHIN(DELTA_S, 0.020f, lp_timer.read());
TEST_ASSERT_INT32_WITHIN(DELTA_MS, 20, lp_timer.read_ms());
TEST_ASSERT_INT32_WITHIN(DELTA_US, 20000, lp_timer.read_us());
TEST_ASSERT_UINT64_WITHIN(DELTA_US, 20000, lp_timer.read_high_resolution_us());
TEST_ASSERT_FLOAT_WITHIN(DELTA_S(1), 0.020f, lp_timer.read());
TEST_ASSERT_INT32_WITHIN(DELTA_MS(1), 20, lp_timer.read_ms());
TEST_ASSERT_INT32_WITHIN(DELTA_US(1), 20000, lp_timer.read_us());
TEST_ASSERT_UINT64_WITHIN(DELTA_US(1), 20000, lp_timer.read_high_resolution_us());
}

/* This test verifies if calling start() for already
Expand Down Expand Up @@ -260,10 +263,10 @@ void test_lptimer_start_started_timer()
lp_timer.stop();

/* Check results - 30 ms have elapsed since the first start. */
TEST_ASSERT_FLOAT_WITHIN(2 * DELTA_S, 0.030f, lp_timer.read());
TEST_ASSERT_INT32_WITHIN(DELTA_MS, 30, lp_timer.read_ms());
TEST_ASSERT_INT32_WITHIN(2 * DELTA_US, 30000, lp_timer.read_us());
TEST_ASSERT_UINT64_WITHIN(2 * DELTA_US, 30000, lp_timer.read_high_resolution_us());
TEST_ASSERT_FLOAT_WITHIN(DELTA_S(2), 0.030f, lp_timer.read());
TEST_ASSERT_INT32_WITHIN(DELTA_MS(2), 30, lp_timer.read_ms());
TEST_ASSERT_INT32_WITHIN(DELTA_US(2), 30000, lp_timer.read_us());
TEST_ASSERT_UINT64_WITHIN(DELTA_US(2), 30000, lp_timer.read_high_resolution_us());
}

/* This test verifies low power timer float operator.
Expand All @@ -287,7 +290,7 @@ void test_lptimer_float_operator()
lp_timer.stop();

/* Check result - 10 ms elapsed. */
TEST_ASSERT_FLOAT_WITHIN(DELTA_S, 0.010f, (float )(lp_timer));
TEST_ASSERT_FLOAT_WITHIN(DELTA_S(1), 0.010f, (float )(lp_timer));
}

/* This test verifies if time counted by the low power timer is
Expand All @@ -313,10 +316,10 @@ void test_lptimer_time_measurement()
lp_timer.stop();

/* Check results - wait_val_us us have elapsed. */
TEST_ASSERT_FLOAT_WITHIN(DELTA_S, (float )wait_val_us / 1000000, lp_timer.read());
TEST_ASSERT_INT32_WITHIN(DELTA_MS, wait_val_us / 1000, lp_timer.read_ms());
TEST_ASSERT_INT32_WITHIN(DELTA_US, wait_val_us, lp_timer.read_us());
TEST_ASSERT_UINT64_WITHIN(DELTA_US, wait_val_us, lp_timer.read_high_resolution_us());
TEST_ASSERT_FLOAT_WITHIN(DELTA_S(1), (float )wait_val_us / 1000000, lp_timer.read());
TEST_ASSERT_INT32_WITHIN(DELTA_MS(1), wait_val_us / 1000, lp_timer.read_ms());
TEST_ASSERT_INT32_WITHIN(DELTA_US(1), wait_val_us, lp_timer.read_us());
TEST_ASSERT_UINT64_WITHIN(DELTA_US(1), wait_val_us, lp_timer.read_high_resolution_us());
}

utest::v1::status_t test_setup(const size_t number_of_cases)
Expand Down
Loading