Skip to content

Release candidate for mbed-os-5.4.1 #3930

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 40 commits into from
Mar 13, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
5327930
fix for issue #3715: correction in startup files for ARM and IAR, ali…
adustm Feb 7, 2017
14065c3
STM32 remove warning in hal_tick_32b.c file
jeromecoutant Feb 21, 2017
c57bce9
Fix GPIOG usage of STM32L4 by activating VDDIO2 power supply
pmancele Feb 22, 2017
44c60b5
Use #if defined TARGET_STM32L4
pmancele Feb 23, 2017
86fa3ef
Conflict resolved
Feb 23, 2017
7521e30
lwip: Increase timeout on tests
geky Feb 23, 2017
6a5d204
Allow to redefine nRF's PSTORAGE_NUM_OF_PAGES outside of the mbed-os …
crontab Feb 24, 2017
ed6d03b
STM32: gpio SPEED - always set High Speed by default
LMESTM Jan 18, 2017
7374f9c
Typo: update comment (GPIO_IP_WITHOUT_BRR)
bcostm Feb 27, 2017
ef6f87a
STORAGE: removal of unsupported tests having ported to https://github…
simonqhughes Feb 27, 2017
9ba340a
STM32: change spi error to debug warning
LMESTM Feb 28, 2017
854d2f3
Define GPIO_IP_WITHOUT_BRR for xDot platform. Resolves #3823.
mfiore02 Mar 1, 2017
feb7569
Add post-build hook white-list to exporters
theotherjimmy Mar 2, 2017
deb7be1
DISCO_F469NI: allow the use of CAN2 instance when CAN1 is not activated
adustm Mar 3, 2017
acf7012
Ignore FuzzyWuzzy warnings
theotherjimmy Mar 6, 2017
6dde4e6
Prevent underflow in heap size calculation
c1728p9 Mar 6, 2017
6aab786
Fix reference to sleep in hal_patch override
pan- Mar 9, 2017
0789c24
STM32 L1: Define PWM Channels in PeripheralsPins.c
LMESTM Feb 16, 2017
1f825c1
STM32: make PWM driver into a common file
LMESTM Feb 16, 2017
ae139d6
STM32: pwm period and prescaler calculation
LMESTM Feb 27, 2017
68a5f7a
STM32: move pwmout device tables to C file
LMESTM Feb 27, 2017
1268ed8
STM32: fix formatting
LMESTM Feb 27, 2017
461aa66
Fix XDOT compilation error
LMESTM Mar 7, 2017
74695e7
STM32 CAN API: correct format and type
jeromecoutant Feb 23, 2017
2129b29
TARGET_NRF: corrected spi_init() to properly handle re-initialization…
anangl Feb 27, 2017
4257bfe
TARGET_NRF: added a description of the recent change in spi_init().
anangl Mar 2, 2017
404b58c
STM32L4xx: set APB2 clock to 80MHz (instead of 40MHz)
bcostm Feb 27, 2017
a48647f
Ignore build directory from scan resources
theotherjimmy Feb 28, 2017
0b15a05
Re-factor mbed2 lib builds to use prepare_toolchain
theotherjimmy Mar 7, 2017
ed60ef1
Remove static analysis scan
theotherjimmy Mar 7, 2017
8a14c4a
Update test_api call to prepare_toolchain
theotherjimmy Mar 7, 2017
3947dbf
bd: Fix missing const attributes on functions
geky Mar 1, 2017
4c344d7
Add AnalogIn pins on PF3, PF5 and PF10. Don't know why it was missing ?
bcostm Mar 3, 2017
febfa8b
Update mbed TLS feature to mbedtls-2.4.2
Mar 3, 2017
80fbde3
Fix heap size for NUCLEO_F746ZG on IAR
Mar 7, 2017
44a515d
Fixed size_t issue for mbed 2 builds
geky Mar 1, 2017
745b8ef
Filesystem: Restored LocalFileSystem tests for mbed 2
geky Mar 9, 2017
f6388de
Fix toolchain path names in Mbed 2 builds
theotherjimmy Mar 10, 2017
c76d8ff
Update MBED_LIBRARY_VERSION to v138
adbridge Mar 13, 2017
c035144
can_write(): return error code when no tx mailboxes are available.
svogl Feb 23, 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
2 changes: 1 addition & 1 deletion drivers/FileSystemLike.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ class FileSystemLike : public FileBase {
* 0 on success or un-needed,
* -1 on error
*/
virtual int stat(const char *name, struct stat *st) = 0;
virtual int stat(const char *name, struct stat *st) { return -1; };
};

} // namespace mbed
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,6 @@ void hal_sleep(void)

