Skip to content

Commit 8d21974

Browse files
Merge pull request #4278 from ARMmbed/release-candidate
Release candidate for mbed-os-5.4.5
2 parents ed4febe + 4995847 commit 8d21974

File tree

113 files changed

+792
-179
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

113 files changed

+792
-179
lines changed

TESTS/mbed_drivers/race_test/main.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@
2222
#include "SingletonPtr.h"
2323
#include <stdio.h>
2424

25+
#ifndef MBED_RTOS_SINGLE_THREAD
26+
#error [NOT_SUPPORTED] test not supported for single threaded enviroment
27+
#endif
28+
2529
using namespace utest::v1;
2630

2731
#define TEST_STACK_SIZE 1024

features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc17_emac.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,6 @@ static struct pbuf *lpc_low_level_input(struct netif *netif)
402402
*/
403403
void lpc_enetif_input(struct netif *netif)
404404
{
405-
struct eth_hdr *ethhdr;
406405
struct pbuf *p;
407406

408407
/* move received packet into a new pbuf */

mbed.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@
1616
#ifndef MBED_H
1717
#define MBED_H
1818

19-
#define MBED_LIBRARY_VERSION 141
19+
#define MBED_LIBRARY_VERSION 142
2020

2121
#if MBED_CONF_RTOS_PRESENT
2222
// RTOS present, this is valid only for mbed OS 5
2323
#define MBED_MAJOR_VERSION 5
2424
#define MBED_MINOR_VERSION 4
25-
#define MBED_PATCH_VERSION 4
25+
#define MBED_PATCH_VERSION 5
2626

2727
#else
2828
// mbed 2

platform/mbed_debug.h

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,49 +18,49 @@
1818
*/
1919
#ifndef MBED_DEBUG_H
2020
#define MBED_DEBUG_H
21-
#include "device.h"
21+
#if DEVICE_STDIO_MESSAGES
22+
#include <stdio.h>
23+
#include <stdarg.h>
24+
#endif
2225

2326
#ifdef __cplusplus
2427
extern "C" {
2528
#endif
2629

27-
#if DEVICE_STDIO_MESSAGES
28-
#include <stdio.h>
29-
#include <stdarg.h>
3030

3131
/** Output a debug message
3232
*
3333
* @param format printf-style format string, followed by variables
3434
*/
3535
static inline void debug(const char *format, ...) {
36+
#if DEVICE_STDIO_MESSAGES && !defined(NDEBUG)
3637
va_list args;
3738
va_start(args, format);
3839
vfprintf(stderr, format, args);
3940
va_end(args);
41+
#endif
4042
}
4143

44+
4245
/** Conditionally output a debug message
4346
*
44-
* NOTE: If the condition is constant false (!= 1) and the compiler optimization
47+
* NOTE: If the condition is constant false (== 0) and the compiler optimization
4548
* level is greater than 0, then the whole function will be compiled away.
4649
*
47-
* @param condition output only if condition is true (== 1)
50+
* @param condition output only if condition is true (!= 0)
4851
* @param format printf-style format string, followed by variables
4952
*/
5053
static inline void debug_if(int condition, const char *format, ...) {
51-
if (condition == 1) {
54+
#if DEVICE_STDIO_MESSAGES && !defined(NDEBUG)
55+
if (condition) {
5256
va_list args;
5357
va_start(args, format);
5458
vfprintf(stderr, format, args);
5559
va_end(args);
5660
}
61+
#endif
5762
}
5863

59-
#else
60-
static inline void debug(const char *format, ...) {}
61-
static inline void debug_if(int condition, const char *format, ...) {}
62-
63-
#endif
6464

6565
#ifdef __cplusplus
6666
}

rtos/rtx/TARGET_CORTEX_M/RTX_Conf_CM.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
*---------------------------------------------------------------------------*/
3434

3535
#include "cmsis_os.h"
36+
#include "mbed_error.h"
3637

3738

3839
/*----------------------------------------------------------------------------
@@ -244,7 +245,6 @@ void os_idle_demon (void) {
244245
/*----------------------------------------------------------------------------
245246
* RTX Errors
246247
*---------------------------------------------------------------------------*/
247-
extern void error(const char* format, ...);
248248
extern osThreadId svcThreadGetId (void);
249249

250250
void os_error (uint32_t err_code) {

targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ typedef enum {
203203
//Push buttons
204204
SW1 = PTC3,
205205
SW3 = PTC12,
206+
// Standardized button names
207+
BUTTON1 = SW1,
208+
BUTTON2 = SW3,
206209

207210
// USB Pins
208211
USBTX = PTA2,

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K66F/TARGET_FRDM/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ typedef enum {
204204
//Push buttons
205205
SW2 = PTD11,
206206
SW3 = PTA10,
207+
// Standardized button names
208+
BUTTON1 = SW2,
209+
BUTTON2 = SW3,
207210

208211
// USB Pins
209212
USBTX = PTB17,

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_K82F/TARGET_FRDM/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ typedef enum {
134134
//Push buttons
135135
SW2 = PTA4,
136136
SW3 = PTC6,
137+
// Standardized button names
138+
BUTTON1 = SW2,
139+
BUTTON2 = SW3,
137140

138141
// USB Pins
139142
USBTX = PTC15,

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL27Z/TARGET_FRDM/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,9 @@ typedef enum {
9898
//Push buttons
9999
SW1 = PTA4,
100100
SW3 = PTC1,
101+
// Standardized button names
102+
BUTTON1 = SW1,
103+
BUTTON2 = SW3,
101104

102105
// USB Pins
103106
USBTX = PTA2,

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL43Z/TARGET_FRDM/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ typedef enum {
9797
//Push buttons
9898
SW1 = PTA4,
9999
SW3 = PTC3,
100+
// Standardized button names
101+
BUTTON1 = SW1,
102+
BUTTON2 = SW3,
100103

101104
// USB Pins
102105
USBTX = PTA2,

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KL82Z/TARGET_FRDM/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ typedef enum {
118118
//Push buttons
119119
SW2 = PTA4,
120120
SW3 = PTD0,
121+
// Standardized button names
122+
BUTTON1 = SW2,
123+
BUTTON2 = SW3,
121124

122125
// USB Pins
123126
USBTX = PTB17,

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW24D/TARGET_FRDM/PinNames.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ typedef enum {
8282
SW2 = PTE3,
8383
SW3 = PTD1,
8484
SW4 = PTA19,
85+
// Standardized button names
86+
BUTTON1 = SW1,
87+
BUTTON2 = SW2,
88+
BUTTON3 = SW3,
89+
BUTTON4 = SW4,
8590

8691
// USB Pins
8792
USBTX = PTE0,

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_KW41Z/TARGET_FRDM/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ typedef enum {
6969
//Push buttons
7070
SW3 = PTC4,
7171
SW4 = PTC5,
72+
// Standardized button names
73+
BUTTON1 = SW3,
74+
BUTTON2 = SW4,
7275

7376
// USB Pins
7477
USBTX = PTC7,

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K22F/TARGET_MCU_K22F512/TARGET_FRDM/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ typedef enum {
204204
//Push buttons
205205
SW2 = PTC1,
206206
SW3 = PTB17,
207+
// Standardized button names
208+
BUTTON1 = SW2,
209+
BUTTON2 = SW3,
207210

208211
// USB Pins
209212
USBTX = PTE0,

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/TARGET_FRDM/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ typedef enum {
204204
//Push buttons
205205
SW2 = PTC6,
206206
SW3 = PTA4,
207+
// Standardized button names
208+
BUTTON1 = SW2,
209+
BUTTON2 = SW3,
207210

208211
// USB Pins
209212
USBTX = PTB17,

targets/TARGET_Freescale/TARGET_MCUXpresso_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/PinNames.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,11 @@ typedef enum {
201201
LED3 = LED_BLUE,
202202
LED4 = LED_RED,
203203

204+
// Standardized button names
205+
BUTTON1 = PTA12,
206+
BUTTON2 = PTA13,
207+
BUTTON3 = PTA15,
208+
204209
// USB Pins
205210
USBTX = PTB17,
206211
USBRX = PTB16,

targets/TARGET_Maxim/TARGET_MAX32600/TARGET_MAX32600MBED/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ typedef enum {
184184
// Push button
185185
SW2 = P6_4,
186186
SW3 = P6_5,
187+
// Standardized button names
188+
BUTTON1 = SW2,
189+
BUTTON2 = SW3,
187190

188191
// UART pins
189192
USBTX = P7_3,

targets/TARGET_Maxim/TARGET_MAX32610/TARGET_MAXWSNENV/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ typedef enum {
128128

129129
// Push button
130130
SW1 = P1_5,
131+
// Standardized button names
132+
BUTTON1 = SW1,
131133

132134
// UART Pins
133135
UART0_RX = P1_0,

targets/TARGET_Maxim/TARGET_MAX32620/TARGET_MAX32620HSP/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ typedef enum {
126126
SW1 = P2_1,
127127
SW2 = NOT_CONNECTED,
128128
SW3 = NOT_CONNECTED,
129+
// Standardized button names
130+
BUTTON1 = SW1,
129131

130132
// USB bridge connected UART pins
131133
USBTX = P0_1,

targets/TARGET_Maxim/TARGET_MAX32625/TARGET_MAX32625MBED/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,9 @@ typedef enum {
7676
// Push button
7777
SW2 = P2_2,
7878
SW3 = P2_3,
79+
// Standardized button names
80+
BUTTON1 = SW2,
81+
BUTTON2 = SW3,
7982

8083
// USB bridge connected UART pins
8184
USBTX = P2_1,

targets/TARGET_Maxim/TARGET_MAX32625/TARGET_MAX32625NEXPAQ/PinNames.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,10 @@ typedef enum {
7575
SW1 = P4_2,
7676
SW2 = P4_3,
7777
SW3 = P4_4,
78+
// Standardized button names
79+
BUTTON1 = SW1,
80+
BUTTON2 = SW2,
81+
BUTTON3 = SW3,
7882

7983
// USB bridge connected UART pins
8084
USBTX = P2_1,

targets/TARGET_Maxim/TARGET_MAX32630/TARGET_MAX32630FTHR/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ typedef enum {
7979
SW1 = P2_3,
8080
SW2 = NOT_CONNECTED,
8181
SW3 = NOT_CONNECTED,
82+
// Standardized button names
83+
BUTTON1 = SW1,
8284

8385
// USB bridge connected UART pins
8486
USBTX = P2_1,

targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U37H_401/PinNames.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ typedef enum {
106106
// BTN Names
107107
BTN1 = P0_16,
108108
BTN2 = P0_1,
109+
// Standardized button names
110+
BUTTON1 = BTN1,
111+
BUTTON2 = BTN2,
109112

110113
// UART
111114
UART_TX = P0_19,

targets/TARGET_NXP/TARGET_LPC176X/TARGET_XBED_LPC1768/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ typedef enum {
7979
//xbed lpc1768 Pin Names
8080
LED5 = P2_6,
8181
BTN1 = P2_8,
82+
// Standardized button names
83+
BUTTON1 = BTN1,
8284
SDA = P0_27,
8385
SCL = P0_28,
8486
ISP = P2_10,

targets/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4330/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -615,6 +615,8 @@ typedef enum {
615615
LED_BLUE = LED4,
616616

617617
BTN1 = P2_7,
618+
// Standardized button names
619+
BUTTON1 = BTN1,
618620

619621
// Serial pins - UART, SPI, I2C
620622
// 210E 210 200E 200

targets/TARGET_ONSEMI/TARGET_NCS36510/PinNames.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,14 @@ typedef enum {
128128
LED_YELLOW = GPIO6,
129129
LED_BLUE = GPIO5,
130130
USER_BUTTON = GPIO7, /*NEW connection on NCS36510-RF Rev 1.1 - Alias of SW1 */
131+
131132
SW1 = GPIO7, /*NEW connection on NCS36510-RF Rev 1.1 */
132133
SW2 = GPIO10, /*NEW connection on NCS36510-RF Rev 1.1 */
134+
135+
// Standardized button names
136+
BUTTON1 = SW1,
137+
BUTTON2 = SW2,
138+
133139
SERIAL_TX = GPIO0,
134140
SERIAL_RX = GPIO1,
135141
USBTX = GPIO0,

targets/TARGET_ONSEMI/TARGET_NCS36510/device/TOOLCHAIN_IAR/NCS36510.icf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ define region RAM_ALL = Mem:[from 0x3FFF4000 size 0xC000];
1515
define block CSTACK with size = 0x200, alignment = 8 { };
1616

1717
/* No Heap is created for C library, all memory management should be handled by the application */
18-
define block HEAP with alignment = 8, size = 0x4000 { };
18+
define block HEAP with alignment = 8, size = 0x3000 { };
1919

2020
/* Handle initialization */
2121
do not initialize { section .noinit };

targets/TARGET_RENESAS/TARGET_RZ_A1H/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,8 @@ typedef enum {
8787
I2C_SDA = D14,
8888

8989
USER_BUTTON0 = P6_0,
90+
// Standardized button names
91+
BUTTON1 = USER_BUTTON0,
9092

9193
// Not connected
9294
NC = (int)0xFFFFFFFF

targets/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,8 @@ typedef enum {
186186
LED3 = PC_9,
187187
LED4 = PC_8,
188188
USER_BUTTON = PA_0,
189+
// Standardized button names
190+
BUTTON1 = USER_BUTTON,
189191
SERIAL_TX = PA_2,
190192
SERIAL_RX = PA_3,
191193
USBTX = PA_2,

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,8 @@ typedef enum {
133133
LED3 = PA_5,
134134
LED4 = PA_5,
135135
USER_BUTTON = PC_13,
136+
// Standardized button names
137+
BUTTON1 = USER_BUTTON,
136138
SERIAL_TX = PA_2,
137139
SERIAL_RX = PA_3,
138140
USBTX = PA_2,

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ typedef enum {
129129
LED3 = PA_5,
130130
LED4 = PA_5,
131131
USER_BUTTON = PC_13,
132+
// Standardized button names
133+
BUTTON1 = USER_BUTTON,
132134
SERIAL_TX = PA_2,
133135
SERIAL_RX = PA_3,
134136
USBTX = PA_2,

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ typedef enum {
129129
LED3 = PA_5,
130130
LED4 = PA_5,
131131
USER_BUTTON = PC_13,
132+
// Standardized button names
133+
BUTTON1 = USER_BUTTON,
132134
SERIAL_TX = PA_2,
133135
SERIAL_RX = PA_3,
134136
USBTX = PA_2,

targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/PinNames.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ typedef enum {
130130
LED3 = PA_5,
131131
LED4 = PA_5,
132132
USER_BUTTON = PC_13,
133+
// Standardized button names
134+
BUTTON1 = USER_BUTTON,
133135
SERIAL_TX = PA_2,
134136
SERIAL_RX = PA_3,
135137
USBTX = PA_2,

targets/TARGET_STM/TARGET_STM32F0/device/stm32f0xx_hal_def.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ typedef enum
124124
}while (0)
125125
#endif /* USE_RTOS */
126126

127-
#if defined ( __GNUC__ )
127+
#if defined ( __GNUC__ ) && !defined ( __CC_ARM )
128128
#ifndef __weak
129129
#define __weak __attribute__((weak))
130130
#endif /* __weak */

0 commit comments

Comments
 (0)