Skip to content

Release candidate for mbed-os-5.2-rc3 #3033

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 90 commits into from
Oct 16, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
90 commits
Select commit Hold shift + click to select a range
24b3e8c
Enable TLS entropy in targets.json for STM32L4 and STM32L0 products
adustm Aug 23, 2016
0c7a2b5
Add random generator for stm32L0 + stm32L4
adustm Aug 25, 2016
16bc80e
Add Periphclock enable for L476 products
adustm Aug 29, 2016
7864a4f
Change MBEDTLS_ENTROPY_ALT to device has TRNG update code accordingly
adustm Sep 29, 2016
c8b3588
rework after directory moves
adustm Oct 6, 2016
8d207b1
Add objects.h for L073
adustm Oct 6, 2016
3300029
Fix typo
adustm Oct 10, 2016
a2fe7c7
Cleanup with formatting script.
kgills Sep 9, 2016
43576fc
Fixed INITIAL_SP value.
jeremybrodt Sep 9, 2016
137a0dd
Fixed SysTick_Handler name.
jeremybrodt Sep 13, 2016
c801dc6
Fixed default handler implementations for ARM and IAR.
jeremybrodt Sep 26, 2016
a72f820
Updated BLE libraries.
jeremybrodt Sep 26, 2016
ed603ee
Increased default stack and heap sizes.
jeremybrodt Sep 27, 2016
c824d52
Fixed deepsleep issue using IAR.
jeremybrodt Sep 27, 2016
3e51eb4
Added support for FEATURE_BLE. Integrated MaximBLE library.
jeremybrodt Oct 5, 2016
29eb75c
Reduced system clock speed due to SPI issue.
jeremybrodt Oct 6, 2016
5221345
Updated BLE library and stack/heap size.
jeremybrodt Oct 10, 2016
21ab868
Reduced stack/heap size due to mbed test failures.
jeremybrodt Oct 12, 2016
69c2feb
Add NUC472 support for USBH
ccli8 Aug 3, 2016
7acc4f2
Remove sal-stack-lwip.a from IAR linker configuration file
ccli8 Aug 5, 2016
f90c6eb
Support NUMAKER_PFM_M453
ccli8 Aug 9, 2016
1541265
NUMAKER_PFM_M453 support for USB host
ccli8 Aug 11, 2016
67e1ff9
Fix USB re-plugin not detected in NUMAKER_PFM_NUC472
ccli8 Aug 11, 2016
1cdb46e
Integrate NUC472 DES/TDES accelerator
ccli8 Aug 19, 2016
01510da
Integrate NUC472 AES
cyliangtw Aug 23, 2016
cedb9ee
Integrate NUC472 SHA accelerator
ccli8 Aug 25, 2016
9915ad3
Fix aes compile error with gcc
ccli8 Aug 25, 2016
0268ab2
Organize NUC472 crypto files
ccli8 Aug 25, 2016
1a67f84
Integrate AES S/W algorithm for verifying NUC472 AES accelerator
ccli8 Aug 25, 2016
8bab8e2
Support HW AES CBC block chain & AES CFB
cyliangtw Aug 26, 2016
c59ef5c
Support block chain & partial block in HW AES CFB mode
cyliangtw Aug 29, 2016
d4609a5
Improve HW AES CFB mode performance for byte cnt non-word alignment
cyliangtw Aug 30, 2016
77f231f
Fix SHA accelerator errors
ccli8 Aug 31, 2016
d77082f
Fix no wait for finish of SHA block process
ccli8 Sep 5, 2016
31ed413
aes_alt support GCC
cyliangtw Sep 5, 2016
adac6c6
Fix greentea lp_ticker failed tests
ccli8 Sep 7, 2016
5ff2d67
Fix us_ticker/lp_ticker alarm error
ccli8 Sep 8, 2016
b35adc6
Remove fix of lp_ticker wrap-around
ccli8 Sep 8, 2016
e478d24
move aes ZI data into external SRAM for mbed client example
cyliangtw Sep 8, 2016
54db3f4
Refine us_ticker.c code
ccli8 Sep 9, 2016
e54aad9
Disable GPIO IRQ debounce by default
ccli8 Sep 19, 2016
c273b44
Refine comment for two-region model
ccli8 Sep 19, 2016
c9f031b
Fix warnings generated by armcc
ccli8 Sep 19, 2016
2c675f9
Fix warnings generated by armcc
ccli8 Sep 19, 2016
faae13e
remove warnings
cyliangtw Sep 19, 2016
6685b4a
support mesh in GCC tool chain
cyliangtw Sep 20, 2016
5ed75ce
support mesh in IAR tool chain
cyliangtw Sep 20, 2016
c066b6c
Fix warnings in aes_alt
cyliangtw Sep 29, 2016
20ad95d
Fix buffer overflow in BSP SD driver
ccli8 Oct 5, 2016
0b60434
EMAC buffer address word alignment
cyliangtw Oct 5, 2016
03d00df
Fix pin definition error regarding SD, I2C, and SPI
ccli8 Oct 6, 2016
e06a7b2
Move files to match ARM mbed's restructure
ccli8 Oct 7, 2016
928bdc4
Fix SD pinmaps are not extern'ed
ccli8 Oct 7, 2016
5bb0d40
Add device_name into targets.json
ccli8 Oct 7, 2016
84dbcc5
Move files to match ARM mbed's restructure
ccli8 Oct 11, 2016
0b2725e
cmsis to device changes
Jul 11, 2016
acd91ec
Low power timer fine tuned for smaller duration
pradeep-gr Oct 12, 2016
7711f0a
EFM32: Make NVIC functions virtualizable
AlessandroA Sep 16, 2016
ab1ed71
EFM32: Use SECURE_ACCESS to access the ROM table
AlessandroA Sep 16, 2016
d190ec0
EFM32: Add support for uVisor
AlessandroA Sep 16, 2016
eb2b7f0
Enabled TRNG functionality for UBLOX_EVK_ODIN_W2 target.
Oct 10, 2016
e965c34
Fixed wrong stack pointer
Oct 10, 2016
857786e
I2C bugfix 'i2c_stop()' timeout
betzw Oct 10, 2016
b2671a3
Accept profile name as well as file path for tools/make.py --profile
bulislaw Oct 11, 2016
ac93f9e
Add Arduino form factor for DISCO_F746NG and NUCLEO_F767ZI
jeromecoutant Oct 12, 2016
150caec
Revert "Allow max-depth specification in memap"
c1728p9 Oct 12, 2016
eac9244
Add support for KL82Z FRDM board
mmahadevan108 Sep 15, 2016
504b2ac
Update tests to add support for FRDM KL43Z and FRDM KL82Z
mmahadevan108 Sep 19, 2016
0e5d0bd
Deploy SPI_ASYNCH to all family
Aug 30, 2016
0dcd508
spi_master_write - rely on HAL
Sep 29, 2016
5376654
Enable SPI_ASYNCH on STM32 boards
Aug 30, 2016
6b3d9b2
SPI Peripheral pin - allow SPI3 to be used
Aug 30, 2016
37f84ca
Clean-up style issues
LMESTM Oct 11, 2016
1807983
Update objects definition
LMESTM Oct 12, 2016
ac0caab
DNS: Rework DNS query
bulislaw Oct 11, 2016
fa4df09
NRF52_DK support for IAR exporter
sarahmarshy Oct 11, 2016
0e292ed
Properly set flags for default_lib = small
c1728p9 Oct 11, 2016
3a33de6
lwip-interface: fix issue #2993
0xc0170 Oct 12, 2016
a5cbb71
NUCLEO_F303ZE: Enable all I2C instances
jeromecoutant Oct 12, 2016
d111b09
callback - Fixed missing workaround for IAR issue with type information
geky Oct 12, 2016
1b61b2c
Remove shared spi_s struct from XDOT_L151CC
bridadan Oct 13, 2016
283a82f
ADD NEW TARGET : NUCLEO_F439ZI, based on existing NUCLEO_F429ZI
adustm Oct 10, 2016
025a041
ADD NEW TARGET : NUCLEO_L486RG, based on existing NUCLEO_L476RG
adustm Oct 11, 2016
899acb1
ADD NEW TARGET : NUCLEO_F756ZG, based on existing NUCLEO_F746ZG
adustm Oct 11, 2016
dbafb03
Update to mbed TLS release candidate
Oct 13, 2016
c869d01
Added u-blox ODIN-W2 drivers for all toolchains
Oct 7, 2016
22a40da
Added guard for DEVICE_EMAC in wifi_emac_api.cpp
Oct 14, 2016
9c52ac2
Odin: Disable WiFi by default
bulislaw Oct 14, 2016
a3def80
squash TARGET_NRF5: corrections
c1728p9 Oct 14, 2016
c099440
Merge pull request #3032 from ARMmbed/squash_pr2865
c1728p9 Oct 15, 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
  •  
  •  
  •  
