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,

0 commit comments

Comments
 (0)