Skip to content

Release candidate for mbed-os-5.3.2 #3510

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 61 commits into from
Jan 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
4c56b1e
STM I2C - move i2c_read in SYNC part
LMESTM Dec 8, 2016
60aca8f
STM I2C: manage Is Device Ready case
LMESTM Dec 12, 2016
1fe00ca
STM32 I2C manage STOP specific case
LMESTM Dec 12, 2016
e69cbf7
STM32 I2C: avoid timeout to be 0
LMESTM Dec 12, 2016
765095e
STM32F1 : map ST HAL assert into MBED assert
jeromecoutant Dec 7, 2016
605ceb5
STM32F1 : correct ST HAL API call
jeromecoutant Dec 9, 2016
23510b4
STM32F2 : map ST HAL assert into MBED assert
jeromecoutant Dec 2, 2016
7bce9c7
STM32F2 : correct ST HAL API call
jeromecoutant Dec 9, 2016
218d9c6
STM32F3 : map ST HAL assert into MBED assert
jeromecoutant Dec 7, 2016
fae4f10
STM32F3 : correct ST HAL API call
jeromecoutant Dec 9, 2016
f9c8862
nsapi - Fixed open/close issue in Socket
geky Dec 8, 2016
3a6edfe
STM32L4 : refactor stm32l4xx_hal_conf.h and map ST HAL assert into MB…
jeromecoutant Dec 8, 2016
b8ddac0
STM32L4 : correct ST HAL API call
jeromecoutant Dec 9, 2016
613d552
Enable CAN on DISCO_F303VC
szechyjs Dec 12, 2016
dd43be8
Add DISCO_F303VC to build_travis
szechyjs Dec 12, 2016
ca10f72
Add alternative CAN pins to DISCO_F303VC
szechyjs Dec 13, 2016
c93eaf8
Change slave address in I2C master slave asynch test
LMESTM Dec 8, 2016
b62d237
STM32 F1 HAL V1.0.5
LMESTM Dec 7, 2016
e736c4b
HAL F1: I2C fix btf / rxne cases
LMESTM Dec 8, 2016
abd9014
STM32 F1: move F1 to I2C common code
LMESTM Dec 7, 2016
de0b956
Correctly filtering examples in test script.
bridadan Dec 15, 2016
6070652
KSDK I2C: Update the return value to match the API documentation change
mmahadevan108 Dec 16, 2016
6196db9
Delete TESTING.md
Dec 20, 2016
7a546df
Delete COMMITTERS.md
Dec 20, 2016
fea2dbf
Delete Toolchain_Profiles.md
Dec 20, 2016
7cd8b94
Delete config_system.md
Dec 20, 2016
96728a4
Delete memap.md
Dec 20, 2016
de06af3
USBAudio: tx/rx iso call back.
jamike Nov 3, 2016
f81c13d
USB_8 : audio loopback test at 16khz stereo 16bits - Callback TX and …
jamike Nov 28, 2016
9a577b2
Fix TTB setting of RO_DATA area
TomoYamanaka Dec 20, 2016
06d2cfd
Revise arguments to detect targets
theotherjimmy Dec 13, 2016
be467a6
Target: Add new target UBLOX_EVK_NINA_B1
mazgch Nov 28, 2016
e833f70
Remove invalid thread::start example
sarahmarshy Dec 19, 2016
9336e7a
Remove Thread::wait from thread example
sarahmarshy Dec 20, 2016
48ee909
STM32F4 : refactor stm32f4xx_hal_conf.h and map ST HAL assert into MB…
jeromecoutant Dec 7, 2016
c9e5f27
STM32F4 : correct ST HAL API call
jeromecoutant Dec 14, 2016
8627204
STM32: Refactor lp_ticker.c + rtc_api.c + sleep.c + rtc_api_hal.h files
jeromecoutant Nov 23, 2016
4e83b88
Run astyle
jeromecoutant Dec 6, 2016
b2e0dd2
Supporting non-blocking connect()
Dec 16, 2016
7333c5a
Avoid option level collisions
Dec 16, 2016
480ec66
Limiting the thread stack for parallel threads test
bridadan Dec 20, 2016
00e028c
Move clean functionality out of the export api
theotherjimmy Sep 13, 2016
7f8bef9
Delete events.md
Dec 21, 2016
745b376
Delete ignoring_files_from_build.md
Dec 21, 2016
455448d
Removing default toolchain paths
bridadan Dec 20, 2016
a2ca395
Correct wrong alternate-function number for CAN PB_8/PB_9 pins and PW…
bcostm Dec 21, 2016
836ff13
Repair the Transmit mailbox (0,1,2) empty interrupt Flag not clear BUG
samos2011 Dec 9, 2016
57bdd47
Use __HAL_CAN_CLEAR_FLAG macro clear TSR . Redress stm32f1xx_hal_can.…
samos2011 Dec 14, 2016
1456e87
fix for #3387 need to disable the data cache for Ethernet to use the …
adustm Dec 22, 2016
015889d
Delete BUILDING.md
Dec 20, 2016
f4dd402
Improve error message when exporting for make without a linker script
theotherjimmy Dec 20, 2016
3668006
Fix deprecated Thread ctor usage in RTOS tests
bulislaw Dec 21, 2016
1be750c
MCUXpresso I2C: Handle 0 byte write
mmahadevan108 Dec 15, 2016
5a7f691
Update mbed-client-c version 3.0.4
Dec 23, 2016
fa53331
Support USB device
ccli8 Nov 30, 2016
702cf49
Integrate with Travis CI
ccli8 Dec 9, 2016
e525e96
Add license header for USBEndpoints_NUC472/M453.h
ccli8 Dec 12, 2016
4c2406e
Fix compile error with Travis CI
ccli8 Dec 15, 2016
228df6f
Add target SPI pins into SPI SD test samples with Travis CI
ccli8 Dec 16, 2016
14a2e3a
Rename KSDK2 to MCUXpresso. This is the new name of this package from…
mmahadevan108 Dec 15, 2016
0c4ccdc
Update MBED_LIBRARY_VERSION to v133. Update mbed-os 5 patch version.
adbridge Dec 30, 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
  •  
  •  
  •  
