Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions connectivity/drivers/emac/TARGET_STM/stm32xx_emac.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
#if DEVICE_EMAC

#include <stdlib.h>
#include <algorithm>

#include "cmsis_os.h"

Expand Down
6 changes: 3 additions & 3 deletions hal/tests/TESTS/mbed_hal/mpu/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ void mpu_fault_test_bss()

void mpu_fault_test_stack()
{
uint16_t stack_function;
volatile uint16_t stack_function;

stack_function = ASM_BX_LR;
clear_caches();
Expand All @@ -143,14 +143,14 @@ void mpu_fault_test_stack()

void mpu_fault_test_heap()
{
uint16_t *heap_function = (uint16_t *)malloc(2);
uint16_t volatile *heap_function = (uint16_t *)malloc(2);

TEST_ASSERT_NOT_EQUAL(NULL, heap_function);
*heap_function = ASM_BX_LR;
clear_caches();
mpu_fault_test(heap_function);

free(heap_function);
free(const_cast<uint16_t *>(heap_function));
}

utest::v1::status_t fault_override_setup(const Case *const source, const size_t index_of_case)
Expand Down
Loading