Skip to content

Commit ad284b2

Browse files
authored
Merge pull request #6352 from ARMmbed/release-candidate
Release candidate for mbed-os-5.8.0-rc2
2 parents 6ff7203 + 6f9b46c commit ad284b2

File tree

12 files changed

+83
-54
lines changed

12 files changed

+83
-54
lines changed

features/cellular/TESTS/cellular/cellular_all/network.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ static bool wait_register()
7171

7272
void test_attach()
7373
{
74+
cellularDevice.set_timeout(120*1000); // 120 second timeout for at commands after power is up. It might take time to register, attach and connect
7475
tr_info("Register to network.");
7576
TEST_ASSERT(wait_register());
7677
tr_info("Attach to network.");

features/cellular/easy_cellular/CellularConnectionFSM.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#define _CELLULAR_CONNECTION_UTIL_H
2020

2121
#include "CellularTargets.h"
22-
#ifdef CELLULAR_DEVICE
22+
#if defined(CELLULAR_DEVICE) || defined(DOXYGEN_ONLY)
2323

2424
#include "UARTSerial.h"
2525
#include "NetworkInterface.h"
@@ -171,6 +171,6 @@ class CellularConnectionFSM
171171

172172
} // namespace
173173

174-
#endif // CELLULAR_DEVICE
174+
#endif // CELLULAR_DEVICE || DOXYGEN
175175

176176
#endif /* _CELLULAR_CONNECTION_UTIL_H */

features/cellular/easy_cellular/EasyCellularConnection.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#define EASY_CELLULAR_CONNECTION_H
2121

2222
#include "CellularConnectionFSM.h"
23-
#ifdef CELLULAR_DEVICE
23+
#if defined(CELLULAR_DEVICE) || defined(DOXYGEN_ONLY)
2424

2525
#include "netsocket/CellularBase.h"
2626

@@ -158,7 +158,7 @@ class EasyCellularConnection: public CellularBase
158158

159159
} // namespace
160160

161-
#endif // CELLULAR_DEVICE
161+
#endif // CELLULAR_DEVICE || DOXYGEN
162162

163163
#endif // EASY_CELLULAR_CONNECTION_H
164164

features/filesystem/fat/FATFileSystem.cpp

Lines changed: 32 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -35,48 +35,39 @@
3535
static int fat_error_remap(FRESULT res)
3636
{
3737
switch(res) {
38-
case FR_OK: // (0) Succeeded
39-
return 0;
40-
case FR_DISK_ERR: // (1) A hard error occurred in the low level disk I/O layer
41-
return -EIO;
42-
case FR_INT_ERR: // (2) Assertion failed
43-
return -1;
44-
case FR_NOT_READY: // (3) The physical drive cannot work
45-
return -EIO;
46-
case FR_NO_FILE: // (4) Could not find the file
47-
return -ENOENT;
48-
case FR_NO_PATH: // (5) Could not find the path
49-
return -ENOTDIR;
50-
case FR_INVALID_NAME: // (6) The path name format is invalid
51-
return -EINVAL;
52-
case FR_DENIED: // (7) Access denied due to prohibited access or directory full
53-
return -EACCES;
54-
case FR_EXIST: // (8) Access denied due to prohibited access
55-
return -EEXIST;
56-
case FR_INVALID_OBJECT: // (9) The file/directory object is invalid
38+
case FR_OK: /* (0) Succeeded */
39+
return 0; /* no error */
40+
case FR_DISK_ERR: /* (1) A hard error occurred in the low level disk I/O layer */
41+
case FR_NOT_READY: /* (3) The physical drive cannot work */
42+
return -EIO; /* I/O error */
43+
case FR_NO_FILE: /* (4) Could not find the file */
44+
case FR_NO_PATH: /* (5) Could not find the path */
45+
case FR_INVALID_NAME: /* (6) The path name format is invalid */
46+
case FR_INVALID_DRIVE: /* (11) The logical drive number is invalid */
47+
case FR_NO_FILESYSTEM: /* (13) There is no valid FAT volume */
48+
return -ENOENT; /* No such file or directory */
49+
case FR_DENIED: /* (7) Access denied due to prohibited access or directory full */
50+
return -EACCES; /* Permission denied */
51+
case FR_EXIST: /* (8) Access denied due to prohibited access */
52+
return -EEXIST; /* File exists */
53+
case FR_WRITE_PROTECTED: /* (10) The physical drive is write protected */
54+
case FR_LOCKED: /* (16) The operation is rejected according to the file sharing policy */
55+
return -EACCES; /* Permission denied */
56+
case FR_INVALID_OBJECT: /* (9) The file/directory object is invalid */
57+
return -EFAULT; /* Bad address */
58+
case FR_NOT_ENABLED: /* (12) The volume has no work area */
59+
return -ENXIO; /* No such device or address */
60+
case FR_NOT_ENOUGH_CORE: /* (17) LFN working buffer could not be allocated */
61+
return -ENOMEM; /* Not enough space */
62+
case FR_TOO_MANY_OPEN_FILES: /* (18) Number of open files > _FS_LOCK */
63+
return -ENFILE; /* Too many open files in system */
64+
case FR_INVALID_PARAMETER: /* (19) Given parameter is invalid */
65+
return -ENOEXEC; /* Exec format error */
66+
case FR_INT_ERR: /* (2) Assertion failed */
67+
case FR_MKFS_ABORTED: /* (14) The f_mkfs() aborted due to any parameter error */
68+
case FR_TIMEOUT: /* (15) Could not get a grant to access the volume within defined period */
69+
default: /* Bad file number */
5770
return -EBADF;
58-
case FR_WRITE_PROTECTED: // (10) The physical drive is write protected
59-
return -EACCES;
60-
case FR_INVALID_DRIVE: // (11) The logical drive number is invalid
61-
return -ENODEV;
62-
case FR_NOT_ENABLED: // (12) The volume has no work area
63-
return -ENODEV;
64-
case FR_NO_FILESYSTEM: // (13) There is no valid FAT volume
65-
return -EINVAL;
66-
case FR_MKFS_ABORTED: // (14) The f_mkfs() aborted due to any problem
67-
return -EIO;
68-
case FR_TIMEOUT: // (15) Could not get a grant to access the volume within defined period
69-
return -ETIMEDOUT;
70-
case FR_LOCKED: // (16) The operation is rejected according to the file sharing policy
71-
return -EBUSY;
72-
case FR_NOT_ENOUGH_CORE: // (17) LFN working buffer could not be allocated
73-
return -ENOMEM;
74-
case FR_TOO_MANY_OPEN_FILES: // (18) Number of open files > FF_FS_LOCK
75-
return -ENFILE;
76-
case FR_INVALID_PARAMETER: // (19) Given parameter is invalid
77-
return -EINVAL;
78-
default:
79-
return -res;
8071
}
8172
}
8273