void hal_deepsleep(void)
{
sleep();
hal_sleep();
// NRF_POWER->SYSTEMOFF=1;
}
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ static __INLINE uint32_t pstorage_flash_page_end()

#define PSTORAGE_FLASH_PAGE_END pstorage_flash_page_end()

#ifndef PSTORAGE_NUM_OF_PAGES
#define PSTORAGE_NUM_OF_PAGES 1 /**< Number of flash pages allocated for the pstorage module excluding the swap page, configurable based on system requirements. */
#endif

#define PSTORAGE_MIN_BLOCK_SIZE 0x0010 /**< Minimum size of block that can be registered with the module. Should be configured based on system requirements, recommendation is not have this value to be at least size of word. */

#define PSTORAGE_DATA_START_ADDR ((PSTORAGE_FLASH_PAGE_END - PSTORAGE_NUM_OF_PAGES - 1) \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void test_dns_literal_pref() {

// Test setup
utest::v1::status_t test_setup(const size_t number_of_cases) {
GREENTEA_SETUP(20, "default_auto");
GREENTEA_SETUP(60, "default_auto");
net_bringup();
return verbose_test_setup_handler(number_of_cases);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ void prep_buffer(char *tx_buffer, size_t tx_size) {
}

int main() {
GREENTEA_SETUP(20, "tcp_echo");
GREENTEA_SETUP(60, "tcp_echo");

EthernetInterface eth;
eth.connect();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ Echo echoers[MBED_CFG_TCP_CLIENT_ECHO_THREADS];


int main() {
GREENTEA_SETUP(20, "tcp_echo");
GREENTEA_SETUP(60, "tcp_echo");

int err = net.connect();
TEST_ASSERT_EQUAL(0, err);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ bool find_substring(const char *first, const char *last, const char *s_first, co
}

int main() {
GREENTEA_SETUP(20, "default_auto");
GREENTEA_SETUP(60, "default_auto");

bool result = false;
EthernetInterface eth;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ int udp_dtls_handshake_pattern[] = {MBED_CFG_UDP_DTLS_HANDSHAKE_PATTERN};
const int udp_dtls_handshake_count = sizeof(udp_dtls_handshake_pattern) / sizeof(int);

int main() {
GREENTEA_SETUP(20, "udp_shotgun");
GREENTEA_SETUP(60, "udp_shotgun");

EthernetInterface eth;
int err = eth.connect();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void prep_buffer(char *tx_buffer, size_t tx_size) {
}

int main() {
GREENTEA_SETUP(20, "udp_echo");
GREENTEA_SETUP(60, "udp_echo");

EthernetInterface eth;
eth.connect();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ Echo echoers[MBED_CFG_UDP_CLIENT_ECHO_THREADS];


int main() {
GREENTEA_SETUP(20, "udp_echo");
GREENTEA_SETUP(60, "udp_echo");

int err = net.connect();
TEST_ASSERT_EQUAL(0, err);
Expand Down
8 changes: 4 additions & 4 deletions features/filesystem/bd/BlockDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,15 @@ class BlockDevice
*
* @return Size of the underlying device in bytes
*/
virtual bd_size_t size() = 0;
virtual bd_size_t size() const = 0;

/** Convenience function for checking block read validity
*
* @param addr Address of block to begin reading from
* @param size Size to read in bytes
* @return True if read is valid for underlying block device
*/
bool is_valid_read(bd_addr_t addr, bd_size_t size)
bool is_valid_read(bd_addr_t addr, bd_size_t size) const
{
return (
addr % get_read_size() == 0 &&
Expand All @@ -139,7 +139,7 @@ class BlockDevice
* @param size Size to write in bytes
* @return True if program is valid for underlying block device
*/
bool is_valid_program(bd_addr_t addr, bd_size_t size)
bool is_valid_program(bd_addr_t addr, bd_size_t size) const
{
return (
addr % get_program_size() == 0 &&
Expand All @@ -153,7 +153,7 @@ class BlockDevice
* @param size Size to erase in bytes
* @return True if erase is valid for underlying block device
*/
bool is_valid_erase(bd_addr_t addr, bd_size_t size)
bool is_valid_erase(bd_addr_t addr, bd_size_t size) const
{
return (
addr % get_erase_size() == 0 &&
Expand Down
2 changes: 1 addition & 1 deletion features/filesystem/bd/ChainingBlockDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ bd_size_t ChainingBlockDevice::get_erase_size() const
return _erase_size;
}

bd_size_t ChainingBlockDevice::size()
bd_size_t ChainingBlockDevice::size() const
{
return _size;
}
2 changes: 1 addition & 1 deletion features/filesystem/bd/ChainingBlockDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ class ChainingBlockDevice : public BlockDevice
*
* @return Size of the underlying device in bytes
*/
virtual bd_size_t size();
virtual bd_size_t size() const;

protected:
BlockDevice **_bds;
Expand Down
2 changes: 1 addition & 1 deletion features/filesystem/bd/HeapBlockDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ bd_size_t HeapBlockDevice::get_erase_size() const
return _erase_size;
}

bd_size_t HeapBlockDevice::size()
bd_size_t HeapBlockDevice::size() const
{
return _count * _erase_size;
}
Expand Down
2 changes: 1 addition & 1 deletion features/filesystem/bd/HeapBlockDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ class HeapBlockDevice : public BlockDevice
*
* @return Size of the underlying device in bytes
*/
virtual bd_size_t size();
virtual bd_size_t size() const;

private:
bd_size_t _read_size;
Expand Down
2 changes: 1 addition & 1 deletion features/filesystem/bd/SlicingBlockDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ bd_size_t SlicingBlockDevice::get_erase_size() const
return _bd->get_erase_size();
}

bd_size_t SlicingBlockDevice::size()
bd_size_t SlicingBlockDevice::size() const
{
return _stop - _start;
}
2 changes: 1 addition & 1 deletion features/filesystem/bd/SlicingBlockDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class SlicingBlockDevice : public BlockDevice
*
* @return Size of the underlying device in bytes
*/
virtual bd_size_t size();
virtual bd_size_t size() const;

protected:
BlockDevice *_bd;
Expand Down
2 changes: 1 addition & 1 deletion features/mbedtls/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
mbedtls-2.4.0
mbedtls-2.4.2
2 changes: 1 addition & 1 deletion features/mbedtls/importer/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#

# Set the mbed TLS release to import (this can/should be edited before import)
MBED_TLS_RELEASE ?= mbedtls-2.4.0
MBED_TLS_RELEASE ?= mbedtls-2.4.2

# Translate between mbed TLS namespace and mbed namespace
TARGET_PREFIX:=../
Expand Down
10 changes: 7 additions & 3 deletions features/mbedtls/inc/mbedtls/cmac.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,13 @@ struct mbedtls_cmac_context_t
/**
* \brief Set the CMAC key and prepare to authenticate the input
* data.
* Should be called with an initialised cipher context.
* Should be called with an initialized cipher context.
*
* \param ctx Cipher context
* \param ctx Cipher context. This should be a cipher context,
* initialized to be one of the following types:
* MBEDTLS_CIPHER_AES_128_ECB, MBEDTLS_CIPHER_AES_192_ECB,
* MBEDTLS_CIPHER_AES_256_ECB or
* MBEDTLS_CIPHER_DES_EDE3_ECB.
* \param key CMAC key
* \param keybits length of the CMAC key in bits
* (must be acceptable by the cipher)
Expand Down Expand Up @@ -115,7 +119,7 @@ int mbedtls_cipher_cmac_finish( mbedtls_cipher_context_t *ctx,
int mbedtls_cipher_cmac_reset( mbedtls_cipher_context_t *ctx );

/**
* \brief Output = Generic_CMAC( hmac key, input buffer )
* \brief Output = Generic_CMAC( cmac key, input buffer )
*
* \param cipher_info message digest info
* \param key CMAC key
Expand Down
1 change: 0 additions & 1 deletion features/mbedtls/inc/mbedtls/compat-1.3.h
Original file line number Diff line number Diff line change
Expand Up @@ -2453,7 +2453,6 @@
#define ssl_set_arc4_support mbedtls_ssl_conf_arc4_support
#define ssl_set_authmode mbedtls_ssl_conf_authmode
#define ssl_set_bio mbedtls_ssl_set_bio
#define ssl_set_bio mbedtls_ssl_set_bio_timeout
#define ssl_set_ca_chain mbedtls_ssl_conf_ca_chain
#define ssl_set_cbc_record_splitting mbedtls_ssl_conf_cbc_record_splitting
#define ssl_set_ciphersuites mbedtls_ssl_conf_ciphersuites
Expand Down
Loading