90 changes: 12 additions & 78 deletions events/Event.h
Original file line number Diff line number Diff line change
Expand Up @@ -212,26 +212,15 @@ class Event<void()> {
new (p) C(*(F*)(e + 1));
equeue_event_delay(p, e->delay);
equeue_event_period(p, e->period);
equeue_event_dtor(p, &Event::function_dtor<C>);
return equeue_post(e->equeue, &Event::function_call<C>, p);
equeue_event_dtor(p, &EventQueue::function_dtor<C>);
return equeue_post(e->equeue, &EventQueue::function_call<C>, p);
}

template <typename F>
static void event_dtor(struct event *e) {
((F*)(e + 1))->~F();
}

// Function attributes
template <typename F>
static void function_call(void *p) {
(*(F*)p)();
}

template <typename F>
static void function_dtor(void *p) {
((F*)p)->~F();
}

public:
/** Create an event
* @see Event::Event
Expand Down Expand Up @@ -616,26 +605,15 @@ class Event<void(A0)> {
new (p) C(*(F*)(e + 1), a0);
equeue_event_delay(p, e->delay);
equeue_event_period(p, e->period);
equeue_event_dtor(p, &Event::function_dtor<C>);
return equeue_post(e->equeue, &Event::function_call<C>, p);
equeue_event_dtor(p, &EventQueue::function_dtor<C>);
return equeue_post(e->equeue, &EventQueue::function_call<C>, p);
}

template <typename F>
static void event_dtor(struct event *e) {
((F*)(e + 1))->~F();
}

// Function attributes
template <typename F>
static void function_call(void *p) {
(*(F*)p)();
}

template <typename F>
static void function_dtor(void *p) {
((F*)p)->~F();
}

public:
/** Create an event
* @see Event::Event
Expand Down Expand Up @@ -1020,26 +998,15 @@ class Event<void(A0, A1)> {
new (p) C(*(F*)(e + 1), a0, a1);
equeue_event_delay(p, e->delay);
equeue_event_period(p, e->period);
equeue_event_dtor(p, &Event::function_dtor<C>);
return equeue_post(e->equeue, &Event::function_call<C>, p);
equeue_event_dtor(p, &EventQueue::function_dtor<C>);
return equeue_post(e->equeue, &EventQueue::function_call<C>, p);
}

template <typename F>
static void event_dtor(struct event *e) {
((F*)(e + 1))->~F();
}

// Function attributes
template <typename F>
static void function_call(void *p) {
(*(F*)p)();
}

template <typename F>
static void function_dtor(void *p) {
((F*)p)->~F();
}

public:
/** Create an event
* @see Event::Event
Expand Down Expand Up @@ -1424,26 +1391,15 @@ class Event<void(A0, A1, A2)> {
new (p) C(*(F*)(e + 1), a0, a1, a2);
equeue_event_delay(p, e->delay);
equeue_event_period(p, e->period);
equeue_event_dtor(p, &Event::function_dtor<C>);
return equeue_post(e->equeue, &Event::function_call<C>, p);
equeue_event_dtor(p, &EventQueue::function_dtor<C>);
return equeue_post(e->equeue, &EventQueue::function_call<C>, p);
}

template <typename F>
static void event_dtor(struct event *e) {
((F*)(e + 1))->~F();
}

// Function attributes
template <typename F>
static void function_call(void *p) {
(*(F*)p)();
}

template <typename F>
static void function_dtor(void *p) {
((F*)p)->~F();
}

public:
/** Create an event
* @see Event::Event
Expand Down Expand Up @@ -1828,26 +1784,15 @@ class Event<void(A0, A1, A2, A3)> {
new (p) C(*(F*)(e + 1), a0, a1, a2, a3);
equeue_event_delay(p, e->delay);
equeue_event_period(p, e->period);
equeue_event_dtor(p, &Event::function_dtor<C>);
return equeue_post(e->equeue, &Event::function_call<C>, p);
equeue_event_dtor(p, &EventQueue::function_dtor<C>);
return equeue_post(e->equeue, &EventQueue::function_call<C>, p);
}

template <typename F>
static void event_dtor(struct event *e) {
((F*)(e + 1))->~F();
}

// Function attributes
template <typename F>
static void function_call(void *p) {
(*(F*)p)();
}

template <typename F>
static void function_dtor(void *p) {
((F*)p)->~F();
}

public:
/** Create an event
* @see Event::Event
Expand Down Expand Up @@ -2232,26 +2177,15 @@ class Event<void(A0, A1, A2, A3, A4)> {
new (p) C(*(F*)(e + 1), a0, a1, a2, a3, a4);
equeue_event_delay(p, e->delay);
equeue_event_period(p, e->period);
equeue_event_dtor(p, &Event::function_dtor<C>);
return equeue_post(e->equeue, &Event::function_call<C>, p);
equeue_event_dtor(p, &EventQueue::function_dtor<C>);
return equeue_post(e->equeue, &EventQueue::function_call<C>, p);
}

template <typename F>
static void event_dtor(struct event *e) {
((F*)(e + 1))->~F();
}

// Function attributes
template <typename F>
static void function_call(void *p) {
(*(F*)p)();
}

template <typename F>
static void function_dtor(void *p) {
((F*)p)->~F();
}

public:
/** Create an event
* @see Event::Event
Expand Down
40 changes: 19 additions & 21 deletions events/EventQueue.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#ifndef EVENT_QUEUE_H
#define EVENT_QUEUE_H

Expand Down Expand Up @@ -173,19 +174,14 @@ class EventQueue {
*/
template <typename F>
int call(F f) {
struct local {
static void call(void *p) { (*static_cast<F*>(p))(); }
static void dtor(void *p) { static_cast<F*>(p)->~F(); }
};

void *p = equeue_alloc(&_equeue, sizeof(F));
if (!p) {
return 0;
}

F *e = new (p) F(f);
equeue_event_dtor(e, &local::dtor);
return equeue_post(&_equeue, &local::call, e);
equeue_event_dtor(e, &EventQueue::function_dtor<F>);
return equeue_post(&_equeue, &EventQueue::function_call<F>, e);
}

