Skip to content

Commit

Permalink
Tests - use MBED_ALIGN instead of specific compiler attributes
Browse files Browse the repository at this point in the history
This fixes the build of vector realloc test for all compilers
  • Loading branch information
bridadan authored and 0xc0170 committed Jul 4, 2016
1 parent ce83029 commit 529da7c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libraries/tests/mbed/vtor_reloc/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

#include "test_env.h"
#include "cmsis_nvic.h"
#include "toolchain.h"
#include <string.h>

#if defined(TARGET_SAMR21G18A) || defined(TARGET_SAMD21J18A) || defined(TARGET_SAMD21G18A)
Expand Down Expand Up @@ -31,7 +32,7 @@ DigitalOut out(PIN_OUT);
DigitalOut myled(LED1);

volatile int checks = 0;
uint32_t int_table[NUM_VECTORS] __attribute__ ((aligned(256)));
uint32_t int_table[NUM_VECTORS] MBED_ALIGN(256);

#define FALLING_EDGE_COUNT 5

Expand Down

0 comments on commit 529da7c

Please sign in to comment.