Skip to content

Release candidate for mbed-os-5.4.5 #4278

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 28 commits into from
May 9, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
6071b14
Rename targets
stevew817 Mar 28, 2017
e496a63
Added minimal support for Qt Creator projects
cvtsi2sd Apr 5, 2017
c2f5aa1
QtCreator exporter: switch to jinja-based templates
cvtsi2sd Apr 6, 2017
614d1f3
Qt Creator exporter: added derivation from GccArm Makefile
cvtsi2sd Apr 6, 2017
9934b91
Updated year in license header
cvtsi2sd Apr 6, 2017
83d186a
Visual Studio Code exporter
janjongboom Mar 9, 2017
3f549ad
tests: race test - add not supported for single threaded env
0xc0170 Apr 20, 2017
eccd4fb
Reduce default heap size allocated by IAR to 1/4 of total RAM.
Apr 14, 2017
a1fafd5
test - add nanostack to examples.json file
0xc0170 Apr 10, 2017
4f15ea7
Updated script to add an extra feature and general improvements.
adbridge Mar 16, 2017
9bb5cfe
Update.py: Tidy up Fn headers, make logger work globally
adbridge Apr 21, 2017
ce2ea7f
fixed missing device_name for xDot and removed progen
chrissnow Apr 25, 2017
5ab3fb8
Config: config header file should contain new line
0xc0170 Apr 28, 2017
2f2026e
Fix C++11 build error w/ u-blox EVK-ODIN-W2
adamgreen Apr 28, 2017
f38998c
STM32 Fixed warning related to __packed redefinition
LMESTM Apr 27, 2017
f97184a
Add `mbed new .` output to export
theotherjimmy Apr 25, 2017
14a2801
LPC4088: Enable LWIP feature
netzimme Apr 16, 2017
7f12628
Error when bootloader is specified but does not exist
theotherjimmy Apr 7, 2017
b20bf0e
Add a config test to check for failing bootloader images
theotherjimmy Apr 20, 2017
ed1daf6
Removed debug links to printf/exit in NDEBUG builds
geky Mar 2, 2017
5fdf630
Inherit Xadow M0 target from LPC11U35_501
adamgreen May 2, 2017
b165343
Adding consistent button pin mappings
kegilbert Apr 27, 2017
1b53295
Added mapping to BTN-labelled switches
kegilbert Apr 28, 2017
ad8f2fc
Added mapping to USER_BUTTON-labelled switches
kegilbert Apr 28, 2017
e52f649
Addressed review comments: fixed unmapped switches and added Hexiware…
kegilbert May 2, 2017
5fb0d56
Fixed typos
kegilbert May 2, 2017
c931300
removed warning: unused variable 'ethhdr' [-Wunused-variable]
0x6d61726b Apr 30, 2017
4995847
Update MBED_LIBRARY_VERSION to v142
adbridge May 5, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions TESTS/mbed_drivers/race_test/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@
#include "SingletonPtr.h"
#include <stdio.h>

#ifndef MBED_RTOS_SINGLE_THREAD
#error [NOT_SUPPORTED] test not supported for single threaded enviroment
#endif

using namespace utest::v1;

