Commit Graph

17 Commits (87bc6de65a3943d2f1cdba22da70af6b592e2ec7)

Author SHA1 Message Date
Jamie Smith a40e8198d0
Fix PWM API for reading period and pulsewidth on LPC1768 (#274)
* Fix PWM API for reading microseconds on LPC1768

* Fix semihosting related compile errors, fix pwm deinit

* Fix some mistakes, fix PWM frequency adjustment

* Fix a few more issues
2024-05-03 00:40:48 -07:00
Jamie Smith 42fd5beb2c Oops fix tabs 2022-09-14 00:25:31 -07:00
Jamie Smith b93af1b95c Disable mbed semihosting interface in tests, so as not to mess up their timing 2022-09-14 00:25:31 -07:00
Jamie Smith abf27dd0e2 OK that didn't help 2022-09-14 00:25:30 -07:00
Jamie Smith 69d1fd9487 Try to make test timing a little more accurate 2022-09-14 00:25:30 -07:00
Martin Kojtal c14396a5b6
Merge pull request #15045 from LDong-Arm/malloc_newlib_nano
Workaround for a bug in malloc() from newlib-nano 4.1.0 (in GCC 10.3)
2021-09-03 15:03:31 +01:00
Rajkumar Kanagaraj 9a144308ec Incorporate the review comments 2021-09-02 12:49:33 +01:00
Lingkai Dong 8e412987b1 Revert "TESTS: Reduce allocate memory size"
This reverts commit 6649e95106.

In the malloc test, `ALLOC_ARRAY_SIZE` defines the *capacity* of array
that stores pointers to `malloc`'d buffers. It is *not* the number
of allocations.

In an ideal scenario, the test makes as many allocations as possible
until the heap runs out and malloc() returns NULL. So revert the
capacity of the array of pointers from 50 back to 100 so this array
is less likely to run out before the heap does.
2021-09-01 17:21:32 +01:00
Rajkumar Kanagaraj 5d31b71f81 CMake: greentea: Add skip reason to rtos test 2021-08-23 21:44:16 +01:00
Rajkumar Kanagaraj 174e01667f CMake: Refactor rtos greentea test CMake
Initially, every library greentea test has its project() creation in
their CMake. As running greentea using CTest move all greentea test
suite under one global project mbed-os and MBED_CONFIG_PATH set at
the root mbed os CMake under the condition BUILD_GREENTEA_TESTS
check so refactored rtos greentea CMake accordingly.
2021-08-23 21:43:39 +01:00
Qinghao Shi 6649e95106 TESTS: Reduce allocate memory size 2021-08-17 09:59:00 +01:00
Jaeden Amero b5c2f7079e
Merge pull request #14718 from Meano/develop
Feature: Make changes for Cortex-A5 support
2021-07-01 10:23:41 +01:00
Hari Limaye f95052cf6f CMake: Require TEST_SOURCES in greentea CMake file
Assumption that greentea test file is always named main.cpp is
incorrect. Updated mbed_greentea_add_test() macro to make TEST_SOURCES
parameter compulsory, which is used to specify greentea test
file(s). This allows tests to use C, or have a different name.
Therefore also updated all pre-existing greentea test CMake files to
explicity add main.cpp to TEST_SOURCES.
2021-06-29 13:33:42 +01:00
Meano ff2188150a Make changes for Cortex-A5 support 2021-06-23 13:36:55 +08:00
Rajkumar Kanagaraj 6824b14e48 CMake: rename greentea test macro 2021-02-02 07:43:40 -08:00
Rajkumar Kanagaraj 2d53e005e8 CMake: Add CMake support for rtos greentea test 2021-01-05 09:11:41 -08:00
Rajkumar Kanagaraj fcf36bb9e2 Move rtos greentea test closure to library 2020-09-16 13:06:05 +01:00