/** Calls an event on the queue
Expand Down Expand Up @@ -437,20 +433,15 @@ class EventQueue {
*/
template <typename F>
int call_in(int ms, F f) {
struct local {
static void call(void *p) { (*static_cast<F*>(p))(); }
static void dtor(void *p) { static_cast<F*>(p)->~F(); }
};

void *p = equeue_alloc(&_equeue, sizeof(F));
if (!p) {
return 0;
}

F *e = new (p) F(f);
equeue_event_delay(e, ms);
equeue_event_dtor(e, &local::dtor);
return equeue_post(&_equeue, &local::call, e);
equeue_event_dtor(e, &EventQueue::function_dtor<F>);
return equeue_post(&_equeue, &EventQueue::function_call<F>, e);
}

/** Calls an event on the queue after a specified delay
Expand Down Expand Up @@ -702,11 +693,6 @@ class EventQueue {
*/
template <typename F>
int call_every(int ms, F f) {
struct local {
static void call(void *p) { (*static_cast<F*>(p))(); }
static void dtor(void *p) { static_cast<F*>(p)->~F(); }
};

void *p = equeue_alloc(&_equeue, sizeof(F));
if (!p) {
return 0;
Expand All @@ -715,8 +701,8 @@ class EventQueue {
F *e = new (p) F(f);
equeue_event_delay(e, ms);
equeue_event_period(e, ms);
equeue_event_dtor(e, &local::dtor);
return equeue_post(&_equeue, &local::call, e);
equeue_event_dtor(e, &EventQueue::function_dtor<F>);
return equeue_post(&_equeue, &EventQueue::function_call<F>, e);
}

/** Calls an event on the queue periodically
Expand Down Expand Up @@ -2044,6 +2030,18 @@ class EventQueue {
struct equeue _equeue;
mbed::Callback<void(int)> _update;

// Function attributes
template <typename F>
static void function_call(void *p) {
(*(F*)p)();
}

template <typename F>
static void function_dtor(void *p) {
((F*)p)->~F();
}

// Context structures
template <typename F>
struct context00 {
F f;
Expand Down
Loading