5 changes: 3 additions & 2 deletions TESTS/mbedmicro-rtos-mbed/isr/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ void queue_isr() {
myled = !myled;
}

void queue_thread(void const *argument) {
void queue_thread() {
while (true) {
queue.put((uint32_t*)QUEUE_PUT_THREAD_VALUE);
Thread::wait(THREAD_DELAY);
Expand All @@ -50,7 +50,8 @@ void queue_thread(void const *argument) {
int main (void) {
GREENTEA_SETUP(20, "default_auto");

Thread thread(queue_thread, NULL, osPriorityNormal, STACK_SIZE);
Thread thread(osPriorityNormal, STACK_SIZE);
thread.start(queue_thread);
Ticker ticker;
ticker.attach(queue_isr, 1.0);
int isr_puts_counter = 0;
Expand Down
5 changes: 3 additions & 2 deletions TESTS/mbedmicro-rtos-mbed/mail/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ typedef struct {

Mail<mail_t, QUEUE_SIZE> mail_box;

void send_thread (void const *argument) {
void send_thread () {
static uint32_t i = 10;
while (true) {
i++; // fake data update
Expand All @@ -54,7 +54,8 @@ void send_thread (void const *argument) {
int main (void) {
GREENTEA_SETUP(20, "default_auto");

Thread thread(send_thread, NULL, osPriorityNormal, STACK_SIZE);
Thread thread(osPriorityNormal, STACK_SIZE);
thread.start(send_thread);
bool result = true;
int result_counter = 0;

Expand Down
12 changes: 7 additions & 5 deletions TESTS/mbedmicro-rtos-mbed/mutex/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,9 @@ bool manipulate_protected_zone(const int thread_delay) {
return result;
}

void test_thread(void const *args) {
const int thread_delay = int(args);
void test_thread(int const *thread_delay) {
while (true) {
manipulate_protected_zone(thread_delay);
manipulate_protected_zone(*thread_delay);
}
}

Expand All @@ -90,8 +89,11 @@ int main() {
const int t1_delay = THREAD_DELAY * 1;
const int t2_delay = THREAD_DELAY * 2;
const int t3_delay = THREAD_DELAY * 3;
Thread t2(test_thread, (void *)t2_delay, osPriorityNormal, STACK_SIZE);
Thread t3(test_thread, (void *)t3_delay, osPriorityNormal, STACK_SIZE);
Thread t2(osPriorityNormal, STACK_SIZE);
Thread t3(osPriorityNormal, STACK_SIZE);

t2.start(callback(test_thread, &t2_delay));
t3.start(callback(test_thread, &t3_delay));

while (true) {
// Thread 1 action
Expand Down
5 changes: 3 additions & 2 deletions TESTS/mbedmicro-rtos-mbed/queue/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ MemoryPool<message_t, QUEUE_SIZE> mpool;
Queue<message_t, QUEUE_SIZE> queue;

/* Send Thread */
void send_thread (void const *argument) {
void send_thread () {
static uint32_t i = 10;
while (true) {
i++; // Fake data update
Expand All @@ -56,7 +56,8 @@ void send_thread (void const *argument) {
int main (void) {
GREENTEA_SETUP(20, "default_auto");

Thread thread(send_thread, NULL, osPriorityNormal, STACK_SIZE);
Thread thread(osPriorityNormal, STACK_SIZE);
thread.start(send_thread);
bool result = true;
int result_counter = 0;

Expand Down
14 changes: 9 additions & 5 deletions TESTS/mbedmicro-rtos-mbed/semaphore/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ volatile int change_counter = 0;
volatile int sem_counter = 0;
volatile bool sem_defect = false;

void test_thread(void const *delay) {
const int thread_delay = int(delay);
void test_thread(int const *delay) {
const int thread_delay = *delay;
while (true) {
two_slots.wait();
sem_counter++;
Expand All @@ -81,9 +81,13 @@ int main (void) {
const int t1_delay = THREAD_DELAY * 1;
const int t2_delay = THREAD_DELAY * 2;
const int t3_delay = THREAD_DELAY * 3;
Thread t1(test_thread, (void *)t1_delay, osPriorityNormal, STACK_SIZE);
Thread t2(test_thread, (void *)t2_delay, osPriorityNormal, STACK_SIZE);
Thread t3(test_thread, (void *)t3_delay, osPriorityNormal, STACK_SIZE);
Thread t1(osPriorityNormal, STACK_SIZE);
Thread t2(osPriorityNormal, STACK_SIZE);
Thread t3(osPriorityNormal, STACK_SIZE);

t1.start(callback(test_thread, &t1_delay));
t2.start(callback(test_thread, &t2_delay));
t3.start(callback(test_thread, &t3_delay));

while (true) {
if (change_counter >= SEM_CHANGES or sem_defect == true) {
Expand Down
5 changes: 3 additions & 2 deletions TESTS/mbedmicro-rtos-mbed/signals/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const int SIGNAL_HANDLE_DELEY = 25;
DigitalOut led(LED1);
int signal_counter = 0;

void led_thread(void const *argument) {
void led_thread() {
while (true) {
// Signal flags that are reported as event are automatically cleared.
Thread::signal_wait(SIGNAL_SET_VALUE);
Expand All @@ -44,7 +44,8 @@ void led_thread(void const *argument) {
int main (void) {
GREENTEA_SETUP(20, "default_auto");

Thread thread(led_thread, NULL, osPriorityNormal, STACK_SIZE);
Thread thread(osPriorityNormal, STACK_SIZE);
thread.start(led_thread);
bool result = false;

printf("Handling %d signals...\r\n", SIGNALS_TO_EMIT);
Expand Down
37 changes: 13 additions & 24 deletions TESTS/mbedmicro-rtos-mbed/threads/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,7 @@
* the C standard library. For GCC, ARM_STD and IAR it is defined with a size of 2048 bytes
* and for ARM_MICRO 512. Because of reduce RAM size some targets need a reduced stacksize.
*/
#if defined(TARGET_MCU_NRF51822) || defined(TARGET_MCU_NRF52832)
#define STACK_SIZE 512
#elif defined(TARGET_STM32F070RB) || defined(TARGET_STM32F072RB) || defined(TARGET_STM32F103RB) || defined(TARGET_STM32F091RC)
#define STACK_SIZE 512
#elif defined(TARGET_STM32F410RB)
#define STACK_SIZE 512
#elif defined(TARGET_STM32L073RZ)
#define STACK_SIZE 512
#elif defined(TARGET_XDOT_L151CC)
#define STACK_SIZE 1024
#elif defined(TARGET_HI2110)
#define STACK_SIZE 512
#elif defined(TARGET_EFR32)
#define STACK_SIZE 512
#else
#define STACK_SIZE DEFAULT_STACK_SIZE
#endif
#define PARALLEL_STACK_SIZE 512

using namespace utest::v1;

Expand All @@ -55,7 +39,8 @@ void increment_with_wait(counter_t* counter) {
}

void increment_with_child(counter_t* counter) {
Thread child(counter, increment, osPriorityNormal, STACK_SIZE);
Thread child;
child.start(callback(increment, counter));
child.join();
}

Expand All @@ -64,7 +49,8 @@ void increment_with_murder(counter_t* counter) {
// take ownership of the counter mutex so it prevent the child to
// modify counter.
LockGuard lock(counter->internal_mutex());
Thread child(counter, increment, osPriorityNormal, STACK_SIZE);
Thread child;
child.start(callback(increment, counter));
child.terminate();
}

Expand All @@ -81,7 +67,8 @@ void self_terminate(Thread *self) {
template <void (*F)(counter_t *)>
void test_single_thread() {
counter_t counter(0);
Thread thread(&counter, F, osPriorityNormal, STACK_SIZE);
Thread thread;
thread.start(callback(F, &counter));
thread.join();
TEST_ASSERT_EQUAL(counter, 1);
}
Expand All @@ -92,7 +79,8 @@ void test_parallel_threads() {
Thread *threads[N];

for (int i = 0; i < N; i++) {
threads[i] = new Thread(&counter, F, osPriorityNormal, STACK_SIZE);
threads[i] = new Thread(osPriorityNormal, PARALLEL_STACK_SIZE);
threads[i]->start(callback(F, &counter));
}

for (int i = 0; i < N; i++) {
Expand All @@ -108,16 +96,17 @@ void test_serial_threads() {
counter_t counter(0);

for (int i = 0; i < N; i++) {
Thread thread(&counter, F, osPriorityNormal, STACK_SIZE);
Thread thread;
thread.start(callback(F, &counter));
thread.join();
}

TEST_ASSERT_EQUAL(counter, N);
}

void test_self_terminate() {
Thread *thread = new Thread(osPriorityNormal, STACK_SIZE);
thread->start(thread, self_terminate);
Thread *thread = new Thread();
thread->start(callback(self_terminate, thread));
thread->join();
delete thread;
}
Expand Down
Loading