features/nvstore/source/nvstore.h

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
#define NVSTORE_ENABLED 0
2424
#endif
2525

26-
#if NVSTORE_ENABLED
26+
#if (NVSTORE_ENABLED) || defined(DOXYGEN_ONLY)
2727
#include <stdint.h>
2828
#include <stdio.h>
2929
#include "platform/NonCopyable.h"
@@ -286,8 +286,6 @@ class NVStore : private mbed::NonCopyable<NVStore> {
286286
/**
287287
* @brief Calculate addresses and sizes of areas (in case no user configuration is given),
288288
* or validate user configuration (if given).
289-
*
290-
* @param[in] area Area.
291289
*/
292290
void calc_validate_area_params();
293291

@@ -310,7 +308,7 @@ class NVStore : private mbed::NonCopyable<NVStore> {
310308
* @param[in] buf Output Buffer.
311309
* @param[out] actual_size Actual data size (bytes).
312310
* @param[in] validate_only Just validate (without reading to buffer).
313-
* @param[out] validate Is the record valid.
311+
* @param[out] valid Is the record valid.
314312
* @param[out] key Record key.
315313
* @param[out] flags Record flags.
316314
* @param[out] next_offset Offset of next record.

mbed.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#ifndef MBED_H
1717
#define MBED_H
1818

19-
#define MBED_LIBRARY_VERSION 159
19+
#define MBED_LIBRARY_VERSION 160
2020

2121
#if MBED_CONF_RTOS_PRESENT
2222
// RTOS present, this is valid only for mbed OS 5

targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/PeripheralNames.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,14 @@
4545
extern "C" {
4646
#endif
4747

48+
#ifndef STDIO_UART_TX
4849
#define STDIO_UART_TX TX_PIN_NUMBER
50+
#endif
51+
52+
#ifndef STDIO_UART_RX
4953
#define STDIO_UART_RX RX_PIN_NUMBER
54+
#endif
55+
5056
#define STDIO_UART UART_0
5157

5258
typedef enum {

targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52840/PeripheralNames.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,14 @@
4545
extern "C" {
4646
#endif
4747

48+
#ifndef STDIO_UART_TX
4849
#define STDIO_UART_TX TX_PIN_NUMBER
50+
#endif
51+
52+
#ifndef STDIO_UART_RX
4953
#define STDIO_UART_RX RX_PIN_NUMBER
54+
#endif
55+
5056
#define STDIO_UART UART_0
5157

5258
typedef enum

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_MIMXRT1050/TARGET_EVK/PinNames.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,8 @@ typedef enum {
217217
PullUp_47K = 2,
218218
PullUp_100K = 3,
219219
PullUp_22K = 4,
220-
PullDefault = PullUp_47K
220+
PullDefault = PullUp_47K,
221+
PullUp = PullUp_47K
221222
} PinMode;
222223

223224
#ifdef __cplusplus

tools/config/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def format_validation_error(self, error, path):
392392
return self.format_validation_error(error.context[0], path)
393393
else:
394394
return "in {} element {}: {}".format(
395-
path, str(".".join(error.absolute_path)), error.message)
395+
path, str(".".join(str(p) for p in error.absolute_path)), error.message)
396396

397397
def __init__(self, tgt, top_level_dirs=None, app_config=None):
398398
"""Construct a mbed configuration

0 commit comments

Comments
 (0)