#define TEST_STACK_SIZE 1024
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -402,7 +402,6 @@ static struct pbuf *lpc_low_level_input(struct netif *netif)
*/
void lpc_enetif_input(struct netif *netif)
{
struct eth_hdr *ethhdr;
struct pbuf *p;

/* move received packet into a new pbuf */
Expand Down
4 changes: 2 additions & 2 deletions mbed.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
#ifndef MBED_H
#define MBED_H

#define MBED_LIBRARY_VERSION 141
#define MBED_LIBRARY_VERSION 142

#if MBED_CONF_RTOS_PRESENT
// RTOS present, this is valid only for mbed OS 5
#define MBED_MAJOR_VERSION 5
#define MBED_MINOR_VERSION 4
#define MBED_PATCH_VERSION 4
#define MBED_PATCH_VERSION 5

#else
// mbed 2
Expand Down
24 changes: 12 additions & 12 deletions platform/mbed_debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,49 +18,49 @@
*/
#ifndef MBED_DEBUG_H
#define MBED_DEBUG_H
#include "device.h"
#if DEVICE_STDIO_MESSAGES
#include <stdio.h>
#include <stdarg.h>
#endif

#ifdef __cplusplus
extern "C" {
#endif

#if DEVICE_STDIO_MESSAGES
#include <stdio.h>
#include <stdarg.h>

/** Output a debug message
*
* @param format printf-style format string, followed by variables
*/
static inline void debug(const char *format, ...) {
#if DEVICE_STDIO_MESSAGES && !defined(NDEBUG)
va_list args;
va_start(args, format);
vfprintf(stderr, format, args);
va_end(args);
#endif
}


/** Conditionally output a debug message
*
* NOTE: If the condition is constant false (!= 1) and the compiler optimization
* NOTE: If the condition is constant false (== 0) and the compiler optimization
* level is greater than 0, then the whole function will be compiled away.
*
* @param condition output only if condition is true (== 1)
* @param condition output only if condition is true (!= 0)
* @param format printf-style format string, followed by variables
*/
static inline void debug_if(int condition, const char *format, ...) {
if (condition == 1) {
#if DEVICE_STDIO_MESSAGES && !defined(NDEBUG)
if (condition) {
va_list args;
va_start(args, format);
vfprintf(stderr, format, args);
va_end(args);
}
#endif
}

#else
static inline void debug(const char *format, ...) {}
static inline void debug_if(int condition, const char *format, ...) {}

#endif

#ifdef __cplusplus
}
Expand Down
2 changes: 1 addition & 1 deletion rtos/rtx/TARGET_CORTEX_M/RTX_Conf_CM.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
*---------------------------------------------------------------------------*/

#include "cmsis_os.h"
#include "mbed_error.h"


/*----------------------------------------------------------------------------
Expand Down Expand Up @@ -244,7 +245,6 @@ void os_idle_demon (void) {
/*----------------------------------------------------------------------------
* RTX Errors
*---------------------------------------------------------------------------*/
extern void error(const char* format, ...);
extern osThreadId svcThreadGetId (void);

void os_error (uint32_t err_code) {
Expand Down
3 changes: 3 additions & 0 deletions targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/PinNames.h
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,9 @@ typedef enum {
//Push buttons
SW1 = PTC3,
SW3 = PTC12,
// Standardized button names
BUTTON1 = SW1,
BUTTON2 = SW3,

// USB Pins
USBTX = PTA2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ typedef enum {
//Push buttons
SW2 = PTD11,
SW3 = PTA10,
// Standardized button names
BUTTON1 = SW2,
BUTTON2 = SW3,

// USB Pins
USBTX = PTB17,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ typedef enum {
//Push buttons
SW2 = PTA4,
SW3 = PTC6,
// Standardized button names
BUTTON1 = SW2,
BUTTON2 = SW3,

// USB Pins
USBTX = PTC15,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,9 @@ typedef enum {
//Push buttons
SW1 = PTA4,
SW3 = PTC1,
// Standardized button names
BUTTON1 = SW1,
BUTTON2 = SW3,

// USB Pins
USBTX = PTA2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ typedef enum {
//Push buttons
SW1 = PTA4,
SW3 = PTC3,
// Standardized button names
BUTTON1 = SW1,
BUTTON2 = SW3,

// USB Pins
USBTX = PTA2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ typedef enum {
//Push buttons
SW2 = PTA4,
SW3 = PTD0,
// Standardized button names
BUTTON1 = SW2,
BUTTON2 = SW3,

// USB Pins
USBTX = PTB17,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ typedef enum {
SW2 = PTE3,
SW3 = PTD1,
SW4 = PTA19,
// Standardized button names
BUTTON1 = SW1,
BUTTON2 = SW2,
BUTTON3 = SW3,
BUTTON4 = SW4,

// USB Pins
USBTX = PTE0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ typedef enum {
//Push buttons
SW3 = PTC4,
SW4 = PTC5,
// Standardized button names
BUTTON1 = SW3,
BUTTON2 = SW4,

// USB Pins
USBTX = PTC7,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ typedef enum {
//Push buttons
SW2 = PTC1,
SW3 = PTB17,
// Standardized button names
BUTTON1 = SW2,
BUTTON2 = SW3,

// USB Pins
USBTX = PTE0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,9 @@ typedef enum {
//Push buttons
SW2 = PTC6,
SW3 = PTA4,
// Standardized button names
BUTTON1 = SW2,
BUTTON2 = SW3,

// USB Pins
USBTX = PTB17,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@ typedef enum {
LED3 = LED_BLUE,
LED4 = LED_RED,

// Standardized button names
BUTTON1 = PTA12,
BUTTON2 = PTA13,
BUTTON3 = PTA15,

// USB Pins
USBTX = PTB17,
USBRX = PTB16,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@ typedef enum {
// Push button
SW2 = P6_4,
SW3 = P6_5,
// Standardized button names
BUTTON1 = SW2,
BUTTON2 = SW3,

// UART pins
USBTX = P7_3,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,8 @@ typedef enum {

// Push button
SW1 = P1_5,
// Standardized button names
BUTTON1 = SW1,

// UART Pins
UART0_RX = P1_0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ typedef enum {
SW1 = P2_1,
SW2 = NOT_CONNECTED,
SW3 = NOT_CONNECTED,
// Standardized button names
BUTTON1 = SW1,

// USB bridge connected UART pins
USBTX = P0_1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ typedef enum {
// Push button
SW2 = P2_2,
SW3 = P2_3,
// Standardized button names
BUTTON1 = SW2,
BUTTON2 = SW3,

// USB bridge connected UART pins
USBTX = P2_1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ typedef enum {
SW1 = P4_2,
SW2 = P4_3,
SW3 = P4_4,
// Standardized button names
BUTTON1 = SW1,
BUTTON2 = SW2,
BUTTON3 = SW3,

// USB bridge connected UART pins
USBTX = P2_1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ typedef enum {
SW1 = P2_3,
SW2 = NOT_CONNECTED,
SW3 = NOT_CONNECTED,
// Standardized button names
BUTTON1 = SW1,

// USB bridge connected UART pins
USBTX = P2_1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ typedef enum {
// BTN Names
BTN1 = P0_16,
BTN2 = P0_1,
// Standardized button names
BUTTON1 = BTN1,
BUTTON2 = BTN2,

// UART
UART_TX = P0_19,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ typedef enum {
//xbed lpc1768 Pin Names
LED5 = P2_6,
BTN1 = P2_8,
// Standardized button names
BUTTON1 = BTN1,
SDA = P0_27,
SCL = P0_28,
ISP = P2_10,
Expand Down
2 changes: 2 additions & 0 deletions targets/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4330/PinNames.h
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,8 @@ typedef enum {
LED_BLUE = LED4,

BTN1 = P2_7,
// Standardized button names
BUTTON1 = BTN1,

// Serial pins - UART, SPI, I2C
// 210E 210 200E 200
Expand Down
6 changes: 6 additions & 0 deletions targets/TARGET_ONSEMI/TARGET_NCS36510/PinNames.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,14 @@ typedef enum {
LED_YELLOW = GPIO6,
LED_BLUE = GPIO5,
USER_BUTTON = GPIO7, /*NEW connection on NCS36510-RF Rev 1.1 - Alias of SW1 */

SW1 = GPIO7, /*NEW connection on NCS36510-RF Rev 1.1 */
SW2 = GPIO10, /*NEW connection on NCS36510-RF Rev 1.1 */

// Standardized button names
BUTTON1 = SW1,
BUTTON2 = SW2,

SERIAL_TX = GPIO0,
SERIAL_RX = GPIO1,
USBTX = GPIO0,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ define region RAM_ALL = Mem:[from 0x3FFF4000 size 0xC000];
define block CSTACK with size = 0x200, alignment = 8 { };

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

/* Handle initialization */
do not initialize { section .noinit };
Expand Down
2 changes: 2 additions & 0 deletions targets/TARGET_RENESAS/TARGET_RZ_A1H/PinNames.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ typedef enum {
I2C_SDA = D14,

USER_BUTTON0 = P6_0,
// Standardized button names
BUTTON1 = USER_BUTTON0,

// Not connected
NC = (int)0xFFFFFFFF
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,8 @@ typedef enum {
LED3 = PC_9,
LED4 = PC_8,
USER_BUTTON = PA_0,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2,
SERIAL_RX = PA_3,
USBTX = PA_2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ typedef enum {
LED3 = PA_5,
LED4 = PA_5,
USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2,
SERIAL_RX = PA_3,
USBTX = PA_2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ typedef enum {
LED3 = PA_5,
LED4 = PA_5,
USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2,
SERIAL_RX = PA_3,
USBTX = PA_2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ typedef enum {
LED3 = PA_5,
LED4 = PA_5,
USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2,
SERIAL_RX = PA_3,
USBTX = PA_2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,8 @@ typedef enum {
LED3 = PA_5,
LED4 = PA_5,
USER_BUTTON = PC_13,
// Standardized button names
BUTTON1 = USER_BUTTON,
SERIAL_TX = PA_2,
SERIAL_RX = PA_3,
USBTX = PA_2,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ typedef enum
}while (0)
#endif /* USE_RTOS */

#if defined ( __GNUC__ )
#if defined ( __GNUC__ ) && !defined ( __CC_ARM )
#ifndef __weak
#define __weak __attribute__((weak))
#endif /* __weak */
Expand Down
Loading