diff --git a/.gitignore b/.gitignore index abce393ccf..8d94e38c87 100644 --- a/.gitignore +++ b/.gitignore @@ -11,6 +11,7 @@ mbed_settings.py # Default Build Directory .build/ +BUILD/ .mbed venv/ diff --git a/.travis.yml b/.travis.yml index eb45b7c638..dd96d456a1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,8 +3,10 @@ python: script: - PYTHONPATH=. python tools/test/config_test/config_test.py + - PYTHONPATH=. python tools/test/build_api/build_api_test.py - python tools/test/pylint.py - py.test tools/test/toolchains/api.py + - python tools/test/memap/memap_test.py - python tools/build_travis.py before_install: - sudo add-apt-repository -y ppa:terry.guo/gcc-arm-embedded @@ -19,3 +21,5 @@ install: - sudo pip install jinja2 - sudo pip install pytest - sudo pip install pylint + - sudo pip install hypothesis + - sudo pip install mock diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index 346f349801..0000000000 --- a/MANIFEST.in +++ /dev/null @@ -1,3 +0,0 @@ -graft tools -recursive-exclude tools *.pyc -include LICENSE diff --git a/TESTS/events/queue/main.cpp b/TESTS/events/queue/main.cpp new file mode 100644 index 0000000000..bdb58b6eda --- /dev/null +++ b/TESTS/events/queue/main.cpp @@ -0,0 +1,258 @@ +#include "mbed_events.h" +#include "mbed.h" +#include "rtos.h" +#include "greentea-client/test_env.h" +#include "unity.h" +#include "utest.h" + +using namespace utest::v1; + + +// flag for called +volatile bool touched = false; + +// static functions +void func5(int a0, int a1, int a2, int a3, int a4) { + touched = true; + TEST_ASSERT_EQUAL(a0 | a1 | a2 | a3 | a4, 0x1f); +} + +void func4(int a0, int a1, int a2, int a3) { + touched = true; + TEST_ASSERT_EQUAL(a0 | a1 | a2 | a3, 0xf); +} + +void func3(int a0, int a1, int a2) { + touched = true; + TEST_ASSERT_EQUAL(a0 | a1 | a2, 0x7); +} + +void func2(int a0, int a1) { + touched = true; + TEST_ASSERT_EQUAL(a0 | a1, 0x3); +} + +void func1(int a0) { + touched = true; + TEST_ASSERT_EQUAL(a0, 0x1); +} + +void func0() { + touched = true; +} + +#define SIMPLE_POSTS_TEST(i, ...) \ +void simple_posts_test##i() { \ + EventQueue queue; \ + \ + touched = false; \ + queue.call(func##i,##__VA_ARGS__); \ + queue.dispatch(0); \ + TEST_ASSERT(touched); \ + \ + touched = false; \ + queue.call_in(1, func##i,##__VA_ARGS__); \ + queue.dispatch(2); \ + TEST_ASSERT(touched); \ + \ + touched = false; \ + queue.call_every(1, func##i,##__VA_ARGS__); \ + queue.dispatch(2); \ + TEST_ASSERT(touched); \ +} + +SIMPLE_POSTS_TEST(5, 0x01, 0x02, 0x04, 0x08, 0x010) +SIMPLE_POSTS_TEST(4, 0x01, 0x02, 0x04, 0x08) +SIMPLE_POSTS_TEST(3, 0x01, 0x02, 0x04) +SIMPLE_POSTS_TEST(2, 0x01, 0x02) +SIMPLE_POSTS_TEST(1, 0x01) +SIMPLE_POSTS_TEST(0) + + +void time_func(Timer *t, int ms) { + TEST_ASSERT_INT_WITHIN(2, ms, t->read_ms()); + t->reset(); +} + +template +void call_in_test() { + Timer tickers[N]; + + EventQueue queue; + + for (int i = 0; i < N; i++) { + tickers[i].start(); + queue.call_in((i+1)*100, time_func, &tickers[i], (i+1)*100); + } + + queue.dispatch(N*100); +} + +template +void call_every_test() { + Timer tickers[N]; + + EventQueue queue; + + for (int i = 0; i < N; i++) { + tickers[i].start(); + queue.call_every((i+1)*100, time_func, &tickers[i], (i+1)*100); + } + + queue.dispatch(N*100); +} + +void allocate_failure_test() { + EventQueue queue; + int id; + + for (int i = 0; i < 100; i++) { + id = queue.call((void (*)())0); + } + + TEST_ASSERT(!id); +} + +void no() { + TEST_ASSERT(false); +} + +template +void cancel_test1() { + EventQueue queue; + + int ids[N]; + + for (int i = 0; i < N; i++) { + ids[i] = queue.call_in(1000, no); + } + + for (int i = N-1; i >= 0; i--) { + queue.cancel(ids[i]); + } + + queue.dispatch(0); +} + + +// Testing the dynamic arguments to the event class +unsigned counter = 0; + +void count5(unsigned a0, unsigned a1, unsigned a2, unsigned a3, unsigned a5) { + counter += a0 + a1 + a2 + a3 + a5; +} + +void count4(unsigned a0, unsigned a1, unsigned a2, unsigned a3) { + counter += a0 + a1 + a2 + a3; +} + +void count3(unsigned a0, unsigned a1, unsigned a2) { + counter += a0 + a1 + a2; +} + +void count2(unsigned a0, unsigned a1) { + counter += a0 + a1; +} + +void count1(unsigned a0) { + counter += a0; +} + +void count0() { + counter += 0; +} + +void event_class_test() { + counter = 0; + EventQueue queue(2048); + + Event e5(&queue, count5); + Event e4(&queue, count5, 1); + Event e3(&queue, count5, 1, 1); + Event e2(&queue, count5, 1, 1, 1); + Event e1(&queue, count5, 1, 1, 1, 1); + Event e0(&queue, count5, 1, 1, 1, 1, 1); + + e5.post(1, 1, 1, 1, 1); + e4.post(1, 1, 1, 1); + e3.post(1, 1, 1); + e2.post(1, 1); + e1.post(1); + e0.post(); + + queue.dispatch(0); + + TEST_ASSERT_EQUAL(counter, 30); +} + +void event_class_helper_test() { + counter = 0; + EventQueue queue(2048); + + Event e5 = queue.event(count5, 1, 1, 1, 1, 1); + Event e4 = queue.event(count4, 1, 1, 1, 1); + Event e3 = queue.event(count3, 1, 1, 1); + Event e2 = queue.event(count2, 1, 1); + Event e1 = queue.event(count1, 1); + Event e0 = queue.event(count0); + + e5.post(); + e4.post(); + e3.post(); + e2.post(); + e1.post(); + e0.post(); + + queue.dispatch(0); + + TEST_ASSERT_EQUAL(counter, 15); +} + +void event_inference_test() { + counter = 0; + EventQueue queue (2048); + + queue.event(count5, 1, 1, 1, 1, 1).post(); + queue.event(count5, 1, 1, 1, 1).post(1); + queue.event(count5, 1, 1, 1).post(1, 1); + queue.event(count5, 1, 1).post(1, 1, 1); + queue.event(count5, 1).post(1, 1, 1, 1); + queue.event(count5).post(1, 1, 1, 1, 1); + + queue.dispatch(0); + + TEST_ASSERT_EQUAL(counter, 30); +} + + +// Test setup +utest::v1::status_t test_setup(const size_t number_of_cases) { + GREENTEA_SETUP(20, "default_auto"); + return verbose_test_setup_handler(number_of_cases); +} + +const Case cases[] = { + Case("Testing calls with 5 args", simple_posts_test5), + Case("Testing calls with 4 args", simple_posts_test4), + Case("Testing calls with 3 args", simple_posts_test3), + Case("Testing calls with 2 args", simple_posts_test2), + Case("Testing calls with 1 args", simple_posts_test1), + Case("Testing calls with 0 args", simple_posts_test0), + + Case("Testing call_in", call_in_test<20>), + Case("Testing call_every", call_every_test<20>), + + Case("Testing allocate failure", allocate_failure_test), + + Case("Testing event cancel 1", cancel_test1<20>), + Case("Testing the event class", event_class_test), + Case("Testing the event class helpers", event_class_helper_test), + Case("Testing the event inference", event_inference_test), +}; + +Specification specification(test_setup, cases); + +int main() { + return !Harness::run(specification); +} + diff --git a/TESTS/mbed_functional/callback/main.cpp b/TESTS/mbed_functional/callback/main.cpp index 6f6b7da4f7..eb4c777e5d 100644 --- a/TESTS/mbed_functional/callback/main.cpp +++ b/TESTS/mbed_functional/callback/main.cpp @@ -320,23 +320,23 @@ void test_dispatch0() { Verifier::verify0((const Thing*)&thing, &Thing::const_member_func0); Verifier::verify0((volatile Thing*)&thing, &Thing::volatile_member_func0); Verifier::verify0((const volatile Thing*)&thing, &Thing::const_volatile_member_func0); - Verifier::verify0(&thing, &bound_func0); - Verifier::verify0((const Thing*)&thing, &const_bound_func0); - Verifier::verify0((volatile Thing*)&thing, &volatile_bound_func0); - Verifier::verify0((const volatile Thing*)&thing, &const_volatile_bound_func0); - Verifier::verify0(&thing, &void_func0); - Verifier::verify0((const Thing*)&thing, &const_void_func0); - Verifier::verify0((volatile Thing*)&thing, &volatile_void_func0); - Verifier::verify0((const volatile Thing*)&thing, &const_volatile_void_func0); + Verifier::verify0(&bound_func0, &thing); + Verifier::verify0(&const_bound_func0, (const Thing*)&thing); + Verifier::verify0(&volatile_bound_func0, (volatile Thing*)&thing); + Verifier::verify0(&const_volatile_bound_func0, (const volatile Thing*)&thing); + Verifier::verify0(&void_func0, &thing); + Verifier::verify0(&const_void_func0, (const Thing*)&thing); + Verifier::verify0(&volatile_void_func0, (volatile Thing*)&thing); + Verifier::verify0(&const_volatile_void_func0, (const volatile Thing*)&thing); Verifier::verify0(callback(static_func0)); Callback cb(static_func0); Verifier::verify0(cb); cb = static_func0; Verifier::verify0(cb); - cb.attach(&thing, &bound_func0); + cb.attach(&bound_func0, &thing); Verifier::verify0(&cb, &Callback::call); - Verifier::verify0((void*)&cb, &Callback::thunk); + Verifier::verify0(&Callback::thunk, (void*)&cb); } template @@ -347,23 +347,23 @@ void test_dispatch1() { Verifier::verify1((const Thing*)&thing, &Thing::const_member_func1); Verifier::verify1((volatile Thing*)&thing, &Thing::volatile_member_func1); Verifier::verify1((const volatile Thing*)&thing, &Thing::const_volatile_member_func1); - Verifier::verify1(&thing, &bound_func1); - Verifier::verify1((const Thing*)&thing, &const_bound_func1); - Verifier::verify1((volatile Thing*)&thing, &volatile_bound_func1); - Verifier::verify1((const volatile Thing*)&thing, &const_volatile_bound_func1); - Verifier::verify1(&thing, &void_func1); - Verifier::verify1((const Thing*)&thing, &const_void_func1); - Verifier::verify1((volatile Thing*)&thing, &volatile_void_func1); - Verifier::verify1((const volatile Thing*)&thing, &const_volatile_void_func1); + Verifier::verify1(&bound_func1, &thing); + Verifier::verify1(&const_bound_func1, (const Thing*)&thing); + Verifier::verify1(&volatile_bound_func1, (volatile Thing*)&thing); + Verifier::verify1(&const_volatile_bound_func1, (const volatile Thing*)&thing); + Verifier::verify1(&void_func1, &thing); + Verifier::verify1(&const_void_func1, (const Thing*)&thing); + Verifier::verify1(&volatile_void_func1, (volatile Thing*)&thing); + Verifier::verify1(&const_volatile_void_func1, (const volatile Thing*)&thing); Verifier::verify1(callback(static_func1)); Callback cb(static_func1); Verifier::verify1(cb); cb = static_func1; Verifier::verify1(cb); - cb.attach(&thing, &bound_func1); + cb.attach(&bound_func1, &thing); Verifier::verify1(&cb, &Callback::call); - Verifier::verify1((void*)&cb, &Callback::thunk); + Verifier::verify1(&Callback::thunk, (void*)&cb); } template @@ -374,23 +374,23 @@ void test_dispatch2() { Verifier::verify2((const Thing*)&thing, &Thing::const_member_func2); Verifier::verify2((volatile Thing*)&thing, &Thing::volatile_member_func2); Verifier::verify2((const volatile Thing*)&thing, &Thing::const_volatile_member_func2); - Verifier::verify2(&thing, &bound_func2); - Verifier::verify2((const Thing*)&thing, &const_bound_func2); - Verifier::verify2((volatile Thing*)&thing, &volatile_bound_func2); - Verifier::verify2((const volatile Thing*)&thing, &const_volatile_bound_func2); - Verifier::verify2(&thing, &void_func2); - Verifier::verify2((const Thing*)&thing, &const_void_func2); - Verifier::verify2((volatile Thing*)&thing, &volatile_void_func2); - Verifier::verify2((const volatile Thing*)&thing, &const_volatile_void_func2); + Verifier::verify2(&bound_func2, &thing); + Verifier::verify2(&const_bound_func2, (const Thing*)&thing); + Verifier::verify2(&volatile_bound_func2, (volatile Thing*)&thing); + Verifier::verify2(&const_volatile_bound_func2, (const volatile Thing*)&thing); + Verifier::verify2(&void_func2, &thing); + Verifier::verify2(&const_void_func2, (const Thing*)&thing); + Verifier::verify2(&volatile_void_func2, (volatile Thing*)&thing); + Verifier::verify2(&const_volatile_void_func2, (const volatile Thing*)&thing); Verifier::verify2(callback(static_func2)); Callback cb(static_func2); Verifier::verify2(cb); cb = static_func2; Verifier::verify2(cb); - cb.attach(&thing, &bound_func2); + cb.attach(&bound_func2, &thing); Verifier::verify2(&cb, &Callback::call); - Verifier::verify2((void*)&cb, &Callback::thunk); + Verifier::verify2(&Callback::thunk, (void*)&cb); } template @@ -401,23 +401,23 @@ void test_dispatch3() { Verifier::verify3((const Thing*)&thing, &Thing::const_member_func3); Verifier::verify3((volatile Thing*)&thing, &Thing::volatile_member_func3); Verifier::verify3((const volatile Thing*)&thing, &Thing::const_volatile_member_func3); - Verifier::verify3(&thing, &bound_func3); - Verifier::verify3((const Thing*)&thing, &const_bound_func3); - Verifier::verify3((volatile Thing*)&thing, &volatile_bound_func3); - Verifier::verify3((const volatile Thing*)&thing, &const_volatile_bound_func3); - Verifier::verify3(&thing, &void_func3); - Verifier::verify3((const Thing*)&thing, &const_void_func3); - Verifier::verify3((volatile Thing*)&thing, &volatile_void_func3); - Verifier::verify3((const volatile Thing*)&thing, &const_volatile_void_func3); + Verifier::verify3(&bound_func3, &thing); + Verifier::verify3(&const_bound_func3, (const Thing*)&thing); + Verifier::verify3(&volatile_bound_func3, (volatile Thing*)&thing); + Verifier::verify3(&const_volatile_bound_func3, (const volatile Thing*)&thing); + Verifier::verify3(&void_func3, &thing); + Verifier::verify3(&const_void_func3, (const Thing*)&thing); + Verifier::verify3(&volatile_void_func3, (volatile Thing*)&thing); + Verifier::verify3(&const_volatile_void_func3, (const volatile Thing*)&thing); Verifier::verify3(callback(static_func3)); Callback cb(static_func3); Verifier::verify3(cb); cb = static_func3; Verifier::verify3(cb); - cb.attach(&thing, &bound_func3); + cb.attach(&bound_func3, &thing); Verifier::verify3(&cb, &Callback::call); - Verifier::verify3((void*)&cb, &Callback::thunk); + Verifier::verify3(&Callback::thunk, (void*)&cb); } template @@ -428,23 +428,23 @@ void test_dispatch4() { Verifier::verify4((const Thing*)&thing, &Thing::const_member_func4); Verifier::verify4((volatile Thing*)&thing, &Thing::volatile_member_func4); Verifier::verify4((const volatile Thing*)&thing, &Thing::const_volatile_member_func4); - Verifier::verify4(&thing, &bound_func4); - Verifier::verify4((const Thing*)&thing, &const_bound_func4); - Verifier::verify4((volatile Thing*)&thing, &volatile_bound_func4); - Verifier::verify4((const volatile Thing*)&thing, &const_volatile_bound_func4); - Verifier::verify4(&thing, &void_func4); - Verifier::verify4((const Thing*)&thing, &const_void_func4); - Verifier::verify4((volatile Thing*)&thing, &volatile_void_func4); - Verifier::verify4((const volatile Thing*)&thing, &const_volatile_void_func4); + Verifier::verify4(&bound_func4, &thing); + Verifier::verify4(&const_bound_func4, (const Thing*)&thing); + Verifier::verify4(&volatile_bound_func4, (volatile Thing*)&thing); + Verifier::verify4(&const_volatile_bound_func4, (const volatile Thing*)&thing); + Verifier::verify4(&void_func4, &thing); + Verifier::verify4(&const_void_func4, (const Thing*)&thing); + Verifier::verify4(&volatile_void_func4, (volatile Thing*)&thing); + Verifier::verify4(&const_volatile_void_func4, (const volatile Thing*)&thing); Verifier::verify4(callback(static_func4)); Callback cb(static_func4); Verifier::verify4(cb); cb = static_func4; Verifier::verify4(cb); - cb.attach(&thing, &bound_func4); + cb.attach(&bound_func4, &thing); Verifier::verify4(&cb, &Callback::call); - Verifier::verify4((void*)&cb, &Callback::thunk); + Verifier::verify4(&Callback::thunk, (void*)&cb); } template @@ -455,23 +455,23 @@ void test_dispatch5() { Verifier::verify5((const Thing*)&thing, &Thing::const_member_func5); Verifier::verify5((volatile Thing*)&thing, &Thing::volatile_member_func5); Verifier::verify5((const volatile Thing*)&thing, &Thing::const_volatile_member_func5); - Verifier::verify5(&thing, &bound_func5); - Verifier::verify5((const Thing*)&thing, &const_bound_func5); - Verifier::verify5((volatile Thing*)&thing, &volatile_bound_func5); - Verifier::verify5((const volatile Thing*)&thing, &const_volatile_bound_func5); - Verifier::verify5(&thing, &void_func5); - Verifier::verify5((const Thing*)&thing, &const_void_func5); - Verifier::verify5((volatile Thing*)&thing, &volatile_void_func5); - Verifier::verify5((const volatile Thing*)&thing, &const_volatile_void_func5); + Verifier::verify5(&bound_func5, &thing); + Verifier::verify5(&const_bound_func5, (const Thing*)&thing); + Verifier::verify5(&volatile_bound_func5, (volatile Thing*)&thing); + Verifier::verify5(&const_volatile_bound_func5, (const volatile Thing*)&thing); + Verifier::verify5(&void_func5, &thing); + Verifier::verify5(&const_void_func5, (const Thing*)&thing); + Verifier::verify5(&volatile_void_func5, (volatile Thing*)&thing); + Verifier::verify5(&const_volatile_void_func5, (const volatile Thing*)&thing); Verifier::verify5(callback(static_func5)); Callback cb(static_func5); Verifier::verify5(cb); cb = static_func5; Verifier::verify5(cb); - cb.attach(&thing, &bound_func5); + cb.attach(&bound_func5, &thing); Verifier::verify5(&cb, &Callback::call); - Verifier::verify5((void*)&cb, &Callback::thunk); + Verifier::verify5(&Callback::thunk, (void*)&cb); } diff --git a/TESTS/mbed_functional/callback_big/main.cpp b/TESTS/mbed_functional/callback_big/main.cpp index 47630a3f21..efa1fb088a 100644 --- a/TESTS/mbed_functional/callback_big/main.cpp +++ b/TESTS/mbed_functional/callback_big/main.cpp @@ -198,19 +198,19 @@ void test_dispatch0() { Verifier::verify0((const Thing*)&thing, &Thing::const_member_func0); Verifier::verify0((volatile Thing*)&thing, &Thing::volatile_member_func0); Verifier::verify0((const volatile Thing*)&thing, &Thing::const_volatile_member_func0); - Verifier::verify0(&thing, &bound_func0); - Verifier::verify0((const Thing*)&thing, &const_func0); - Verifier::verify0((volatile Thing*)&thing, &volatile_func0); - Verifier::verify0((const volatile Thing*)&thing, &const_volatile_func0); + Verifier::verify0(&bound_func0, &thing); + Verifier::verify0(&const_func0, (const Thing*)&thing); + Verifier::verify0(&volatile_func0, (volatile Thing*)&thing); + Verifier::verify0(&const_volatile_func0, (const volatile Thing*)&thing); Verifier::verify0(callback(static_func0)); Callback cb(static_func0); Verifier::verify0(cb); cb = static_func0; Verifier::verify0(cb); - cb.attach(&thing, &bound_func0); + cb.attach(&bound_func0, &thing); Verifier::verify0(&cb, &Callback::call); - Verifier::verify0((void*)&cb, &Callback::thunk); + Verifier::verify0(&Callback::thunk, (void*)&cb); } template @@ -221,19 +221,19 @@ void test_dispatch1() { Verifier::verify1((const Thing*)&thing, &Thing::const_member_func1); Verifier::verify1((volatile Thing*)&thing, &Thing::volatile_member_func1); Verifier::verify1((const volatile Thing*)&thing, &Thing::const_volatile_member_func1); - Verifier::verify1(&thing, &bound_func1); - Verifier::verify1((const Thing*)&thing, &const_func1); - Verifier::verify1((volatile Thing*)&thing, &volatile_func1); - Verifier::verify1((const volatile Thing*)&thing, &const_volatile_func1); + Verifier::verify1(&bound_func1, &thing); + Verifier::verify1(&const_func1, (const Thing*)&thing); + Verifier::verify1(&volatile_func1, (volatile Thing*)&thing); + Verifier::verify1(&const_volatile_func1, (const volatile Thing*)&thing); Verifier::verify1(callback(static_func1)); Callback cb(static_func1); Verifier::verify1(cb); cb = static_func1; Verifier::verify1(cb); - cb.attach(&thing, &bound_func1); + cb.attach(&bound_func1, &thing); Verifier::verify1(&cb, &Callback::call); - Verifier::verify1((void*)&cb, &Callback::thunk); + Verifier::verify1(&Callback::thunk, (void*)&cb); } template @@ -244,19 +244,19 @@ void test_dispatch2() { Verifier::verify2((const Thing*)&thing, &Thing::const_member_func2); Verifier::verify2((volatile Thing*)&thing, &Thing::volatile_member_func2); Verifier::verify2((const volatile Thing*)&thing, &Thing::const_volatile_member_func2); - Verifier::verify2(&thing, &bound_func2); - Verifier::verify2((const Thing*)&thing, &const_func2); - Verifier::verify2((volatile Thing*)&thing, &volatile_func2); - Verifier::verify2((const volatile Thing*)&thing, &const_volatile_func2); + Verifier::verify2(&bound_func2, &thing); + Verifier::verify2(&const_func2, (const Thing*)&thing); + Verifier::verify2(&volatile_func2, (volatile Thing*)&thing); + Verifier::verify2(&const_volatile_func2, (const volatile Thing*)&thing); Verifier::verify2(callback(static_func2)); Callback cb(static_func2); Verifier::verify2(cb); cb = static_func2; Verifier::verify2(cb); - cb.attach(&thing, &bound_func2); + cb.attach(&bound_func2, &thing); Verifier::verify2(&cb, &Callback::call); - Verifier::verify2((void*)&cb, &Callback::thunk); + Verifier::verify2(&Callback::thunk, (void*)&cb); } template @@ -267,19 +267,19 @@ void test_dispatch3() { Verifier::verify3((const Thing*)&thing, &Thing::const_member_func3); Verifier::verify3((volatile Thing*)&thing, &Thing::volatile_member_func3); Verifier::verify3((const volatile Thing*)&thing, &Thing::const_volatile_member_func3); - Verifier::verify3(&thing, &bound_func3); - Verifier::verify3((const Thing*)&thing, &const_func3); - Verifier::verify3((volatile Thing*)&thing, &volatile_func3); - Verifier::verify3((const volatile Thing*)&thing, &const_volatile_func3); + Verifier::verify3(&bound_func3, &thing); + Verifier::verify3(&const_func3, (const Thing*)&thing); + Verifier::verify3(&volatile_func3, (volatile Thing*)&thing); + Verifier::verify3(&const_volatile_func3, (const volatile Thing*)&thing); Verifier::verify3(callback(static_func3)); Callback cb(static_func3); Verifier::verify3(cb); cb = static_func3; Verifier::verify3(cb); - cb.attach(&thing, &bound_func3); + cb.attach(&bound_func3, &thing); Verifier::verify3(&cb, &Callback::call); - Verifier::verify3((void*)&cb, &Callback::thunk); + Verifier::verify3(&Callback::thunk, (void*)&cb); } template @@ -290,19 +290,19 @@ void test_dispatch4() { Verifier::verify4((const Thing*)&thing, &Thing::const_member_func4); Verifier::verify4((volatile Thing*)&thing, &Thing::volatile_member_func4); Verifier::verify4((const volatile Thing*)&thing, &Thing::const_volatile_member_func4); - Verifier::verify4(&thing, &bound_func4); - Verifier::verify4((const Thing*)&thing, &const_func4); - Verifier::verify4((volatile Thing*)&thing, &volatile_func4); - Verifier::verify4((const volatile Thing*)&thing, &const_volatile_func4); + Verifier::verify4(&bound_func4, &thing); + Verifier::verify4(&const_func4, (const Thing*)&thing); + Verifier::verify4(&volatile_func4, (volatile Thing*)&thing); + Verifier::verify4(&const_volatile_func4, (const volatile Thing*)&thing); Verifier::verify4(callback(static_func4)); Callback cb(static_func4); Verifier::verify4(cb); cb = static_func4; Verifier::verify4(cb); - cb.attach(&thing, &bound_func4); + cb.attach(&bound_func4, &thing); Verifier::verify4(&cb, &Callback::call); - Verifier::verify4((void*)&cb, &Callback::thunk); + Verifier::verify4(&Callback::thunk, (void*)&cb); } template @@ -313,19 +313,19 @@ void test_dispatch5() { Verifier::verify5((const Thing*)&thing, &Thing::const_member_func5); Verifier::verify5((volatile Thing*)&thing, &Thing::volatile_member_func5); Verifier::verify5((const volatile Thing*)&thing, &Thing::const_volatile_member_func5); - Verifier::verify5(&thing, &bound_func5); - Verifier::verify5((const Thing*)&thing, &const_func5); - Verifier::verify5((volatile Thing*)&thing, &volatile_func5); - Verifier::verify5((const volatile Thing*)&thing, &const_volatile_func5); + Verifier::verify5(&bound_func5, &thing); + Verifier::verify5(&const_func5, (const Thing*)&thing); + Verifier::verify5(&volatile_func5, (volatile Thing*)&thing); + Verifier::verify5(&const_volatile_func5, (const volatile Thing*)&thing); Verifier::verify5(callback(static_func5)); Callback cb(static_func5); Verifier::verify5(cb); cb = static_func5; Verifier::verify5(cb); - cb.attach(&thing, &bound_func5); + cb.attach(&bound_func5, &thing); Verifier::verify5(&cb, &Callback::call); - Verifier::verify5((void*)&cb, &Callback::thunk); + Verifier::verify5(&Callback::thunk, (void*)&cb); } diff --git a/TESTS/mbed_functional/callback_small/main.cpp b/TESTS/mbed_functional/callback_small/main.cpp index e5fa15b4b6..4e9bf904bf 100644 --- a/TESTS/mbed_functional/callback_small/main.cpp +++ b/TESTS/mbed_functional/callback_small/main.cpp @@ -198,19 +198,19 @@ void test_dispatch0() { Verifier::verify0((const Thing*)&thing, &Thing::const_member_func0); Verifier::verify0((volatile Thing*)&thing, &Thing::volatile_member_func0); Verifier::verify0((const volatile Thing*)&thing, &Thing::const_volatile_member_func0); - Verifier::verify0(&thing, &bound_func0); - Verifier::verify0((const Thing*)&thing, &const_func0); - Verifier::verify0((volatile Thing*)&thing, &volatile_func0); - Verifier::verify0((const volatile Thing*)&thing, &const_volatile_func0); + Verifier::verify0(&bound_func0, &thing); + Verifier::verify0(&const_func0, (const Thing*)&thing); + Verifier::verify0(&volatile_func0, (volatile Thing*)&thing); + Verifier::verify0(&const_volatile_func0, (const volatile Thing*)&thing); Verifier::verify0(callback(static_func0)); Callback cb(static_func0); Verifier::verify0(cb); cb = static_func0; Verifier::verify0(cb); - cb.attach(&thing, &bound_func0); + cb.attach(&bound_func0, &thing); Verifier::verify0(&cb, &Callback::call); - Verifier::verify0((void*)&cb, &Callback::thunk); + Verifier::verify0(&Callback::thunk, (void*)&cb); } template @@ -221,19 +221,19 @@ void test_dispatch1() { Verifier::verify1((const Thing*)&thing, &Thing::const_member_func1); Verifier::verify1((volatile Thing*)&thing, &Thing::volatile_member_func1); Verifier::verify1((const volatile Thing*)&thing, &Thing::const_volatile_member_func1); - Verifier::verify1(&thing, &bound_func1); - Verifier::verify1((const Thing*)&thing, &const_func1); - Verifier::verify1((volatile Thing*)&thing, &volatile_func1); - Verifier::verify1((const volatile Thing*)&thing, &const_volatile_func1); + Verifier::verify1(&bound_func1, &thing); + Verifier::verify1(&const_func1, (const Thing*)&thing); + Verifier::verify1(&volatile_func1, (volatile Thing*)&thing); + Verifier::verify1(&const_volatile_func1, (const volatile Thing*)&thing); Verifier::verify1(callback(static_func1)); Callback cb(static_func1); Verifier::verify1(cb); cb = static_func1; Verifier::verify1(cb); - cb.attach(&thing, &bound_func1); + cb.attach(&bound_func1, &thing); Verifier::verify1(&cb, &Callback::call); - Verifier::verify1((void*)&cb, &Callback::thunk); + Verifier::verify1(&Callback::thunk, (void*)&cb); } template @@ -244,19 +244,19 @@ void test_dispatch2() { Verifier::verify2((const Thing*)&thing, &Thing::const_member_func2); Verifier::verify2((volatile Thing*)&thing, &Thing::volatile_member_func2); Verifier::verify2((const volatile Thing*)&thing, &Thing::const_volatile_member_func2); - Verifier::verify2(&thing, &bound_func2); - Verifier::verify2((const Thing*)&thing, &const_func2); - Verifier::verify2((volatile Thing*)&thing, &volatile_func2); - Verifier::verify2((const volatile Thing*)&thing, &const_volatile_func2); + Verifier::verify2(&bound_func2, &thing); + Verifier::verify2(&const_func2, (const Thing*)&thing); + Verifier::verify2(&volatile_func2, (volatile Thing*)&thing); + Verifier::verify2(&const_volatile_func2, (const volatile Thing*)&thing); Verifier::verify2(callback(static_func2)); Callback cb(static_func2); Verifier::verify2(cb); cb = static_func2; Verifier::verify2(cb); - cb.attach(&thing, &bound_func2); + cb.attach(&bound_func2, &thing); Verifier::verify2(&cb, &Callback::call); - Verifier::verify2((void*)&cb, &Callback::thunk); + Verifier::verify2(&Callback::thunk, (void*)&cb); } template @@ -267,19 +267,19 @@ void test_dispatch3() { Verifier::verify3((const Thing*)&thing, &Thing::const_member_func3); Verifier::verify3((volatile Thing*)&thing, &Thing::volatile_member_func3); Verifier::verify3((const volatile Thing*)&thing, &Thing::const_volatile_member_func3); - Verifier::verify3(&thing, &bound_func3); - Verifier::verify3((const Thing*)&thing, &const_func3); - Verifier::verify3((volatile Thing*)&thing, &volatile_func3); - Verifier::verify3((const volatile Thing*)&thing, &const_volatile_func3); + Verifier::verify3(&bound_func3, &thing); + Verifier::verify3(&const_func3, (const Thing*)&thing); + Verifier::verify3(&volatile_func3, (volatile Thing*)&thing); + Verifier::verify3(&const_volatile_func3, (const volatile Thing*)&thing); Verifier::verify3(callback(static_func3)); Callback cb(static_func3); Verifier::verify3(cb); cb = static_func3; Verifier::verify3(cb); - cb.attach(&thing, &bound_func3); + cb.attach(&bound_func3, &thing); Verifier::verify3(&cb, &Callback::call); - Verifier::verify3((void*)&cb, &Callback::thunk); + Verifier::verify3(&Callback::thunk, (void*)&cb); } template @@ -290,19 +290,19 @@ void test_dispatch4() { Verifier::verify4((const Thing*)&thing, &Thing::const_member_func4); Verifier::verify4((volatile Thing*)&thing, &Thing::volatile_member_func4); Verifier::verify4((const volatile Thing*)&thing, &Thing::const_volatile_member_func4); - Verifier::verify4(&thing, &bound_func4); - Verifier::verify4((const Thing*)&thing, &const_func4); - Verifier::verify4((volatile Thing*)&thing, &volatile_func4); - Verifier::verify4((const volatile Thing*)&thing, &const_volatile_func4); + Verifier::verify4(&bound_func4, &thing); + Verifier::verify4(&const_func4, (const Thing*)&thing); + Verifier::verify4(&volatile_func4, (volatile Thing*)&thing); + Verifier::verify4(&const_volatile_func4, (const volatile Thing*)&thing); Verifier::verify4(callback(static_func4)); Callback cb(static_func4); Verifier::verify4(cb); cb = static_func4; Verifier::verify4(cb); - cb.attach(&thing, &bound_func4); + cb.attach(&bound_func4, &thing); Verifier::verify4(&cb, &Callback::call); - Verifier::verify4((void*)&cb, &Callback::thunk); + Verifier::verify4(&Callback::thunk, (void*)&cb); } template @@ -313,19 +313,19 @@ void test_dispatch5() { Verifier::verify5((const Thing*)&thing, &Thing::const_member_func5); Verifier::verify5((volatile Thing*)&thing, &Thing::volatile_member_func5); Verifier::verify5((const volatile Thing*)&thing, &Thing::const_volatile_member_func5); - Verifier::verify5(&thing, &bound_func5); - Verifier::verify5((const Thing*)&thing, &const_func5); - Verifier::verify5((volatile Thing*)&thing, &volatile_func5); - Verifier::verify5((const volatile Thing*)&thing, &const_volatile_func5); + Verifier::verify5(&bound_func5, &thing); + Verifier::verify5(&const_func5, (const Thing*)&thing); + Verifier::verify5(&volatile_func5, (volatile Thing*)&thing); + Verifier::verify5(&const_volatile_func5, (const volatile Thing*)&thing); Verifier::verify5(callback(static_func5)); Callback cb(static_func5); Verifier::verify5(cb); cb = static_func5; Verifier::verify5(cb); - cb.attach(&thing, &bound_func5); + cb.attach(&bound_func5, &thing); Verifier::verify5(&cb, &Callback::call); - Verifier::verify5((void*)&cb, &Callback::thunk); + Verifier::verify5(&Callback::thunk, (void*)&cb); } diff --git a/TESTS/mbedmicro-rtos-mbed/basic/main.cpp b/TESTS/mbedmicro-rtos-mbed/basic/main.cpp index 278ce036ad..75183cbd83 100644 --- a/TESTS/mbedmicro-rtos-mbed/basic/main.cpp +++ b/TESTS/mbedmicro-rtos-mbed/basic/main.cpp @@ -21,6 +21,8 @@ #define STACK_SIZE 1536 #elif defined(TARGET_MCU_NRF51822) || defined(TARGET_MCU_NRF52832) #define STACK_SIZE 768 +#elif defined(TARGET_XDOT_L151CC) +#define STACK_SIZE 1024 #else #define STACK_SIZE DEFAULT_STACK_SIZE #endif diff --git a/TESTS/mbedmicro-rtos-mbed/isr/main.cpp b/TESTS/mbedmicro-rtos-mbed/isr/main.cpp index fc133eca37..160854a7d0 100644 --- a/TESTS/mbedmicro-rtos-mbed/isr/main.cpp +++ b/TESTS/mbedmicro-rtos-mbed/isr/main.cpp @@ -24,6 +24,8 @@ #define STACK_SIZE 1536 #elif defined(TARGET_MCU_NRF51822) || defined(TARGET_MCU_NRF52832) #define STACK_SIZE 768 +#elif defined(TARGET_XDOT_L151CC) + #define STACK_SIZE 1024 #else #define STACK_SIZE DEFAULT_STACK_SIZE #endif diff --git a/TESTS/mbedmicro-rtos-mbed/mail/main.cpp b/TESTS/mbedmicro-rtos-mbed/mail/main.cpp index eed2671b72..f6d05a78b9 100644 --- a/TESTS/mbedmicro-rtos-mbed/mail/main.cpp +++ b/TESTS/mbedmicro-rtos-mbed/mail/main.cpp @@ -30,6 +30,8 @@ typedef struct { #define STACK_SIZE 1536 #elif defined(TARGET_MCU_NRF51822) || defined(TARGET_MCU_NRF52832) #define STACK_SIZE 768 +#elif defined(TARGET_XDOT_L151CC) + #define STACK_SIZE 1024 #else #define STACK_SIZE DEFAULT_STACK_SIZE #endif diff --git a/TESTS/mbedmicro-rtos-mbed/mutex/main.cpp b/TESTS/mbedmicro-rtos-mbed/mutex/main.cpp index d3612f6a7c..38a0c7708c 100644 --- a/TESTS/mbedmicro-rtos-mbed/mutex/main.cpp +++ b/TESTS/mbedmicro-rtos-mbed/mutex/main.cpp @@ -34,6 +34,8 @@ #define STACK_SIZE 1536 #elif defined(TARGET_MCU_NRF51822) || defined(TARGET_MCU_NRF52832) #define STACK_SIZE 1024 +#elif defined(TARGET_XDOT_L151CC) + #define STACK_SIZE 1024 #else #define STACK_SIZE DEFAULT_STACK_SIZE #endif diff --git a/TESTS/mbedmicro-rtos-mbed/queue/main.cpp b/TESTS/mbedmicro-rtos-mbed/queue/main.cpp index fcee38e66b..738e6c8c15 100644 --- a/TESTS/mbedmicro-rtos-mbed/queue/main.cpp +++ b/TESTS/mbedmicro-rtos-mbed/queue/main.cpp @@ -30,6 +30,8 @@ typedef struct { #define STACK_SIZE 1536 #elif defined(TARGET_MCU_NRF51822) || defined(TARGET_MCU_NRF52832) #define STACK_SIZE 768 +#elif defined(TARGET_XDOT_L151CC) + #define STACK_SIZE 1024 #else #define STACK_SIZE DEFAULT_STACK_SIZE #endif diff --git a/TESTS/mbedmicro-rtos-mbed/semaphore/main.cpp b/TESTS/mbedmicro-rtos-mbed/semaphore/main.cpp index 60f3f79918..5a08d57161 100644 --- a/TESTS/mbedmicro-rtos-mbed/semaphore/main.cpp +++ b/TESTS/mbedmicro-rtos-mbed/semaphore/main.cpp @@ -37,6 +37,8 @@ #define STACK_SIZE 1536 #elif defined(TARGET_MCU_NRF51822) || defined(TARGET_MCU_NRF52832) #define STACK_SIZE 768 +#elif defined(TARGET_XDOT_L151CC) + #define STACK_SIZE 1024 #else #define STACK_SIZE DEFAULT_STACK_SIZE #endif diff --git a/TESTS/mbedmicro-rtos-mbed/signals/main.cpp b/TESTS/mbedmicro-rtos-mbed/signals/main.cpp index 281b322b66..2bf225b2cd 100644 --- a/TESTS/mbedmicro-rtos-mbed/signals/main.cpp +++ b/TESTS/mbedmicro-rtos-mbed/signals/main.cpp @@ -23,6 +23,8 @@ const int SIGNAL_HANDLE_DELEY = 25; #define STACK_SIZE 1536 #elif defined(TARGET_MCU_NRF51822) || defined(TARGET_MCU_NRF52832) #define STACK_SIZE 768 +#elif defined(TARGET_XDOT_L151CC) + #define STACK_SIZE 1024 #else #define STACK_SIZE DEFAULT_STACK_SIZE #endif diff --git a/TESTS/mbedmicro-rtos-mbed/threads/main.cpp b/TESTS/mbedmicro-rtos-mbed/threads/main.cpp index 52286f11f7..27cd6428c3 100644 --- a/TESTS/mbedmicro-rtos-mbed/threads/main.cpp +++ b/TESTS/mbedmicro-rtos-mbed/threads/main.cpp @@ -23,6 +23,8 @@ #define STACK_SIZE 512 #elif defined(TARGET_STM32L073RZ) #define STACK_SIZE 512 +#elif defined(TARGET_XDOT_L151CC) + #define STACK_SIZE 1024 #else #define STACK_SIZE DEFAULT_STACK_SIZE #endif diff --git a/TESTS/mbedtls/selftest/main.cpp b/TESTS/mbedtls/selftest/main.cpp new file mode 100644 index 0000000000..d011d1911e --- /dev/null +++ b/TESTS/mbedtls/selftest/main.cpp @@ -0,0 +1,102 @@ +/* mbed Microcontroller Library + * Copyright (c) 2016 ARM Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "mbed.h" +#include "greentea-client/test_env.h" +#include "unity.h" +#include "utest.h" +#include "rtos.h" + +using namespace utest::v1; + +#if !defined(MBEDTLS_CONFIG_FILE) +#include "mbedtls/config.h" +#else +#include MBEDTLS_CONFIG_FILE +#endif + +#include "mbedtls/sha256.h" +#include "mbedtls/sha512.h" +#include "mbedtls/entropy.h" +#include "mbedtls/entropy_poll.h" + +#include + +#if defined(MBEDTLS_PLATFORM_C) +#include "mbedtls/platform.h" +#else +#include +#include +#define mbedtls_printf printf +#define mbedtls_snprintf snprintf +#define mbedtls_exit exit +#define MBEDTLS_EXIT_SUCCESS EXIT_SUCCESS +#define MBEDTLS_EXIT_FAILURE EXIT_FAILURE +#endif + +#define MBEDTLS_SELF_TEST_TEST_CASE(self_test_function) \ + void self_test_function ## _test_case() { \ + int ret = self_test_function(0); \ + TEST_ASSERT_EQUAL(ret, 0); \ + } + +#if defined(MBEDTLS_SELF_TEST) + +#if defined(MBEDTLS_SHA256_C) +MBEDTLS_SELF_TEST_TEST_CASE(mbedtls_sha256_self_test) +#endif + +#if defined(MBEDTLS_SHA512_C) +MBEDTLS_SELF_TEST_TEST_CASE(mbedtls_sha512_self_test) +#endif + +#if defined(MBEDTLS_ENTROPY_C) +MBEDTLS_SELF_TEST_TEST_CASE(mbedtls_entropy_self_test) +#endif + +#else +#warning "MBEDTLS_SELF_TEST not enabled" +#endif /* MBEDTLS_SELF_TEST */ + +Case cases[] = { +#if defined(MBEDTLS_SELF_TEST) + +#if defined(MBEDTLS_SHA256_C) + Case("mbedtls_sha256_self_test", mbedtls_sha256_self_test_test_case), +#endif + +#if defined(MBEDTLS_SHA512_C) + Case("mbedtls_sha512_self_test", mbedtls_sha512_self_test_test_case), +#endif + +#if defined(MBEDTLS_ENTROPY_C) + Case("mbedtls_entropy_self_test", mbedtls_entropy_self_test_test_case), +#endif + +#endif /* MBEDTLS_SELF_TEST */ +}; + +utest::v1::status_t test_setup(const size_t num_cases) { + GREENTEA_SETUP(120, "default_auto"); + return verbose_test_setup_handler(num_cases); +} + +Specification specification(test_setup, cases); + +int main() { + return !Harness::run(specification); +} + diff --git a/docs/BUILDING.md b/docs/BUILDING.md index 33e9959a18..f0b0b0ec52 100644 --- a/docs/BUILDING.md +++ b/docs/BUILDING.md @@ -336,7 +336,7 @@ $ python build.py -S | ARCH_BLE | Default | - | Supported | Supported | - | | ARCH_GPRS | Supported | Default | Supported | Supported | Supported | ... -| UBLOX_C029 | Supported | Default | Supported | Supported | - | +| UBLOX_EVK_ODIN_W2 | Supported | Default | Supported | Supported | - | | WALLBOT_BLE | Default | - | Supported | Supported | - | | XADOW_M0 | Supported | Default | Supported | Supported | Supported | +-------------------------+-----------+-----------+-----------+-----------+-----------+ diff --git a/docs/Toolchain_Profiles.md b/docs/Toolchain_Profiles.md new file mode 100644 index 0000000000..c310b8c19f --- /dev/null +++ b/docs/Toolchain_Profiles.md @@ -0,0 +1,72 @@ +# Toolchain Profiles User Perspective + +A Toolchain or build system Profile is a set of flags that is garenteed to be passed to the underlieing compiler suite. +These flags are stored in a JSON file that may be merged with other JSON files of the same structure. + +## JSON Toolchain Profile Format + +The JSON object that represents a Toolchain Profile is a dict mapping from Toolchains, like `GCC_ARM`, to their flags, like `-O3`. +The structure is as follows: Each toolchain supported by a Toolchain Profile has an dict in the root dict. +This dict contains a mapping from a flag type to a list of flags that should be passed the corresponding part of the compiler suite. +The required flag types are: + +| Key | Description | +|:---------|:--------------------------------------| +| `c` | Flags for the C Compiler | +| `cxx` | Flags for the C++ Compiler | +| `common` | Flags for both the C and C++ Compilers| +| `asm` | Flags for the Assembler | + +## Example + +An example of a Toolchain Profile is given below: +```json +{ + "GCC_ARM": { + "common": ["-c", "-Wall", "-Wextra", + "-Wno-unused-parameter", "-Wno-missing-field-initializers", + "-fmessage-length=0", "-fno-exceptions", "-fno-builtin", + "-ffunction-sections", "-fdata-sections", "-funsigned-char", + "-MMD", "-fno-delete-null-pointer-checks", + "-fomit-frame-pointer", "-Os"], + "asm": ["-x", "assembler-with-cpp"], + "c": ["-std=gnu99"], + "cxx": ["-std=gnu++98", "-fno-rtti", "-Wvla"], + "ld": ["-Wl,--gc-sections", "-Wl,--wrap,main", "-Wl,--wrap,_malloc_r", + "-Wl,--wrap,_free_r", "-Wl,--wrap,_realloc_r", + "-Wl,--wrap,_calloc_r", "-Wl,--wrap,exit", "-Wl,--wrap,atexit"] + }, + "ARM": { + "common": ["-c", "--gnu", "-Otime", "--split_sections", + "--apcs=interwork", "--brief_diagnostics", "--restrict", + "--multibyte_chars", "-O3"], + "asm": [], + "c": ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"], + "cxx": ["--cpp", "--no_rtti", "--no_vla"], + "ld": [] + }, + "IAR": { + "common": [ + "--no_wrap_diagnostics", "non-native end of line sequence", "-e", + "--diag_suppress=Pa050,Pa084,Pa093,Pa082", "-Oh"], + "asm": [], + "c": ["--vla"], + "cxx": ["--guard_calls", "--no_static_destruction"], + "ld": ["--skip_dynamic_initialization", "--threaded_lib"] + } +} +``` + +From this Toolchain profile, we can tell that: + - `GCC_ARM`, `ARM`, and `IAR` compiler suites are supported. + - The `ARM` C and C++ Compilers will be using optimization level `-O3` + - The `IAR` linker will skip dynamic initialization + - etc. + +# Toolchain Profile API Perspective + +The Toolchains no longer take in an optional argument, `build_profile`, that will contain a map from flag types to lists of flags. +This looks exactly the same in python as it does in the JSON format above. +The meaning of the flags, and which ones are required is the same as the User Perspective +A developer using the API must parse the User provided files themselves and extract the appropriate sub-dict from the file afterwards. +A convienence function that does this for a developer is `tools.options.extract_profile` and will call args_error when a Toolchain Profile JSON file does not provide flags for the selected Toolchain. diff --git a/docs/events.md b/docs/events.md new file mode 100644 index 0000000000..19b08a7843 --- /dev/null +++ b/docs/events.md @@ -0,0 +1,139 @@ +# About the mbed OS event loop + +One of the optional mbed OS features is an event loop mechanism that can be used to defer the execution of code in a different context. In particular, a common uses of an event loop is to postpone the execution of a code sequence from an interrupt handler to an user context. This is useful because of the specific constraints of code that runs in an interrupt handler: + +- the execution of certain functions (notably some functions in the C library) is not safe. +- various RTOS objects and functions can't be used from an interrupt context. +- as a general rule, the code needs to finish as fast as possible, to allow other interrupts to be handled. + +The event loop offers a solution to these issues in the form of an API that can be used to defer execution of code from the interrupt context to the user context. More generally, the event loop can be used anywhere in a program (not necessarily in an interrupt handler) to defer code execution to a different context. + +# Overview of the mbed OS event loop + +An event loop has two main components: + +1. an **event queue**, used to store events. In mbed OS, *events* are pointers to functions (and optionally function arguments). +2. an **event loop** that extracts events from the queue and executes them. + +The mbed OS event queue is implemented by the [mbed-events library](http://github.com/ARMmbed/mbed-os/tree/master/events). It's a good idea to go through the [README of mbed-events](https://github.com/ARMmbed/mbed-os/blob/master/events/README.md), as it shows how to use the event queue. + +The event loop must be created and started manually. The simplest way to achieve that is to create a `Thread` and run the event queue's `dispatch` method in the thread: + +``` +#include "mbed.h" +#include "mbed_events.h" + +// Create a queue that can hold a maximum of 32 events +Queue queue(32 * EVENTS_EVENT_SIZE); +// Create a thread that'll run the event queue's dispatch function +Thread t; + +int main () { + // Start the event queue's dispatch thread + t.start(callback(&queue, &EventQueue::dispatch_forever)); + ... +} +``` + +Note that although this document assumes the presence of a single event loop in the system, there's nothing preventing the programmer to run more than one event loop, simply by following the create/start pattern above for each of them. + +## Using the event loop + +Once the event loop is created, it can be used for posting events. Let's consider a very simple example of a program that attaches two interrupt handlers for an InterruptIn object, using the InterruptIn `rise` and `fall` functions. The `rise` handler will run in interrupt context, while the `fall` handler will run in user context (more specifically, in the context of the event loop's thread). The full code for the example can be found below: + +``` +#include "mbed.h" +#include "mbed_events.h" + +DigitalOut led1(LED1); +InterruptIn sw(SW2); +EventQueue queue(32 * EVENTS_EVENT_SIZE); +Thread t; + +void rise_handler(void) { + printf("rise_handler in context %p\r\n", Thread::gettid()); + // Toggle LED + led1 = !led1; +} + +void fall_handler(void) { + printf("fall_handler in context %p\r\n", Thread::gettid()); + // Toggle LED + led1 = !led1; +} + +int main() { + // Start the event queue + t.start(callback(&queue, &EventQueue::dispatch_forever)); + printf("Starting in context %p\r\n", Thread::gettid()); + // The 'rise' handler will execute in IRQ context + sw.rise(rise_handler); + // The 'fall' handler will execute in the context of thread 't' + sw.fall(queue.event(fall_handler)); +} + +``` + +The above code executes two handler functions (`rise_handler` and `fall_handler`) in two different contexts: + +1. in interrupt context when a rising edge is detected on `SW2` (`rise_handler`). +2. in the context of the event loop's thread function when a falling edge is detected on `SW2` (`fall_handler`). `queue.event()` is called with `fall_handler` as an argument to specify that `fall_handler` will run in user context instead of interrupt context. + +This is the output of the above program on a FRDM-K64F board after resetting the board and pressing the SW2 button twice: + +``` +Starting in context 0x20002c50 +fall_handler in context 0x20002c90 +rise_handler in context 0x0 +fall_handler in context 0x20002c90 +rise_handler in context 0x0 +``` + +The program starts in the context of the thread that runs the `main` function (`0x29992c5`). When the uses presses SW2, `fall_handler` is automatically queued in the event queue, and it runs later in the context of thread `t` (`0x20002c90`). When the user releases the button, `rise_handler` is executed immediately, and it displays `0x0`, indicating that the code runs in interrupt context. + +The code for `rise_handler` is problematic, since it calls `printf` in interrupt context, which is a potentially unsafe operation. Fortunately, this is exactly the kind of problem that event queues can solve. We can make the code safe by running `rise_handler` in user context (like we already do with `fall_handler`) by replacing this line: + +``` +sw.rise(rise_handler); +``` + +with this line: + +``` +sw.rise(queue.event(rise_handler)); +``` + +The code is safe now, but we might've introduced another problem: latency. After the change above, the call to `rise_handler` will be queued, which means that it doesn't run immediately after the interrupt is raised anymore. For this example code, this isn't a problem, but some applications might require the code to respond as fast as possible to an interrupt. Let's assume that `rise_handler` must toggle the LED as quickly as possible in response to the user's action on SW2. To do that, in must run in interrupt context. However, `rise_handler` still needs to print a message indicating that the handler was called, but that's problematic since it's not safe to call `printf` from an interrupt context. The solution is to split `rise_handler` in two parts: the time critical part will run in interrupt context, while the non-critical part (displaying the message) will run in user context. This is easily doable using `queue.call`: + +``` +void rise_handler_user_context(void) { + printf("rise_handler_user_context in context %p\r\n", Thread::gettid()); +} + +void rise_handler(void) { + // Execute the time critical part first + led1 = !led1; + // The rest can execute later in user context (and can contain code that's not interrupt safe). + // We use the 'queue.call' function to add an event (the call to 'rise_handler_user_context') to the queue. + queue.call(rise_handler_user_context); +} + +``` + +After replacing the code for `rise_handler` as above, the output of our example becomes: + +``` +Starting in context 0x20002c50 +fall_handler in context 0x20002c90 +rise_handler_user_context in context 0x20002c90 +fall_handler in context 0x20002c90 +rise_handler_user_context in context 0x20002c90 +``` + +The scenario above (splitting an interrupt handler's code into time critical code and non-time critical code) is another common pattern that's easily implemented with event queues. Another thing to learn from this example is that queuing code that's not interrupt safe is not the only thing that event queues can be used for. Any kind of code can be queued and deferred for later execution. + +We used `InterruptIn` for the example above, but the same kind of code can be used with any `attach()`-like functions in the SDK. Example include `Serial::attach()`, `Ticker::attach()`, `Ticker::attach_us()`, `Timeout::attach()`. + +## Where to go from here + +We just scratched the surface of how event queues work in mbed OS. The `EventQueue` and `Event` classes in the `mbed-events` library offer a lot of features that are not covered in this document, including calling functions with arguments, queueing functions to be called after a delay, or queueing functions to be called periodically. The [README of the mbed-events library](https://github.com/ARMmbed/mbed-os/blob/master/events/README.md) shows more ways to use events and event queues. For more details about how the events library is implemented, check [this file](https://github.com/ARMmbed/mbed-os/blob/master/events/equeue/README.md). diff --git a/hal/common/AnalogIn.cpp b/drivers/AnalogIn.cpp similarity index 94% rename from hal/common/AnalogIn.cpp rename to drivers/AnalogIn.cpp index 96343362ed..86fd7be235 100644 --- a/hal/common/AnalogIn.cpp +++ b/drivers/AnalogIn.cpp @@ -14,9 +14,7 @@ * limitations under the License. */ -#include "mbed.h" - -#include "AnalogIn.h" +#include "drivers/AnalogIn.h" #if DEVICE_ANALOGIN diff --git a/hal/api/AnalogIn.h b/drivers/AnalogIn.h similarity index 95% rename from hal/api/AnalogIn.h rename to drivers/AnalogIn.h index cee9832211..aee3a1b01f 100644 --- a/hal/api/AnalogIn.h +++ b/drivers/AnalogIn.h @@ -16,13 +16,13 @@ #ifndef MBED_ANALOGIN_H #define MBED_ANALOGIN_H -#include "platform.h" +#include "platform/platform.h" #if DEVICE_ANALOGIN -#include "analogin_api.h" -#include "SingletonPtr.h" -#include "PlatformMutex.h" +#include "hal/analogin_api.h" +#include "platform/SingletonPtr.h" +#include "platform/PlatformMutex.h" namespace mbed { diff --git a/hal/api/AnalogOut.h b/drivers/AnalogOut.h similarity index 97% rename from hal/api/AnalogOut.h rename to drivers/AnalogOut.h index d06b896adc..f403668622 100644 --- a/hal/api/AnalogOut.h +++ b/drivers/AnalogOut.h @@ -16,12 +16,12 @@ #ifndef MBED_ANALOGOUT_H #define MBED_ANALOGOUT_H -#include "platform.h" +#include "platform/platform.h" #if DEVICE_ANALOGOUT -#include "analogout_api.h" -#include "PlatformMutex.h" +#include "hal/analogout_api.h" +#include "platform/PlatformMutex.h" namespace mbed { diff --git a/hal/common/BusIn.cpp b/drivers/BusIn.cpp similarity index 97% rename from hal/common/BusIn.cpp rename to drivers/BusIn.cpp index c566c3c999..1fd0528214 100644 --- a/hal/common/BusIn.cpp +++ b/drivers/BusIn.cpp @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "BusIn.h" -#include "mbed_assert.h" +#include "drivers/BusIn.h" +#include "platform/mbed_assert.h" namespace mbed { diff --git a/hal/api/BusIn.h b/drivers/BusIn.h similarity index 96% rename from hal/api/BusIn.h rename to drivers/BusIn.h index cb31cf3b5c..3abf602f54 100644 --- a/hal/api/BusIn.h +++ b/drivers/BusIn.h @@ -16,9 +16,9 @@ #ifndef MBED_BUSIN_H #define MBED_BUSIN_H -#include "platform.h" -#include "DigitalIn.h" -#include "PlatformMutex.h" +#include "platform/platform.h" +#include "drivers/DigitalIn.h" +#include "platform/PlatformMutex.h" namespace mbed { diff --git a/hal/common/BusInOut.cpp b/drivers/BusInOut.cpp similarity index 98% rename from hal/common/BusInOut.cpp rename to drivers/BusInOut.cpp index 400e1ad4ba..ff244fa464 100644 --- a/hal/common/BusInOut.cpp +++ b/drivers/BusInOut.cpp @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "BusInOut.h" -#include "mbed_assert.h" +#include "drivers/BusInOut.h" +#include "platform/mbed_assert.h" namespace mbed { diff --git a/hal/api/BusInOut.h b/drivers/BusInOut.h similarity index 97% rename from hal/api/BusInOut.h rename to drivers/BusInOut.h index 0283674828..812c4ddd0d 100644 --- a/hal/api/BusInOut.h +++ b/drivers/BusInOut.h @@ -16,8 +16,8 @@ #ifndef MBED_BUSINOUT_H #define MBED_BUSINOUT_H -#include "DigitalInOut.h" -#include "PlatformMutex.h" +#include "drivers/DigitalInOut.h" +#include "platform/PlatformMutex.h" namespace mbed { diff --git a/hal/common/BusOut.cpp b/drivers/BusOut.cpp similarity index 97% rename from hal/common/BusOut.cpp rename to drivers/BusOut.cpp index e237d44ebc..901955257a 100644 --- a/hal/common/BusOut.cpp +++ b/drivers/BusOut.cpp @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "BusOut.h" -#include "mbed_assert.h" +#include "drivers/BusOut.h" +#include "platform/mbed_assert.h" namespace mbed { diff --git a/hal/api/BusOut.h b/drivers/BusOut.h similarity index 97% rename from hal/api/BusOut.h rename to drivers/BusOut.h index 8dd10c420b..d11651e42d 100644 --- a/hal/api/BusOut.h +++ b/drivers/BusOut.h @@ -16,8 +16,8 @@ #ifndef MBED_BUSOUT_H #define MBED_BUSOUT_H -#include "DigitalOut.h" -#include "PlatformMutex.h" +#include "drivers/DigitalOut.h" +#include "platform/PlatformMutex.h" namespace mbed { diff --git a/hal/common/CAN.cpp b/drivers/CAN.cpp similarity index 99% rename from hal/common/CAN.cpp rename to drivers/CAN.cpp index 84355b0230..c4fc17957e 100644 --- a/hal/common/CAN.cpp +++ b/drivers/CAN.cpp @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "CAN.h" +#include "drivers/CAN.h" #if DEVICE_CAN diff --git a/hal/api/CAN.h b/drivers/CAN.h similarity index 98% rename from hal/api/CAN.h rename to drivers/CAN.h index 3d0e8491a4..9df80dcdf6 100644 --- a/hal/api/CAN.h +++ b/drivers/CAN.h @@ -16,14 +16,13 @@ #ifndef MBED_CAN_H #define MBED_CAN_H -#include "platform.h" +#include "platform/platform.h" #if DEVICE_CAN -#include "can_api.h" -#include "can_helper.h" -#include "Callback.h" -#include "PlatformMutex.h" +#include "hal/can_api.h" +#include "platform/Callback.h" +#include "platform/PlatformMutex.h" namespace mbed { diff --git a/hal/api/DigitalIn.h b/drivers/DigitalIn.h similarity index 96% rename from hal/api/DigitalIn.h rename to drivers/DigitalIn.h index 6797a71822..1f5777f6d0 100644 --- a/hal/api/DigitalIn.h +++ b/drivers/DigitalIn.h @@ -16,10 +16,10 @@ #ifndef MBED_DIGITALIN_H #define MBED_DIGITALIN_H -#include "platform.h" +#include "platform/platform.h" -#include "gpio_api.h" -#include "critical.h" +#include "hal/gpio_api.h" +#include "platform/critical.h" namespace mbed { diff --git a/hal/api/DigitalInOut.h b/drivers/DigitalInOut.h similarity index 97% rename from hal/api/DigitalInOut.h rename to drivers/DigitalInOut.h index 8afb2bf210..8965a4958e 100644 --- a/hal/api/DigitalInOut.h +++ b/drivers/DigitalInOut.h @@ -16,10 +16,10 @@ #ifndef MBED_DIGITALINOUT_H #define MBED_DIGITALINOUT_H -#include "platform.h" +#include "platform/platform.h" -#include "gpio_api.h" -#include "critical.h" +#include "hal/gpio_api.h" +#include "platform/critical.h" namespace mbed { diff --git a/hal/api/DigitalOut.h b/drivers/DigitalOut.h similarity index 97% rename from hal/api/DigitalOut.h rename to drivers/DigitalOut.h index e8e31a34ff..da5ce67ea9 100644 --- a/hal/api/DigitalOut.h +++ b/drivers/DigitalOut.h @@ -16,9 +16,9 @@ #ifndef MBED_DIGITALOUT_H #define MBED_DIGITALOUT_H -#include "platform.h" -#include "gpio_api.h" -#include "critical.h" +#include "platform/platform.h" +#include "hal/gpio_api.h" +#include "platform/critical.h" namespace mbed { diff --git a/hal/api/DirHandle.h b/drivers/DirHandle.h similarity index 100% rename from hal/api/DirHandle.h rename to drivers/DirHandle.h diff --git a/hal/common/Ethernet.cpp b/drivers/Ethernet.cpp similarity index 96% rename from hal/common/Ethernet.cpp rename to drivers/Ethernet.cpp index 279a88b8f1..c275f4a99b 100644 --- a/hal/common/Ethernet.cpp +++ b/drivers/Ethernet.cpp @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "Ethernet.h" +#include "drivers/Ethernet.h" #if DEVICE_ETHERNET -#include "ethernet_api.h" +#include "hal/ethernet_api.h" namespace mbed { diff --git a/hal/api/Ethernet.h b/drivers/Ethernet.h similarity index 99% rename from hal/api/Ethernet.h rename to drivers/Ethernet.h index d4d0ee1d8c..e08194d8eb 100644 --- a/hal/api/Ethernet.h +++ b/drivers/Ethernet.h @@ -16,7 +16,7 @@ #ifndef MBED_ETHERNET_H #define MBED_ETHERNET_H -#include "platform.h" +#include "platform/platform.h" #if DEVICE_ETHERNET diff --git a/hal/common/FileBase.cpp b/drivers/FileBase.cpp similarity index 98% rename from hal/common/FileBase.cpp rename to drivers/FileBase.cpp index 3e76c0e391..3be746e885 100644 --- a/hal/common/FileBase.cpp +++ b/drivers/FileBase.cpp @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "FileBase.h" +#include "drivers/FileBase.h" namespace mbed { diff --git a/hal/api/FileBase.h b/drivers/FileBase.h similarity index 92% rename from hal/api/FileBase.h rename to drivers/FileBase.h index 12679a15ab..9c332dc592 100644 --- a/hal/api/FileBase.h +++ b/drivers/FileBase.h @@ -18,7 +18,8 @@ typedef int FILEHANDLE; -#include +#include +#include #if defined(__ARMCC_VERSION) || defined(__ICCARM__) # define O_RDONLY 0 @@ -40,9 +41,9 @@ typedef long off_t; # include #endif -#include "platform.h" -#include "SingletonPtr.h" -#include "PlatformMutex.h" +#include "platform/platform.h" +#include "platform/SingletonPtr.h" +#include "platform/PlatformMutex.h" namespace mbed { diff --git a/hal/api/FileHandle.h b/drivers/FileHandle.h similarity index 100% rename from hal/api/FileHandle.h rename to drivers/FileHandle.h diff --git a/hal/common/FileLike.cpp b/drivers/FileLike.cpp similarity index 96% rename from hal/common/FileLike.cpp rename to drivers/FileLike.cpp index da13ead145..da9984050c 100644 --- a/hal/common/FileLike.cpp +++ b/drivers/FileLike.cpp @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "FileLike.h" +#include "drivers/FileLike.h" namespace mbed { diff --git a/hal/api/FileLike.h b/drivers/FileLike.h similarity index 95% rename from hal/api/FileLike.h rename to drivers/FileLike.h index 53ff786693..c77e23bd02 100644 --- a/hal/api/FileLike.h +++ b/drivers/FileLike.h @@ -16,8 +16,8 @@ #ifndef MBED_FILELIKE_H #define MBED_FILELIKE_H -#include "FileBase.h" -#include "FileHandle.h" +#include "drivers/FileBase.h" +#include "drivers/FileHandle.h" namespace mbed { diff --git a/hal/common/FilePath.cpp b/drivers/FilePath.cpp similarity index 98% rename from hal/common/FilePath.cpp rename to drivers/FilePath.cpp index 09147a2699..1d9739b15a 100644 --- a/hal/common/FilePath.cpp +++ b/drivers/FilePath.cpp @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "FilePath.h" +#include "drivers/FilePath.h" namespace mbed { diff --git a/hal/api/FilePath.h b/drivers/FilePath.h similarity index 91% rename from hal/api/FilePath.h rename to drivers/FilePath.h index 3de1205048..310f32d1ad 100644 --- a/hal/api/FilePath.h +++ b/drivers/FilePath.h @@ -16,10 +16,10 @@ #ifndef MBED_FILEPATH_H #define MBED_FILEPATH_H -#include "platform.h" +#include "platform/platform.h" -#include "FileSystemLike.h" -#include "FileLike.h" +#include "drivers/FileSystemLike.h" +#include "drivers/FileLike.h" namespace mbed { diff --git a/hal/common/FileSystemLike.cpp b/drivers/FileSystemLike.cpp similarity index 98% rename from hal/common/FileSystemLike.cpp rename to drivers/FileSystemLike.cpp index b31fd4af1d..e435cf3162 100644 --- a/hal/common/FileSystemLike.cpp +++ b/drivers/FileSystemLike.cpp @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "FileSystemLike.h" +#include "drivers/FileSystemLike.h" namespace mbed { diff --git a/hal/api/FileSystemLike.h b/drivers/FileSystemLike.h similarity index 96% rename from hal/api/FileSystemLike.h rename to drivers/FileSystemLike.h index c9add10d98..9113b5ac0a 100644 --- a/hal/api/FileSystemLike.h +++ b/drivers/FileSystemLike.h @@ -16,11 +16,11 @@ #ifndef MBED_FILESYSTEMLIKE_H #define MBED_FILESYSTEMLIKE_H -#include "platform.h" +#include "platform/platform.h" -#include "FileBase.h" -#include "FileHandle.h" -#include "DirHandle.h" +#include "drivers/FileBase.h" +#include "drivers/FileHandle.h" +#include "drivers/DirHandle.h" namespace mbed { diff --git a/hal/common/I2C.cpp b/drivers/I2C.cpp similarity index 99% rename from hal/common/I2C.cpp rename to drivers/I2C.cpp index 645be71503..c1db1d351f 100644 --- a/hal/common/I2C.cpp +++ b/drivers/I2C.cpp @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "I2C.h" +#include "drivers/I2C.h" #if DEVICE_I2C diff --git a/hal/api/I2C.h b/drivers/I2C.h similarity index 95% rename from hal/api/I2C.h rename to drivers/I2C.h index 3fd013939f..2b85d5e9f7 100644 --- a/hal/api/I2C.h +++ b/drivers/I2C.h @@ -16,18 +16,18 @@ #ifndef MBED_I2C_H #define MBED_I2C_H -#include "platform.h" +#include "platform/platform.h" #if DEVICE_I2C -#include "i2c_api.h" -#include "SingletonPtr.h" -#include "PlatformMutex.h" +#include "hal/i2c_api.h" +#include "platform/SingletonPtr.h" +#include "platform/PlatformMutex.h" #if DEVICE_I2C_ASYNCH -#include "CThunk.h" -#include "dma_api.h" -#include "FunctionPointer.h" +#include "platform/CThunk.h" +#include "hal/dma_api.h" +#include "platform/FunctionPointer.h" #endif namespace mbed { diff --git a/hal/common/I2CSlave.cpp b/drivers/I2CSlave.cpp similarity index 98% rename from hal/common/I2CSlave.cpp rename to drivers/I2CSlave.cpp index 43940939c4..f168c2a6c7 100644 --- a/hal/common/I2CSlave.cpp +++ b/drivers/I2CSlave.cpp @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "I2CSlave.h" +#include "drivers/I2CSlave.h" #if DEVICE_I2CSLAVE diff --git a/hal/api/I2CSlave.h b/drivers/I2CSlave.h similarity index 98% rename from hal/api/I2CSlave.h rename to drivers/I2CSlave.h index 511998a120..76c7fb5502 100644 --- a/hal/api/I2CSlave.h +++ b/drivers/I2CSlave.h @@ -16,11 +16,11 @@ #ifndef MBED_I2C_SLAVE_H #define MBED_I2C_SLAVE_H -#include "platform.h" +#include "platform/platform.h" #if DEVICE_I2CSLAVE -#include "i2c_api.h" +#include "hal/i2c_api.h" namespace mbed { diff --git a/hal/common/InterruptIn.cpp b/drivers/InterruptIn.cpp similarity index 98% rename from hal/common/InterruptIn.cpp rename to drivers/InterruptIn.cpp index d3986e8893..2ea3ec507b 100644 --- a/hal/common/InterruptIn.cpp +++ b/drivers/InterruptIn.cpp @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "InterruptIn.h" +#include "drivers/InterruptIn.h" #if DEVICE_INTERRUPTIN diff --git a/hal/api/InterruptIn.h b/drivers/InterruptIn.h similarity index 95% rename from hal/api/InterruptIn.h rename to drivers/InterruptIn.h index fcb7df4b81..0c81325cd5 100644 --- a/hal/api/InterruptIn.h +++ b/drivers/InterruptIn.h @@ -16,15 +16,15 @@ #ifndef MBED_INTERRUPTIN_H #define MBED_INTERRUPTIN_H -#include "platform.h" +#include "platform/platform.h" #if DEVICE_INTERRUPTIN -#include "gpio_api.h" -#include "gpio_irq_api.h" -#include "Callback.h" -#include "critical.h" -#include "toolchain.h" +#include "hal/gpio_api.h" +#include "hal/gpio_irq_api.h" +#include "platform/Callback.h" +#include "platform/critical.h" +#include "platform/toolchain.h" namespace mbed { diff --git a/hal/common/InterruptManager.cpp b/drivers/InterruptManager.cpp similarity index 80% rename from hal/common/InterruptManager.cpp rename to drivers/InterruptManager.cpp index 4f38475c2f..f87342e5bc 100644 --- a/hal/common/InterruptManager.cpp +++ b/drivers/InterruptManager.cpp @@ -1,8 +1,23 @@ +/* mbed Microcontroller Library + * Copyright (c) 2006-2013 ARM Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ #include "cmsis.h" #if defined(NVIC_NUM_VECTORS) -#include "InterruptManager.h" -#include "critical.h" +#include "drivers/InterruptManager.h" +#include "platform/critical.h" #include #define CHAIN_INITIAL_SIZE 4 diff --git a/hal/api/InterruptManager.h b/drivers/InterruptManager.h similarity index 86% rename from hal/api/InterruptManager.h rename to drivers/InterruptManager.h index 4ea35edd58..6822a11fb2 100644 --- a/hal/api/InterruptManager.h +++ b/drivers/InterruptManager.h @@ -1,9 +1,24 @@ +/* mbed Microcontroller Library + * Copyright (c) 2006-2013 ARM Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ #ifndef MBED_INTERRUPTMANAGER_H #define MBED_INTERRUPTMANAGER_H #include "cmsis.h" -#include "CallChain.h" -#include "PlatformMutex.h" +#include "platform/CallChain.h" +#include "platform/PlatformMutex.h" #include namespace mbed { diff --git a/hal/common/LocalFileSystem.cpp b/drivers/LocalFileSystem.cpp similarity index 98% rename from hal/common/LocalFileSystem.cpp rename to drivers/LocalFileSystem.cpp index db0477fead..d856b3c29a 100644 --- a/hal/common/LocalFileSystem.cpp +++ b/drivers/LocalFileSystem.cpp @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "LocalFileSystem.h" +#include "drivers/LocalFileSystem.h" #if DEVICE_LOCALFILESYSTEM -#include "semihost_api.h" +#include "platform/semihost_api.h" #include #include diff --git a/hal/api/LocalFileSystem.h b/drivers/LocalFileSystem.h similarity index 96% rename from hal/api/LocalFileSystem.h rename to drivers/LocalFileSystem.h index df518a0b1d..6e9fd9fcf5 100644 --- a/hal/api/LocalFileSystem.h +++ b/drivers/LocalFileSystem.h @@ -16,12 +16,12 @@ #ifndef MBED_LOCALFILESYSTEM_H #define MBED_LOCALFILESYSTEM_H -#include "platform.h" +#include "platform/platform.h" #if DEVICE_LOCALFILESYSTEM -#include "FileSystemLike.h" -#include "PlatformMutex.h" +#include "drivers/FileSystemLike.h" +#include "platform/PlatformMutex.h" namespace mbed { diff --git a/hal/api/LowPowerTicker.h b/drivers/LowPowerTicker.h similarity index 91% rename from hal/api/LowPowerTicker.h rename to drivers/LowPowerTicker.h index 70803acdfc..f2d10f49eb 100644 --- a/hal/api/LowPowerTicker.h +++ b/drivers/LowPowerTicker.h @@ -16,12 +16,12 @@ #ifndef MBED_LOWPOWERTICKER_H #define MBED_LOWPOWERTICKER_H -#include "platform.h" -#include "Ticker.h" +#include "platform/platform.h" +#include "drivers/Ticker.h" #if DEVICE_LOWPOWERTIMER -#include "lp_ticker_api.h" +#include "hal/lp_ticker_api.h" namespace mbed { diff --git a/hal/api/LowPowerTimeout.h b/drivers/LowPowerTimeout.h similarity index 90% rename from hal/api/LowPowerTimeout.h rename to drivers/LowPowerTimeout.h index 8cbff2b5d5..b374a83e47 100644 --- a/hal/api/LowPowerTimeout.h +++ b/drivers/LowPowerTimeout.h @@ -16,12 +16,12 @@ #ifndef MBED_LOWPOWERTIMEOUT_H #define MBED_LOWPOWERTIMEOUT_H -#include "platform.h" +#include "platform/platform.h" #if DEVICE_LOWPOWERTIMER -#include "lp_ticker_api.h" -#include "LowPowerTicker.h" +#include "hal/lp_ticker_api.h" +#include "drivers/LowPowerTicker.h" namespace mbed { diff --git a/hal/api/LowPowerTimer.h b/drivers/LowPowerTimer.h similarity index 91% rename from hal/api/LowPowerTimer.h rename to drivers/LowPowerTimer.h index c372f3671a..4ccc51d824 100644 --- a/hal/api/LowPowerTimer.h +++ b/drivers/LowPowerTimer.h @@ -16,12 +16,12 @@ #ifndef MBED_LOWPOWERTIMER_H #define MBED_LOWPOWERTIMER_H -#include "platform.h" -#include "Timer.h" +#include "platform/platform.h" +#include "drivers/Timer.h" #if DEVICE_LOWPOWERTIMER -#include "lp_ticker_api.h" +#include "hal/lp_ticker_api.h" namespace mbed { diff --git a/hal/api/PortIn.h b/drivers/PortIn.h similarity index 96% rename from hal/api/PortIn.h rename to drivers/PortIn.h index c0cf85b1e3..9de2c43a3d 100644 --- a/hal/api/PortIn.h +++ b/drivers/PortIn.h @@ -16,12 +16,12 @@ #ifndef MBED_PORTIN_H #define MBED_PORTIN_H -#include "platform.h" +#include "platform/platform.h" #if DEVICE_PORTIN -#include "port_api.h" -#include "critical.h" +#include "hal/port_api.h" +#include "platform/critical.h" namespace mbed { diff --git a/hal/api/PortInOut.h b/drivers/PortInOut.h similarity index 96% rename from hal/api/PortInOut.h rename to drivers/PortInOut.h index 123f36174f..c6eb38b66a 100644 --- a/hal/api/PortInOut.h +++ b/drivers/PortInOut.h @@ -16,12 +16,12 @@ #ifndef MBED_PORTINOUT_H #define MBED_PORTINOUT_H -#include "platform.h" +#include "platform/platform.h" #if DEVICE_PORTINOUT -#include "port_api.h" -#include "critical.h" +#include "hal/port_api.h" +#include "platform/critical.h" namespace mbed { diff --git a/hal/api/PortOut.h b/drivers/PortOut.h similarity index 96% rename from hal/api/PortOut.h rename to drivers/PortOut.h index 46689df331..98ae39b7f3 100644 --- a/hal/api/PortOut.h +++ b/drivers/PortOut.h @@ -16,12 +16,12 @@ #ifndef MBED_PORTOUT_H #define MBED_PORTOUT_H -#include "platform.h" +#include "platform/platform.h" #if DEVICE_PORTOUT -#include "port_api.h" -#include "critical.h" +#include "hal/port_api.h" +#include "platform/critical.h" namespace mbed { /** A multiple pin digital out diff --git a/hal/api/PwmOut.h b/drivers/PwmOut.h similarity index 98% rename from hal/api/PwmOut.h rename to drivers/PwmOut.h index cd9d833281..da352c8780 100644 --- a/hal/api/PwmOut.h +++ b/drivers/PwmOut.h @@ -16,11 +16,11 @@ #ifndef MBED_PWMOUT_H #define MBED_PWMOUT_H -#include "platform.h" +#include "platform/platform.h" #if DEVICE_PWMOUT -#include "pwmout_api.h" -#include "critical.h" +#include "hal/pwmout_api.h" +#include "platform/critical.h" namespace mbed { diff --git a/hal/common/RawSerial.cpp b/drivers/RawSerial.cpp similarity index 94% rename from hal/common/RawSerial.cpp rename to drivers/RawSerial.cpp index ace09134a9..e8e4c2a2e2 100644 --- a/hal/common/RawSerial.cpp +++ b/drivers/RawSerial.cpp @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "RawSerial.h" -#include "wait_api.h" +#include "drivers/RawSerial.h" +#include "platform/wait_api.h" #include #if DEVICE_SERIAL @@ -23,7 +23,7 @@ namespace mbed { -RawSerial::RawSerial(PinName tx, PinName rx) : SerialBase(tx, rx) { +RawSerial::RawSerial(PinName tx, PinName rx, int baud) : SerialBase(tx, rx, baud) { // No lock needed in the constructor } diff --git a/hal/api/RawSerial.h b/drivers/RawSerial.h similarity index 86% rename from hal/api/RawSerial.h rename to drivers/RawSerial.h index c4ef470f5c..4ae740c7b5 100644 --- a/hal/api/RawSerial.h +++ b/drivers/RawSerial.h @@ -16,12 +16,12 @@ #ifndef MBED_RAW_SERIAL_H #define MBED_RAW_SERIAL_H -#include "platform.h" +#include "platform/platform.h" #if DEVICE_SERIAL -#include "SerialBase.h" -#include "serial_api.h" +#include "drivers/SerialBase.h" +#include "hal/serial_api.h" namespace mbed { @@ -50,15 +50,16 @@ namespace mbed { class RawSerial: public SerialBase { public: - /** Create a RawSerial port, connected to the specified transmit and receive pins + /** Create a RawSerial port, connected to the specified transmit and receive pins, with the specified baud. * * @param tx Transmit pin * @param rx Receive pin + * @param baud The baud rate of the serial port (optional, defaults to MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE) * * @note * Either tx or rx may be specified as NC if unused */ - RawSerial(PinName tx, PinName rx); + RawSerial(PinName tx, PinName rx, int baud = MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE); /** Write a char to the serial port * diff --git a/hal/common/SPI.cpp b/drivers/SPI.cpp similarity index 98% rename from hal/common/SPI.cpp rename to drivers/SPI.cpp index 8cc919dc2a..3d79a03461 100644 --- a/hal/common/SPI.cpp +++ b/drivers/SPI.cpp @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "SPI.h" -#include "critical.h" +#include "drivers/SPI.h" +#include "platform/critical.h" #if DEVICE_SPI diff --git a/hal/api/SPI.h b/drivers/SPI.h similarity index 96% rename from hal/api/SPI.h rename to drivers/SPI.h index 3367742407..e8034a42ee 100644 --- a/hal/api/SPI.h +++ b/drivers/SPI.h @@ -16,20 +16,20 @@ #ifndef MBED_SPI_H #define MBED_SPI_H -#include "platform.h" +#include "platform/platform.h" #if DEVICE_SPI -#include "PlatformMutex.h" -#include "spi_api.h" -#include "SingletonPtr.h" +#include "platform/PlatformMutex.h" +#include "hal/spi_api.h" +#include "platform/SingletonPtr.h" #if DEVICE_SPI_ASYNCH -#include "CThunk.h" -#include "dma_api.h" -#include "CircularBuffer.h" -#include "FunctionPointer.h" -#include "Transaction.h" +#include "platform/CThunk.h" +#include "hal/dma_api.h" +#include "platform/CircularBuffer.h" +#include "platform/FunctionPointer.h" +#include "platform/Transaction.h" #endif namespace mbed { diff --git a/hal/common/SPISlave.cpp b/drivers/SPISlave.cpp similarity index 97% rename from hal/common/SPISlave.cpp rename to drivers/SPISlave.cpp index 5e503165b2..8ae263e5d8 100644 --- a/hal/common/SPISlave.cpp +++ b/drivers/SPISlave.cpp @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "SPISlave.h" +#include "drivers/SPISlave.h" #if DEVICE_SPISLAVE diff --git a/hal/api/SPISlave.h b/drivers/SPISlave.h similarity index 98% rename from hal/api/SPISlave.h rename to drivers/SPISlave.h index 1f2d75323d..1d61d5e7a8 100644 --- a/hal/api/SPISlave.h +++ b/drivers/SPISlave.h @@ -16,11 +16,11 @@ #ifndef MBED_SPISLAVE_H #define MBED_SPISLAVE_H -#include "platform.h" +#include "platform/platform.h" #if DEVICE_SPISLAVE -#include "spi_api.h" +#include "hal/spi_api.h" namespace mbed { diff --git a/hal/common/Serial.cpp b/drivers/Serial.cpp similarity index 78% rename from hal/common/Serial.cpp rename to drivers/Serial.cpp index 5a53e32727..d92d4a8df1 100644 --- a/hal/common/Serial.cpp +++ b/drivers/Serial.cpp @@ -13,14 +13,17 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "Serial.h" -#include "wait_api.h" +#include "drivers/Serial.h" +#include "platform/wait_api.h" #if DEVICE_SERIAL namespace mbed { -Serial::Serial(PinName tx, PinName rx, const char *name) : SerialBase(tx, rx), Stream(name) { +Serial::Serial(PinName tx, PinName rx, const char *name, int baud) : SerialBase(tx, rx, baud), Stream(name) { +} + +Serial::Serial(PinName tx, PinName rx, int baud): SerialBase(tx, rx, baud), Stream(NULL) { } int Serial::_getc() { diff --git a/hal/api/Serial.h b/drivers/Serial.h similarity index 71% rename from hal/api/Serial.h rename to drivers/Serial.h index de84f118fe..a12a0c7e6c 100644 --- a/hal/api/Serial.h +++ b/drivers/Serial.h @@ -16,7 +16,7 @@ #ifndef MBED_SERIAL_H #define MBED_SERIAL_H -#include "platform.h" +#include "platform/platform.h" #if DEVICE_SERIAL @@ -59,11 +59,25 @@ public: * * @param tx Transmit pin * @param rx Receive pin + * @param name The name of the stream associated with this serial port (optional) + * @param baud The baud rate of the serial port (optional, defaults to MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE) * * @note * Either tx or rx may be specified as NC if unused */ - Serial(PinName tx, PinName rx, const char *name=NULL); + Serial(PinName tx, PinName rx, const char *name=NULL, int baud = MBED_CONF_PLATFORM_DEFAULT_SERIAL_BAUD_RATE); + + + /** Create a Serial port, connected to the specified transmit and receive pins, with the specified baud + * + * @param tx Transmit pin + * @param rx Receive pin + * @param baud The baud rate of the serial port + * + * @note + * Either tx or rx may be specified as NC if unused + */ + Serial(PinName tx, PinName rx, int baud); protected: virtual int _getc(); diff --git a/hal/common/SerialBase.cpp b/drivers/SerialBase.cpp similarity index 97% rename from hal/common/SerialBase.cpp rename to drivers/SerialBase.cpp index d57ea977bc..3e6fede641 100644 --- a/hal/common/SerialBase.cpp +++ b/drivers/SerialBase.cpp @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "SerialBase.h" -#include "wait_api.h" -#include "critical.h" +#include "drivers/SerialBase.h" +#include "platform/wait_api.h" +#include "platform/critical.h" #if DEVICE_SERIAL @@ -23,12 +23,12 @@ namespace mbed { static void donothing() {}; -SerialBase::SerialBase(PinName tx, PinName rx) : +SerialBase::SerialBase(PinName tx, PinName rx, int baud) : #if DEVICE_SERIAL_ASYNCH _thunk_irq(this), _tx_usage(DMA_USAGE_NEVER), _rx_usage(DMA_USAGE_NEVER), #endif - _serial(), _baud(9600) { + _serial(), _baud(baud) { // No lock needed in the constructor for (size_t i = 0; i < sizeof _irq / sizeof _irq[0]; i++) { @@ -36,6 +36,7 @@ SerialBase::SerialBase(PinName tx, PinName rx) : } serial_init(&_serial, tx, rx); + serial_baud(&_serial, _baud); serial_irq_handler(&_serial, SerialBase::_irq_handler, (uint32_t)this); } diff --git a/hal/api/SerialBase.h b/drivers/SerialBase.h similarity index 99% rename from hal/api/SerialBase.h rename to drivers/SerialBase.h index c76bf8d684..729453e914 100644 --- a/hal/api/SerialBase.h +++ b/drivers/SerialBase.h @@ -16,7 +16,7 @@ #ifndef MBED_SERIALBASE_H #define MBED_SERIALBASE_H -#include "platform.h" +#include "platform/platform.h" #if DEVICE_SERIAL @@ -230,7 +230,7 @@ protected: #endif protected: - SerialBase(PinName tx, PinName rx); + SerialBase(PinName tx, PinName rx, int baud); virtual ~SerialBase() { } diff --git a/hal/common/Stream.cpp b/drivers/Stream.cpp similarity index 99% rename from hal/common/Stream.cpp rename to drivers/Stream.cpp index 87ec7407bc..d4bead1c32 100644 --- a/hal/common/Stream.cpp +++ b/drivers/Stream.cpp @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "Stream.h" +#include "drivers/Stream.h" namespace mbed { diff --git a/hal/api/Stream.h b/drivers/Stream.h similarity index 96% rename from hal/api/Stream.h rename to drivers/Stream.h index f0695e02fc..e6f6c9db18 100644 --- a/hal/api/Stream.h +++ b/drivers/Stream.h @@ -16,8 +16,8 @@ #ifndef MBED_STREAM_H #define MBED_STREAM_H -#include "platform.h" -#include "FileLike.h" +#include "platform/platform.h" +#include "drivers/FileLike.h" #include namespace mbed { diff --git a/hal/common/Ticker.cpp b/drivers/Ticker.cpp similarity index 87% rename from hal/common/Ticker.cpp rename to drivers/Ticker.cpp index 87980db047..93a9d1be9a 100644 --- a/hal/common/Ticker.cpp +++ b/drivers/Ticker.cpp @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "Ticker.h" +#include "drivers/Ticker.h" -#include "TimerEvent.h" -#include "FunctionPointer.h" -#include "ticker_api.h" -#include "critical.h" +#include "drivers/TimerEvent.h" +#include "platform/FunctionPointer.h" +#include "hal/ticker_api.h" +#include "platform/critical.h" namespace mbed { diff --git a/hal/api/Ticker.h b/drivers/Ticker.h similarity index 97% rename from hal/api/Ticker.h rename to drivers/Ticker.h index 5b2f97ba95..b79217a351 100644 --- a/hal/api/Ticker.h +++ b/drivers/Ticker.h @@ -16,9 +16,9 @@ #ifndef MBED_TICKER_H #define MBED_TICKER_H -#include "TimerEvent.h" -#include "Callback.h" -#include "toolchain.h" +#include "drivers/TimerEvent.h" +#include "platform/Callback.h" +#include "platform/toolchain.h" namespace mbed { diff --git a/hal/common/Timeout.cpp b/drivers/Timeout.cpp similarity index 96% rename from hal/common/Timeout.cpp rename to drivers/Timeout.cpp index ed7950212b..40c7d9f053 100644 --- a/hal/common/Timeout.cpp +++ b/drivers/Timeout.cpp @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "Timeout.h" +#include "drivers/Timeout.h" namespace mbed { diff --git a/hal/api/Timeout.h b/drivers/Timeout.h similarity index 97% rename from hal/api/Timeout.h rename to drivers/Timeout.h index dfa16cf412..556ce395bc 100644 --- a/hal/api/Timeout.h +++ b/drivers/Timeout.h @@ -16,7 +16,7 @@ #ifndef MBED_TIMEOUT_H #define MBED_TIMEOUT_H -#include "Ticker.h" +#include "drivers/Ticker.h" namespace mbed { diff --git a/hal/common/Timer.cpp b/drivers/Timer.cpp similarity index 94% rename from hal/common/Timer.cpp rename to drivers/Timer.cpp index b421871760..243440ead3 100644 --- a/hal/common/Timer.cpp +++ b/drivers/Timer.cpp @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "Timer.h" -#include "ticker_api.h" -#include "us_ticker_api.h" -#include "critical.h" +#include "drivers/Timer.h" +#include "hal/ticker_api.h" +#include "hal/us_ticker_api.h" +#include "platform/critical.h" namespace mbed { diff --git a/hal/api/Timer.h b/drivers/Timer.h similarity index 97% rename from hal/api/Timer.h rename to drivers/Timer.h index 711b6091db..33f7dfd23f 100644 --- a/hal/api/Timer.h +++ b/drivers/Timer.h @@ -16,8 +16,8 @@ #ifndef MBED_TIMER_H #define MBED_TIMER_H -#include "platform.h" -#include "ticker_api.h" +#include "platform/platform.h" +#include "hal/ticker_api.h" namespace mbed { diff --git a/hal/common/TimerEvent.cpp b/drivers/TimerEvent.cpp similarity index 93% rename from hal/common/TimerEvent.cpp rename to drivers/TimerEvent.cpp index 4c7481f77d..d7fbd42f5f 100644 --- a/hal/common/TimerEvent.cpp +++ b/drivers/TimerEvent.cpp @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "TimerEvent.h" +#include "drivers/TimerEvent.h" #include "cmsis.h" #include -#include "ticker_api.h" -#include "us_ticker_api.h" +#include "hal/ticker_api.h" +#include "hal/us_ticker_api.h" namespace mbed { diff --git a/hal/api/TimerEvent.h b/drivers/TimerEvent.h similarity index 96% rename from hal/api/TimerEvent.h rename to drivers/TimerEvent.h index fd3d456905..21dbe40150 100644 --- a/hal/api/TimerEvent.h +++ b/drivers/TimerEvent.h @@ -16,8 +16,8 @@ #ifndef MBED_TIMEREVENT_H #define MBED_TIMEREVENT_H -#include "ticker_api.h" -#include "us_ticker_api.h" +#include "hal/ticker_api.h" +#include "hal/us_ticker_api.h" namespace mbed { diff --git a/events/Event.h b/events/Event.h new file mode 100644 index 0000000000..79cc7fb2d0 --- /dev/null +++ b/events/Event.h @@ -0,0 +1,3361 @@ +/* events + * Copyright (c) 2016 ARM Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#ifndef EVENT_H +#define EVENT_H + +#include "events/EventQueue.h" +#include "platform/mbed_assert.h" + +namespace events { + +/** Event + * + * Representation of an event for fine-grain dispatch control + */ +template +class Event; + +/** Event + * + * Representation of an event for fine-grain dispatch control + */ +template <> +class Event { +public: + /** Create an event + * + * Constructs an event bound to the specified event queue. The specified + * callback acts as the target for the event and is executed in the + * context of the event queue's dispatch loop once posted. + * + * @param q Event queue to dispatch on + * @param f Function to execute when the event is dispatched + * @param a0..a4 Arguments to pass to the callback + */ + template + Event(EventQueue *q, F f) { + _event = static_cast( + equeue_alloc(&q->_equeue, sizeof(struct event) + sizeof(F))); + + if (_event) { + _event->equeue = &q->_equeue; + _event->id = 0; + _event->delay = 0; + _event->period = -1; + + _event->post = &Event::event_post; + _event->dtor = &Event::event_dtor; + + new (_event+1) F(f); + + _event->ref = 1; + } + } + + /** Copy constructor for events + */ + Event(const Event &e) { + _event = 0; + if (e._event) { + _event = e._event; + _event->ref += 1; + } + } + + /** Assignment operator for events + */ + Event &operator=(const Event &that) { + if (this != &that) { + this->~Event(); + new (this) Event(that); + } + + return *this; + } + + /** Destructor for events + */ + ~Event() { + if (_event) { + _event->ref -= 1; + if (_event->ref == 0) { + _event->dtor(_event); + equeue_dealloc(_event->equeue, _event); + } + } + } + + /** Configure the delay of an event + * + * @param delay Millisecond delay before dispatching the event + */ + void delay(int delay) { + if (_event) { + _event->delay = delay; + } + } + + /** Configure the period of an event + * + * @param period Millisecond period for repeatedly dispatching an event + */ + void period(int period) { + if (_event) { + _event->period = period; + } + } + + /** Posts an event onto the underlying event queue + * + * The event is posted to the underlying queue and is executed in the + * context of the event queue's dispatch loop. + * + * The post function is irq safe and can act as a mechanism for moving + * events out of irq contexts. + * + * @param a0..a4 Arguments to pass to the event + * @return A unique id that represents the posted event and can + * be passed to EventQueue::cancel, or an id of 0 if + * there is not enough memory to allocate the event. + */ + int post() const { + if (!_event) { + return 0; + } + + _event->id = _event->post(_event); + return _event->id; + } + + /** Posts an event onto the underlying event queue, returning void + * + * @param a0..a4 Arguments to pass to the event + */ + void call() const { + int id = post(); + MBED_ASSERT(id); + } + + /** Posts an event onto the underlying event queue, returning void + * + * @param a0..a4 Arguments to pass to the event + */ + void operator()() const { + return call(); + } + + /** Static thunk for passing as C-style function + * + * @param func Event to call passed as a void pointer + * @param a0..a4 Arguments to pass to the event + */ + static void thunk(void *func) { + return static_cast(func)->call(); + } + + /** Cancels the most recently posted event + * + * Attempts to cancel the most recently posted event. It is safe to call + * cancel after an event has already been dispatched. + * + * The cancel function is irq safe. + * + * If called while the event queue's dispatch loop is active, the cancel + * function does not garuntee that the event will not execute after it + * returns, as the event may have already begun executing. + */ + void cancel() const { + if (_event) { + equeue_cancel(_event->equeue, _event->id); + } + } + +private: + struct event { + unsigned ref; + equeue_t *equeue; + int id; + + int delay; + int period; + + int (*post)(struct event *); + void (*dtor)(struct event *); + + // F follows + } *_event; + + // Event attributes + template + static int event_post(struct event *e) { + typedef EventQueue::context00 C; + void *p = equeue_alloc(e->equeue, sizeof(C)); + if (!p) { + return 0; + } + + new (p) C(*(F*)(e + 1)); + equeue_event_delay(p, e->delay); + equeue_event_period(p, e->period); + equeue_event_dtor(p, &Event::function_dtor); + return equeue_post(e->equeue, &Event::function_call, p); + } + + template + static void event_dtor(struct event *e) { + ((F*)(e + 1))->~F(); + } + + // Function attributes + template + static void function_call(void *p) { + (*(F*)p)(); + } + + template + static void function_dtor(void *p) { + ((F*)p)->~F(); + } + +public: + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0) { + new (this) Event(q, EventQueue::context10(f, c0)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0, C1 c1) { + new (this) Event(q, EventQueue::context20(f, c0, c1)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2) { + new (this) Event(q, EventQueue::context30(f, c0, c1, c2)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3) { + new (this) Event(q, EventQueue::context40(f, c0, c1, c2, c3)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + new (this) Event(q, EventQueue::context50(f, c0, c1, c2, c3, c4)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0), B0 b0) { + new (this) Event(q, mbed::callback(obj, method), b0); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0) const, B0 b0) { + new (this) Event(q, mbed::callback(obj, method), b0); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0) volatile, B0 b0) { + new (this) Event(q, mbed::callback(obj, method), b0); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0) const volatile, B0 b0) { + new (this) Event(q, mbed::callback(obj, method), b0); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, B1), B0 b0, B1 b1) { + new (this) Event(q, mbed::callback(obj, method), b0, b1); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1) const, B0 b0, B1 b1) { + new (this) Event(q, mbed::callback(obj, method), b0, b1); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1) volatile, B0 b0, B1 b1) { + new (this) Event(q, mbed::callback(obj, method), b0, b1); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1) const volatile, B0 b0, B1 b1) { + new (this) Event(q, mbed::callback(obj, method), b0, b1); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2), B0 b0, B1 b1, B2 b2) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2) const, B0 b0, B1 b1, B2 b2) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2) volatile, B0 b0, B1 b1, B2 b2) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2) const volatile, B0 b0, B1 b1, B2 b2) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, B3), B0 b0, B1 b1, B2 b2, B3 b3) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, B3) const, B0 b0, B1 b1, B2 b2, B3 b3) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, B3) volatile, B0 b0, B1 b1, B2 b2, B3 b3) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, B3) const volatile, B0 b0, B1 b1, B2 b2, B3 b3) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, B3, B4), B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, B3, B4) const, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4) volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4) const volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); + } +}; + +/** Event + * + * Representation of an event for fine-grain dispatch control + */ +template +class Event { +public: + /** Create an event + * + * Constructs an event bound to the specified event queue. The specified + * callback acts as the target for the event and is executed in the + * context of the event queue's dispatch loop once posted. + * + * @param q Event queue to dispatch on + * @param f Function to execute when the event is dispatched + * @param a0..a4 Arguments to pass to the callback + */ + template + Event(EventQueue *q, F f) { + _event = static_cast( + equeue_alloc(&q->_equeue, sizeof(struct event) + sizeof(F))); + + if (_event) { + _event->equeue = &q->_equeue; + _event->id = 0; + _event->delay = 0; + _event->period = -1; + + _event->post = &Event::event_post; + _event->dtor = &Event::event_dtor; + + new (_event+1) F(f); + + _event->ref = 1; + } + } + + /** Copy constructor for events + */ + Event(const Event &e) { + _event = 0; + if (e._event) { + _event = e._event; + _event->ref += 1; + } + } + + /** Assignment operator for events + */ + Event &operator=(const Event &that) { + if (this != &that) { + this->~Event(); + new (this) Event(that); + } + + return *this; + } + + /** Destructor for events + */ + ~Event() { + if (_event) { + _event->ref -= 1; + if (_event->ref == 0) { + _event->dtor(_event); + equeue_dealloc(_event->equeue, _event); + } + } + } + + /** Configure the delay of an event + * + * @param delay Millisecond delay before dispatching the event + */ + void delay(int delay) { + if (_event) { + _event->delay = delay; + } + } + + /** Configure the period of an event + * + * @param period Millisecond period for repeatedly dispatching an event + */ + void period(int period) { + if (_event) { + _event->period = period; + } + } + + /** Posts an event onto the underlying event queue + * + * The event is posted to the underlying queue and is executed in the + * context of the event queue's dispatch loop. + * + * The post function is irq safe and can act as a mechanism for moving + * events out of irq contexts. + * + * @param a0..a4 Arguments to pass to the event + * @return A unique id that represents the posted event and can + * be passed to EventQueue::cancel, or an id of 0 if + * there is not enough memory to allocate the event. + */ + int post(A0 a0) const { + if (!_event) { + return 0; + } + + _event->id = _event->post(_event, a0); + return _event->id; + } + + /** Posts an event onto the underlying event queue, returning void + * + * @param a0..a4 Arguments to pass to the event + */ + void call(A0 a0) const { + int id = post(a0); + MBED_ASSERT(id); + } + + /** Posts an event onto the underlying event queue, returning void + * + * @param a0..a4 Arguments to pass to the event + */ + void operator()(A0 a0) const { + return call(a0); + } + + /** Static thunk for passing as C-style function + * + * @param func Event to call passed as a void pointer + * @param a0..a4 Arguments to pass to the event + */ + static void thunk(void *func, A0 a0) { + return static_cast(func)->call(a0); + } + + /** Cancels the most recently posted event + * + * Attempts to cancel the most recently posted event. It is safe to call + * cancel after an event has already been dispatched. + * + * The cancel function is irq safe. + * + * If called while the event queue's dispatch loop is active, the cancel + * function does not garuntee that the event will not execute after it + * returns, as the event may have already begun executing. + */ + void cancel() const { + if (_event) { + equeue_cancel(_event->equeue, _event->id); + } + } + +private: + struct event { + unsigned ref; + equeue_t *equeue; + int id; + + int delay; + int period; + + int (*post)(struct event *, A0 a0); + void (*dtor)(struct event *); + + // F follows + } *_event; + + // Event attributes + template + static int event_post(struct event *e, A0 a0) { + typedef EventQueue::context10 C; + void *p = equeue_alloc(e->equeue, sizeof(C)); + if (!p) { + return 0; + } + + new (p) C(*(F*)(e + 1), a0); + equeue_event_delay(p, e->delay); + equeue_event_period(p, e->period); + equeue_event_dtor(p, &Event::function_dtor); + return equeue_post(e->equeue, &Event::function_call, p); + } + + template + static void event_dtor(struct event *e) { + ((F*)(e + 1))->~F(); + } + + // Function attributes + template + static void function_call(void *p) { + (*(F*)p)(); + } + + template + static void function_dtor(void *p) { + ((F*)p)->~F(); + } + +public: + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0) { + new (this) Event(q, EventQueue::context11(f, c0)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0, C1 c1) { + new (this) Event(q, EventQueue::context21(f, c0, c1)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2) { + new (this) Event(q, EventQueue::context31(f, c0, c1, c2)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3) { + new (this) Event(q, EventQueue::context41(f, c0, c1, c2, c3)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + new (this) Event(q, EventQueue::context51(f, c0, c1, c2, c3, c4)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, A0), B0 b0) { + new (this) Event(q, mbed::callback(obj, method), b0); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, A0) const, B0 b0) { + new (this) Event(q, mbed::callback(obj, method), b0); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, A0) volatile, B0 b0) { + new (this) Event(q, mbed::callback(obj, method), b0); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, A0) const volatile, B0 b0) { + new (this) Event(q, mbed::callback(obj, method), b0); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, A0), B0 b0, B1 b1) { + new (this) Event(q, mbed::callback(obj, method), b0, b1); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, A0) const, B0 b0, B1 b1) { + new (this) Event(q, mbed::callback(obj, method), b0, b1); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, A0) volatile, B0 b0, B1 b1) { + new (this) Event(q, mbed::callback(obj, method), b0, b1); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, A0) const volatile, B0 b0, B1 b1) { + new (this) Event(q, mbed::callback(obj, method), b0, b1); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, A0), B0 b0, B1 b1, B2 b2) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, A0) const, B0 b0, B1 b1, B2 b2) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, A0) volatile, B0 b0, B1 b1, B2 b2) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, A0) const volatile, B0 b0, B1 b1, B2 b2) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, B3, A0), B0 b0, B1 b1, B2 b2, B3 b3) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, B3, A0) const, B0 b0, B1 b1, B2 b2, B3 b3) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0) volatile, B0 b0, B1 b1, B2 b2, B3 b3) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0) const volatile, B0 b0, B1 b1, B2 b2, B3 b3) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0), B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0) const, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0) volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0) const volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); + } +}; + +/** Event + * + * Representation of an event for fine-grain dispatch control + */ +template +class Event { +public: + /** Create an event + * + * Constructs an event bound to the specified event queue. The specified + * callback acts as the target for the event and is executed in the + * context of the event queue's dispatch loop once posted. + * + * @param q Event queue to dispatch on + * @param f Function to execute when the event is dispatched + * @param a0..a4 Arguments to pass to the callback + */ + template + Event(EventQueue *q, F f) { + _event = static_cast( + equeue_alloc(&q->_equeue, sizeof(struct event) + sizeof(F))); + + if (_event) { + _event->equeue = &q->_equeue; + _event->id = 0; + _event->delay = 0; + _event->period = -1; + + _event->post = &Event::event_post; + _event->dtor = &Event::event_dtor; + + new (_event+1) F(f); + + _event->ref = 1; + } + } + + /** Copy constructor for events + */ + Event(const Event &e) { + _event = 0; + if (e._event) { + _event = e._event; + _event->ref += 1; + } + } + + /** Assignment operator for events + */ + Event &operator=(const Event &that) { + if (this != &that) { + this->~Event(); + new (this) Event(that); + } + + return *this; + } + + /** Destructor for events + */ + ~Event() { + if (_event) { + _event->ref -= 1; + if (_event->ref == 0) { + _event->dtor(_event); + equeue_dealloc(_event->equeue, _event); + } + } + } + + /** Configure the delay of an event + * + * @param delay Millisecond delay before dispatching the event + */ + void delay(int delay) { + if (_event) { + _event->delay = delay; + } + } + + /** Configure the period of an event + * + * @param period Millisecond period for repeatedly dispatching an event + */ + void period(int period) { + if (_event) { + _event->period = period; + } + } + + /** Posts an event onto the underlying event queue + * + * The event is posted to the underlying queue and is executed in the + * context of the event queue's dispatch loop. + * + * The post function is irq safe and can act as a mechanism for moving + * events out of irq contexts. + * + * @param a0..a4 Arguments to pass to the event + * @return A unique id that represents the posted event and can + * be passed to EventQueue::cancel, or an id of 0 if + * there is not enough memory to allocate the event. + */ + int post(A0 a0, A1 a1) const { + if (!_event) { + return 0; + } + + _event->id = _event->post(_event, a0, a1); + return _event->id; + } + + /** Posts an event onto the underlying event queue, returning void + * + * @param a0..a4 Arguments to pass to the event + */ + void call(A0 a0, A1 a1) const { + int id = post(a0, a1); + MBED_ASSERT(id); + } + + /** Posts an event onto the underlying event queue, returning void + * + * @param a0..a4 Arguments to pass to the event + */ + void operator()(A0 a0, A1 a1) const { + return call(a0, a1); + } + + /** Static thunk for passing as C-style function + * + * @param func Event to call passed as a void pointer + * @param a0..a4 Arguments to pass to the event + */ + static void thunk(void *func, A0 a0, A1 a1) { + return static_cast(func)->call(a0, a1); + } + + /** Cancels the most recently posted event + * + * Attempts to cancel the most recently posted event. It is safe to call + * cancel after an event has already been dispatched. + * + * The cancel function is irq safe. + * + * If called while the event queue's dispatch loop is active, the cancel + * function does not garuntee that the event will not execute after it + * returns, as the event may have already begun executing. + */ + void cancel() const { + if (_event) { + equeue_cancel(_event->equeue, _event->id); + } + } + +private: + struct event { + unsigned ref; + equeue_t *equeue; + int id; + + int delay; + int period; + + int (*post)(struct event *, A0 a0, A1 a1); + void (*dtor)(struct event *); + + // F follows + } *_event; + + // Event attributes + template + static int event_post(struct event *e, A0 a0, A1 a1) { + typedef EventQueue::context20 C; + void *p = equeue_alloc(e->equeue, sizeof(C)); + if (!p) { + return 0; + } + + new (p) C(*(F*)(e + 1), a0, a1); + equeue_event_delay(p, e->delay); + equeue_event_period(p, e->period); + equeue_event_dtor(p, &Event::function_dtor); + return equeue_post(e->equeue, &Event::function_call, p); + } + + template + static void event_dtor(struct event *e) { + ((F*)(e + 1))->~F(); + } + + // Function attributes + template + static void function_call(void *p) { + (*(F*)p)(); + } + + template + static void function_dtor(void *p) { + ((F*)p)->~F(); + } + +public: + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0) { + new (this) Event(q, EventQueue::context12(f, c0)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0, C1 c1) { + new (this) Event(q, EventQueue::context22(f, c0, c1)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2) { + new (this) Event(q, EventQueue::context32(f, c0, c1, c2)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3) { + new (this) Event(q, EventQueue::context42(f, c0, c1, c2, c3)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + new (this) Event(q, EventQueue::context52(f, c0, c1, c2, c3, c4)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, A0, A1), B0 b0) { + new (this) Event(q, mbed::callback(obj, method), b0); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, A0, A1) const, B0 b0) { + new (this) Event(q, mbed::callback(obj, method), b0); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, A0, A1) volatile, B0 b0) { + new (this) Event(q, mbed::callback(obj, method), b0); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, A0, A1) const volatile, B0 b0) { + new (this) Event(q, mbed::callback(obj, method), b0); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, A0, A1), B0 b0, B1 b1) { + new (this) Event(q, mbed::callback(obj, method), b0, b1); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, A0, A1) const, B0 b0, B1 b1) { + new (this) Event(q, mbed::callback(obj, method), b0, b1); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, A0, A1) volatile, B0 b0, B1 b1) { + new (this) Event(q, mbed::callback(obj, method), b0, b1); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, A0, A1) const volatile, B0 b0, B1 b1) { + new (this) Event(q, mbed::callback(obj, method), b0, b1); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, A0, A1), B0 b0, B1 b1, B2 b2) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, A0, A1) const, B0 b0, B1 b1, B2 b2) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1) volatile, B0 b0, B1 b1, B2 b2) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1) const volatile, B0 b0, B1 b1, B2 b2) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1), B0 b0, B1 b1, B2 b2, B3 b3) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1) const, B0 b0, B1 b1, B2 b2, B3 b3) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1) volatile, B0 b0, B1 b1, B2 b2, B3 b3) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1) const volatile, B0 b0, B1 b1, B2 b2, B3 b3) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1), B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1) const, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1) volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1) const volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); + } +}; + +/** Event + * + * Representation of an event for fine-grain dispatch control + */ +template +class Event { +public: + /** Create an event + * + * Constructs an event bound to the specified event queue. The specified + * callback acts as the target for the event and is executed in the + * context of the event queue's dispatch loop once posted. + * + * @param q Event queue to dispatch on + * @param f Function to execute when the event is dispatched + * @param a0..a4 Arguments to pass to the callback + */ + template + Event(EventQueue *q, F f) { + _event = static_cast( + equeue_alloc(&q->_equeue, sizeof(struct event) + sizeof(F))); + + if (_event) { + _event->equeue = &q->_equeue; + _event->id = 0; + _event->delay = 0; + _event->period = -1; + + _event->post = &Event::event_post; + _event->dtor = &Event::event_dtor; + + new (_event+1) F(f); + + _event->ref = 1; + } + } + + /** Copy constructor for events + */ + Event(const Event &e) { + _event = 0; + if (e._event) { + _event = e._event; + _event->ref += 1; + } + } + + /** Assignment operator for events + */ + Event &operator=(const Event &that) { + if (this != &that) { + this->~Event(); + new (this) Event(that); + } + + return *this; + } + + /** Destructor for events + */ + ~Event() { + if (_event) { + _event->ref -= 1; + if (_event->ref == 0) { + _event->dtor(_event); + equeue_dealloc(_event->equeue, _event); + } + } + } + + /** Configure the delay of an event + * + * @param delay Millisecond delay before dispatching the event + */ + void delay(int delay) { + if (_event) { + _event->delay = delay; + } + } + + /** Configure the period of an event + * + * @param period Millisecond period for repeatedly dispatching an event + */ + void period(int period) { + if (_event) { + _event->period = period; + } + } + + /** Posts an event onto the underlying event queue + * + * The event is posted to the underlying queue and is executed in the + * context of the event queue's dispatch loop. + * + * The post function is irq safe and can act as a mechanism for moving + * events out of irq contexts. + * + * @param a0..a4 Arguments to pass to the event + * @return A unique id that represents the posted event and can + * be passed to EventQueue::cancel, or an id of 0 if + * there is not enough memory to allocate the event. + */ + int post(A0 a0, A1 a1, A2 a2) const { + if (!_event) { + return 0; + } + + _event->id = _event->post(_event, a0, a1, a2); + return _event->id; + } + + /** Posts an event onto the underlying event queue, returning void + * + * @param a0..a4 Arguments to pass to the event + */ + void call(A0 a0, A1 a1, A2 a2) const { + int id = post(a0, a1, a2); + MBED_ASSERT(id); + } + + /** Posts an event onto the underlying event queue, returning void + * + * @param a0..a4 Arguments to pass to the event + */ + void operator()(A0 a0, A1 a1, A2 a2) const { + return call(a0, a1, a2); + } + + /** Static thunk for passing as C-style function + * + * @param func Event to call passed as a void pointer + * @param a0..a4 Arguments to pass to the event + */ + static void thunk(void *func, A0 a0, A1 a1, A2 a2) { + return static_cast(func)->call(a0, a1, a2); + } + + /** Cancels the most recently posted event + * + * Attempts to cancel the most recently posted event. It is safe to call + * cancel after an event has already been dispatched. + * + * The cancel function is irq safe. + * + * If called while the event queue's dispatch loop is active, the cancel + * function does not garuntee that the event will not execute after it + * returns, as the event may have already begun executing. + */ + void cancel() const { + if (_event) { + equeue_cancel(_event->equeue, _event->id); + } + } + +private: + struct event { + unsigned ref; + equeue_t *equeue; + int id; + + int delay; + int period; + + int (*post)(struct event *, A0 a0, A1 a1, A2 a2); + void (*dtor)(struct event *); + + // F follows + } *_event; + + // Event attributes + template + static int event_post(struct event *e, A0 a0, A1 a1, A2 a2) { + typedef EventQueue::context30 C; + void *p = equeue_alloc(e->equeue, sizeof(C)); + if (!p) { + return 0; + } + + new (p) C(*(F*)(e + 1), a0, a1, a2); + equeue_event_delay(p, e->delay); + equeue_event_period(p, e->period); + equeue_event_dtor(p, &Event::function_dtor); + return equeue_post(e->equeue, &Event::function_call, p); + } + + template + static void event_dtor(struct event *e) { + ((F*)(e + 1))->~F(); + } + + // Function attributes + template + static void function_call(void *p) { + (*(F*)p)(); + } + + template + static void function_dtor(void *p) { + ((F*)p)->~F(); + } + +public: + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0) { + new (this) Event(q, EventQueue::context13(f, c0)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0, C1 c1) { + new (this) Event(q, EventQueue::context23(f, c0, c1)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2) { + new (this) Event(q, EventQueue::context33(f, c0, c1, c2)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3) { + new (this) Event(q, EventQueue::context43(f, c0, c1, c2, c3)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + new (this) Event(q, EventQueue::context53(f, c0, c1, c2, c3, c4)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, A0, A1, A2), B0 b0) { + new (this) Event(q, mbed::callback(obj, method), b0); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, A0, A1, A2) const, B0 b0) { + new (this) Event(q, mbed::callback(obj, method), b0); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, A0, A1, A2) volatile, B0 b0) { + new (this) Event(q, mbed::callback(obj, method), b0); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, A0, A1, A2) const volatile, B0 b0) { + new (this) Event(q, mbed::callback(obj, method), b0); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, A0, A1, A2), B0 b0, B1 b1) { + new (this) Event(q, mbed::callback(obj, method), b0, b1); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, A0, A1, A2) const, B0 b0, B1 b1) { + new (this) Event(q, mbed::callback(obj, method), b0, b1); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2) volatile, B0 b0, B1 b1) { + new (this) Event(q, mbed::callback(obj, method), b0, b1); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2) const volatile, B0 b0, B1 b1) { + new (this) Event(q, mbed::callback(obj, method), b0, b1); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2), B0 b0, B1 b1, B2 b2) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2) const, B0 b0, B1 b1, B2 b2) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2) volatile, B0 b0, B1 b1, B2 b2) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2) const volatile, B0 b0, B1 b1, B2 b2) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2), B0 b0, B1 b1, B2 b2, B3 b3) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2) const, B0 b0, B1 b1, B2 b2, B3 b3) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2) volatile, B0 b0, B1 b1, B2 b2, B3 b3) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2) const volatile, B0 b0, B1 b1, B2 b2, B3 b3) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2), B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2) const, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2) volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2) const volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); + } +}; + +/** Event + * + * Representation of an event for fine-grain dispatch control + */ +template +class Event { +public: + /** Create an event + * + * Constructs an event bound to the specified event queue. The specified + * callback acts as the target for the event and is executed in the + * context of the event queue's dispatch loop once posted. + * + * @param q Event queue to dispatch on + * @param f Function to execute when the event is dispatched + * @param a0..a4 Arguments to pass to the callback + */ + template + Event(EventQueue *q, F f) { + _event = static_cast( + equeue_alloc(&q->_equeue, sizeof(struct event) + sizeof(F))); + + if (_event) { + _event->equeue = &q->_equeue; + _event->id = 0; + _event->delay = 0; + _event->period = -1; + + _event->post = &Event::event_post; + _event->dtor = &Event::event_dtor; + + new (_event+1) F(f); + + _event->ref = 1; + } + } + + /** Copy constructor for events + */ + Event(const Event &e) { + _event = 0; + if (e._event) { + _event = e._event; + _event->ref += 1; + } + } + + /** Assignment operator for events + */ + Event &operator=(const Event &that) { + if (this != &that) { + this->~Event(); + new (this) Event(that); + } + + return *this; + } + + /** Destructor for events + */ + ~Event() { + if (_event) { + _event->ref -= 1; + if (_event->ref == 0) { + _event->dtor(_event); + equeue_dealloc(_event->equeue, _event); + } + } + } + + /** Configure the delay of an event + * + * @param delay Millisecond delay before dispatching the event + */ + void delay(int delay) { + if (_event) { + _event->delay = delay; + } + } + + /** Configure the period of an event + * + * @param period Millisecond period for repeatedly dispatching an event + */ + void period(int period) { + if (_event) { + _event->period = period; + } + } + + /** Posts an event onto the underlying event queue + * + * The event is posted to the underlying queue and is executed in the + * context of the event queue's dispatch loop. + * + * The post function is irq safe and can act as a mechanism for moving + * events out of irq contexts. + * + * @param a0..a4 Arguments to pass to the event + * @return A unique id that represents the posted event and can + * be passed to EventQueue::cancel, or an id of 0 if + * there is not enough memory to allocate the event. + */ + int post(A0 a0, A1 a1, A2 a2, A3 a3) const { + if (!_event) { + return 0; + } + + _event->id = _event->post(_event, a0, a1, a2, a3); + return _event->id; + } + + /** Posts an event onto the underlying event queue, returning void + * + * @param a0..a4 Arguments to pass to the event + */ + void call(A0 a0, A1 a1, A2 a2, A3 a3) const { + int id = post(a0, a1, a2, a3); + MBED_ASSERT(id); + } + + /** Posts an event onto the underlying event queue, returning void + * + * @param a0..a4 Arguments to pass to the event + */ + void operator()(A0 a0, A1 a1, A2 a2, A3 a3) const { + return call(a0, a1, a2, a3); + } + + /** Static thunk for passing as C-style function + * + * @param func Event to call passed as a void pointer + * @param a0..a4 Arguments to pass to the event + */ + static void thunk(void *func, A0 a0, A1 a1, A2 a2, A3 a3) { + return static_cast(func)->call(a0, a1, a2, a3); + } + + /** Cancels the most recently posted event + * + * Attempts to cancel the most recently posted event. It is safe to call + * cancel after an event has already been dispatched. + * + * The cancel function is irq safe. + * + * If called while the event queue's dispatch loop is active, the cancel + * function does not garuntee that the event will not execute after it + * returns, as the event may have already begun executing. + */ + void cancel() const { + if (_event) { + equeue_cancel(_event->equeue, _event->id); + } + } + +private: + struct event { + unsigned ref; + equeue_t *equeue; + int id; + + int delay; + int period; + + int (*post)(struct event *, A0 a0, A1 a1, A2 a2, A3 a3); + void (*dtor)(struct event *); + + // F follows + } *_event; + + // Event attributes + template + static int event_post(struct event *e, A0 a0, A1 a1, A2 a2, A3 a3) { + typedef EventQueue::context40 C; + void *p = equeue_alloc(e->equeue, sizeof(C)); + if (!p) { + return 0; + } + + new (p) C(*(F*)(e + 1), a0, a1, a2, a3); + equeue_event_delay(p, e->delay); + equeue_event_period(p, e->period); + equeue_event_dtor(p, &Event::function_dtor); + return equeue_post(e->equeue, &Event::function_call, p); + } + + template + static void event_dtor(struct event *e) { + ((F*)(e + 1))->~F(); + } + + // Function attributes + template + static void function_call(void *p) { + (*(F*)p)(); + } + + template + static void function_dtor(void *p) { + ((F*)p)->~F(); + } + +public: + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0) { + new (this) Event(q, EventQueue::context14(f, c0)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0, C1 c1) { + new (this) Event(q, EventQueue::context24(f, c0, c1)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2) { + new (this) Event(q, EventQueue::context34(f, c0, c1, c2)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3) { + new (this) Event(q, EventQueue::context44(f, c0, c1, c2, c3)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + new (this) Event(q, EventQueue::context54(f, c0, c1, c2, c3, c4)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, A0, A1, A2, A3), B0 b0) { + new (this) Event(q, mbed::callback(obj, method), b0); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, A0, A1, A2, A3) const, B0 b0) { + new (this) Event(q, mbed::callback(obj, method), b0); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3) volatile, B0 b0) { + new (this) Event(q, mbed::callback(obj, method), b0); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3) const volatile, B0 b0) { + new (this) Event(q, mbed::callback(obj, method), b0); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3), B0 b0, B1 b1) { + new (this) Event(q, mbed::callback(obj, method), b0, b1); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3) const, B0 b0, B1 b1) { + new (this) Event(q, mbed::callback(obj, method), b0, b1); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3) volatile, B0 b0, B1 b1) { + new (this) Event(q, mbed::callback(obj, method), b0, b1); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3) const volatile, B0 b0, B1 b1) { + new (this) Event(q, mbed::callback(obj, method), b0, b1); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3), B0 b0, B1 b1, B2 b2) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3) const, B0 b0, B1 b1, B2 b2) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3) volatile, B0 b0, B1 b1, B2 b2) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3) const volatile, B0 b0, B1 b1, B2 b2) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3), B0 b0, B1 b1, B2 b2, B3 b3) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3) const, B0 b0, B1 b1, B2 b2, B3 b3) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3) volatile, B0 b0, B1 b1, B2 b2, B3 b3) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3) const volatile, B0 b0, B1 b1, B2 b2, B3 b3) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3), B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3) const, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3) volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3) const volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); + } +}; + +/** Event + * + * Representation of an event for fine-grain dispatch control + */ +template +class Event { +public: + /** Create an event + * + * Constructs an event bound to the specified event queue. The specified + * callback acts as the target for the event and is executed in the + * context of the event queue's dispatch loop once posted. + * + * @param q Event queue to dispatch on + * @param f Function to execute when the event is dispatched + * @param a0..a4 Arguments to pass to the callback + */ + template + Event(EventQueue *q, F f) { + _event = static_cast( + equeue_alloc(&q->_equeue, sizeof(struct event) + sizeof(F))); + + if (_event) { + _event->equeue = &q->_equeue; + _event->id = 0; + _event->delay = 0; + _event->period = -1; + + _event->post = &Event::event_post; + _event->dtor = &Event::event_dtor; + + new (_event+1) F(f); + + _event->ref = 1; + } + } + + /** Copy constructor for events + */ + Event(const Event &e) { + _event = 0; + if (e._event) { + _event = e._event; + _event->ref += 1; + } + } + + /** Assignment operator for events + */ + Event &operator=(const Event &that) { + if (this != &that) { + this->~Event(); + new (this) Event(that); + } + + return *this; + } + + /** Destructor for events + */ + ~Event() { + if (_event) { + _event->ref -= 1; + if (_event->ref == 0) { + _event->dtor(_event); + equeue_dealloc(_event->equeue, _event); + } + } + } + + /** Configure the delay of an event + * + * @param delay Millisecond delay before dispatching the event + */ + void delay(int delay) { + if (_event) { + _event->delay = delay; + } + } + + /** Configure the period of an event + * + * @param period Millisecond period for repeatedly dispatching an event + */ + void period(int period) { + if (_event) { + _event->period = period; + } + } + + /** Posts an event onto the underlying event queue + * + * The event is posted to the underlying queue and is executed in the + * context of the event queue's dispatch loop. + * + * The post function is irq safe and can act as a mechanism for moving + * events out of irq contexts. + * + * @param a0..a4 Arguments to pass to the event + * @return A unique id that represents the posted event and can + * be passed to EventQueue::cancel, or an id of 0 if + * there is not enough memory to allocate the event. + */ + int post(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) const { + if (!_event) { + return 0; + } + + _event->id = _event->post(_event, a0, a1, a2, a3, a4); + return _event->id; + } + + /** Posts an event onto the underlying event queue, returning void + * + * @param a0..a4 Arguments to pass to the event + */ + void call(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) const { + int id = post(a0, a1, a2, a3, a4); + MBED_ASSERT(id); + } + + /** Posts an event onto the underlying event queue, returning void + * + * @param a0..a4 Arguments to pass to the event + */ + void operator()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) const { + return call(a0, a1, a2, a3, a4); + } + + /** Static thunk for passing as C-style function + * + * @param func Event to call passed as a void pointer + * @param a0..a4 Arguments to pass to the event + */ + static void thunk(void *func, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + return static_cast(func)->call(a0, a1, a2, a3, a4); + } + + /** Cancels the most recently posted event + * + * Attempts to cancel the most recently posted event. It is safe to call + * cancel after an event has already been dispatched. + * + * The cancel function is irq safe. + * + * If called while the event queue's dispatch loop is active, the cancel + * function does not garuntee that the event will not execute after it + * returns, as the event may have already begun executing. + */ + void cancel() const { + if (_event) { + equeue_cancel(_event->equeue, _event->id); + } + } + +private: + struct event { + unsigned ref; + equeue_t *equeue; + int id; + + int delay; + int period; + + int (*post)(struct event *, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4); + void (*dtor)(struct event *); + + // F follows + } *_event; + + // Event attributes + template + static int event_post(struct event *e, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + typedef EventQueue::context50 C; + void *p = equeue_alloc(e->equeue, sizeof(C)); + if (!p) { + return 0; + } + + new (p) C(*(F*)(e + 1), a0, a1, a2, a3, a4); + equeue_event_delay(p, e->delay); + equeue_event_period(p, e->period); + equeue_event_dtor(p, &Event::function_dtor); + return equeue_post(e->equeue, &Event::function_call, p); + } + + template + static void event_dtor(struct event *e) { + ((F*)(e + 1))->~F(); + } + + // Function attributes + template + static void function_call(void *p) { + (*(F*)p)(); + } + + template + static void function_dtor(void *p) { + ((F*)p)->~F(); + } + +public: + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0) { + new (this) Event(q, EventQueue::context15(f, c0)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0, C1 c1) { + new (this) Event(q, EventQueue::context25(f, c0, c1)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2) { + new (this) Event(q, EventQueue::context35(f, c0, c1, c2)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3) { + new (this) Event(q, EventQueue::context45(f, c0, c1, c2, c3)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + new (this) Event(q, EventQueue::context55(f, c0, c1, c2, c3, c4)); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4), B0 b0) { + new (this) Event(q, mbed::callback(obj, method), b0); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4) const, B0 b0) { + new (this) Event(q, mbed::callback(obj, method), b0); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4) volatile, B0 b0) { + new (this) Event(q, mbed::callback(obj, method), b0); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4) const volatile, B0 b0) { + new (this) Event(q, mbed::callback(obj, method), b0); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4), B0 b0, B1 b1) { + new (this) Event(q, mbed::callback(obj, method), b0, b1); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4) const, B0 b0, B1 b1) { + new (this) Event(q, mbed::callback(obj, method), b0, b1); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4) volatile, B0 b0, B1 b1) { + new (this) Event(q, mbed::callback(obj, method), b0, b1); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4) const volatile, B0 b0, B1 b1) { + new (this) Event(q, mbed::callback(obj, method), b0, b1); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4), B0 b0, B1 b1, B2 b2) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) const, B0 b0, B1 b1, B2 b2) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) volatile, B0 b0, B1 b1, B2 b2) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) const volatile, B0 b0, B1 b1, B2 b2) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4), B0 b0, B1 b1, B2 b2, B3 b3) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4) const, B0 b0, B1 b1, B2 b2, B3 b3) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4) volatile, B0 b0, B1 b1, B2 b2, B3 b3) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4) const volatile, B0 b0, B1 b1, B2 b2, B3 b3) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4), B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4) const, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4) volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); + } + + /** Create an event + * @see Event::Event + */ + template + Event(EventQueue *q, const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4) const volatile, B0 b0, B1 b1, B2 b2, B3 b3, B4 b4) { + new (this) Event(q, mbed::callback(obj, method), b0, b1, b2, b3, b4); + } +}; + + + +// Convenience functions declared here to avoid cyclic +// dependency between Event and EventQueue +template +Event EventQueue::event(R (*func)()) { + return Event(this, func); +} + +template +Event EventQueue::event(T *obj, R (T::*method)()) { + return Event(this, mbed::callback(obj, method)); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)() const) { + return Event(this, mbed::callback(obj, method)); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)() volatile) { + return Event(this, mbed::callback(obj, method)); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)() const volatile) { + return Event(this, mbed::callback(obj, method)); +} + +template +Event EventQueue::event(R (*func)(B0), C0 c0) { + return Event(this, func, c0); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0), C0 c0) { + return Event(this, mbed::callback(obj, method), c0); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0) const, C0 c0) { + return Event(this, mbed::callback(obj, method), c0); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0) volatile, C0 c0) { + return Event(this, mbed::callback(obj, method), c0); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0) const volatile, C0 c0) { + return Event(this, mbed::callback(obj, method), c0); +} + +template +Event EventQueue::event(R (*func)(B0, B1), C0 c0, C1 c1) { + return Event(this, func, c0, c1); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, B1), C0 c0, C1 c1) { + return Event(this, mbed::callback(obj, method), c0, c1); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, B1) const, C0 c0, C1 c1) { + return Event(this, mbed::callback(obj, method), c0, c1); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1) volatile, C0 c0, C1 c1) { + return Event(this, mbed::callback(obj, method), c0, c1); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1) const volatile, C0 c0, C1 c1) { + return Event(this, mbed::callback(obj, method), c0, c1); +} + +template +Event EventQueue::event(R (*func)(B0, B1, B2), C0 c0, C1 c1, C2 c2) { + return Event(this, func, c0, c1, c2); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2), C0 c0, C1 c1, C2 c2) { + return Event(this, mbed::callback(obj, method), c0, c1, c2); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2) const, C0 c0, C1 c1, C2 c2) { + return Event(this, mbed::callback(obj, method), c0, c1, c2); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2) volatile, C0 c0, C1 c1, C2 c2) { + return Event(this, mbed::callback(obj, method), c0, c1, c2); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, B2) const volatile, C0 c0, C1 c1, C2 c2) { + return Event(this, mbed::callback(obj, method), c0, c1, c2); +} + +template +Event EventQueue::event(R (*func)(B0, B1, B2, B3), C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, func, c0, c1, c2, c3); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, B3), C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, B3) const, C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, B3) volatile, C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3) const volatile, C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); +} + +template +Event EventQueue::event(R (*func)(B0, B1, B2, B3, B4), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, func, c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, B3, B4), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, B3, B4) const, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4) volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4) const volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(R (*func)(A0)) { + return Event(this, func); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(A0)) { + return Event(this, mbed::callback(obj, method)); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(A0) const) { + return Event(this, mbed::callback(obj, method)); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(A0) volatile) { + return Event(this, mbed::callback(obj, method)); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(A0) const volatile) { + return Event(this, mbed::callback(obj, method)); +} + +template +Event EventQueue::event(R (*func)(B0, A0), C0 c0) { + return Event(this, func, c0); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, A0), C0 c0) { + return Event(this, mbed::callback(obj, method), c0); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, A0) const, C0 c0) { + return Event(this, mbed::callback(obj, method), c0); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, A0) volatile, C0 c0) { + return Event(this, mbed::callback(obj, method), c0); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, A0) const volatile, C0 c0) { + return Event(this, mbed::callback(obj, method), c0); +} + +template +Event EventQueue::event(R (*func)(B0, B1, A0), C0 c0, C1 c1) { + return Event(this, func, c0, c1); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, B1, A0), C0 c0, C1 c1) { + return Event(this, mbed::callback(obj, method), c0, c1); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, A0) const, C0 c0, C1 c1) { + return Event(this, mbed::callback(obj, method), c0, c1); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, A0) volatile, C0 c0, C1 c1) { + return Event(this, mbed::callback(obj, method), c0, c1); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, A0) const volatile, C0 c0, C1 c1) { + return Event(this, mbed::callback(obj, method), c0, c1); +} + +template +Event EventQueue::event(R (*func)(B0, B1, B2, A0), C0 c0, C1 c1, C2 c2) { + return Event(this, func, c0, c1, c2); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, A0), C0 c0, C1 c1, C2 c2) { + return Event(this, mbed::callback(obj, method), c0, c1, c2); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, A0) const, C0 c0, C1 c1, C2 c2) { + return Event(this, mbed::callback(obj, method), c0, c1, c2); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, A0) volatile, C0 c0, C1 c1, C2 c2) { + return Event(this, mbed::callback(obj, method), c0, c1, c2); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, B2, A0) const volatile, C0 c0, C1 c1, C2 c2) { + return Event(this, mbed::callback(obj, method), c0, c1, c2); +} + +template +Event EventQueue::event(R (*func)(B0, B1, B2, B3, A0), C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, func, c0, c1, c2, c3); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, B3, A0), C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, B3, A0) const, C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0) volatile, C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0) const volatile, C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); +} + +template +Event EventQueue::event(R (*func)(B0, B1, B2, B3, B4, A0), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, func, c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0) const, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0) volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0) const volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(R (*func)(A0, A1)) { + return Event(this, func); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(A0, A1)) { + return Event(this, mbed::callback(obj, method)); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(A0, A1) const) { + return Event(this, mbed::callback(obj, method)); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(A0, A1) volatile) { + return Event(this, mbed::callback(obj, method)); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(A0, A1) const volatile) { + return Event(this, mbed::callback(obj, method)); +} + +template +Event EventQueue::event(R (*func)(B0, A0, A1), C0 c0) { + return Event(this, func, c0); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, A0, A1), C0 c0) { + return Event(this, mbed::callback(obj, method), c0); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, A0, A1) const, C0 c0) { + return Event(this, mbed::callback(obj, method), c0); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, A0, A1) volatile, C0 c0) { + return Event(this, mbed::callback(obj, method), c0); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, A0, A1) const volatile, C0 c0) { + return Event(this, mbed::callback(obj, method), c0); +} + +template +Event EventQueue::event(R (*func)(B0, B1, A0, A1), C0 c0, C1 c1) { + return Event(this, func, c0, c1); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, B1, A0, A1), C0 c0, C1 c1) { + return Event(this, mbed::callback(obj, method), c0, c1); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, A0, A1) const, C0 c0, C1 c1) { + return Event(this, mbed::callback(obj, method), c0, c1); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, A0, A1) volatile, C0 c0, C1 c1) { + return Event(this, mbed::callback(obj, method), c0, c1); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, A0, A1) const volatile, C0 c0, C1 c1) { + return Event(this, mbed::callback(obj, method), c0, c1); +} + +template +Event EventQueue::event(R (*func)(B0, B1, B2, A0, A1), C0 c0, C1 c1, C2 c2) { + return Event(this, func, c0, c1, c2); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, A0, A1), C0 c0, C1 c1, C2 c2) { + return Event(this, mbed::callback(obj, method), c0, c1, c2); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, A0, A1) const, C0 c0, C1 c1, C2 c2) { + return Event(this, mbed::callback(obj, method), c0, c1, c2); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1) volatile, C0 c0, C1 c1, C2 c2) { + return Event(this, mbed::callback(obj, method), c0, c1, c2); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1) const volatile, C0 c0, C1 c1, C2 c2) { + return Event(this, mbed::callback(obj, method), c0, c1, c2); +} + +template +Event EventQueue::event(R (*func)(B0, B1, B2, B3, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, func, c0, c1, c2, c3); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1) const, C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1) volatile, C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1) const volatile, C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); +} + +template +Event EventQueue::event(R (*func)(B0, B1, B2, B3, B4, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, func, c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1) const, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1) volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1) const volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(R (*func)(A0, A1, A2)) { + return Event(this, func); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(A0, A1, A2)) { + return Event(this, mbed::callback(obj, method)); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(A0, A1, A2) const) { + return Event(this, mbed::callback(obj, method)); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(A0, A1, A2) volatile) { + return Event(this, mbed::callback(obj, method)); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(A0, A1, A2) const volatile) { + return Event(this, mbed::callback(obj, method)); +} + +template +Event EventQueue::event(R (*func)(B0, A0, A1, A2), C0 c0) { + return Event(this, func, c0); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, A0, A1, A2), C0 c0) { + return Event(this, mbed::callback(obj, method), c0); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, A0, A1, A2) const, C0 c0) { + return Event(this, mbed::callback(obj, method), c0); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, A0, A1, A2) volatile, C0 c0) { + return Event(this, mbed::callback(obj, method), c0); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, A0, A1, A2) const volatile, C0 c0) { + return Event(this, mbed::callback(obj, method), c0); +} + +template +Event EventQueue::event(R (*func)(B0, B1, A0, A1, A2), C0 c0, C1 c1) { + return Event(this, func, c0, c1); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, B1, A0, A1, A2), C0 c0, C1 c1) { + return Event(this, mbed::callback(obj, method), c0, c1); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, A0, A1, A2) const, C0 c0, C1 c1) { + return Event(this, mbed::callback(obj, method), c0, c1); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2) volatile, C0 c0, C1 c1) { + return Event(this, mbed::callback(obj, method), c0, c1); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2) const volatile, C0 c0, C1 c1) { + return Event(this, mbed::callback(obj, method), c0, c1); +} + +template +Event EventQueue::event(R (*func)(B0, B1, B2, A0, A1, A2), C0 c0, C1 c1, C2 c2) { + return Event(this, func, c0, c1, c2); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2), C0 c0, C1 c1, C2 c2) { + return Event(this, mbed::callback(obj, method), c0, c1, c2); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2) const, C0 c0, C1 c1, C2 c2) { + return Event(this, mbed::callback(obj, method), c0, c1, c2); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2) volatile, C0 c0, C1 c1, C2 c2) { + return Event(this, mbed::callback(obj, method), c0, c1, c2); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2) const volatile, C0 c0, C1 c1, C2 c2) { + return Event(this, mbed::callback(obj, method), c0, c1, c2); +} + +template +Event EventQueue::event(R (*func)(B0, B1, B2, B3, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, func, c0, c1, c2, c3); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2) const, C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2) volatile, C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2) const volatile, C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); +} + +template +Event EventQueue::event(R (*func)(B0, B1, B2, B3, B4, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, func, c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2) const, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2) volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2) const volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(R (*func)(A0, A1, A2, A3)) { + return Event(this, func); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(A0, A1, A2, A3)) { + return Event(this, mbed::callback(obj, method)); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(A0, A1, A2, A3) const) { + return Event(this, mbed::callback(obj, method)); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(A0, A1, A2, A3) volatile) { + return Event(this, mbed::callback(obj, method)); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(A0, A1, A2, A3) const volatile) { + return Event(this, mbed::callback(obj, method)); +} + +template +Event EventQueue::event(R (*func)(B0, A0, A1, A2, A3), C0 c0) { + return Event(this, func, c0); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, A0, A1, A2, A3), C0 c0) { + return Event(this, mbed::callback(obj, method), c0); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, A0, A1, A2, A3) const, C0 c0) { + return Event(this, mbed::callback(obj, method), c0); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3) volatile, C0 c0) { + return Event(this, mbed::callback(obj, method), c0); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3) const volatile, C0 c0) { + return Event(this, mbed::callback(obj, method), c0); +} + +template +Event EventQueue::event(R (*func)(B0, B1, A0, A1, A2, A3), C0 c0, C1 c1) { + return Event(this, func, c0, c1); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3), C0 c0, C1 c1) { + return Event(this, mbed::callback(obj, method), c0, c1); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3) const, C0 c0, C1 c1) { + return Event(this, mbed::callback(obj, method), c0, c1); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3) volatile, C0 c0, C1 c1) { + return Event(this, mbed::callback(obj, method), c0, c1); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3) const volatile, C0 c0, C1 c1) { + return Event(this, mbed::callback(obj, method), c0, c1); +} + +template +Event EventQueue::event(R (*func)(B0, B1, B2, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2) { + return Event(this, func, c0, c1, c2); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2) { + return Event(this, mbed::callback(obj, method), c0, c1, c2); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3) const, C0 c0, C1 c1, C2 c2) { + return Event(this, mbed::callback(obj, method), c0, c1, c2); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3) volatile, C0 c0, C1 c1, C2 c2) { + return Event(this, mbed::callback(obj, method), c0, c1, c2); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3) const volatile, C0 c0, C1 c1, C2 c2) { + return Event(this, mbed::callback(obj, method), c0, c1, c2); +} + +template +Event EventQueue::event(R (*func)(B0, B1, B2, B3, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, func, c0, c1, c2, c3); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3) const, C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3) volatile, C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3) const volatile, C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); +} + +template +Event EventQueue::event(R (*func)(B0, B1, B2, B3, B4, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, func, c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3) const, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3) volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3) const volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(R (*func)(A0, A1, A2, A3, A4)) { + return Event(this, func); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(A0, A1, A2, A3, A4)) { + return Event(this, mbed::callback(obj, method)); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(A0, A1, A2, A3, A4) const) { + return Event(this, mbed::callback(obj, method)); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(A0, A1, A2, A3, A4) volatile) { + return Event(this, mbed::callback(obj, method)); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(A0, A1, A2, A3, A4) const volatile) { + return Event(this, mbed::callback(obj, method)); +} + +template +Event EventQueue::event(R (*func)(B0, A0, A1, A2, A3, A4), C0 c0) { + return Event(this, func, c0); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4), C0 c0) { + return Event(this, mbed::callback(obj, method), c0); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4) const, C0 c0) { + return Event(this, mbed::callback(obj, method), c0); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4) volatile, C0 c0) { + return Event(this, mbed::callback(obj, method), c0); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4) const volatile, C0 c0) { + return Event(this, mbed::callback(obj, method), c0); +} + +template +Event EventQueue::event(R (*func)(B0, B1, A0, A1, A2, A3, A4), C0 c0, C1 c1) { + return Event(this, func, c0, c1); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4), C0 c0, C1 c1) { + return Event(this, mbed::callback(obj, method), c0, c1); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4) const, C0 c0, C1 c1) { + return Event(this, mbed::callback(obj, method), c0, c1); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4) volatile, C0 c0, C1 c1) { + return Event(this, mbed::callback(obj, method), c0, c1); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4) const volatile, C0 c0, C1 c1) { + return Event(this, mbed::callback(obj, method), c0, c1); +} + +template +Event EventQueue::event(R (*func)(B0, B1, B2, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2) { + return Event(this, func, c0, c1, c2); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2) { + return Event(this, mbed::callback(obj, method), c0, c1, c2); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) const, C0 c0, C1 c1, C2 c2) { + return Event(this, mbed::callback(obj, method), c0, c1, c2); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) volatile, C0 c0, C1 c1, C2 c2) { + return Event(this, mbed::callback(obj, method), c0, c1, c2); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) const volatile, C0 c0, C1 c1, C2 c2) { + return Event(this, mbed::callback(obj, method), c0, c1, c2); +} + +template +Event EventQueue::event(R (*func)(B0, B1, B2, B3, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, func, c0, c1, c2, c3); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4) const, C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4) volatile, C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4) const volatile, C0 c0, C1 c1, C2 c2, C3 c3) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3); +} + +template +Event EventQueue::event(R (*func)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, func, c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4) const, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4) volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); +} + +template +Event EventQueue::event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4) const volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) { + return Event(this, mbed::callback(obj, method), c0, c1, c2, c3, c4); +} + +} + +#endif diff --git a/events/EventQueue.cpp b/events/EventQueue.cpp new file mode 100644 index 0000000000..420f31bda4 --- /dev/null +++ b/events/EventQueue.cpp @@ -0,0 +1,66 @@ +/* events + * Copyright (c) 2016 ARM Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#include "events/EventQueue.h" + +#include "events/mbed_events.h" +#include "mbed.h" + + +EventQueue::EventQueue(unsigned event_size, unsigned char *event_pointer) { + if (!event_pointer) { + equeue_create(&_equeue, event_size); + } else { + equeue_create_inplace(&_equeue, event_size, event_pointer); + } +} + +EventQueue::~EventQueue() { + equeue_destroy(&_equeue); +} + +void EventQueue::dispatch(int ms) { + return equeue_dispatch(&_equeue, ms); +} + +void EventQueue::break_dispatch() { + return equeue_break(&_equeue); +} + +unsigned EventQueue::tick() { + return equeue_tick(); +} + +void EventQueue::cancel(int id) { + return equeue_cancel(&_equeue, id); +} + +void EventQueue::background(Callback update) { + _update = update; + + if (_update) { + equeue_background(&_equeue, &Callback::thunk, &_update); + } else { + equeue_background(&_equeue, 0, 0); + } +} + +void EventQueue::chain(EventQueue *target) { + if (target) { + equeue_chain(&_equeue, &target->_equeue); + } else { + equeue_chain(&_equeue, 0); + } +} diff --git a/events/EventQueue.h b/events/EventQueue.h new file mode 100644 index 0000000000..4243652e9e --- /dev/null +++ b/events/EventQueue.h @@ -0,0 +1,2480 @@ +/* events + * Copyright (c) 2016 ARM Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#ifndef EVENT_QUEUE_H +#define EVENT_QUEUE_H + +#include "equeue/equeue.h" +#include "platform/Callback.h" +#include +#include + +namespace events { + +/** EVENTS_EVENT_SIZE + * Minimum size of an event + * This size fits a Callback at minimum + */ +#define EVENTS_EVENT_SIZE \ + (EQUEUE_EVENT_SIZE - 2*sizeof(void*) + sizeof(mbed::Callback)) + +/** EVENTS_QUEUE_SIZE + * Default size of buffer for events + */ +#define EVENTS_QUEUE_SIZE (32*EVENTS_EVENT_SIZE) + +// Predeclared classes +template +class Event; + + +/** EventQueue + * + * Flexible event queue for dispatching events + */ +class EventQueue { +public: + /** Create an EventQueue + * + * Create an event queue. The event queue either allocates a buffer of + * the specified size with malloc or uses the user provided buffer. + * + * @param size Size of buffer to use for events in bytes + * (default to EVENTS_QUEUE_SIZE) + * @param buffer Pointer to buffer to use for events + * (default to NULL) + */ + EventQueue(unsigned size=EVENTS_QUEUE_SIZE, unsigned char *buffer=NULL); + + /** Destroy an EventQueue + */ + ~EventQueue(); + + /** Dispatch events + * + * Executes events until the specified milliseconds have passed. + * If ms is negative, the dispatch function will dispatch events + * indefinitely or until break_dispatch is called on this queue. + * + * When called with a finite timeout, the dispatch function is guaranteed + * to terminate. When called with a timeout of 0, the dispatch function + * does not wait and is irq safe. + * + * @param ms Time to wait for events in milliseconds, a negative + * value will dispatch events indefinitely + * (default to -1) + */ + void dispatch(int ms=-1); + + /** Dispatch events without a timeout + * + * This is equivalent to EventQueue::dispatch with no arguments, but + * avoids overload ambiguities when passed as a callback. + * + * @see EventQueue::dispatch + */ + void dispatch_forever() { dispatch(); } + + /** Break out of a running event loop + * + * Forces the specified event queue's dispatch loop to terminate. Pending + * events may finish executing, but no new events will be executed. + */ + void break_dispatch(); + + /** Millisecond counter + * + * Returns the underlying tick of the event queue represented as the + * number of milliseconds that have passed since an arbitrary point in + * time. Intentionally overflows to 0 after 2^32-1. + * + * @return The underlying tick of the event queue in milliseconds + */ + unsigned tick(); + + /** Cancel an in-flight event + * + * Attempts to cancel an event referenced by the unique id returned from + * one of the call functions. It is safe to call cancel after an event + * has already been dispatched. + * + * The cancel function is irq safe. + * + * If called while the event queue's dispatch loop is active, the cancel + * function does not garuntee that the event will not execute after it + * returns, as the event may have already begun executing. + * + * @param id Unique id of the event + */ + void cancel(int id); + + /** Background an event queue onto a single-shot timer-interrupt + * + * When updated, the event queue will call the provided update function + * with a timeout indicating when the queue should be dispatched. A + * negative timeout will be passed to the update function when the + * timer-interrupt is no longer needed. + * + * Passing a null function disables the existing update function. + * + * The background function allows an event queue to take advantage of + * hardware timers or other event loops, allowing an event queue to be + * ran in the background without consuming the foreground thread. + * + * @param update Function called to indicate when the queue should be + * dispatched + */ + void background(mbed::Callback update); + + /** Chain an event queue onto another event queue + * + * After chaining a queue to a target, calling dispatch on the target + * queue will also dispatch events from this queue. The queues use + * their own buffers and events must be handled independently. + * + * A null queue as the target will unchain the existing queue. + * + * The chain function allows multiple event queues to be composed, + * sharing the context of a dispatch loop while still being managed + * independently + * + * @param target Queue that will dispatch this queue's events as a + * part of its dispatch loop + */ + void chain(EventQueue *target); + + /** Calls an event on the queue + * + * The specified callback will be executed in the context of the event + * queue's dispatch loop. + * + * The call function is irq safe and can act as a mechanism for moving + * events out of irq contexts. + * + * @param f Function to execute in the context of the dispatch loop + * @param a0..a4 Arguments to pass to the callback + * @return A unique id that represents the posted event and can + * be passed to cancel, or an id of 0 if there is not + * enough memory to allocate the event. + */ + template + int call(F f) { + struct local { + static void call(void *p) { (*static_cast(p))(); } + static void dtor(void *p) { static_cast(p)->~F(); } + }; + + void *p = equeue_alloc(&_equeue, sizeof(F)); + if (!p) { + return 0; + } + + F *e = new (p) F(f); + equeue_event_dtor(e, &local::dtor); + return equeue_post(&_equeue, &local::call, e); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(F f, A0 a0) { + return call(context10(f, a0)); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(F f, A0 a0, A1 a1) { + return call(context20(f, a0, a1)); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(F f, A0 a0, A1 a1, A2 a2) { + return call(context30(f, a0, a1, a2)); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(F f, A0 a0, A1 a1, A2 a2, A3 a3) { + return call(context40(f, a0, a1, a2, a3)); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(F f, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + return call(context50(f, a0, a1, a2, a3, a4)); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(T *obj, R (T::*method)()) { + return call(mbed::callback(obj, method)); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(const T *obj, R (T::*method)() const) { + return call(mbed::callback(obj, method)); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(volatile T *obj, R (T::*method)() volatile) { + return call(mbed::callback(obj, method)); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(const volatile T *obj, R (T::*method)() const volatile) { + return call(mbed::callback(obj, method)); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(T *obj, R (T::*method)(A0), A0 a0) { + return call(mbed::callback(obj, method), a0); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(const T *obj, R (T::*method)(A0) const, A0 a0) { + return call(mbed::callback(obj, method), a0); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(volatile T *obj, R (T::*method)(A0) volatile, A0 a0) { + return call(mbed::callback(obj, method), a0); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(const volatile T *obj, R (T::*method)(A0) const volatile, A0 a0) { + return call(mbed::callback(obj, method), a0); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(T *obj, R (T::*method)(A0, A1), A0 a0, A1 a1) { + return call(mbed::callback(obj, method), a0, a1); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(const T *obj, R (T::*method)(A0, A1) const, A0 a0, A1 a1) { + return call(mbed::callback(obj, method), a0, a1); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(volatile T *obj, R (T::*method)(A0, A1) volatile, A0 a0, A1 a1) { + return call(mbed::callback(obj, method), a0, a1); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(const volatile T *obj, R (T::*method)(A0, A1) const volatile, A0 a0, A1 a1) { + return call(mbed::callback(obj, method), a0, a1); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(T *obj, R (T::*method)(A0, A1, A2), A0 a0, A1 a1, A2 a2) { + return call(mbed::callback(obj, method), a0, a1, a2); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(const T *obj, R (T::*method)(A0, A1, A2) const, A0 a0, A1 a1, A2 a2) { + return call(mbed::callback(obj, method), a0, a1, a2); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(volatile T *obj, R (T::*method)(A0, A1, A2) volatile, A0 a0, A1 a1, A2 a2) { + return call(mbed::callback(obj, method), a0, a1, a2); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(const volatile T *obj, R (T::*method)(A0, A1, A2) const volatile, A0 a0, A1 a1, A2 a2) { + return call(mbed::callback(obj, method), a0, a1, a2); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(T *obj, R (T::*method)(A0, A1, A2, A3), A0 a0, A1 a1, A2 a2, A3 a3) { + return call(mbed::callback(obj, method), a0, a1, a2, a3); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(const T *obj, R (T::*method)(A0, A1, A2, A3) const, A0 a0, A1 a1, A2 a2, A3 a3) { + return call(mbed::callback(obj, method), a0, a1, a2, a3); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(volatile T *obj, R (T::*method)(A0, A1, A2, A3) volatile, A0 a0, A1 a1, A2 a2, A3 a3) { + return call(mbed::callback(obj, method), a0, a1, a2, a3); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(const volatile T *obj, R (T::*method)(A0, A1, A2, A3) const volatile, A0 a0, A1 a1, A2 a2, A3 a3) { + return call(mbed::callback(obj, method), a0, a1, a2, a3); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(T *obj, R (T::*method)(A0, A1, A2, A3, A4), A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + return call(mbed::callback(obj, method), a0, a1, a2, a3, a4); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(const T *obj, R (T::*method)(A0, A1, A2, A3, A4) const, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + return call(mbed::callback(obj, method), a0, a1, a2, a3, a4); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(volatile T *obj, R (T::*method)(A0, A1, A2, A3, A4) volatile, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + return call(mbed::callback(obj, method), a0, a1, a2, a3, a4); + } + + /** Calls an event on the queue + * @see EventQueue::call + */ + template + int call(const volatile T *obj, R (T::*method)(A0, A1, A2, A3, A4) const volatile, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + return call(mbed::callback(obj, method), a0, a1, a2, a3, a4); + } + + /** Calls an event on the queue after a specified delay + * + * The specified callback will be executed in the context of the event + * queue's dispatch loop. + * + * The call_in function is irq safe and can act as a mechanism for moving + * events out of irq contexts. + * + * @param f Function to execute in the context of the dispatch loop + * @param a0..a4 Arguments to pass to the callback + * @param ms Time to delay in milliseconds + * @return A unique id that represents the posted event and can + * be passed to cancel, or an id of 0 if there is not + * enough memory to allocate the event. + */ + template + int call_in(int ms, F f) { + struct local { + static void call(void *p) { (*static_cast(p))(); } + static void dtor(void *p) { static_cast(p)->~F(); } + }; + + void *p = equeue_alloc(&_equeue, sizeof(F)); + if (!p) { + return 0; + } + + F *e = new (p) F(f); + equeue_event_delay(e, ms); + equeue_event_dtor(e, &local::dtor); + return equeue_post(&_equeue, &local::call, e); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, F f, A0 a0) { + return call_in(ms, context10(f, a0)); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, F f, A0 a0, A1 a1) { + return call_in(ms, context20(f, a0, a1)); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, F f, A0 a0, A1 a1, A2 a2) { + return call_in(ms, context30(f, a0, a1, a2)); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, F f, A0 a0, A1 a1, A2 a2, A3 a3) { + return call_in(ms, context40(f, a0, a1, a2, a3)); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, F f, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + return call_in(ms, context50(f, a0, a1, a2, a3, a4)); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, T *obj, R (T::*method)()) { + return call_in(ms, mbed::callback(obj, method)); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, const T *obj, R (T::*method)() const) { + return call_in(ms, mbed::callback(obj, method)); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, volatile T *obj, R (T::*method)() volatile) { + return call_in(ms, mbed::callback(obj, method)); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, const volatile T *obj, R (T::*method)() const volatile) { + return call_in(ms, mbed::callback(obj, method)); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, T *obj, R (T::*method)(A0), A0 a0) { + return call_in(ms, mbed::callback(obj, method), a0); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, const T *obj, R (T::*method)(A0) const, A0 a0) { + return call_in(ms, mbed::callback(obj, method), a0); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, volatile T *obj, R (T::*method)(A0) volatile, A0 a0) { + return call_in(ms, mbed::callback(obj, method), a0); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, const volatile T *obj, R (T::*method)(A0) const volatile, A0 a0) { + return call_in(ms, mbed::callback(obj, method), a0); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, T *obj, R (T::*method)(A0, A1), A0 a0, A1 a1) { + return call_in(ms, mbed::callback(obj, method), a0, a1); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, const T *obj, R (T::*method)(A0, A1) const, A0 a0, A1 a1) { + return call_in(ms, mbed::callback(obj, method), a0, a1); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, volatile T *obj, R (T::*method)(A0, A1) volatile, A0 a0, A1 a1) { + return call_in(ms, mbed::callback(obj, method), a0, a1); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, const volatile T *obj, R (T::*method)(A0, A1) const volatile, A0 a0, A1 a1) { + return call_in(ms, mbed::callback(obj, method), a0, a1); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, T *obj, R (T::*method)(A0, A1, A2), A0 a0, A1 a1, A2 a2) { + return call_in(ms, mbed::callback(obj, method), a0, a1, a2); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, const T *obj, R (T::*method)(A0, A1, A2) const, A0 a0, A1 a1, A2 a2) { + return call_in(ms, mbed::callback(obj, method), a0, a1, a2); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, volatile T *obj, R (T::*method)(A0, A1, A2) volatile, A0 a0, A1 a1, A2 a2) { + return call_in(ms, mbed::callback(obj, method), a0, a1, a2); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, const volatile T *obj, R (T::*method)(A0, A1, A2) const volatile, A0 a0, A1 a1, A2 a2) { + return call_in(ms, mbed::callback(obj, method), a0, a1, a2); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, T *obj, R (T::*method)(A0, A1, A2, A3), A0 a0, A1 a1, A2 a2, A3 a3) { + return call_in(ms, mbed::callback(obj, method), a0, a1, a2, a3); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, const T *obj, R (T::*method)(A0, A1, A2, A3) const, A0 a0, A1 a1, A2 a2, A3 a3) { + return call_in(ms, mbed::callback(obj, method), a0, a1, a2, a3); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, volatile T *obj, R (T::*method)(A0, A1, A2, A3) volatile, A0 a0, A1 a1, A2 a2, A3 a3) { + return call_in(ms, mbed::callback(obj, method), a0, a1, a2, a3); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, const volatile T *obj, R (T::*method)(A0, A1, A2, A3) const volatile, A0 a0, A1 a1, A2 a2, A3 a3) { + return call_in(ms, mbed::callback(obj, method), a0, a1, a2, a3); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, T *obj, R (T::*method)(A0, A1, A2, A3, A4), A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + return call_in(ms, mbed::callback(obj, method), a0, a1, a2, a3, a4); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, const T *obj, R (T::*method)(A0, A1, A2, A3, A4) const, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + return call_in(ms, mbed::callback(obj, method), a0, a1, a2, a3, a4); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, volatile T *obj, R (T::*method)(A0, A1, A2, A3, A4) volatile, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + return call_in(ms, mbed::callback(obj, method), a0, a1, a2, a3, a4); + } + + /** Calls an event on the queue after a specified delay + * @see EventQueue::call_in + */ + template + int call_in(int ms, const volatile T *obj, R (T::*method)(A0, A1, A2, A3, A4) const volatile, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + return call_in(ms, mbed::callback(obj, method), a0, a1, a2, a3, a4); + } + + /** Calls an event on the queue periodically + * + * The specified callback will be executed in the context of the event + * queue's dispatch loop. + * + * The call_every function is irq safe and can act as a mechanism for + * moving events out of irq contexts. + * + * @param f Function to execute in the context of the dispatch loop + * @param a0..a4 Arguments to pass to the callback + * @param ms Period of the event in milliseconds + * @return A unique id that represents the posted event and can + * be passed to cancel, or an id of 0 if there is not + * enough memory to allocate the event. + */ + template + int call_every(int ms, F f) { + struct local { + static void call(void *p) { (*static_cast(p))(); } + static void dtor(void *p) { static_cast(p)->~F(); } + }; + + void *p = equeue_alloc(&_equeue, sizeof(F)); + if (!p) { + return 0; + } + + F *e = new (p) F(f); + equeue_event_delay(e, ms); + equeue_event_period(e, ms); + equeue_event_dtor(e, &local::dtor); + return equeue_post(&_equeue, &local::call, e); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, F f, A0 a0) { + return call_every(ms, context10(f, a0)); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, F f, A0 a0, A1 a1) { + return call_every(ms, context20(f, a0, a1)); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, F f, A0 a0, A1 a1, A2 a2) { + return call_every(ms, context30(f, a0, a1, a2)); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, F f, A0 a0, A1 a1, A2 a2, A3 a3) { + return call_every(ms, context40(f, a0, a1, a2, a3)); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, F f, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + return call_every(ms, context50(f, a0, a1, a2, a3, a4)); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, T *obj, R (T::*method)()) { + return call_every(ms, mbed::callback(obj, method)); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, const T *obj, R (T::*method)() const) { + return call_every(ms, mbed::callback(obj, method)); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, volatile T *obj, R (T::*method)() volatile) { + return call_every(ms, mbed::callback(obj, method)); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, const volatile T *obj, R (T::*method)() const volatile) { + return call_every(ms, mbed::callback(obj, method)); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, T *obj, R (T::*method)(A0), A0 a0) { + return call_every(ms, mbed::callback(obj, method), a0); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, const T *obj, R (T::*method)(A0) const, A0 a0) { + return call_every(ms, mbed::callback(obj, method), a0); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, volatile T *obj, R (T::*method)(A0) volatile, A0 a0) { + return call_every(ms, mbed::callback(obj, method), a0); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, const volatile T *obj, R (T::*method)(A0) const volatile, A0 a0) { + return call_every(ms, mbed::callback(obj, method), a0); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, T *obj, R (T::*method)(A0, A1), A0 a0, A1 a1) { + return call_every(ms, mbed::callback(obj, method), a0, a1); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, const T *obj, R (T::*method)(A0, A1) const, A0 a0, A1 a1) { + return call_every(ms, mbed::callback(obj, method), a0, a1); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, volatile T *obj, R (T::*method)(A0, A1) volatile, A0 a0, A1 a1) { + return call_every(ms, mbed::callback(obj, method), a0, a1); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, const volatile T *obj, R (T::*method)(A0, A1) const volatile, A0 a0, A1 a1) { + return call_every(ms, mbed::callback(obj, method), a0, a1); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, T *obj, R (T::*method)(A0, A1, A2), A0 a0, A1 a1, A2 a2) { + return call_every(ms, mbed::callback(obj, method), a0, a1, a2); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, const T *obj, R (T::*method)(A0, A1, A2) const, A0 a0, A1 a1, A2 a2) { + return call_every(ms, mbed::callback(obj, method), a0, a1, a2); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, volatile T *obj, R (T::*method)(A0, A1, A2) volatile, A0 a0, A1 a1, A2 a2) { + return call_every(ms, mbed::callback(obj, method), a0, a1, a2); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, const volatile T *obj, R (T::*method)(A0, A1, A2) const volatile, A0 a0, A1 a1, A2 a2) { + return call_every(ms, mbed::callback(obj, method), a0, a1, a2); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, T *obj, R (T::*method)(A0, A1, A2, A3), A0 a0, A1 a1, A2 a2, A3 a3) { + return call_every(ms, mbed::callback(obj, method), a0, a1, a2, a3); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, const T *obj, R (T::*method)(A0, A1, A2, A3) const, A0 a0, A1 a1, A2 a2, A3 a3) { + return call_every(ms, mbed::callback(obj, method), a0, a1, a2, a3); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, volatile T *obj, R (T::*method)(A0, A1, A2, A3) volatile, A0 a0, A1 a1, A2 a2, A3 a3) { + return call_every(ms, mbed::callback(obj, method), a0, a1, a2, a3); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, const volatile T *obj, R (T::*method)(A0, A1, A2, A3) const volatile, A0 a0, A1 a1, A2 a2, A3 a3) { + return call_every(ms, mbed::callback(obj, method), a0, a1, a2, a3); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, T *obj, R (T::*method)(A0, A1, A2, A3, A4), A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + return call_every(ms, mbed::callback(obj, method), a0, a1, a2, a3, a4); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, const T *obj, R (T::*method)(A0, A1, A2, A3, A4) const, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + return call_every(ms, mbed::callback(obj, method), a0, a1, a2, a3, a4); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, volatile T *obj, R (T::*method)(A0, A1, A2, A3, A4) volatile, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + return call_every(ms, mbed::callback(obj, method), a0, a1, a2, a3, a4); + } + + /** Calls an event on the queue periodically + * @see EventQueue::call_every + */ + template + int call_every(int ms, const volatile T *obj, R (T::*method)(A0, A1, A2, A3, A4) const volatile, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + return call_every(ms, mbed::callback(obj, method), a0, a1, a2, a3, a4); + } + + /** Creates an event bound to the event queue + * + * Constructs an event bound to the specified event queue. The specified + * callback acts as the target for the event and is executed in the + * context of the event queue's dispatch loop once posted. + * + * @param f Function to execute when the event is dispatched + * @param a0..a4 Arguments to pass to the callback + * @return Event that will dispatch on the specific queue + */ + template + Event event(R (*func)()); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)()); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)() const); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)() volatile); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)() const volatile); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0), C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0), C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0) const, C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0) volatile, C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0) const volatile, C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, B1), C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, B1), C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, B1) const, C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, B1) volatile, C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, B1) const volatile, C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, B1, B2), C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, B1, B2), C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, B1, B2) const, C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, B1, B2) volatile, C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, B1, B2) const volatile, C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, B1, B2, B3), C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, B1, B2, B3), C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, B1, B2, B3) const, C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, B1, B2, B3) volatile, C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3) const volatile, C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, B1, B2, B3, B4), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, B1, B2, B3, B4), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, B1, B2, B3, B4) const, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4) volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4) const volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(A0)); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(A0)); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(A0) const); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(A0) volatile); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(A0) const volatile); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, A0), C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, A0), C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, A0) const, C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, A0) volatile, C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, A0) const volatile, C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, B1, A0), C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, B1, A0), C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, B1, A0) const, C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, B1, A0) volatile, C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, B1, A0) const volatile, C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, B1, B2, A0), C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, B1, B2, A0), C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, B1, B2, A0) const, C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, B1, B2, A0) volatile, C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, B1, B2, A0) const volatile, C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, B1, B2, B3, A0), C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, B1, B2, B3, A0), C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, B1, B2, B3, A0) const, C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0) volatile, C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0) const volatile, C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, B1, B2, B3, B4, A0), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0) const, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0) volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0) const volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(A0, A1)); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(A0, A1)); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(A0, A1) const); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(A0, A1) volatile); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(A0, A1) const volatile); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, A0, A1), C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, A0, A1), C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, A0, A1) const, C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, A0, A1) volatile, C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, A0, A1) const volatile, C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, B1, A0, A1), C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, B1, A0, A1), C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, B1, A0, A1) const, C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, B1, A0, A1) volatile, C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, B1, A0, A1) const volatile, C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, B1, B2, A0, A1), C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, B1, B2, A0, A1), C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, B1, B2, A0, A1) const, C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1) volatile, C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1) const volatile, C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, B1, B2, B3, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1) const, C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1) volatile, C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1) const volatile, C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, B1, B2, B3, B4, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1) const, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1) volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1) const volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(A0, A1, A2)); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(A0, A1, A2)); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(A0, A1, A2) const); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(A0, A1, A2) volatile); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(A0, A1, A2) const volatile); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, A0, A1, A2), C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, A0, A1, A2), C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, A0, A1, A2) const, C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, A0, A1, A2) volatile, C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, A0, A1, A2) const volatile, C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, B1, A0, A1, A2), C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, B1, A0, A1, A2), C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, B1, A0, A1, A2) const, C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2) volatile, C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2) const volatile, C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, B1, B2, A0, A1, A2), C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2), C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2) const, C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2) volatile, C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2) const volatile, C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, B1, B2, B3, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2) const, C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2) volatile, C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2) const volatile, C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, B1, B2, B3, B4, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2) const, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2) volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2) const volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(A0, A1, A2, A3)); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(A0, A1, A2, A3)); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(A0, A1, A2, A3) const); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(A0, A1, A2, A3) volatile); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(A0, A1, A2, A3) const volatile); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, A0, A1, A2, A3), C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, A0, A1, A2, A3), C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, A0, A1, A2, A3) const, C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3) volatile, C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3) const volatile, C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, B1, A0, A1, A2, A3), C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3), C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3) const, C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3) volatile, C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3) const volatile, C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, B1, B2, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3) const, C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3) volatile, C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3) const volatile, C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, B1, B2, B3, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3) const, C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3) volatile, C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3) const volatile, C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, B1, B2, B3, B4, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3) const, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3) volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3) const volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(A0, A1, A2, A3, A4)); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(A0, A1, A2, A3, A4)); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(A0, A1, A2, A3, A4) const); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(A0, A1, A2, A3, A4) volatile); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(A0, A1, A2, A3, A4) const volatile); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, A0, A1, A2, A3, A4), C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4), C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4) const, C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4) volatile, C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, A0, A1, A2, A3, A4) const volatile, C0 c0); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, B1, A0, A1, A2, A3, A4), C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4), C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4) const, C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4) volatile, C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, B1, A0, A1, A2, A3, A4) const volatile, C0 c0, C1 c1); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, B1, B2, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) const, C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) volatile, C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, B1, B2, A0, A1, A2, A3, A4) const volatile, C0 c0, C1 c1, C2 c2); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, B1, B2, B3, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4) const, C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4) volatile, C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, A0, A1, A2, A3, A4) const volatile, C0 c0, C1 c1, C2 c2, C3 c3); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(R (*func)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4), C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4) const, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4) volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + + /** Creates an event bound to the event queue + * @see EventQueue::event + */ + template + Event event(const volatile T *obj, R (T::*method)(B0, B1, B2, B3, B4, A0, A1, A2, A3, A4) const volatile, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4); + +protected: + template + friend class Event; + struct equeue _equeue; + mbed::Callback _update; + + template + struct context00 { + F f; + + context00(F f) + : f(f) {} + + void operator()() { + f(); + } + }; + + template + struct context10 { + F f; C0 c0; + + context10(F f, C0 c0) + : f(f), c0(c0) {} + + void operator()() { + f(c0); + } + }; + + template + struct context20 { + F f; C0 c0; C1 c1; + + context20(F f, C0 c0, C1 c1) + : f(f), c0(c0), c1(c1) {} + + void operator()() { + f(c0, c1); + } + }; + + template + struct context30 { + F f; C0 c0; C1 c1; C2 c2; + + context30(F f, C0 c0, C1 c1, C2 c2) + : f(f), c0(c0), c1(c1), c2(c2) {} + + void operator()() { + f(c0, c1, c2); + } + }; + + template + struct context40 { + F f; C0 c0; C1 c1; C2 c2; C3 c3; + + context40(F f, C0 c0, C1 c1, C2 c2, C3 c3) + : f(f), c0(c0), c1(c1), c2(c2), c3(c3) {} + + void operator()() { + f(c0, c1, c2, c3); + } + }; + + template + struct context50 { + F f; C0 c0; C1 c1; C2 c2; C3 c3; C4 c4; + + context50(F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) + : f(f), c0(c0), c1(c1), c2(c2), c3(c3), c4(c4) {} + + void operator()() { + f(c0, c1, c2, c3, c4); + } + }; + + template + struct context01 { + F f; + + context01(F f) + : f(f) {} + + void operator()(A0 a0) { + f(a0); + } + }; + + template + struct context11 { + F f; C0 c0; + + context11(F f, C0 c0) + : f(f), c0(c0) {} + + void operator()(A0 a0) { + f(c0, a0); + } + }; + + template + struct context21 { + F f; C0 c0; C1 c1; + + context21(F f, C0 c0, C1 c1) + : f(f), c0(c0), c1(c1) {} + + void operator()(A0 a0) { + f(c0, c1, a0); + } + }; + + template + struct context31 { + F f; C0 c0; C1 c1; C2 c2; + + context31(F f, C0 c0, C1 c1, C2 c2) + : f(f), c0(c0), c1(c1), c2(c2) {} + + void operator()(A0 a0) { + f(c0, c1, c2, a0); + } + }; + + template + struct context41 { + F f; C0 c0; C1 c1; C2 c2; C3 c3; + + context41(F f, C0 c0, C1 c1, C2 c2, C3 c3) + : f(f), c0(c0), c1(c1), c2(c2), c3(c3) {} + + void operator()(A0 a0) { + f(c0, c1, c2, c3, a0); + } + }; + + template + struct context51 { + F f; C0 c0; C1 c1; C2 c2; C3 c3; C4 c4; + + context51(F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) + : f(f), c0(c0), c1(c1), c2(c2), c3(c3), c4(c4) {} + + void operator()(A0 a0) { + f(c0, c1, c2, c3, c4, a0); + } + }; + + template + struct context02 { + F f; + + context02(F f) + : f(f) {} + + void operator()(A0 a0, A1 a1) { + f(a0, a1); + } + }; + + template + struct context12 { + F f; C0 c0; + + context12(F f, C0 c0) + : f(f), c0(c0) {} + + void operator()(A0 a0, A1 a1) { + f(c0, a0, a1); + } + }; + + template + struct context22 { + F f; C0 c0; C1 c1; + + context22(F f, C0 c0, C1 c1) + : f(f), c0(c0), c1(c1) {} + + void operator()(A0 a0, A1 a1) { + f(c0, c1, a0, a1); + } + }; + + template + struct context32 { + F f; C0 c0; C1 c1; C2 c2; + + context32(F f, C0 c0, C1 c1, C2 c2) + : f(f), c0(c0), c1(c1), c2(c2) {} + + void operator()(A0 a0, A1 a1) { + f(c0, c1, c2, a0, a1); + } + }; + + template + struct context42 { + F f; C0 c0; C1 c1; C2 c2; C3 c3; + + context42(F f, C0 c0, C1 c1, C2 c2, C3 c3) + : f(f), c0(c0), c1(c1), c2(c2), c3(c3) {} + + void operator()(A0 a0, A1 a1) { + f(c0, c1, c2, c3, a0, a1); + } + }; + + template + struct context52 { + F f; C0 c0; C1 c1; C2 c2; C3 c3; C4 c4; + + context52(F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) + : f(f), c0(c0), c1(c1), c2(c2), c3(c3), c4(c4) {} + + void operator()(A0 a0, A1 a1) { + f(c0, c1, c2, c3, c4, a0, a1); + } + }; + + template + struct context03 { + F f; + + context03(F f) + : f(f) {} + + void operator()(A0 a0, A1 a1, A2 a2) { + f(a0, a1, a2); + } + }; + + template + struct context13 { + F f; C0 c0; + + context13(F f, C0 c0) + : f(f), c0(c0) {} + + void operator()(A0 a0, A1 a1, A2 a2) { + f(c0, a0, a1, a2); + } + }; + + template + struct context23 { + F f; C0 c0; C1 c1; + + context23(F f, C0 c0, C1 c1) + : f(f), c0(c0), c1(c1) {} + + void operator()(A0 a0, A1 a1, A2 a2) { + f(c0, c1, a0, a1, a2); + } + }; + + template + struct context33 { + F f; C0 c0; C1 c1; C2 c2; + + context33(F f, C0 c0, C1 c1, C2 c2) + : f(f), c0(c0), c1(c1), c2(c2) {} + + void operator()(A0 a0, A1 a1, A2 a2) { + f(c0, c1, c2, a0, a1, a2); + } + }; + + template + struct context43 { + F f; C0 c0; C1 c1; C2 c2; C3 c3; + + context43(F f, C0 c0, C1 c1, C2 c2, C3 c3) + : f(f), c0(c0), c1(c1), c2(c2), c3(c3) {} + + void operator()(A0 a0, A1 a1, A2 a2) { + f(c0, c1, c2, c3, a0, a1, a2); + } + }; + + template + struct context53 { + F f; C0 c0; C1 c1; C2 c2; C3 c3; C4 c4; + + context53(F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) + : f(f), c0(c0), c1(c1), c2(c2), c3(c3), c4(c4) {} + + void operator()(A0 a0, A1 a1, A2 a2) { + f(c0, c1, c2, c3, c4, a0, a1, a2); + } + }; + + template + struct context04 { + F f; + + context04(F f) + : f(f) {} + + void operator()(A0 a0, A1 a1, A2 a2, A3 a3) { + f(a0, a1, a2, a3); + } + }; + + template + struct context14 { + F f; C0 c0; + + context14(F f, C0 c0) + : f(f), c0(c0) {} + + void operator()(A0 a0, A1 a1, A2 a2, A3 a3) { + f(c0, a0, a1, a2, a3); + } + }; + + template + struct context24 { + F f; C0 c0; C1 c1; + + context24(F f, C0 c0, C1 c1) + : f(f), c0(c0), c1(c1) {} + + void operator()(A0 a0, A1 a1, A2 a2, A3 a3) { + f(c0, c1, a0, a1, a2, a3); + } + }; + + template + struct context34 { + F f; C0 c0; C1 c1; C2 c2; + + context34(F f, C0 c0, C1 c1, C2 c2) + : f(f), c0(c0), c1(c1), c2(c2) {} + + void operator()(A0 a0, A1 a1, A2 a2, A3 a3) { + f(c0, c1, c2, a0, a1, a2, a3); + } + }; + + template + struct context44 { + F f; C0 c0; C1 c1; C2 c2; C3 c3; + + context44(F f, C0 c0, C1 c1, C2 c2, C3 c3) + : f(f), c0(c0), c1(c1), c2(c2), c3(c3) {} + + void operator()(A0 a0, A1 a1, A2 a2, A3 a3) { + f(c0, c1, c2, c3, a0, a1, a2, a3); + } + }; + + template + struct context54 { + F f; C0 c0; C1 c1; C2 c2; C3 c3; C4 c4; + + context54(F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) + : f(f), c0(c0), c1(c1), c2(c2), c3(c3), c4(c4) {} + + void operator()(A0 a0, A1 a1, A2 a2, A3 a3) { + f(c0, c1, c2, c3, c4, a0, a1, a2, a3); + } + }; + + template + struct context05 { + F f; + + context05(F f) + : f(f) {} + + void operator()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + f(a0, a1, a2, a3, a4); + } + }; + + template + struct context15 { + F f; C0 c0; + + context15(F f, C0 c0) + : f(f), c0(c0) {} + + void operator()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + f(c0, a0, a1, a2, a3, a4); + } + }; + + template + struct context25 { + F f; C0 c0; C1 c1; + + context25(F f, C0 c0, C1 c1) + : f(f), c0(c0), c1(c1) {} + + void operator()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + f(c0, c1, a0, a1, a2, a3, a4); + } + }; + + template + struct context35 { + F f; C0 c0; C1 c1; C2 c2; + + context35(F f, C0 c0, C1 c1, C2 c2) + : f(f), c0(c0), c1(c1), c2(c2) {} + + void operator()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + f(c0, c1, c2, a0, a1, a2, a3, a4); + } + }; + + template + struct context45 { + F f; C0 c0; C1 c1; C2 c2; C3 c3; + + context45(F f, C0 c0, C1 c1, C2 c2, C3 c3) + : f(f), c0(c0), c1(c1), c2(c2), c3(c3) {} + + void operator()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + f(c0, c1, c2, c3, a0, a1, a2, a3, a4); + } + }; + + template + struct context55 { + F f; C0 c0; C1 c1; C2 c2; C3 c3; C4 c4; + + context55(F f, C0 c0, C1 c1, C2 c2, C3 c3, C4 c4) + : f(f), c0(c0), c1(c1), c2(c2), c3(c3), c4(c4) {} + + void operator()(A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + f(c0, c1, c2, c3, c4, a0, a1, a2, a3, a4); + } + }; +}; + +} + +#endif diff --git a/events/LICENSE b/events/LICENSE new file mode 100644 index 0000000000..59cd3f8a32 --- /dev/null +++ b/events/LICENSE @@ -0,0 +1,165 @@ +Apache License +Version 2.0, January 2004 +http://www.apache.org/licenses/ + +TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + +1. Definitions. + +"License" shall mean the terms and conditions for use, reproduction, and +distribution as defined by Sections 1 through 9 of this document. + +"Licensor" shall mean the copyright owner or entity authorized by the copyright +owner that is granting the License. + +"Legal Entity" shall mean the union of the acting entity and all other entities +that control, are controlled by, or are under common control with that entity. +For the purposes of this definition, "control" means (i) the power, direct or +indirect, to cause the direction or management of such entity, whether by +contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the +outstanding shares, or (iii) beneficial ownership of such entity. + +"You" (or "Your") shall mean an individual or Legal Entity exercising +permissions granted by this License. + +"Source" form shall mean the preferred form for making modifications, including +but not limited to software source code, documentation source, and configuration +files. + +"Object" form shall mean any form resulting from mechanical transformation or +translation of a Source form, including but not limited to compiled object code, +generated documentation, and conversions to other media types. + +"Work" shall mean the work of authorship, whether in Source or Object form, made +available under the License, as indicated by a copyright notice that is included +in or attached to the work (an example is provided in the Appendix below). + +"Derivative Works" shall mean any work, whether in Source or Object form, that +is based on (or derived from) the Work and for which the editorial revisions, +annotations, elaborations, or other modifications represent, as a whole, an +original work of authorship. For the purposes of this License, Derivative Works +shall not include works that remain separable from, or merely link (or bind by +name) to the interfaces of, the Work and Derivative Works thereof. + +"Contribution" shall mean any work of authorship, including the original version +of the Work and any modifications or additions to that Work or Derivative Works +thereof, that is intentionally submitted to Licensor for inclusion in the Work +by the copyright owner or by an individual or Legal Entity authorized to submit +on behalf of the copyright owner. For the purposes of this definition, +"submitted" means any form of electronic, verbal, or written communication sent +to the Licensor or its representatives, including but not limited to +communication on electronic mailing lists, source code control systems, and +issue tracking systems that are managed by, or on behalf of, the Licensor for +the purpose of discussing and improving the Work, but excluding communication +that is conspicuously marked or otherwise designated in writing by the copyright +owner as "Not a Contribution." + +"Contributor" shall mean Licensor and any individual or Legal Entity on behalf +of whom a Contribution has been received by Licensor and subsequently +incorporated within the Work. + +2. Grant of Copyright License. + +Subject to the terms and conditions of this License, each Contributor hereby +grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, +irrevocable copyright license to reproduce, prepare Derivative Works of, +publicly display, publicly perform, sublicense, and distribute the Work and such +Derivative Works in Source or Object form. + +3. Grant of Patent License. + +Subject to the terms and conditions of this License, each Contributor hereby +grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, +irrevocable (except as stated in this section) patent license to make, have +made, use, offer to sell, sell, import, and otherwise transfer the Work, where +such license applies only to those patent claims licensable by such Contributor +that are necessarily infringed by their Contribution(s) alone or by combination +of their Contribution(s) with the Work to which such Contribution(s) was +submitted. If You institute patent litigation against any entity (including a +cross-claim or counterclaim in a lawsuit) alleging that the Work or a +Contribution incorporated within the Work constitutes direct or contributory +patent infringement, then any patent licenses granted to You under this License +for that Work shall terminate as of the date such litigation is filed. + +4. Redistribution. + +You may reproduce and distribute copies of the Work or Derivative Works thereof +in any medium, with or without modifications, and in Source or Object form, +provided that You meet the following conditions: + +You must give any other recipients of the Work or Derivative Works a copy of +this License; and +You must cause any modified files to carry prominent notices stating that You +changed the files; and +You must retain, in the Source form of any Derivative Works that You distribute, +all copyright, patent, trademark, and attribution notices from the Source form +of the Work, excluding those notices that do not pertain to any part of the +Derivative Works; and +If the Work includes a "NOTICE" text file as part of its distribution, then any +Derivative Works that You distribute must include a readable copy of the +attribution notices contained within such NOTICE file, excluding those notices +that do not pertain to any part of the Derivative Works, in at least one of the +following places: within a NOTICE text file distributed as part of the +Derivative Works; within the Source form or documentation, if provided along +with the Derivative Works; or, within a display generated by the Derivative +Works, if and wherever such third-party notices normally appear. The contents of +the NOTICE file are for informational purposes only and do not modify the +License. You may add Your own attribution notices within Derivative Works that +You distribute, alongside or as an addendum to the NOTICE text from the Work, +provided that such additional attribution notices cannot be construed as +modifying the License. +You may add Your own copyright statement to Your modifications and may provide +additional or different license terms and conditions for use, reproduction, or +distribution of Your modifications, or for any such Derivative Works as a whole, +provided Your use, reproduction, and distribution of the Work otherwise complies +with the conditions stated in this License. + +5. Submission of Contributions. + +Unless You explicitly state otherwise, any Contribution intentionally submitted +for inclusion in the Work by You to the Licensor shall be under the terms and +conditions of this License, without any additional terms or conditions. +Notwithstanding the above, nothing herein shall supersede or modify the terms of +any separate license agreement you may have executed with Licensor regarding +such Contributions. + +6. Trademarks. + +This License does not grant permission to use the trade names, trademarks, +service marks, or product names of the Licensor, except as required for +reasonable and customary use in describing the origin of the Work and +reproducing the content of the NOTICE file. + +7. Disclaimer of Warranty. + +Unless required by applicable law or agreed to in writing, Licensor provides the +Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, +including, without limitation, any warranties or conditions of TITLE, +NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are +solely responsible for determining the appropriateness of using or +redistributing the Work and assume any risks associated with Your exercise of +permissions under this License. + +8. Limitation of Liability. + +In no event and under no legal theory, whether in tort (including negligence), +contract, or otherwise, unless required by applicable law (such as deliberate +and grossly negligent acts) or agreed to in writing, shall any Contributor be +liable to You for damages, including any direct, indirect, special, incidental, +or consequential damages of any character arising as a result of this License or +out of the use or inability to use the Work (including but not limited to +damages for loss of goodwill, work stoppage, computer failure or malfunction, or +any and all other commercial damages or losses), even if such Contributor has +been advised of the possibility of such damages. + +9. Accepting Warranty or Additional Liability. + +While redistributing the Work or Derivative Works thereof, You may choose to +offer, and charge a fee for, acceptance of support, warranty, indemnity, or +other liability obligations and/or rights consistent with this License. However, +in accepting such obligations, You may act only on Your own behalf and on Your +sole responsibility, not on behalf of any other Contributor, and only if You +agree to indemnify, defend, and hold each Contributor harmless for any liability +incurred by, or claims asserted against, such Contributor by reason of your +accepting any such warranty or additional liability. diff --git a/events/README.md b/events/README.md new file mode 100644 index 0000000000..9e0263ce37 --- /dev/null +++ b/events/README.md @@ -0,0 +1,153 @@ +## The mbed-events library ## + +The mbed-events library provides a flexible queue for scheduling events. + +``` cpp +#include "mbed_events.h" +#include + +int main() { + // creates a queue with the default size + EventQueue queue; + + // events are simple callbacks + queue.call(printf, "called immediately\n"); + queue.call_in(2000, printf, "called in 2 seconds\n"); + queue.call_every(1000, printf, "called every 1 seconds\n"); + + // events are executed by the dispatch method + queue.dispatch(); +} +``` + +The mbed-events library can be used as a normal event loop, or it can be +backgrounded on a single hardware timer or even another event loop. It is +both thread and irq safe, and provides functions for easily composing +independent event queues. + +The mbed-events library can act as a drop-in scheduler, provide synchronization +between multiple threads, or just act as a mechanism for moving events out of +interrupt contexts. + +### Usage ### + +The core of the mbed-events library is the [EventQueue](EventQueue.h) class, +which represents a single event queue. The `EventQueue::dispatch` function +runs the queue, providing the context for executing events. + +``` cpp +// Creates an event queue enough buffer space for 32 Callbacks. This +// is the default if no argument was provided. Alternatively the size +// can just be specified in bytes. +EventQueue queue(32*EVENTS_EVENT_SIZE); + +// Events can be posted to the underlying event queue with dynamic +// context allocated from the specified buffer +queue.call(printf, "hello %d %d %d %d\n", 1, 2, 3, 4); +queue.call(&serial, &Serial::printf, "hi\n"); + +// The dispatch function provides the context for the running the queue +// and can take a millisecond timeout to run for a fixed time or to just +// dispatch any pending events +queue.dispatch(); +``` + +The EventQueue class provides several call functions for posting events +to the underlying event queue. The call functions are thread and irq safe, +don't need the underlying loop to be running, and provide an easy mechanism +for moving events out of interrupt contexts. + +``` cpp +// Simple call function registers events to be called as soon as possible +queue.call(doit); +queue.call(printf, "called immediately\n"); + +// The call_in function registers events to be called after a delay +// specified in milliseconds +queue.call_in(2000, doit_in_two_seconds); +queue.call_in(300, printf, "called in 0.3 seconds\n"); + +// The call_every function registers events to be called repeatedly +// with a period specified in milliseconds +queue.call_every(2000, doit_every_two_seconds); +queue.call_every(400, printf, "called every 0.4 seconds\n"); +``` + +The call functions return an id that uniquely represents the event in the +the event queue. This id can be passed to `EventQueue::cancel` to cancel +an in-flight event. + +``` cpp +// The event id uniquely represents the event in the queue +int id = queue.call_in(100, printf, "will this work?\n"); + +// If there was not enough memory necessary to allocate the event, +// an id of 0 is returned from the call functions +if (id) { + error("oh no!"); +} + +// Events can be cancelled as long as they have not been dispatched. If the +// event has already expired, cancel has no side-effects. +queue.cancel(id); +``` + +For a more fine-grain control of event dispatch, the `Event` class can be +manually instantiated and configured. An `Event` represents an event as +a C++ style function object and can be directly passed to other APIs that +expect a callback. + +``` cpp +// Creates an event bound to the specified event queue +EventQueue queue; +Event event(&queue, doit); + +// The event can be manually configured for special timing requirements +// specified in milliseconds +event.delay(10); +event.period(10000); + +// Posted events are dispatched in the context of the queue's +// dispatch function +queue.dispatch(); + +// Events can also pass arguments to the underlying callback when both +// initially constructed and posted. +Event event(&queue, printf, "recieved %d and %d\n"); + +// Events can be posted multiple times and enqueue gracefully until +// the dispatch function is called. +event.post(1, 2); +event.post(3, 4); +event.post(5, 6); + +queue.dispatch(); +``` + +Event queues easily align with module boundaries, where internal state can +be implicitly synchronized through event dispatch. Multiple modules can +use independent event queues, but still be composed through the +`EventQueue::chain` function. + +``` cpp +// Create some event queues with pending events +EventQueue a; +a.call(printf, "hello from a!\n"); + +EventQueue b; +b.call(printf, "hello from b!\n"); + +EventQueue c; +c.call(printf, "hello from c!\n"); + +// Chain c and b onto a's event queue. Both c and b will be dispatched +// in the context of a's dispatch function. +c.chain(&a); +b.chain(&a); + +// Dispatching a will in turn dispatch b and c, printing hello from +// all three queues +a.dispatch(); +``` + + diff --git a/events/equeue/.mbedignore b/events/equeue/.mbedignore new file mode 100644 index 0000000000..e7e1fb04f4 --- /dev/null +++ b/events/equeue/.mbedignore @@ -0,0 +1 @@ +tests/* diff --git a/events/equeue/Makefile b/events/equeue/Makefile new file mode 100644 index 0000000000..183f71c8e7 --- /dev/null +++ b/events/equeue/Makefile @@ -0,0 +1,60 @@ +TARGET = libequeue.a + +CC = gcc +AR = ar +SIZE = size + +SRC += $(wildcard *.c) +OBJ := $(SRC:.c=.o) +DEP := $(SRC:.c=.d) +ASM := $(SRC:.c=.s) + +ifdef DEBUG +CFLAGS += -O0 -g3 +else +CFLAGS += -O2 +endif +ifdef WORD +CFLAGS += -m$(WORD) +endif +CFLAGS += -I. +CFLAGS += -std=c99 +CFLAGS += -Wall +CFLAGS += -D_XOPEN_SOURCE=600 + +LFLAGS += -pthread + + +all: $(TARGET) + +test: tests/tests.o $(OBJ) + $(CC) $(CFLAGS) $^ $(LFLAGS) -o tests/tests + tests/tests + +prof: tests/prof.o $(OBJ) + $(CC) $(CFLAGS) $^ $(LFLAGS) -o tests/prof + tests/prof + +asm: $(ASM) + +size: $(OBJ) + $(SIZE) -t $^ + +-include $(DEP) + +%.a: $(OBJ) + $(AR) rcs $@ $^ + +%.o: %.c + $(CC) -c -MMD $(CFLAGS) $< -o $@ + +%.s: %.c + $(CC) -S $(CFLAGS) $< -o $@ + +clean: + rm -f $(TARGET) + rm -f tests/tests tests/tests.o tests/tests.d + rm -f tests/prof tests/prof.o tests/prof.d + rm -f $(OBJ) + rm -f $(DEP) + rm -f $(ASM) diff --git a/events/equeue/README.md b/events/equeue/README.md new file mode 100644 index 0000000000..10f500c56f --- /dev/null +++ b/events/equeue/README.md @@ -0,0 +1,210 @@ +## The equeue library ## + +The equeue library is designed as a simple but powerful library for scheduling +events on composable queues. + +``` c +#include "equeue.h" +#include + +int main() { + // creates a queue with space for 32 basic events + equeue_t queue; + equeue_create(&queue, 32*EQUEUE_EVENT_SIZE); + + // events can be simple callbacks + equeue_call(&queue, print, "called immediately"); + equeue_call_in(&queue, 2000, print, "called in 2 seconds"); + equeue_call_every(&queue, 1000, print, "called every 1 seconds"); + + // events are executed in equeue_dispatch + equeue_dispatch(&queue, 3000); + + print("called after 3 seconds"); + + equeue_destroy(&queue); +} +``` + +The equeue library can be used as a normal event loop, or it can be +backgrounded on a single hardware timer or even another event loop. It +is both thread and irq safe, and provides functions for easily composing +multiple queues. + +The equeue library can act as a drop-in scheduler, provide synchronization +between multiple threads, or just act as a mechanism for moving events +out of interrupt contexts. + +## Documentation ## + +The in-depth documentation on specific functions can be found in +[equeue.h](equeue.h). + +The core of the equeue library is the `equeue_t` type which represents a +single event queue, and the `equeue_dispatch` function which runs the equeue, +providing the context for executing events. + +On top of this, `equeue_call`, `equeue_call_in`, and `equeue_call_every` +provide easy methods for posting events to execute in the context of the +`equeue_dispatch` function. + +``` c +#include "equeue.h" +#include "game.h" + +equeue_t queue; +struct game game; + +// button_isr may be in interrupt context +void button_isr(void) { + equeue_call(&queue, game_button_update, &game); +} + +// a simple user-interface framework +int main() { + equeue_create(&queue, 4096); + game_create(&game); + + // call game_screen_udpate at 60 Hz + equeue_call_every(&queue, 1000/60, game_screen_update, &game); + + // dispatch forever + equeue_dispatch(&queue, -1); +} +``` + +In addition to simple callbacks, an event can be manually allocated with +`equeue_alloc` and posted with `equeue_post` to allow passing an arbitrary +amount of context to the execution of the event. This memory is allocated out +of the equeue's buffer, and dynamic memory can be completely avoided. + +The equeue allocator is designed to minimize jitter in interrupt contexts as +well as avoid memory fragmentation on small devices. The allocator achieves +both constant-runtime and zero-fragmentation for fixed-size events, however +grows linearly as the quantity of differently-sized allocations increases. + +``` c +#include "equeue.h" + +equeue_t queue; + +// arbitrary data can be moved to a different context +int enet_consume(void *buffer, int size) { + if (size > 512) { + size = 512; + } + + void *data = equeue_alloc(&queue, 512); + memcpy(data, buffer, size); + equeue_post(&queue, handle_data_elsewhere, data); + + return size; +} +``` + +Additionally, in-flight events can be cancelled with `equeue_cancel`. Events +are given unique ids on post, allowing safe cancellation of expired events. + +``` c +#include "equeue.h" + +equeue_t queue; +int sonar_value; +int sonar_timeout_id; + +void sonar_isr(int value) { + equeue_cancel(&queue, sonar_timeout_id); + sonar_value = value; +} + +void sonar_timeout(void *) { + sonar_value = -1; +} + +void sonar_read(void) { + sonar_timeout_id = equeue_call_in(&queue, 300, sonar_timeout, 0); + sonar_start(); +} +``` + +From an architectural standpoint, event queues easily align with module +boundaries, where internal state can be implicitly synchronized through +event dispatch. + +On platforms where multiple threads are unavailable, multiple modules +can use independent event queues and still be composed through the +`equeue_chain` function. + +``` c +#include "equeue.h" + +// run a simultaneous localization and mapping loop in one queue +struct slam { + equeue_t queue; +}; + +void slam_create(struct slam *s, equeue_t *target) { + equeue_create(&s->queue, 4096); + equeue_chain(&s->queue, target); + equeue_call_every(&s->queue, 100, slam_filter); +} + +// run a sonar with it's own queue +struct sonar { + equeue_t equeue; + struct slam *slam; +}; + +void sonar_create(struct sonar *s, equeue_t *target) { + equeue_create(&s->queue, 64); + equeue_chain(&s->queue, target); + equeue_call_in(&s->queue, 5, sonar_update, s); +} + +// all of the above queues can be combined into a single thread of execution +int main() { + equeue_t queue; + equeue_create(&queue, 1024); + + struct sonar s1, s2, s3; + sonar_create(&s1, &queue); + sonar_create(&s2, &queue); + sonar_create(&s3, &queue); + + struct slam slam; + slam_create(&slam, &queue); + + // dispatches events from all of the modules + equeue_dispatch(&queue, -1); +} +``` + +## Platform ## + +The equeue library has a minimal porting layer that is flexible depending +on the requirements of the underlying platform. Platform specific declarations +and more information can be found in [equeue_platform.h](equeue_platform.h). + +## Tests ## + +The equeue library uses a set of local tests based on the posix implementation. + +Runtime tests are located in [tests.c](tests/tests.c): + +``` bash +make test +``` + +Profiling tests based on rdtsc are located in [prof.c](tests/prof.c): + +``` bash +make prof +``` + +To make profiling results more tangible, the profiler also supports percentage +comparison with previous runs: +``` bash +make prof | tee results.txt +cat results.txt | make prof +``` + diff --git a/events/equeue/equeue.c b/events/equeue/equeue.c new file mode 100644 index 0000000000..405f73ae33 --- /dev/null +++ b/events/equeue/equeue.c @@ -0,0 +1,569 @@ +/* + * Flexible event queue for dispatching events + * + * Copyright (c) 2016 Christopher Haster + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#include "equeue/equeue.h" + +#include +#include + + +// calculate the relative-difference between absolute times while +// correctly handling overflow conditions +static inline int equeue_tickdiff(unsigned a, unsigned b) { + return (int)(unsigned)(a - b); +} + +// calculate the relative-difference between absolute times, but +// also clamp to zero, resulting in only non-zero values. +static inline int equeue_clampdiff(unsigned a, unsigned b) { + int diff = equeue_tickdiff(a, b); + return ~(diff >> (8*sizeof(int)-1)) & diff; +} + +// Increment the unique id in an event, hiding the event from cancel +static inline void equeue_incid(equeue_t *q, struct equeue_event *e) { + e->id += 1; + if (!(e->id << q->npw2)) { + e->id = 1; + } +} + + +// equeue lifetime management +int equeue_create(equeue_t *q, size_t size) { + // dynamically allocate the specified buffer + void *buffer = malloc(size); + if (!buffer) { + return -1; + } + + int err = equeue_create_inplace(q, size, buffer); + q->allocated = buffer; + return err; +} + +int equeue_create_inplace(equeue_t *q, size_t size, void *buffer) { + // setup queue around provided buffer + q->buffer = buffer; + q->allocated = 0; + + q->npw2 = 0; + for (unsigned s = size; s; s >>= 1) { + q->npw2++; + } + + q->chunks = 0; + q->slab.size = size; + q->slab.data = buffer; + + q->queue = 0; + q->tick = equeue_tick(); + q->generation = 0; + q->breaks = 0; + + q->background.active = false; + q->background.update = 0; + q->background.timer = 0; + + // initialize platform resources + int err; + err = equeue_sema_create(&q->eventsema); + if (err < 0) { + return err; + } + + err = equeue_mutex_create(&q->queuelock); + if (err < 0) { + return err; + } + + err = equeue_mutex_create(&q->memlock); + if (err < 0) { + return err; + } + + return 0; +} + +void equeue_destroy(equeue_t *q) { + // call destructors on pending events + for (struct equeue_event *es = q->queue; es; es = es->next) { + for (struct equeue_event *e = q->queue; e; e = e->sibling) { + if (e->dtor) { + e->dtor(e + 1); + } + } + } + + // notify background timer + if (q->background.update) { + q->background.update(q->background.timer, -1); + } + + // clean up platform resources + memory + equeue_mutex_destroy(&q->memlock); + equeue_mutex_destroy(&q->queuelock); + equeue_sema_destroy(&q->eventsema); + free(q->allocated); +} + + +// equeue chunk allocation functions +static struct equeue_event *equeue_mem_alloc(equeue_t *q, size_t size) { + // add event overhead + size += sizeof(struct equeue_event); + size = (size + sizeof(void*)-1) & ~(sizeof(void*)-1); + + equeue_mutex_lock(&q->memlock); + + // check if a good chunk is available + for (struct equeue_event **p = &q->chunks; *p; p = &(*p)->next) { + if ((*p)->size >= size) { + struct equeue_event *e = *p; + if (e->sibling) { + *p = e->sibling; + (*p)->next = e->next; + } else { + *p = e->next; + } + + equeue_mutex_unlock(&q->memlock); + return e; + } + } + + // otherwise allocate a new chunk out of the slab + if (q->slab.size >= size) { + struct equeue_event *e = (struct equeue_event *)q->slab.data; + q->slab.data += size; + q->slab.size -= size; + e->size = size; + e->id = 1; + + equeue_mutex_unlock(&q->memlock); + return e; + } + + equeue_mutex_unlock(&q->memlock); + return 0; +} + +static void equeue_mem_dealloc(equeue_t *q, struct equeue_event *e) { + equeue_mutex_lock(&q->memlock); + + // stick chunk into list of chunks + struct equeue_event **p = &q->chunks; + while (*p && (*p)->size < e->size) { + p = &(*p)->next; + } + + if (*p && (*p)->size == e->size) { + e->sibling = *p; + e->next = (*p)->next; + } else { + e->sibling = 0; + e->next = *p; + } + *p = e; + + equeue_mutex_unlock(&q->memlock); +} + +void *equeue_alloc(equeue_t *q, size_t size) { + struct equeue_event *e = equeue_mem_alloc(q, size); + if (!e) { + return 0; + } + + e->target = 0; + e->period = -1; + e->dtor = 0; + + return e + 1; +} + +void equeue_dealloc(equeue_t *q, void *p) { + struct equeue_event *e = (struct equeue_event*)p - 1; + + if (e->dtor) { + e->dtor(e+1); + } + + equeue_mem_dealloc(q, e); +} + + +// equeue scheduling functions +static int equeue_enqueue(equeue_t *q, struct equeue_event *e, unsigned tick) { + // setup event and hash local id with buffer offset for unique id + int id = (e->id << q->npw2) | ((unsigned char *)e - q->buffer); + e->target = tick + equeue_clampdiff(e->target, tick); + e->generation = q->generation; + + equeue_mutex_lock(&q->queuelock); + + // find the event slot + struct equeue_event **p = &q->queue; + while (*p && equeue_tickdiff((*p)->target, e->target) < 0) { + p = &(*p)->next; + } + + // insert at head in slot + if (*p && (*p)->target == e->target) { + e->next = (*p)->next; + if (e->next) { + e->next->ref = &e->next; + } + + e->sibling = *p; + e->sibling->ref = &e->sibling; + } else { + e->next = *p; + if (e->next) { + e->next->ref = &e->next; + } + + e->sibling = 0; + } + + *p = e; + e->ref = p; + + // notify background timer + if ((q->background.update && q->background.active) && + (q->queue == e && !e->sibling)) { + q->background.update(q->background.timer, + equeue_clampdiff(e->target, tick)); + } + + equeue_mutex_unlock(&q->queuelock); + + return id; +} + +static struct equeue_event *equeue_unqueue(equeue_t *q, int id) { + // decode event from unique id and check that the local id matches + struct equeue_event *e = (struct equeue_event *) + &q->buffer[id & ((1 << q->npw2)-1)]; + + equeue_mutex_lock(&q->queuelock); + if (e->id != id >> q->npw2) { + equeue_mutex_unlock(&q->queuelock); + return 0; + } + + // clear the event and check if already in-flight + e->cb = 0; + e->period = -1; + + int diff = equeue_tickdiff(e->target, q->tick); + if (diff < 0 || (diff == 0 && e->generation != q->generation)) { + equeue_mutex_unlock(&q->queuelock); + return 0; + } + + // disentangle from queue + if (e->sibling) { + e->sibling->next = e->next; + if (e->sibling->next) { + e->sibling->next->ref = &e->sibling->next; + } + + *e->ref = e->sibling; + e->sibling->ref = e->ref; + } else { + *e->ref = e->next; + if (e->next) { + e->next->ref = e->ref; + } + } + + equeue_incid(q, e); + equeue_mutex_unlock(&q->queuelock); + + return e; +} + +static struct equeue_event *equeue_dequeue(equeue_t *q, unsigned target) { + equeue_mutex_lock(&q->queuelock); + + // find all expired events and mark a new generation + q->generation += 1; + if (equeue_tickdiff(q->tick, target) <= 0) { + q->tick = target; + } + + struct equeue_event *head = q->queue; + struct equeue_event **p = &head; + while (*p && equeue_tickdiff((*p)->target, target) <= 0) { + p = &(*p)->next; + } + + q->queue = *p; + if (q->queue) { + q->queue->ref = &q->queue; + } + + *p = 0; + + equeue_mutex_unlock(&q->queuelock); + + // reverse and flatten each slot to match insertion order + struct equeue_event **tail = &head; + struct equeue_event *ess = head; + while (ess) { + struct equeue_event *es = ess; + ess = es->next; + + struct equeue_event *prev = 0; + for (struct equeue_event *e = es; e; e = e->sibling) { + e->next = prev; + prev = e; + } + + *tail = prev; + tail = &es->next; + } + + return head; +} + +int equeue_post(equeue_t *q, void (*cb)(void*), void *p) { + struct equeue_event *e = (struct equeue_event*)p - 1; + unsigned tick = equeue_tick(); + e->cb = cb; + e->target = tick + e->target; + + int id = equeue_enqueue(q, e, tick); + equeue_sema_signal(&q->eventsema); + return id; +} + +void equeue_cancel(equeue_t *q, int id) { + if (!id) { + return; + } + + struct equeue_event *e = equeue_unqueue(q, id); + if (e) { + equeue_dealloc(q, e + 1); + } +} + +void equeue_break(equeue_t *q) { + equeue_mutex_lock(&q->queuelock); + q->breaks++; + equeue_mutex_unlock(&q->queuelock); + equeue_sema_signal(&q->eventsema); +} + +void equeue_dispatch(equeue_t *q, int ms) { + unsigned tick = equeue_tick(); + unsigned timeout = tick + ms; + q->background.active = false; + + while (1) { + // collect all the available events and next deadline + struct equeue_event *es = equeue_dequeue(q, tick); + + // dispatch events + while (es) { + struct equeue_event *e = es; + es = e->next; + + // actually dispatch the callbacks + void (*cb)(void *) = e->cb; + if (cb) { + cb(e + 1); + } + + // reenqueue periodic events or deallocate + if (e->period >= 0) { + e->target += e->period; + equeue_enqueue(q, e, equeue_tick()); + } else { + equeue_incid(q, e); + equeue_dealloc(q, e+1); + } + } + + int deadline = -1; + tick = equeue_tick(); + + // check if we should stop dispatching soon + if (ms >= 0) { + deadline = equeue_tickdiff(timeout, tick); + if (deadline <= 0) { + // update background timer if necessary + if (q->background.update) { + equeue_mutex_lock(&q->queuelock); + if (q->background.update && q->queue) { + q->background.update(q->background.timer, + equeue_clampdiff(q->queue->target, tick)); + } + q->background.active = true; + equeue_mutex_unlock(&q->queuelock); + } + return; + } + } + + // find closest deadline + equeue_mutex_lock(&q->queuelock); + if (q->queue) { + int diff = equeue_clampdiff(q->queue->target, tick); + if ((unsigned)diff < (unsigned)deadline) { + deadline = diff; + } + } + equeue_mutex_unlock(&q->queuelock); + + // wait for events + equeue_sema_wait(&q->eventsema, deadline); + + // check if we were notified to break out of dispatch + if (q->breaks) { + equeue_mutex_lock(&q->queuelock); + if (q->breaks > 0) { + q->breaks--; + equeue_mutex_unlock(&q->queuelock); + return; + } + equeue_mutex_unlock(&q->queuelock); + } + + // update tick for next iteration + tick = equeue_tick(); + } +} + + +// event functions +void equeue_event_delay(void *p, int ms) { + struct equeue_event *e = (struct equeue_event*)p - 1; + e->target = ms; +} + +void equeue_event_period(void *p, int ms) { + struct equeue_event *e = (struct equeue_event*)p - 1; + e->period = ms; +} + +void equeue_event_dtor(void *p, void (*dtor)(void *)) { + struct equeue_event *e = (struct equeue_event*)p - 1; + e->dtor = dtor; +} + + +// simple callbacks +struct ecallback { + void (*cb)(void*); + void *data; +}; + +static void ecallback_dispatch(void *p) { + struct ecallback *e = (struct ecallback*)p; + e->cb(e->data); +} + +int equeue_call(equeue_t *q, void (*cb)(void*), void *data) { + struct ecallback *e = equeue_alloc(q, sizeof(struct ecallback)); + if (!e) { + return 0; + } + + e->cb = cb; + e->data = data; + return equeue_post(q, ecallback_dispatch, e); +} + +int equeue_call_in(equeue_t *q, int ms, void (*cb)(void*), void *data) { + struct ecallback *e = equeue_alloc(q, sizeof(struct ecallback)); + if (!e) { + return 0; + } + + equeue_event_delay(e, ms); + e->cb = cb; + e->data = data; + return equeue_post(q, ecallback_dispatch, e); +} + +int equeue_call_every(equeue_t *q, int ms, void (*cb)(void*), void *data) { + struct ecallback *e = equeue_alloc(q, sizeof(struct ecallback)); + if (!e) { + return 0; + } + + equeue_event_delay(e, ms); + equeue_event_period(e, ms); + e->cb = cb; + e->data = data; + return equeue_post(q, ecallback_dispatch, e); +} + + +// backgrounding +void equeue_background(equeue_t *q, + void (*update)(void *timer, int ms), void *timer) { + equeue_mutex_lock(&q->queuelock); + if (q->background.update) { + q->background.update(q->background.timer, -1); + } + + q->background.update = update; + q->background.timer = timer; + + if (q->background.update && q->queue) { + q->background.update(q->background.timer, + equeue_clampdiff(q->queue->target, equeue_tick())); + } + q->background.active = true; + equeue_mutex_unlock(&q->queuelock); +} + +struct equeue_chain_context { + equeue_t *q; + equeue_t *target; + int id; +}; + +static void equeue_chain_dispatch(void *p) { + equeue_dispatch((equeue_t *)p, 0); +} + +static void equeue_chain_update(void *p, int ms) { + struct equeue_chain_context *c = (struct equeue_chain_context *)p; + equeue_cancel(c->target, c->id); + + if (ms >= 0) { + c->id = equeue_call_in(c->target, ms, equeue_chain_dispatch, c->q); + } else { + equeue_dealloc(c->target, c); + } +} + +void equeue_chain(equeue_t *q, equeue_t *target) { + struct equeue_chain_context *c = equeue_alloc(q, + sizeof(struct equeue_chain_context)); + + c->q = q; + c->target = target; + c->id = 0; + + equeue_background(q, equeue_chain_update, c); +} diff --git a/events/equeue/equeue.h b/events/equeue/equeue.h new file mode 100644 index 0000000000..ae2bbbab96 --- /dev/null +++ b/events/equeue/equeue.h @@ -0,0 +1,218 @@ +/* + * Flexible event queue for dispatching events + * + * Copyright (c) 2016 Christopher Haster + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#ifndef EQUEUE_H +#define EQUEUE_H + +#ifdef __cplusplus +extern "C" { +#endif + +// Platform specific files +#include "equeue/equeue_platform.h" + +#include +#include + + +// The minimum size of an event +// This size is guaranteed to fit events created by event_call +#define EQUEUE_EVENT_SIZE (sizeof(struct equeue_event) + 2*sizeof(void*)) + +// Internal event structure +struct equeue_event { + unsigned size; + uint8_t id; + uint8_t generation; + + struct equeue_event *next; + struct equeue_event *sibling; + struct equeue_event **ref; + + unsigned target; + int period; + void (*dtor)(void *); + + void (*cb)(void *); + // data follows +}; + +// Event queue structure +typedef struct equeue { + struct equeue_event *queue; + unsigned tick; + unsigned breaks; + uint8_t generation; + + unsigned char *buffer; + unsigned npw2; + void *allocated; + + struct equeue_event *chunks; + struct equeue_slab { + size_t size; + unsigned char *data; + } slab; + + struct equeue_background { + bool active; + void (*update)(void *timer, int ms); + void *timer; + } background; + + equeue_sema_t eventsema; + equeue_mutex_t queuelock; + equeue_mutex_t memlock; +} equeue_t; + + +// Queue lifetime operations +// +// Creates and destroys an event queue. The event queue either allocates a +// buffer of the specified size with malloc or uses a user provided buffer +// if constructed with equeue_create_inplace. +// +// If the event queue creation fails, equeue_create returns a negative, +// platform-specific error code. +int equeue_create(equeue_t *queue, size_t size); +int equeue_create_inplace(equeue_t *queue, size_t size, void *buffer); +void equeue_destroy(equeue_t *queue); + +// Dispatch events +// +// Executes events until the specified milliseconds have passed. If ms is +// negative, equeue_dispatch will dispatch events indefinitely or until +// equeue_break is called on this queue. +// +// When called with a finite timeout, the equeue_dispatch function is +// guaranteed to terminate. When called with a timeout of 0, the +// equeue_dispatch does not wait and is irq safe. +void equeue_dispatch(equeue_t *queue, int ms); + +// Break out of a running event loop +// +// Forces the specified event queue's dispatch loop to terminate. Pending +// events may finish executing, but no new events will be executed. +void equeue_break(equeue_t *queue); + +// Simple event calls +// +// The specified callback will be executed in the context of the event queue's +// dispatch loop. When the callback is executed depends on the call function. +// +// equeue_call - Immediately post an event to the queue +// equeue_call_in - Post an event after a specified time in milliseconds +// equeue_call_every - Post an event periodically every milliseconds +// +// All equeue_call functions are irq safe and can act as a mechanism for +// moving events out of irq contexts. +// +// The return value is a unique id that represents the posted event and can +// be passed to equeue_cancel. If there is not enough memory to allocate the +// event, equeue_call returns an id of 0. +int equeue_call(equeue_t *queue, void (*cb)(void *), void *data); +int equeue_call_in(equeue_t *queue, int ms, void (*cb)(void *), void *data); +int equeue_call_every(equeue_t *queue, int ms, void (*cb)(void *), void *data); + +// Allocate memory for events +// +// The equeue_alloc function allocates an event that can be manually dispatched +// with equeue_post. The equeue_dealloc function may be used to free an event +// that has not been posted. Once posted, an event's memory is managed by the +// event queue and should not be deallocated. +// +// Both equeue_alloc and equeue_dealloc are irq safe. +// +// The equeue allocator is designed to minimize jitter in interrupt contexts as +// well as avoid memory fragmentation on small devices. The allocator achieves +// both constant-runtime and zero-fragmentation for fixed-size events, however +// grows linearly as the quantity of different sized allocations increases. +// +// The equeue_alloc function returns a pointer to the event's allocated memory +// and acts as a handle to the underlying event. If there is not enough memory +// to allocate the event, equeue_alloc returns null. +void *equeue_alloc(equeue_t *queue, size_t size); +void equeue_dealloc(equeue_t *queue, void *event); + +// Configure an allocated event +// +// equeue_event_delay - Millisecond delay before dispatching an event +// equeue_event_period - Millisecond period for repeating dispatching an event +// equeue_event_dtor - Destructor to run when the event is deallocated +void equeue_event_delay(void *event, int ms); +void equeue_event_period(void *event, int ms); +void equeue_event_dtor(void *event, void (*dtor)(void *)); + +// Post an event onto the event queue +// +// The equeue_post function takes a callback and a pointer to an event +// allocated by equeue_alloc. The specified callback will be executed in the +// context of the event queue's dispatch loop with the allocated event +// as its argument. +// +// The equeue_post function is irq safe and can act as a mechanism for +// moving events out of irq contexts. +// +// The return value is a unique id that represents the posted event and can +// be passed to equeue_cancel. +int equeue_post(equeue_t *queue, void (*cb)(void *), void *event); + +// Cancel an in-flight event +// +// Attempts to cancel an event referenced by the unique id returned from +// equeue_call or equeue_post. It is safe to call equeue_cancel after an event +// has already been dispatched. +// +// The equeue_cancel function is irq safe. +// +// If called while the event queue's dispatch loop is active, equeue_cancel +// does not guarantee that the event will not not execute after it returns as +// the event may have already begun executing. +void equeue_cancel(equeue_t *queue, int id); + +// Background an event queue onto a single-shot timer +// +// The provided update function will be called to indicate when the queue +// should be dispatched. A negative timeout will be passed to the update +// function when the timer is no longer needed. +// +// Passing a null update function disables the existing timer. +// +// The equeue_background function allows an event queue to take advantage +// of hardware timers or even other event loops, allowing an event queue to +// be effectively backgrounded. +void equeue_background(equeue_t *queue, + void (*update)(void *timer, int ms), void *timer); + +// Chain an event queue onto another event queue +// +// After chaining a queue to a target, calling equeue_dispatch on the +// target queue will also dispatch events from this queue. The queues +// use their own buffers and events must be managed independently. +// +// Passing a null queue as the target will unchain the existing queue. +// +// The equeue_chain function allows multiple equeues to be composed, sharing +// the context of a dispatch loop while still being managed independently. +void equeue_chain(equeue_t *queue, equeue_t *target); + + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/events/equeue/equeue_mbed.cpp b/events/equeue/equeue_mbed.cpp new file mode 100644 index 0000000000..00f125d1b3 --- /dev/null +++ b/events/equeue/equeue_mbed.cpp @@ -0,0 +1,142 @@ +/* + * Implementation for the mbed library + * https://github.com/mbedmicro/mbed + * + * Copyright (c) 2016 Christopher Haster + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#include "equeue/equeue_platform.h" + +#if defined(EQUEUE_PLATFORM_MBED) + +#include +#include "mbed.h" + + +// Ticker operations +static bool equeue_tick_inited = false; +static unsigned equeue_minutes = 0; +static unsigned equeue_timer[ + (sizeof(Timer)+sizeof(unsigned)-1)/sizeof(unsigned)]; +static unsigned equeue_ticker[ + (sizeof(Ticker)+sizeof(unsigned)-1)/sizeof(unsigned)]; + +static void equeue_tick_update() { + reinterpret_cast(equeue_timer)->reset(); + equeue_minutes += 1; +} + +static void equeue_tick_init() { + MBED_ASSERT(sizeof(equeue_timer) >= sizeof(Timer)); + MBED_ASSERT(sizeof(equeue_ticker) >= sizeof(Ticker)); + new (equeue_timer) Timer; + new (equeue_ticker) Ticker; + + equeue_minutes = 0; + reinterpret_cast(equeue_timer)->start(); + reinterpret_cast(equeue_ticker) + ->attach_us(equeue_tick_update, (1 << 16)*1000); + + equeue_tick_inited = true; +} + +unsigned equeue_tick() { + if (!equeue_tick_inited) { + equeue_tick_init(); + } + + unsigned equeue_ms = reinterpret_cast(equeue_timer)->read_ms(); + return (equeue_minutes << 16) + equeue_ms; +} + + +// Mutex operations +int equeue_mutex_create(equeue_mutex_t *m) { return 0; } +void equeue_mutex_destroy(equeue_mutex_t *m) { } + +void equeue_mutex_lock(equeue_mutex_t *m) { + core_util_critical_section_enter(); +} + +void equeue_mutex_unlock(equeue_mutex_t *m) { + core_util_critical_section_exit(); +} + + +// Semaphore operations +#ifdef MBED_CONF_RTOS_PRESENT + +int equeue_sema_create(equeue_sema_t *s) { + MBED_ASSERT(sizeof(equeue_sema_t) >= sizeof(Semaphore)); + new (s) Semaphore(0); + return 0; +} + +void equeue_sema_destroy(equeue_sema_t *s) { + reinterpret_cast(s)->~Semaphore(); +} + +void equeue_sema_signal(equeue_sema_t *s) { + reinterpret_cast(s)->release(); +} + +bool equeue_sema_wait(equeue_sema_t *s, int ms) { + if (ms < 0) { + ms = osWaitForever; + } + + return (reinterpret_cast(s)->wait(ms) > 0); +} + +#else + +// Semaphore operations +int equeue_sema_create(equeue_sema_t *s) { + *s = false; + return 0; +} + +void equeue_sema_destroy(equeue_sema_t *s) { +} + +void equeue_sema_signal(equeue_sema_t *s) { + *s = 1; +} + +static void equeue_sema_timeout(equeue_sema_t *s) { + *s = -1; +} + +bool equeue_sema_wait(equeue_sema_t *s, int ms) { + int signal = 0; + Timeout timeout; + timeout.attach_us(s, equeue_sema_timeout, ms*1000); + + core_util_critical_section_enter(); + while (!*s) { + sleep(); + core_util_critical_section_exit(); + core_util_critical_section_enter(); + } + + signal = *s; + *s = false; + core_util_critical_section_exit(); + + return (signal > 0); +} + +#endif + +#endif diff --git a/events/equeue/equeue_platform.h b/events/equeue/equeue_platform.h new file mode 100644 index 0000000000..5eee47799b --- /dev/null +++ b/events/equeue/equeue_platform.h @@ -0,0 +1,140 @@ +/* + * System specific implementation + * + * Copyright (c) 2016 Christopher Haster + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#ifndef EQUEUE_PLATFORM_H +#define EQUEUE_PLATFORM_H + +#ifdef __cplusplus +extern "C" { +#endif + +#include + +// Currently supported platforms +// +// Uncomment to select a supported platform or reimplement this file +// for a specific target. +//#define EQUEUE_PLATFORM_POSIX +//#define EQUEUE_PLATFORM_MBED + +// Try to infer a platform if none was manually selected +#if !defined(EQUEUE_PLATFORM_POSIX) \ + && !defined(EQUEUE_PLATFORM_MBED) +#if defined(__unix__) +#define EQUEUE_PLATFORM_POSIX +#elif defined(__MBED__) +#define EQUEUE_PLATFORM_MBED +#else +#warning "Unknown platform! Please update equeue_platform.h" +#endif +#endif + +// Platform includes +#if defined(EQUEUE_PLATFORM_POSIX) +#include +#endif + + +// Platform millisecond counter +// +// Return a tick that represents the number of milliseconds that have passed +// since an arbitrary point in time. The granularity does not need to be at +// the millisecond level, however the accuracy of the equeue library is +// limited by the accuracy of this tick. +// +// Must intentionally overflow to 0 after 2^32-1 +unsigned equeue_tick(void); + + +// Platform mutex type +// +// The equeue library requires at minimum a non-recursive mutex that is +// safe in interrupt contexts. The mutex section is help for a bounded +// amount of time, so simply disabling interrupts is acceptable +// +// If irq safety is not required, a regular blocking mutex can be used. +#if defined(EQUEUE_PLATFORM_POSIX) +typedef pthread_mutex_t equeue_mutex_t; +#elif defined(EQUEUE_PLATFORM_WINDOWS) +typedef CRITICAL_SECTION equeue_mutex_t; +#elif defined(EQUEUE_PLATFORM_MBED) +typedef unsigned equeue_mutex_t; +#elif defined(EQUEUE_PLATFORM_FREERTOS) +typedef UBaseType_t equeue_mutex_t; +#endif + +// Platform mutex operations +// +// The equeue_mutex_create and equeue_mutex_destroy manage the lifetime +// of the mutex. On error, equeue_mutex_create should return a negative +// error code. +// +// The equeue_mutex_lock and equeue_mutex_unlock lock and unlock the +// underlying mutex. +int equeue_mutex_create(equeue_mutex_t *mutex); +void equeue_mutex_destroy(equeue_mutex_t *mutex); +void equeue_mutex_lock(equeue_mutex_t *mutex); +void equeue_mutex_unlock(equeue_mutex_t *mutex); + + +// Platform semaphore type +// +// The equeue library requires a binary semaphore type that can be safely +// signaled from interrupt contexts and from inside a equeue_mutex section. +// +// The equeue_signal_wait is relied upon by the equeue library to sleep the +// processor between events. Spurious wakeups have no negative-effects. +// +// A counting semaphore will also work, however may cause the event queue +// dispatch loop to run unnecessarily. For that matter, equeue_signal_wait +// may even be implemented as a single return statement. +#if defined(EQUEUE_PLATFORM_POSIX) +typedef struct equeue_sema { + pthread_mutex_t mutex; + pthread_cond_t cond; + bool signal; +} equeue_sema_t; +#elif defined(EQUEUE_PLATFORM_MBED) && defined(MBED_CONF_RTOS_PRESENT) +typedef unsigned equeue_sema_t[8]; +#elif defined(EQUEUE_PLATFORM_MBED) +typedef volatile int equeue_sema_t; +#endif + +// Platform semaphore operations +// +// The equeue_sema_create and equeue_sema_destroy manage the lifetime +// of the semaphore. On error, equeue_sema_create should return a negative +// error code. +// +// The equeue_sema_signal marks a semaphore as signalled such that the next +// equeue_sema_wait will return true. +// +// The equeue_sema_wait waits for a semaphore to be signalled or returns +// immediately if equeue_sema_signal had been called since the last +// equeue_sema_wait. The equeue_sema_wait returns true if it detected that +// equeue_sema_signal had been called. +int equeue_sema_create(equeue_sema_t *sema); +void equeue_sema_destroy(equeue_sema_t *sema); +void equeue_sema_signal(equeue_sema_t *sema); +bool equeue_sema_wait(equeue_sema_t *sema, int ms); + + +#ifdef __cplusplus +} +#endif + +#endif diff --git a/events/equeue/equeue_posix.c b/events/equeue/equeue_posix.c new file mode 100644 index 0000000000..5d0c9309fd --- /dev/null +++ b/events/equeue/equeue_posix.c @@ -0,0 +1,106 @@ +/* + * Implementation for Posix compliant platforms + * + * Copyright (c) 2016 Christopher Haster + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#include "equeue/equeue_platform.h" + +#if defined(EQUEUE_PLATFORM_POSIX) + +#include +#include +#include + + +// Tick operations +unsigned equeue_tick(void) { + struct timeval tv; + gettimeofday(&tv, 0); + return (unsigned)(tv.tv_sec*1000 + tv.tv_usec/1000); +} + + +// Mutex operations +int equeue_mutex_create(equeue_mutex_t *m) { + return pthread_mutex_init(m, 0); +} + +void equeue_mutex_destroy(equeue_mutex_t *m) { + pthread_mutex_destroy(m); +} + +void equeue_mutex_lock(equeue_mutex_t *m) { + pthread_mutex_lock(m); +} + +void equeue_mutex_unlock(equeue_mutex_t *m) { + pthread_mutex_unlock(m); +} + + +// Semaphore operations +int equeue_sema_create(equeue_sema_t *s) { + int err = pthread_mutex_init(&s->mutex, 0); + if (err) { + return err; + } + + err = pthread_cond_init(&s->cond, 0); + if (err) { + return err; + } + + s->signal = false; + return 0; +} + +void equeue_sema_destroy(equeue_sema_t *s) { + pthread_cond_destroy(&s->cond); + pthread_mutex_destroy(&s->mutex); +} + +void equeue_sema_signal(equeue_sema_t *s) { + pthread_mutex_lock(&s->mutex); + s->signal = true; + pthread_cond_signal(&s->cond); + pthread_mutex_unlock(&s->mutex); +} + +bool equeue_sema_wait(equeue_sema_t *s, int ms) { + pthread_mutex_lock(&s->mutex); + if (!s->signal) { + if (ms < 0) { + pthread_cond_wait(&s->cond, &s->mutex); + } else { + struct timeval tv; + gettimeofday(&tv, 0); + + struct timespec ts = { + .tv_sec = ms/1000 + tv.tv_sec, + .tv_nsec = ms*1000000 + tv.tv_usec*1000, + }; + + pthread_cond_timedwait(&s->cond, &s->mutex, &ts); + } + } + + bool signal = s->signal; + s->signal = false; + pthread_mutex_unlock(&s->mutex); + + return signal; +} + +#endif diff --git a/events/equeue/tests/prof.c b/events/equeue/tests/prof.c new file mode 100644 index 0000000000..20d5ac514b --- /dev/null +++ b/events/equeue/tests/prof.c @@ -0,0 +1,407 @@ +/* + * Profiling framework for the events library + * + * Copyright (c) 2016 Christopher Haster + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#include "equeue.h" +#include +#include +#include +#include +#include +#include +#include + + +// Performance measurement utils +#define PROF_RUNS 5 +#define PROF_INTERVAL 100000000 + +#define prof_volatile(t) __attribute__((unused)) volatile t + +typedef uint64_t prof_cycle_t; + +static volatile prof_cycle_t prof_start_cycle; +static volatile prof_cycle_t prof_stop_cycle; +static prof_cycle_t prof_accum_cycle; +static prof_cycle_t prof_baseline_cycle; +static prof_cycle_t prof_iterations; +static const char *prof_units; + +#define prof_cycle() ({ \ + uint32_t a, b; \ + __asm__ volatile ("rdtsc" : "=a" (a), "=d" (b)); \ + ((uint64_t)b << 32) | (uint64_t)a; \ +}) + +#define prof_loop() \ + for (prof_iterations = 0; \ + prof_accum_cycle < PROF_INTERVAL; \ + prof_iterations++) + +#define prof_start() ({ \ + prof_start_cycle = prof_cycle(); \ +}) + +#define prof_stop() ({ \ + prof_stop_cycle = prof_cycle(); \ + prof_accum_cycle += prof_stop_cycle - prof_start_cycle; \ +}) + +#define prof_result(value, units) ({ \ + prof_accum_cycle = value+prof_baseline_cycle; \ + prof_iterations = 1; \ + prof_units = units; \ +}) + +#define prof_measure(func, ...) ({ \ + printf("%s: ...", #func); \ + fflush(stdout); \ + \ + prof_units = "cycles"; \ + prof_cycle_t runs[PROF_RUNS]; \ + for (int i = 0; i < PROF_RUNS; i++) { \ + prof_accum_cycle = 0; \ + prof_iterations = 0; \ + func(__VA_ARGS__); \ + runs[i] = prof_accum_cycle / prof_iterations; \ + } \ + \ + prof_cycle_t res = runs[0]; \ + for (int i = 0; i < PROF_RUNS; i++) { \ + if (runs[i] < res) { \ + res = runs[i]; \ + } \ + } \ + res -= prof_baseline_cycle; \ + printf("\r%s: %"PRIu64" %s", #func, res, prof_units); \ + \ + if (!isatty(0)) { \ + prof_cycle_t prev; \ + while (scanf("%*[^0-9]%"PRIu64, &prev) == 0); \ + int64_t perc = 100*((int64_t)prev - (int64_t)res) / (int64_t)prev; \ + \ + if (perc > 10) { \ + printf(" (\e[32m%+"PRId64"%%\e[0m)", perc); \ + } else if (perc < -10) { \ + printf(" (\e[31m%+"PRId64"%%\e[0m)", perc); \ + } else { \ + printf(" (%+"PRId64"%%)", perc); \ + } \ + } \ + \ + printf("\n"); \ + res; \ +}) + +#define prof_baseline(func, ...) ({ \ + prof_baseline_cycle = 0; \ + prof_baseline_cycle = prof_measure(func, __VA_ARGS__); \ +}) + + +// Various test functions +void no_func(void *eh) { +} + + +// Actual performance tests +void baseline_prof(void) { + prof_loop() { + prof_start(); + __asm__ volatile (""); + prof_stop(); + } +} + +void equeue_tick_prof(void) { + prof_volatile(unsigned) res; + prof_loop() { + prof_start(); + res = equeue_tick(); + prof_stop(); + } +} + +void equeue_alloc_prof(void) { + struct equeue q; + equeue_create(&q, 32*EQUEUE_EVENT_SIZE); + + prof_loop() { + prof_start(); + void *e = equeue_alloc(&q, 8 * sizeof(int)); + prof_stop(); + + equeue_dealloc(&q, e); + } + + equeue_destroy(&q); +} + +void equeue_alloc_many_prof(int count) { + struct equeue q; + equeue_create(&q, count*EQUEUE_EVENT_SIZE); + + void *es[count]; + + for (int i = 0; i < count; i++) { + es[i] = equeue_alloc(&q, (i % 4) * sizeof(int)); + } + + for (int i = 0; i < count; i++) { + equeue_dealloc(&q, es[i]); + } + + prof_loop() { + prof_start(); + void *e = equeue_alloc(&q, 8 * sizeof(int)); + prof_stop(); + + equeue_dealloc(&q, e); + } + + equeue_destroy(&q); +} + +void equeue_post_prof(void) { + struct equeue q; + equeue_create(&q, EQUEUE_EVENT_SIZE); + + prof_loop() { + void *e = equeue_alloc(&q, 0); + + prof_start(); + int id = equeue_post(&q, no_func, e); + prof_stop(); + + equeue_cancel(&q, id); + } + + equeue_destroy(&q); +} + +void equeue_post_many_prof(int count) { + struct equeue q; + equeue_create(&q, count*EQUEUE_EVENT_SIZE); + + for (int i = 0; i < count-1; i++) { + equeue_call(&q, no_func, 0); + } + + prof_loop() { + void *e = equeue_alloc(&q, 0); + + prof_start(); + int id = equeue_post(&q, no_func, e); + prof_stop(); + + equeue_cancel(&q, id); + } + + equeue_destroy(&q); +} + +void equeue_post_future_prof(void) { + struct equeue q; + equeue_create(&q, EQUEUE_EVENT_SIZE); + + prof_loop() { + void *e = equeue_alloc(&q, 0); + equeue_event_delay(e, 1000); + + prof_start(); + int id = equeue_post(&q, no_func, e); + prof_stop(); + + equeue_cancel(&q, id); + } + + equeue_destroy(&q); +} + +void equeue_post_future_many_prof(int count) { + struct equeue q; + equeue_create(&q, count*EQUEUE_EVENT_SIZE); + + for (int i = 0; i < count-1; i++) { + equeue_call(&q, no_func, 0); + } + + prof_loop() { + void *e = equeue_alloc(&q, 0); + equeue_event_delay(e, 1000); + + prof_start(); + int id = equeue_post(&q, no_func, e); + prof_stop(); + + equeue_cancel(&q, id); + } + + equeue_destroy(&q); +} + +void equeue_dispatch_prof(void) { + struct equeue q; + equeue_create(&q, EQUEUE_EVENT_SIZE); + + prof_loop() { + equeue_call(&q, no_func, 0); + + prof_start(); + equeue_dispatch(&q, 0); + prof_stop(); + } + + equeue_destroy(&q); +} + +void equeue_dispatch_many_prof(int count) { + struct equeue q; + equeue_create(&q, count*EQUEUE_EVENT_SIZE); + + prof_loop() { + for (int i = 0; i < count; i++) { + equeue_call(&q, no_func, 0); + } + + prof_start(); + equeue_dispatch(&q, 0); + prof_stop(); + } + + equeue_destroy(&q); +} + +void equeue_cancel_prof(void) { + struct equeue q; + equeue_create(&q, EQUEUE_EVENT_SIZE); + + prof_loop() { + int id = equeue_call(&q, no_func, 0); + + prof_start(); + equeue_cancel(&q, id); + prof_stop(); + } + + equeue_destroy(&q); +} + +void equeue_cancel_many_prof(int count) { + struct equeue q; + equeue_create(&q, count*EQUEUE_EVENT_SIZE); + + for (int i = 0; i < count-1; i++) { + equeue_call(&q, no_func, 0); + } + + prof_loop() { + int id = equeue_call(&q, no_func, 0); + + prof_start(); + equeue_cancel(&q, id); + prof_stop(); + } + + equeue_destroy(&q); +} + +void equeue_alloc_size_prof(void) { + size_t size = 32*EQUEUE_EVENT_SIZE; + + struct equeue q; + equeue_create(&q, size); + equeue_alloc(&q, 0); + + prof_result(size - q.slab.size, "bytes"); + + equeue_destroy(&q); +} + +void equeue_alloc_many_size_prof(int count) { + size_t size = count*EQUEUE_EVENT_SIZE; + + struct equeue q; + equeue_create(&q, size); + + for (int i = 0; i < count; i++) { + equeue_alloc(&q, (i % 4) * sizeof(int)); + } + + prof_result(size - q.slab.size, "bytes"); + + equeue_destroy(&q); +} + +void equeue_alloc_fragmented_size_prof(int count) { + size_t size = count*EQUEUE_EVENT_SIZE; + + struct equeue q; + equeue_create(&q, size); + + void *es[count]; + + for (int i = 0; i < count; i++) { + es[i] = equeue_alloc(&q, (i % 4) * sizeof(int)); + } + + for (int i = 0; i < count; i++) { + equeue_dealloc(&q, es[i]); + } + + for (int i = count-1; i >= 0; i--) { + es[i] = equeue_alloc(&q, (i % 4) * sizeof(int)); + } + + for (int i = count-1; i >= 0; i--) { + equeue_dealloc(&q, es[i]); + } + + for (int i = 0; i < count; i++) { + equeue_alloc(&q, (i % 4) * sizeof(int)); + } + + prof_result(size - q.slab.size, "bytes"); + + equeue_destroy(&q); +} + + +// Entry point +int main() { + printf("beginning profiling...\n"); + + prof_baseline(baseline_prof); + + prof_measure(equeue_tick_prof); + prof_measure(equeue_alloc_prof); + prof_measure(equeue_post_prof); + prof_measure(equeue_post_future_prof); + prof_measure(equeue_dispatch_prof); + prof_measure(equeue_cancel_prof); + + prof_measure(equeue_alloc_many_prof, 1000); + prof_measure(equeue_post_many_prof, 1000); + prof_measure(equeue_post_future_many_prof, 1000); + prof_measure(equeue_dispatch_many_prof, 100); + prof_measure(equeue_cancel_many_prof, 100); + + prof_measure(equeue_alloc_size_prof); + prof_measure(equeue_alloc_many_size_prof, 1000); + prof_measure(equeue_alloc_fragmented_size_prof, 1000); + + printf("done!\n"); +} diff --git a/events/equeue/tests/tests.c b/events/equeue/tests/tests.c new file mode 100644 index 0000000000..fc7ad81374 --- /dev/null +++ b/events/equeue/tests/tests.c @@ -0,0 +1,681 @@ +/* + * Testing framework for the events library + * + * Copyright (c) 2016 Christopher Haster + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#include "equeue.h" +#include +#include +#include +#include +#include +#include + + +// Testing setup +static jmp_buf test_buf; +static int test_line; +static int test_failure; + +#define test_assert(test) ({ \ + if (!(test)) { \ + test_line = __LINE__; \ + longjmp(test_buf, 1); \ + } \ +}) + +#define test_run(func, ...) ({ \ + printf("%s: ...", #func); \ + fflush(stdout); \ + \ + if (!setjmp(test_buf)) { \ + func(__VA_ARGS__); \ + printf("\r%s: \e[32mpassed\e[0m\n", #func); \ + } else { \ + printf("\r%s: \e[31mfailed\e[0m at line %d\n", #func, test_line); \ + test_failure = true; \ + } \ +}) + + +// Test functions +void pass_func(void *eh) { +} + +void simple_func(void *p) { + (*(int *)p)++; +} + +void sloth_func(void *p) { + usleep(10000); + (*(int *)p)++; +} + +struct indirect { + int *touched; + uint8_t buffer[7]; +}; + +void indirect_func(void *p) { + struct indirect *i = (struct indirect*)p; + (*i->touched)++; +} + +struct timing { + unsigned tick; + unsigned delay; +}; + +void timing_func(void *p) { + struct timing *timing = (struct timing*)p; + unsigned tick = equeue_tick(); + + unsigned t1 = timing->delay; + unsigned t2 = tick - timing->tick; + test_assert(t1 > t2 - 10 && t1 < t2 + 10); + + timing->tick = tick; +} + +struct fragment { + equeue_t *q; + size_t size; + struct timing timing; +}; + +void fragment_func(void *p) { + struct fragment *fragment = (struct fragment*)p; + timing_func(&fragment->timing); + + struct fragment *nfragment = equeue_alloc(fragment->q, fragment->size); + test_assert(nfragment); + + *nfragment = *fragment; + equeue_event_delay(nfragment, fragment->timing.delay); + + int id = equeue_post(nfragment->q, fragment_func, nfragment); + test_assert(id); +} + +struct cancel { + equeue_t *q; + int id; +}; + +void cancel_func(void *p) { + struct cancel *cancel = (struct cancel *)p; + equeue_cancel(cancel->q, cancel->id); +} + +struct nest { + equeue_t *q; + void (*cb)(void *); + void *data; +}; + +void nest_func(void *p) { + struct nest *nest = (struct nest *)p; + equeue_call(nest->q, nest->cb, nest->data); + + usleep(10000); +} + + +// Simple call tests +void simple_call_test(void) { + equeue_t q; + int err = equeue_create(&q, 2048); + test_assert(!err); + + bool touched = false; + equeue_call(&q, simple_func, &touched); + equeue_dispatch(&q, 0); + test_assert(touched); + + equeue_destroy(&q); +} + +void simple_call_in_test(void) { + equeue_t q; + int err = equeue_create(&q, 2048); + test_assert(!err); + + bool touched = false; + int id = equeue_call_in(&q, 10, simple_func, &touched); + test_assert(id); + + equeue_dispatch(&q, 15); + test_assert(touched); + + equeue_destroy(&q); +} + +void simple_call_every_test(void) { + equeue_t q; + int err = equeue_create(&q, 2048); + test_assert(!err); + + bool touched = false; + int id = equeue_call_every(&q, 10, simple_func, &touched); + test_assert(id); + + equeue_dispatch(&q, 15); + test_assert(touched); + + equeue_destroy(&q); +} + +void simple_post_test(void) { + equeue_t q; + int err = equeue_create(&q, 2048); + test_assert(!err); + + int touched = false; + struct indirect *i = equeue_alloc(&q, sizeof(struct indirect)); + test_assert(i); + + i->touched = &touched; + int id = equeue_post(&q, indirect_func, i); + test_assert(id); + + equeue_dispatch(&q, 0); + test_assert(*i->touched); + + equeue_destroy(&q); +} + +// Misc tests +void destructor_test(void) { + equeue_t q; + int err = equeue_create(&q, 2048); + test_assert(!err); + + int touched; + struct indirect *e; + int ids[3]; + + touched = 0; + for (int i = 0; i < 3; i++) { + e = equeue_alloc(&q, sizeof(struct indirect)); + test_assert(e); + + e->touched = &touched; + equeue_event_dtor(e, indirect_func); + int id = equeue_post(&q, pass_func, e); + test_assert(id); + } + + equeue_dispatch(&q, 0); + test_assert(touched == 3); + + touched = 0; + for (int i = 0; i < 3; i++) { + e = equeue_alloc(&q, sizeof(struct indirect)); + test_assert(e); + + e->touched = &touched; + equeue_event_dtor(e, indirect_func); + ids[i] = equeue_post(&q, pass_func, e); + test_assert(ids[i]); + } + + for (int i = 0; i < 3; i++) { + equeue_cancel(&q, ids[i]); + } + + equeue_dispatch(&q, 0); + test_assert(touched == 3); + + touched = 0; + for (int i = 0; i < 3; i++) { + e = equeue_alloc(&q, sizeof(struct indirect)); + test_assert(e); + + e->touched = &touched; + equeue_event_dtor(e, indirect_func); + int id = equeue_post(&q, pass_func, e); + test_assert(id); + } + + equeue_destroy(&q); + test_assert(touched == 3); +} + +void allocation_failure_test(void) { + equeue_t q; + int err = equeue_create(&q, 2048); + test_assert(!err); + + void *p = equeue_alloc(&q, 4096); + test_assert(!p); + + for (int i = 0; i < 100; i++) { + p = equeue_alloc(&q, 0); + } + test_assert(!p); + + equeue_destroy(&q); +} + +void cancel_test(int N) { + equeue_t q; + int err = equeue_create(&q, 2048); + test_assert(!err); + + bool touched = false; + int *ids = malloc(N*sizeof(int)); + + for (int i = 0; i < N; i++) { + ids[i] = equeue_call(&q, simple_func, &touched); + } + + for (int i = N-1; i >= 0; i--) { + equeue_cancel(&q, ids[i]); + } + + free(ids); + + equeue_dispatch(&q, 0); + test_assert(!touched); + + equeue_destroy(&q); +} + +void cancel_inflight_test(void) { + equeue_t q; + int err = equeue_create(&q, 2048); + test_assert(!err); + + bool touched = false; + + int id = equeue_call(&q, simple_func, &touched); + equeue_cancel(&q, id); + + equeue_dispatch(&q, 0); + test_assert(!touched); + + id = equeue_call(&q, simple_func, &touched); + equeue_cancel(&q, id); + + equeue_dispatch(&q, 0); + test_assert(!touched); + + struct cancel *cancel = equeue_alloc(&q, sizeof(struct cancel)); + test_assert(cancel); + cancel->q = &q; + cancel->id = 0; + + id = equeue_post(&q, cancel_func, cancel); + test_assert(id); + + cancel->id = equeue_call(&q, simple_func, &touched); + + equeue_dispatch(&q, 0); + test_assert(!touched); + + equeue_destroy(&q); +} + +void cancel_unnecessarily_test(void) { + equeue_t q; + int err = equeue_create(&q, 2048); + test_assert(!err); + + int id = equeue_call(&q, pass_func, 0); + for (int i = 0; i < 5; i++) { + equeue_cancel(&q, id); + } + + id = equeue_call(&q, pass_func, 0); + equeue_dispatch(&q, 0); + for (int i = 0; i < 5; i++) { + equeue_cancel(&q, id); + } + + bool touched = false; + equeue_call(&q, simple_func, &touched); + for (int i = 0; i < 5; i++) { + equeue_cancel(&q, id); + } + + equeue_dispatch(&q, 0); + test_assert(touched); + + equeue_destroy(&q); +} + +void loop_protect_test(void) { + equeue_t q; + int err = equeue_create(&q, 2048); + test_assert(!err); + + bool touched = false; + equeue_call_every(&q, 0, simple_func, &touched); + + equeue_dispatch(&q, 0); + test_assert(touched); + + touched = false; + equeue_call_every(&q, 1, simple_func, &touched); + + equeue_dispatch(&q, 0); + test_assert(touched); + + equeue_destroy(&q); +} + +void break_test(void) { + equeue_t q; + int err = equeue_create(&q, 2048); + test_assert(!err); + + bool touched = false; + equeue_call_every(&q, 0, simple_func, &touched); + + equeue_break(&q); + equeue_dispatch(&q, -1); + test_assert(touched); + + equeue_destroy(&q); +} + +void period_test(void) { + equeue_t q; + int err = equeue_create(&q, 2048); + test_assert(!err); + + int count = 0; + equeue_call_every(&q, 10, simple_func, &count); + + equeue_dispatch(&q, 55); + test_assert(count == 5); + + equeue_destroy(&q); +} + +void nested_test(void) { + equeue_t q; + int err = equeue_create(&q, 2048); + test_assert(!err); + + int touched = 0; + struct nest *nest = equeue_alloc(&q, sizeof(struct nest)); + test_assert(nest); + nest->q = &q; + nest->cb = simple_func; + nest->data = &touched; + + int id = equeue_post(&q, nest_func, nest); + test_assert(id); + + equeue_dispatch(&q, 5); + test_assert(touched == 0); + + equeue_dispatch(&q, 5); + test_assert(touched == 1); + + touched = 0; + nest = equeue_alloc(&q, sizeof(struct nest)); + test_assert(nest); + nest->q = &q; + nest->cb = simple_func; + nest->data = &touched; + + id = equeue_post(&q, nest_func, nest); + test_assert(id); + + equeue_dispatch(&q, 20); + test_assert(touched == 1); + + equeue_destroy(&q); +} + +void sloth_test(void) { + equeue_t q; + int err = equeue_create(&q, 2048); + test_assert(!err); + + int touched = 0; + int id = equeue_call(&q, sloth_func, &touched); + test_assert(id); + + id = equeue_call_in(&q, 5, simple_func, &touched); + test_assert(id); + + id = equeue_call_in(&q, 15, simple_func, &touched); + test_assert(id); + + equeue_dispatch(&q, 20); + test_assert(touched == 3); + + equeue_destroy(&q); +} + +void *multithread_thread(void *p) { + equeue_t *q = (equeue_t *)p; + equeue_dispatch(q, -1); + return 0; +} + +void multithread_test(void) { + equeue_t q; + int err = equeue_create(&q, 2048); + test_assert(!err); + + int touched = 0; + equeue_call_every(&q, 1, simple_func, &touched); + + pthread_t thread; + err = pthread_create(&thread, 0, multithread_thread, &q); + test_assert(!err); + + usleep(10000); + equeue_break(&q); + err = pthread_join(thread, 0); + test_assert(!err); + + test_assert(touched); + + equeue_destroy(&q); +} + +void background_func(void *p, int ms) { + *(unsigned *)p = ms; +} + +void background_test(void) { + equeue_t q; + int err = equeue_create(&q, 2048); + test_assert(!err); + + int id = equeue_call_in(&q, 20, pass_func, 0); + test_assert(id); + + unsigned ms; + equeue_background(&q, background_func, &ms); + test_assert(ms == 20); + + id = equeue_call_in(&q, 10, pass_func, 0); + test_assert(id); + test_assert(ms == 10); + + id = equeue_call(&q, pass_func, 0); + test_assert(id); + test_assert(ms == 0); + + equeue_dispatch(&q, 0); + test_assert(ms == 10); + + equeue_destroy(&q); + test_assert(ms == -1); +} + +void chain_test(void) { + equeue_t q1; + int err = equeue_create(&q1, 2048); + test_assert(!err); + + equeue_t q2; + err = equeue_create(&q2, 2048); + test_assert(!err); + + equeue_chain(&q2, &q1); + + int touched = 0; + + int id1 = equeue_call_in(&q1, 20, simple_func, &touched); + int id2 = equeue_call_in(&q2, 20, simple_func, &touched); + test_assert(id1 && id2); + + id1 = equeue_call(&q1, simple_func, &touched); + id2 = equeue_call(&q2, simple_func, &touched); + test_assert(id1 && id2); + + id1 = equeue_call_in(&q1, 5, simple_func, &touched); + id2 = equeue_call_in(&q2, 5, simple_func, &touched); + test_assert(id1 && id2); + + equeue_cancel(&q1, id1); + equeue_cancel(&q2, id2); + + id1 = equeue_call_in(&q1, 10, simple_func, &touched); + id2 = equeue_call_in(&q2, 10, simple_func, &touched); + test_assert(id1 && id2); + + equeue_dispatch(&q1, 30); + + test_assert(touched == 6); +} + +// Barrage tests +void simple_barrage_test(int N) { + equeue_t q; + int err = equeue_create(&q, N*(EQUEUE_EVENT_SIZE+sizeof(struct timing))); + test_assert(!err); + + for (int i = 0; i < N; i++) { + struct timing *timing = equeue_alloc(&q, sizeof(struct timing)); + test_assert(timing); + + timing->tick = equeue_tick(); + timing->delay = (i+1)*100; + equeue_event_delay(timing, timing->delay); + equeue_event_period(timing, timing->delay); + + int id = equeue_post(&q, timing_func, timing); + test_assert(id); + } + + equeue_dispatch(&q, N*100); + + equeue_destroy(&q); +} + +void fragmenting_barrage_test(int N) { + equeue_t q; + int err = equeue_create(&q, + 2*N*(EQUEUE_EVENT_SIZE+sizeof(struct fragment)+N*sizeof(int))); + test_assert(!err); + + for (int i = 0; i < N; i++) { + size_t size = sizeof(struct fragment) + i*sizeof(int); + struct fragment *fragment = equeue_alloc(&q, size); + test_assert(fragment); + + fragment->q = &q; + fragment->size = size; + fragment->timing.tick = equeue_tick(); + fragment->timing.delay = (i+1)*100; + equeue_event_delay(fragment, fragment->timing.delay); + + int id = equeue_post(&q, fragment_func, fragment); + test_assert(id); + } + + equeue_dispatch(&q, N*100); + + equeue_destroy(&q); +} + +struct ethread { + pthread_t thread; + equeue_t *q; + int ms; +}; + +static void *ethread_dispatch(void *p) { + struct ethread *t = (struct ethread*)p; + equeue_dispatch(t->q, t->ms); + return 0; +} + +void multithreaded_barrage_test(int N) { + equeue_t q; + int err = equeue_create(&q, N*(EQUEUE_EVENT_SIZE+sizeof(struct timing))); + test_assert(!err); + + struct ethread t; + t.q = &q; + t.ms = N*100; + err = pthread_create(&t.thread, 0, ethread_dispatch, &t); + test_assert(!err); + + for (int i = 0; i < N; i++) { + struct timing *timing = equeue_alloc(&q, sizeof(struct timing)); + test_assert(timing); + + timing->tick = equeue_tick(); + timing->delay = (i+1)*100; + equeue_event_delay(timing, timing->delay); + equeue_event_period(timing, timing->delay); + + int id = equeue_post(&q, timing_func, timing); + test_assert(id); + } + + err = pthread_join(t.thread, 0); + test_assert(!err); + + equeue_destroy(&q); +} + + +int main() { + printf("beginning tests...\n"); + + test_run(simple_call_test); + test_run(simple_call_in_test); + test_run(simple_call_every_test); + test_run(simple_post_test); + test_run(destructor_test); + test_run(allocation_failure_test); + test_run(cancel_test, 20); + test_run(cancel_inflight_test); + test_run(cancel_unnecessarily_test); + test_run(loop_protect_test); + test_run(break_test); + test_run(period_test); + test_run(nested_test); + test_run(sloth_test); + test_run(background_test); + test_run(chain_test); + test_run(multithread_test); + test_run(simple_barrage_test, 20); + test_run(fragmenting_barrage_test, 20); + test_run(multithreaded_barrage_test, 20); + + printf("done!\n"); + return test_failure; +} diff --git a/events/mbed_events.h b/events/mbed_events.h new file mode 100644 index 0000000000..781a9b7046 --- /dev/null +++ b/events/mbed_events.h @@ -0,0 +1,33 @@ +/* events + * Copyright (c) 2016 ARM Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#ifndef MBED_EVENTS_H +#define MBED_EVENTS_H + + +#include "equeue/equeue.h" + + +#ifdef __cplusplus + +#include "events/EventQueue.h" +#include "events/Event.h" + +using namespace events; + +#endif + + +#endif diff --git a/events/mbed_lib.json b/events/mbed_lib.json new file mode 100644 index 0000000000..7c6edcce89 --- /dev/null +++ b/events/mbed_lib.json @@ -0,0 +1,6 @@ +{ + "name": "events", + "config": { + "present": 1 + } +} diff --git a/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/hal_patch/nordic_critical.c b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/hal_patch/nordic_critical.c new file mode 100644 index 0000000000..c8ebae99a7 --- /dev/null +++ b/features/FEATURE_BLE/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/hal_patch/nordic_critical.c @@ -0,0 +1,80 @@ +/* + * Copyright (c) 2015-2016, ARM Limited, All Rights Reserved + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include // uint32_t, UINT32_MAX +#include // uint32_t, UINT32_MAX +#include "cmsis.h" +#include "nrf_soc.h" +#include "nrf_sdm.h" + +static union { + uint32_t _PRIMASK_state; + uint8_t _sd_state; +} _state = { 0 } ; +static volatile uint32_t _entry_count = 0; +static bool _use_softdevice_routine = false; + +void core_util_critical_section_enter() +{ + // if a critical section has already been entered, just update the counter + if (_entry_count) { + ++_entry_count; + return; + } + + // in this path, a critical section has never been entered + uint32_t primask = __get_PRIMASK(); + + // if interrupts are enabled, try to use the soft device + uint8_t sd_enabled; + if ((primask == 0) && (sd_softdevice_is_enabled(&sd_enabled) == NRF_SUCCESS) && sd_enabled == 1) { + // if the soft device can be use, use it + sd_nvic_critical_region_enter(&_state._sd_state); + _use_softdevice_routine = true; + } else { + // if interrupts where enabled, disable them + if(primask == 0) { + __disable_irq(); + } + + // store the PRIMASK state, it will be restored at the end of the critical section + _state._PRIMASK_state = primask; + _use_softdevice_routine = false; + } + + assert(_entry_count == 0); // entry count should always be equal to 0 at this point + ++_entry_count; +} + +void core_util_critical_section_exit() +{ + assert(_entry_count > 0); + --_entry_count; + + // If their is other segments which have entered the critical section, just leave + if (_entry_count) { + return; + } + + // This is the last segment of the critical section, state should be restored as before entering + // the critical section + if (_use_softdevice_routine) { + sd_nvic_critical_region_exit(_state._sd_state); + } else { + __set_PRIMASK(_state._PRIMASK_state); + } +} diff --git a/features/FEATURE_COMMON_PAL/mbed-trace/README.md b/features/FEATURE_COMMON_PAL/mbed-trace/README.md index af3fbed324..695b65795e 100644 --- a/features/FEATURE_COMMON_PAL/mbed-trace/README.md +++ b/features/FEATURE_COMMON_PAL/mbed-trace/README.md @@ -43,13 +43,37 @@ The purpose of the library is to provide a light, simple and general tracing sol ### Prerequisites * Initialize the serial port so that `stdout` works. You can verify that the serial port works using the `printf()` function. - * if you want to redirect the traces somewhere else, see the [trace API](https://github.com/ARMmbed/mbed-trace/blob/master/mbed-trace/mbed_trace.h#L170). -* to activate traces, configure yotta with flag: `YOTTA_CFG_MBED_TRACE` set to 1 or true. Setting the flag to 0 or false disables tracing. - * By default trace uses 1024 bytes buffer for trace lines, but it can be configure by yotta with: `YOTTA_CFG_MBED_TRACE_LINE_LENGTH`. Default length: 1024. - * To disable ipv6 convertion, set `YOTTA_CFG_MBED_TRACE_FEA_IPV6 = 0` from yotta configurations. -* If thread safety is needed, configure the wait and release callback functions before initialization so that the protection is in place as soon as the library is initialized. This should usually only be done once in the application's lifetime. + * if you want to redirect the traces somewhere else, see the [trace API](https://github.com/ARMmbed/mbed-trace/blob/master/mbed-trace/mbed_trace.h#L170). +* To enable the tracing API: + * With yotta: set `YOTTA_CFG_MBED_TRACE` to 1 or true. Setting the flag to 0 or false disables tracing. + * [With mbed OS 5](#enabling-the-tracing-api-in-mbed-os-5) +* By default, trace uses 1024 bytes buffer for trace lines, but you can change it by yotta with: `YOTTA_CFG_MBED_TRACE_LINE_LENGTH`. +* To disable the IPv6 conversion, set `YOTTA_CFG_MBED_TRACE_FEA_IPV6 = 0`. +* If thread safety is needed, configure the wait and release callback functions before initialization to enable the protection. Usually, this needs to be done only once in the application's lifetime. * Call the trace initialization (`mbed_trace_init`) once before using any other APIs. It allocates the trace buffer and initializes the internal variables. -* Define `TRACE_GROUP` in your source code (not in the header!) to use traces. `TRACE_GROUP` is a 1-4 character long char-array (for example `#define TRACE_GROUP "APPL"`). This will be printed on every trace line. +* Define `TRACE_GROUP` in your source code (not in the header!) to use traces. It is a 1-4 characters long char-array (for example `#define TRACE_GROUP "APPL"`). This will be printed on every trace line. + +### Enabling the tracing API in mbed OS 5 + +* Add the feature COMMON_PAL into the build +* Set `MBED_CONF_MBED_TRACE_ENABLE` to 1 or true + +To do so, add the following to your mbed_app.json: + +```json +{ + "target_overrides": { + "*": { + "target.features_add": ["COMMON_PAL"], + "mbed-trace.enable": 1 + } + } +} +``` + +Don't forget to fulfill the other [prerequisites](#prerequisites)! + +([Click here for more information on the configuration system](https://github.com/ARMmbed/mbed-os/blob/master/docs/config_system.md)) ### Traces @@ -63,20 +87,20 @@ Available levels: * info * cmdline (special behavior, should not be used) -Set mutex wait and release functions, if thread safety is needed. Do this before initialization so the functions are immediately available: +For the thread safety, set the mutex wait and release functions. You need do this before the initialization to have the functions available right away: ```c mbed_trace_mutex_wait_function_set(my_mutex_wait); mbed_trace_mutex_release_function_set(my_mutex_release); ``` -Initialization (once in application lifetime): +Initialization (once in application's lifetime): ```c int mbed_trace_init(void); ``` -Set output function, `printf` by default: +Set the output function, `printf` by default: ```c mbed_trace_print_function_set(printf) @@ -84,10 +108,14 @@ mbed_trace_print_function_set(printf) ### Helping functions -The purpose of the helping functions is to provide simple conversions, for example from an array to C string, so that you can print everything to single trace line. -These must be called inside actual trace calls, e.g. ```tr_debug("My IP6 address: %s", mbed_trace_ipv6(addr));```. +The purpose of the helping functions is to provide simple conversions, for example from an array to C string, so that you can print everything to single trace line. They must be called inside the actual trace calls, for example: + +``` +tr_debug("My IP6 address: %s", mbed_trace_ipv6(addr)); +``` Available conversion functions: + ``` char *mbed_trace_ipv6(const void *addr_ptr) char *mbed_trace_ipv6_prefix(const uint8_t *prefix, uint8_t prefix_len) @@ -104,7 +132,7 @@ See more in [mbed_trace.h](https://github.com/ARMmbed/mbed-trace/blob/master/mbe #include "mbed-trace/mbed_trace.h" #define TRACE_GROUP "main" - // These are only necessary if thread safety is needed + // These are necessary only if thread safety is needed static Mutex MyMutex; static void my_mutex_wait() { @@ -131,15 +159,17 @@ int main(void){ ## Unit tests -To run unit tests +To run unit tests: + +* In Linux -* In Linux: ``` yotta target x86-linux-native yotta test mbed_trace_test ``` -* In Windows: +* In Windows + ``` yotta target x86-windows-native yotta test mbed_trace_test diff --git a/features/FEATURE_COMMON_PAL/mbed-trace/source/mbed_trace.c b/features/FEATURE_COMMON_PAL/mbed-trace/source/mbed_trace.c index ec514ecb5c..503673d995 100644 --- a/features/FEATURE_COMMON_PAL/mbed-trace/source/mbed_trace.c +++ b/features/FEATURE_COMMON_PAL/mbed-trace/source/mbed_trace.c @@ -454,7 +454,8 @@ void mbed_vtracef(uint8_t dlevel, const char* grp, const char *fmt, va_list ap) end: if ( m_trace.mutex_release_f ) { - for ( ;m_trace.mutex_lock_count > 0; m_trace.mutex_lock_count-- ) { + while (m_trace.mutex_lock_count > 0) { + m_trace.mutex_lock_count--; m_trace.mutex_release_f(); } } diff --git a/features/net/FEATURE_IPV4/TESTS/mbedmicro-net/.mbedignore b/features/FEATURE_LWIP/TESTS/mbedmicro-net/.mbedignore similarity index 100% rename from features/net/FEATURE_IPV4/TESTS/mbedmicro-net/.mbedignore rename to features/FEATURE_LWIP/TESTS/mbedmicro-net/.mbedignore diff --git a/features/net/FEATURE_IPV4/TESTS/mbedmicro-net/host_tests/tcp_echo_client.py b/features/FEATURE_LWIP/TESTS/mbedmicro-net/host_tests/tcp_echo_client.py similarity index 100% rename from features/net/FEATURE_IPV4/TESTS/mbedmicro-net/host_tests/tcp_echo_client.py rename to features/FEATURE_LWIP/TESTS/mbedmicro-net/host_tests/tcp_echo_client.py diff --git a/features/net/FEATURE_IPV4/TESTS/mbedmicro-net/host_tests/udp_echo_client.py b/features/FEATURE_LWIP/TESTS/mbedmicro-net/host_tests/udp_echo_client.py similarity index 100% rename from features/net/FEATURE_IPV4/TESTS/mbedmicro-net/host_tests/udp_echo_client.py rename to features/FEATURE_LWIP/TESTS/mbedmicro-net/host_tests/udp_echo_client.py diff --git a/features/net/FEATURE_IPV4/TESTS/mbedmicro-net/nist_internet_time_service/main.cpp b/features/FEATURE_LWIP/TESTS/mbedmicro-net/nist_internet_time_service/main.cpp similarity index 96% rename from features/net/FEATURE_IPV4/TESTS/mbedmicro-net/nist_internet_time_service/main.cpp rename to features/FEATURE_LWIP/TESTS/mbedmicro-net/nist_internet_time_service/main.cpp index 0349dfe8b8..730f8d3511 100644 --- a/features/net/FEATURE_IPV4/TESTS/mbedmicro-net/nist_internet_time_service/main.cpp +++ b/features/FEATURE_LWIP/TESTS/mbedmicro-net/nist_internet_time_service/main.cpp @@ -1,5 +1,5 @@ -#if !FEATURE_IPV4 - #error [NOT_SUPPORTED] IPV4 not supported for this target +#if !FEATURE_LWIP + #error [NOT_SUPPORTED] LWIP not supported for this target #endif #include "mbed.h" diff --git a/features/net/FEATURE_IPV4/TESTS/mbedmicro-net/tcp_client_echo/main.cpp b/features/FEATURE_LWIP/TESTS/mbedmicro-net/tcp_client_echo/main.cpp similarity index 96% rename from features/net/FEATURE_IPV4/TESTS/mbedmicro-net/tcp_client_echo/main.cpp rename to features/FEATURE_LWIP/TESTS/mbedmicro-net/tcp_client_echo/main.cpp index 6c35e8a3a7..d5c4abcf1d 100644 --- a/features/net/FEATURE_IPV4/TESTS/mbedmicro-net/tcp_client_echo/main.cpp +++ b/features/FEATURE_LWIP/TESTS/mbedmicro-net/tcp_client_echo/main.cpp @@ -1,5 +1,5 @@ -#if !FEATURE_IPV4 - #error [NOT_SUPPORTED] IPV4 not supported for this target +#if !FEATURE_LWIP + #error [NOT_SUPPORTED] LWIP not supported for this target #endif #include "mbed.h" diff --git a/features/net/FEATURE_IPV4/TESTS/mbedmicro-net/tcp_client_hello_world/main.cpp b/features/FEATURE_LWIP/TESTS/mbedmicro-net/tcp_client_hello_world/main.cpp similarity index 97% rename from features/net/FEATURE_IPV4/TESTS/mbedmicro-net/tcp_client_hello_world/main.cpp rename to features/FEATURE_LWIP/TESTS/mbedmicro-net/tcp_client_hello_world/main.cpp index 650c54b59f..fb4d39f388 100644 --- a/features/net/FEATURE_IPV4/TESTS/mbedmicro-net/tcp_client_hello_world/main.cpp +++ b/features/FEATURE_LWIP/TESTS/mbedmicro-net/tcp_client_hello_world/main.cpp @@ -1,5 +1,5 @@ -#if !FEATURE_IPV4 - #error [NOT_SUPPORTED] IPV4 not supported for this target +#if !FEATURE_LWIP + #error [NOT_SUPPORTED] LWIP not supported for this target #endif #include diff --git a/features/net/FEATURE_IPV4/TESTS/mbedmicro-net/udp_echo_client/main.cpp b/features/FEATURE_LWIP/TESTS/mbedmicro-net/udp_echo_client/main.cpp similarity index 96% rename from features/net/FEATURE_IPV4/TESTS/mbedmicro-net/udp_echo_client/main.cpp rename to features/FEATURE_LWIP/TESTS/mbedmicro-net/udp_echo_client/main.cpp index a103c30b11..5c7f208d1b 100644 --- a/features/net/FEATURE_IPV4/TESTS/mbedmicro-net/udp_echo_client/main.cpp +++ b/features/FEATURE_LWIP/TESTS/mbedmicro-net/udp_echo_client/main.cpp @@ -1,5 +1,5 @@ -#if !FEATURE_IPV4 - #error [NOT_SUPPORTED] IPV4 not supported for this target +#if !FEATURE_LWIP + #error [NOT_SUPPORTED] LWIP not supported for this target #endif #include "mbed.h" diff --git a/features/net/FEATURE_IPV4/lwip-interface/.mbedignore b/features/FEATURE_LWIP/lwip-interface/.mbedignore similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/.mbedignore rename to features/FEATURE_LWIP/lwip-interface/.mbedignore diff --git a/features/net/FEATURE_IPV4/lwip-interface/EthernetInterface.cpp b/features/FEATURE_LWIP/lwip-interface/EthernetInterface.cpp similarity index 86% rename from features/net/FEATURE_IPV4/lwip-interface/EthernetInterface.cpp rename to features/FEATURE_LWIP/lwip-interface/EthernetInterface.cpp index 37fc686212..ae672a55ee 100644 --- a/features/net/FEATURE_IPV4/lwip-interface/EthernetInterface.cpp +++ b/features/FEATURE_LWIP/lwip-interface/EthernetInterface.cpp @@ -41,7 +41,7 @@ int EthernetInterface::set_dhcp(bool dhcp) int EthernetInterface::connect() { - return lwip_bringup(_dhcp, + return mbed_lwip_bringup(_dhcp, _ip_address[0] ? _ip_address : 0, _netmask[0] ? _netmask : 0, _gateway[0] ? _gateway : 0); @@ -49,17 +49,17 @@ int EthernetInterface::connect() int EthernetInterface::disconnect() { - return lwip_bringdown(); + return mbed_lwip_bringdown(); } const char *EthernetInterface::get_mac_address() { - return lwip_get_mac_address(); + return mbed_lwip_get_mac_address(); } const char *EthernetInterface::get_ip_address() { - if (lwip_get_ip_address(_ip_address, sizeof _ip_address)) { + if (mbed_lwip_get_ip_address(_ip_address, sizeof _ip_address)) { return _ip_address; } @@ -68,7 +68,7 @@ const char *EthernetInterface::get_ip_address() const char *EthernetInterface::get_netmask() { - if (lwip_get_netmask(_netmask, sizeof _netmask)) { + if (mbed_lwip_get_netmask(_netmask, sizeof _netmask)) { return _netmask; } @@ -77,7 +77,7 @@ const char *EthernetInterface::get_netmask() const char *EthernetInterface::get_gateway() { - if (lwip_get_gateway(_gateway, sizeof _gateway)) { + if (mbed_lwip_get_gateway(_gateway, sizeof _gateway)) { return _gateway; } diff --git a/features/net/FEATURE_IPV4/lwip-interface/EthernetInterface.h b/features/FEATURE_LWIP/lwip-interface/EthernetInterface.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/EthernetInterface.h rename to features/FEATURE_LWIP/lwip-interface/EthernetInterface.h diff --git a/features/FEATURE_LWIP/lwip-interface/emac_lwip.c b/features/FEATURE_LWIP/lwip-interface/emac_lwip.c new file mode 100644 index 0000000000..01f09faf0f --- /dev/null +++ b/features/FEATURE_LWIP/lwip-interface/emac_lwip.c @@ -0,0 +1,91 @@ +/* mbed Microcontroller Library + * Copyright (c) 2016 ARM Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "platform.h" + +#if DEVICE_EMAC + +#include "emac_api.h" +#include "emac_stack_mem.h" +#include "lwip/tcpip.h" +#include "lwip/tcp.h" +#include "lwip/ip.h" +#include "netif/etharp.h" + +static err_t emac_lwip_low_level_output(struct netif *netif, struct pbuf *p) +{ + emac_interface_t *mac = (emac_interface_t *)netif->state; + bool ret = mac->ops.link_out(mac, (emac_stack_mem_t *)p); + + return ret ? ERR_OK : ERR_IF; +} + +static void emac_lwip_input(void *data, emac_stack_t *buf) +{ + struct pbuf *p = (struct pbuf *)buf; + struct netif *netif = (struct netif *)data; + + /* pass all packets to ethernet_input, which decides what packets it supports */ + if (netif->input(p, netif) != ERR_OK) { + LWIP_DEBUGF(NETIF_DEBUG, ("Emac LWIP: IP input error\n")); + + pbuf_free(p); + } +} + +static void emac_lwip_state_change(void *data, bool up) +{ + struct netif *netif = (struct netif *)data; + + if (up) { + tcpip_callback_with_block((tcpip_callback_fn)netif_set_link_up, netif, 1); + } else { + tcpip_callback_with_block((tcpip_callback_fn)netif_set_link_down, netif, 1); + } +} + +err_t emac_lwip_if_init(struct netif *netif) +{ + int err = ERR_OK; + emac_interface_t *mac = (emac_interface_t *)netif->state; + + mac->ops.set_link_input_cb(mac, emac_lwip_input, netif); + mac->ops.set_link_state_cb(mac, emac_lwip_state_change, netif); + + netif->hwaddr_len = mac->ops.get_hwaddr_size(mac); + mac->ops.get_hwaddr(mac, netif->hwaddr); + + netif->mtu = mac->ops.get_mtu_size(mac); + + /* Interface capabilities */ + netif->flags = NETIF_FLAG_BROADCAST | NETIF_FLAG_ETHARP | NETIF_FLAG_ETHERNET | NETIF_FLAG_IGMP; + + mac->ops.get_ifname(mac, netif->name, 2); + +#if LWIP_IPV4 + netif->output = etharp_output; +#endif /* LWIP_IPV4 */ + + netif->linkoutput = emac_lwip_low_level_output; + + if (!mac->ops.power_up(mac)) { + err = ERR_IF; + } + + return err; +} + +#endif /* DEVICE_EMAC */ diff --git a/features/FEATURE_LWIP/lwip-interface/emac_stack_lwip.cpp b/features/FEATURE_LWIP/lwip-interface/emac_stack_lwip.cpp new file mode 100644 index 0000000000..d543529fd6 --- /dev/null +++ b/features/FEATURE_LWIP/lwip-interface/emac_stack_lwip.cpp @@ -0,0 +1,88 @@ +/* mbed Microcontroller Library + * Copyright (c) 2016 ARM Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "platform.h" + +#if DEVICE_EMAC + +#include "emac_stack_mem.h" +#include "pbuf.h" + +emac_stack_mem_t *emac_stack_mem_alloc(emac_stack_t* stack, uint32_t size, uint32_t align) +{ + + struct pbuf *pbuf = pbuf_alloc(PBUF_RAW, size + align, PBUF_RAM); + if (pbuf == NULL) { + return NULL; + } + + if (align) { + uint32_t remainder = (uint32_t)pbuf->payload % align; + uint32_t offset = align - remainder; + if (offset >= align) { + offset = align; + } + + pbuf->payload = (void*)((char*)pbuf->payload + offset); + pbuf->tot_len -= offset; + pbuf->len -= offset; + } + + return (emac_stack_mem_t*)pbuf; +} + +void emac_stack_mem_free(emac_stack_t* stack, emac_stack_mem_t *mem) +{ + pbuf_free((struct pbuf*)mem); +} + +void *emac_stack_mem_ptr(emac_stack_t* stack, emac_stack_mem_t *mem) +{ + return ((struct pbuf*)mem)->payload; +} + +uint32_t emac_stack_mem_len(emac_stack_t* stack, emac_stack_mem_t *mem) +{ + return ((struct pbuf*)mem)->len; +} + +void emac_stack_mem_set_len(emac_stack_t* stack, emac_stack_mem_t *mem, uint32_t len) +{ + struct pbuf *pbuf = (struct pbuf*)mem; + + pbuf->len = len; +} + +emac_stack_mem_t *emac_stack_mem_chain_dequeue(emac_stack_t* stack, emac_stack_mem_chain_t **chain) +{ + struct pbuf **list = (struct pbuf**)chain; + struct pbuf *head = *list; + *list = (*list)->next; + + return (emac_stack_mem_t *)head; +} + +uint32_t emac_stack_mem_chain_len(emac_stack_t* stack, emac_stack_mem_chain_t *chain) +{ + return ((struct pbuf*)chain)->tot_len; +} + +void emac_stack_mem_ref(emac_stack_t* stack, emac_stack_mem_t *mem) +{ + pbuf_ref((struct pbuf*)mem); +} + +#endif /* DEVICE_EMAC */ diff --git a/libraries/net/eth/EthernetInterface/eth_arch.h b/features/FEATURE_LWIP/lwip-interface/eth_arch.h similarity index 94% rename from libraries/net/eth/EthernetInterface/eth_arch.h rename to features/FEATURE_LWIP/lwip-interface/eth_arch.h index 1ff54b1d38..25bdde38dd 100644 --- a/libraries/net/eth/EthernetInterface/eth_arch.h +++ b/features/FEATURE_LWIP/lwip-interface/eth_arch.h @@ -29,13 +29,17 @@ extern "C" { #endif +#if DEVICE_EMAC +err_t emac_lwip_if_init(struct netif *netif); + +#else /* DEVICE_EMAC */ void eth_arch_enable_interrupts(void); void eth_arch_disable_interrupts(void); err_t eth_arch_enetif_init(struct netif *netif); +#endif #ifdef __cplusplus } #endif #endif // #ifndef ETHARCHINTERFACE_H_ - diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_Freescale/hardware_init_MK64F12.c b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_Freescale/hardware_init_MK64F12.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_Freescale/hardware_init_MK64F12.c rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_Freescale/hardware_init_MK64F12.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_Freescale/k64f_emac.c b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_Freescale/k64f_emac.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_Freescale/k64f_emac.c rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_Freescale/k64f_emac.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_Freescale/k64f_emac_config.h b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_Freescale/k64f_emac_config.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_Freescale/k64f_emac_config.h rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_Freescale/k64f_emac_config.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_Freescale/lwipopts_conf.h b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_Freescale/lwipopts_conf.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_Freescale/lwipopts_conf.h rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_Freescale/lwipopts_conf.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_NUVOTON/TARGET_NUC472/lwipopts_conf.h b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NUVOTON/TARGET_NUC472/lwipopts_conf.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_NUVOTON/TARGET_NUC472/lwipopts_conf.h rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NUVOTON/TARGET_NUC472/lwipopts_conf.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_NUVOTON/TARGET_NUC472/nuc472_eth.c b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NUVOTON/TARGET_NUC472/nuc472_eth.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_NUVOTON/TARGET_NUC472/nuc472_eth.c rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NUVOTON/TARGET_NUC472/nuc472_eth.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_NUVOTON/TARGET_NUC472/nuc472_eth.h b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NUVOTON/TARGET_NUC472/nuc472_eth.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_NUVOTON/TARGET_NUC472/nuc472_eth.h rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NUVOTON/TARGET_NUC472/nuc472_eth.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_NUVOTON/TARGET_NUC472/nuc472_netif.c b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NUVOTON/TARGET_NUC472/nuc472_netif.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_NUVOTON/TARGET_NUC472/nuc472_netif.c rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NUVOTON/TARGET_NUC472/nuc472_netif.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_NUVOTON/TARGET_NUC472/nuc472_netif.h b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NUVOTON/TARGET_NUC472/nuc472_netif.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_NUVOTON/TARGET_NUC472/nuc472_netif.h rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NUVOTON/TARGET_NUC472/nuc472_netif.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc17_emac.c b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc17_emac.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc17_emac.c rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc17_emac.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc17xx_emac.h b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc17xx_emac.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc17xx_emac.h rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc17xx_emac.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc_emac_config.h b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc_emac_config.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc_emac_config.h rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc_emac_config.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc_phy.h b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc_phy.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc_phy.h rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc_phy.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc_phy_dp83848.c b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc_phy_dp83848.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc_phy_dp83848.c rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP/lpc_phy_dp83848.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_NXP/lwipopts_conf.h b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP/lwipopts_conf.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_NXP/lwipopts_conf.h rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_NXP/lwipopts_conf.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_RZ_A1H/lwipopts_conf.h b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_RZ_A1H/lwipopts_conf.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_RZ_A1H/lwipopts_conf.h rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_RZ_A1H/lwipopts_conf.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_RZ_A1H/rza1_emac.c b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_RZ_A1H/rza1_emac.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_RZ_A1H/rza1_emac.c rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_RZ_A1H/rza1_emac.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/stm32f2_eth_init.c b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/stm32f2_eth_init.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/stm32f2_eth_init.c rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/stm32f2_eth_init.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/stm32f4_eth_init.c b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/stm32f4_eth_init.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/stm32f4_eth_init.c rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/stm32f4_eth_init.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/stm32f4_eth_init.c b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/stm32f4_eth_init.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/stm32f4_eth_init.c rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/stm32f4_eth_init.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/stm32f4_eth_init.c b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/stm32f4_eth_init.c similarity index 98% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/stm32f4_eth_init.c rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/stm32f4_eth_init.c index 34f13499ac..227d7d5843 100644 --- a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/stm32f4_eth_init.c +++ b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/stm32f4_eth_init.c @@ -119,7 +119,7 @@ void HAL_ETH_MspDeInit(ETH_HandleTypeDef* heth) } } -void mbed_mac_address(char *mac) +uint8_t mbed_otp_mac_address(char *mac) { C029_OTP_Header *pFound = NULL; C029_OTP_Header *pTemp = (C029_OTP_Header*)C029_OTP_START_ADDRESS; @@ -140,4 +140,6 @@ void mbed_mac_address(char *mac) } } memcpy(mac, _macAddr, 6); + + return 1; } diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/stm32f7_eth_init.c b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/stm32f7_eth_init.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/stm32f7_eth_init.c rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/stm32f7_eth_init.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/stm32f7_eth_init.c b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/stm32f7_eth_init.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/stm32f7_eth_init.c rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/stm32f7_eth_init.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/stm32f7_eth_init.c b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/stm32f7_eth_init.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/stm32f7_eth_init.c rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/stm32f7_eth_init.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/stm32f7_eth_init.c b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/stm32f7_eth_init.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/stm32f7_eth_init.c rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/stm32f7_eth_init.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM/lwipopts_conf.h b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/lwipopts_conf.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM/lwipopts_conf.h rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/lwipopts_conf.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM/stm32xx_emac.c b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/stm32xx_emac.c similarity index 92% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM/stm32xx_emac.c rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/stm32xx_emac.c index 9962e237ee..4e230228aa 100644 --- a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_STM/stm32xx_emac.c +++ b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_STM/stm32xx_emac.c @@ -50,6 +50,8 @@ static err_t _eth_arch_netif_output_ipv6(struct netif *netif, struct pbuf *q, co static err_t _eth_arch_low_level_output(struct netif *netif, struct pbuf *p); static struct pbuf * _eth_arch_low_level_input(struct netif *netif); +__weak uint8_t mbed_otp_mac_address(char *mac); +void mbed_default_mac_address(char *mac); /** * Ethernet Rx Transfer completed callback @@ -468,3 +470,45 @@ void eth_arch_disable_interrupts(void) { NVIC_DisableIRQ(ETH_IRQn); } + +/** This returns a unique 6-byte MAC address, based on the device UID +* This function overrides hal/common/mbed_interface.c function +* @param mac A 6-byte array to write the MAC address +*/ + +void mbed_mac_address(char *mac) { + if (mbed_otp_mac_address(mac)) { + return; + } else { + mbed_default_mac_address(mac); + } + return; +} + +__weak uint8_t mbed_otp_mac_address(char *mac) { + return 0; +} + +void mbed_default_mac_address(char *mac) { + unsigned char ST_mac_addr[3] = {0x00, 0x80, 0xe1}; // default STMicro mac address + + // Read unic id +#if defined (TARGET_STM32F2) + uint32_t word0 = *(uint32_t *)0x1FFF7A10; +#elif defined (TARGET_STM32F4) + uint32_t word0 = *(uint32_t *)0x1FFF7A10; +#elif defined (TARGET_STM32F7) + uint32_t word0 = *(uint32_t *)0x1FF0F420; +#else + #error MAC address can not be derived from target unique Id +#endif + + mac[0] = ST_mac_addr[0]; + mac[1] = ST_mac_addr[1]; + mac[2] = ST_mac_addr[2]; + mac[3] = (word0 & 0x00ff0000) >> 16; + mac[4] = (word0 & 0x0000ff00) >> 8; + mac[5] = (word0 & 0x000000ff); + + return; +} diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_VK_RZ_A1H/lwipopts_conf.h b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_VK_RZ_A1H/lwipopts_conf.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_VK_RZ_A1H/lwipopts_conf.h rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_VK_RZ_A1H/lwipopts_conf.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_VK_RZ_A1H/rza1_emac.c b/features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_VK_RZ_A1H/rza1_emac.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-eth/arch/TARGET_VK_RZ_A1H/rza1_emac.c rename to features/FEATURE_LWIP/lwip-interface/lwip-eth/arch/TARGET_VK_RZ_A1H/rza1_emac.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-sys/arch/cc.h b/features/FEATURE_LWIP/lwip-interface/lwip-sys/arch/cc.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-sys/arch/cc.h rename to features/FEATURE_LWIP/lwip-interface/lwip-sys/arch/cc.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-sys/arch/lwip_checksum.c b/features/FEATURE_LWIP/lwip-interface/lwip-sys/arch/lwip_checksum.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-sys/arch/lwip_checksum.c rename to features/FEATURE_LWIP/lwip-interface/lwip-sys/arch/lwip_checksum.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-sys/arch/lwip_memcpy.c b/features/FEATURE_LWIP/lwip-interface/lwip-sys/arch/lwip_memcpy.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-sys/arch/lwip_memcpy.c rename to features/FEATURE_LWIP/lwip-interface/lwip-sys/arch/lwip_memcpy.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-sys/arch/lwip_sys_arch.c b/features/FEATURE_LWIP/lwip-interface/lwip-sys/arch/lwip_sys_arch.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-sys/arch/lwip_sys_arch.c rename to features/FEATURE_LWIP/lwip-interface/lwip-sys/arch/lwip_sys_arch.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-sys/arch/perf.h b/features/FEATURE_LWIP/lwip-interface/lwip-sys/arch/perf.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-sys/arch/perf.h rename to features/FEATURE_LWIP/lwip-interface/lwip-sys/arch/perf.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip-sys/arch/sys_arch.h b/features/FEATURE_LWIP/lwip-interface/lwip-sys/arch/sys_arch.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip-sys/arch/sys_arch.h rename to features/FEATURE_LWIP/lwip-interface/lwip-sys/arch/sys_arch.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/.gitattributes b/features/FEATURE_LWIP/lwip-interface/lwip/.gitattributes similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/.gitattributes rename to features/FEATURE_LWIP/lwip-interface/lwip/.gitattributes diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/.gitignore b/features/FEATURE_LWIP/lwip-interface/lwip/.gitignore similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/.gitignore rename to features/FEATURE_LWIP/lwip-interface/lwip/.gitignore diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/CHANGELOG b/features/FEATURE_LWIP/lwip-interface/lwip/CHANGELOG similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/CHANGELOG rename to features/FEATURE_LWIP/lwip-interface/lwip/CHANGELOG diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/COPYING b/features/FEATURE_LWIP/lwip-interface/lwip/COPYING similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/COPYING rename to features/FEATURE_LWIP/lwip-interface/lwip/COPYING diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/FILES b/features/FEATURE_LWIP/lwip-interface/lwip/FILES similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/FILES rename to features/FEATURE_LWIP/lwip-interface/lwip/FILES diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/README b/features/FEATURE_LWIP/lwip-interface/lwip/README similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/README rename to features/FEATURE_LWIP/lwip-interface/lwip/README diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/UPGRADING b/features/FEATURE_LWIP/lwip-interface/lwip/UPGRADING similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/UPGRADING rename to features/FEATURE_LWIP/lwip-interface/lwip/UPGRADING diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/doc/FILES b/features/FEATURE_LWIP/lwip-interface/lwip/doc/FILES similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/doc/FILES rename to features/FEATURE_LWIP/lwip-interface/lwip/doc/FILES diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/doc/contrib.txt b/features/FEATURE_LWIP/lwip-interface/lwip/doc/contrib.txt similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/doc/contrib.txt rename to features/FEATURE_LWIP/lwip-interface/lwip/doc/contrib.txt diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/doc/doxygen/generate.bat b/features/FEATURE_LWIP/lwip-interface/lwip/doc/doxygen/generate.bat similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/doc/doxygen/generate.bat rename to features/FEATURE_LWIP/lwip-interface/lwip/doc/doxygen/generate.bat diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/doc/doxygen/generate.sh b/features/FEATURE_LWIP/lwip-interface/lwip/doc/doxygen/generate.sh similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/doc/doxygen/generate.sh rename to features/FEATURE_LWIP/lwip-interface/lwip/doc/doxygen/generate.sh diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/doc/doxygen/lwip.Doxyfile b/features/FEATURE_LWIP/lwip-interface/lwip/doc/doxygen/lwip.Doxyfile similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/doc/doxygen/lwip.Doxyfile rename to features/FEATURE_LWIP/lwip-interface/lwip/doc/doxygen/lwip.Doxyfile diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/doc/doxygen/main_page.h b/features/FEATURE_LWIP/lwip-interface/lwip/doc/doxygen/main_page.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/doc/doxygen/main_page.h rename to features/FEATURE_LWIP/lwip-interface/lwip/doc/doxygen/main_page.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/doc/ppp.txt b/features/FEATURE_LWIP/lwip-interface/lwip/doc/ppp.txt similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/doc/ppp.txt rename to features/FEATURE_LWIP/lwip-interface/lwip/doc/ppp.txt diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/doc/rawapi.txt b/features/FEATURE_LWIP/lwip-interface/lwip/doc/rawapi.txt similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/doc/rawapi.txt rename to features/FEATURE_LWIP/lwip-interface/lwip/doc/rawapi.txt diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/doc/savannah.txt b/features/FEATURE_LWIP/lwip-interface/lwip/doc/savannah.txt similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/doc/savannah.txt rename to features/FEATURE_LWIP/lwip-interface/lwip/doc/savannah.txt diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/doc/sys_arch.txt b/features/FEATURE_LWIP/lwip-interface/lwip/doc/sys_arch.txt similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/doc/sys_arch.txt rename to features/FEATURE_LWIP/lwip-interface/lwip/doc/sys_arch.txt diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/FILES b/features/FEATURE_LWIP/lwip-interface/lwip/src/FILES similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/FILES rename to features/FEATURE_LWIP/lwip-interface/lwip/src/FILES diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/Filelists.mk b/features/FEATURE_LWIP/lwip-interface/lwip/src/Filelists.mk similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/Filelists.mk rename to features/FEATURE_LWIP/lwip-interface/lwip/src/Filelists.mk diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/api/lwip_api_lib.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/api/lwip_api_lib.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/api/lwip_api_lib.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/api/lwip_api_lib.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/api/lwip_api_msg.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/api/lwip_api_msg.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/api/lwip_api_msg.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/api/lwip_api_msg.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/api/lwip_err.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/api/lwip_err.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/api/lwip_err.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/api/lwip_err.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/api/lwip_netbuf.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/api/lwip_netbuf.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/api/lwip_netbuf.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/api/lwip_netbuf.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/api/lwip_netdb.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/api/lwip_netdb.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/api/lwip_netdb.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/api/lwip_netdb.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/api/lwip_netifapi.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/api/lwip_netifapi.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/api/lwip_netifapi.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/api/lwip_netifapi.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/api/lwip_sockets.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/api/lwip_sockets.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/api/lwip_sockets.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/api/lwip_sockets.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/api/lwip_tcpip.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/api/lwip_tcpip.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/api/lwip_tcpip.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/api/lwip_tcpip.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/httpd/fs/404.html b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/httpd/fs/404.html similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/httpd/fs/404.html rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/httpd/fs/404.html diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/httpd/fs/img/sics.gif b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/httpd/fs/img/sics.gif similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/httpd/fs/img/sics.gif rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/httpd/fs/img/sics.gif diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/httpd/fs/index.html b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/httpd/fs/index.html similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/httpd/fs/index.html rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/httpd/fs/index.html diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/httpd/fsdata.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/httpd/fsdata.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/httpd/fsdata.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/httpd/fsdata.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/httpd/httpd_structs.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/httpd/httpd_structs.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/httpd/httpd_structs.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/httpd/httpd_structs.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/httpd/lwip_fs.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/httpd/lwip_fs.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/httpd/lwip_fs.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/httpd/lwip_fs.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/httpd/lwip_fsdata.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/httpd/lwip_fsdata.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/httpd/lwip_fsdata.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/httpd/lwip_fsdata.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/httpd/lwip_httpd.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/httpd/lwip_httpd.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/httpd/lwip_httpd.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/httpd/lwip_httpd.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/httpd/makefsdata/lwip_makefsdata.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/httpd/makefsdata/lwip_makefsdata.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/httpd/makefsdata/lwip_makefsdata.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/httpd/makefsdata/lwip_makefsdata.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/httpd/makefsdata/makefsdata b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/httpd/makefsdata/makefsdata similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/httpd/makefsdata/makefsdata rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/httpd/makefsdata/makefsdata diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/httpd/makefsdata/readme.txt b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/httpd/makefsdata/readme.txt similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/httpd/makefsdata/readme.txt rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/httpd/makefsdata/readme.txt diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/lwiperf/lwip_lwiperf.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/lwiperf/lwip_lwiperf.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/lwiperf/lwip_lwiperf.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/lwiperf/lwip_lwiperf.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/netbiosns/lwip_netbiosns.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/netbiosns/lwip_netbiosns.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/netbiosns/lwip_netbiosns.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/netbiosns/lwip_netbiosns.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/README b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/README similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/README rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/README diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_asn1.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_asn1.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_asn1.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_asn1.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_core.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_core.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_core.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_core.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_icmp.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_icmp.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_icmp.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_icmp.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_interfaces.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_interfaces.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_interfaces.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_interfaces.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_ip.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_ip.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_ip.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_ip.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_snmp.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_snmp.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_snmp.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_snmp.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_system.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_system.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_system.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_system.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_tcp.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_tcp.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_tcp.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_tcp.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_udp.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_udp.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_udp.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_mib2_udp.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_msg.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_msg.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_msg.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_msg.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_netconn.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_netconn.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_netconn.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_netconn.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_pbuf_stream.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_pbuf_stream.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_pbuf_stream.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_pbuf_stream.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_raw.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_raw.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_raw.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_raw.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_scalar.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_scalar.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_scalar.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_scalar.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_table.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_table.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_table.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_table.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_threadsync.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_threadsync.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_threadsync.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_threadsync.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_traps.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_traps.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmp_traps.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmp_traps.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmpv3.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmpv3.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmpv3.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmpv3.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmpv3_dummy.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmpv3_dummy.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmpv3_dummy.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmpv3_dummy.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmpv3_mbedtls.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmpv3_mbedtls.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/lwip_snmpv3_mbedtls.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/lwip_snmpv3_mbedtls.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/snmp_asn1.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/snmp_asn1.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/snmp_asn1.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/snmp_asn1.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/snmp_core_priv.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/snmp_core_priv.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/snmp_core_priv.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/snmp_core_priv.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/snmp_msg.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/snmp_msg.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/snmp_msg.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/snmp_msg.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/snmp_pbuf_stream.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/snmp_pbuf_stream.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/snmp_pbuf_stream.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/snmp_pbuf_stream.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/snmpv3_priv.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/snmpv3_priv.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/snmp/snmpv3_priv.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/snmp/snmpv3_priv.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/sntp/lwip_sntp.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/apps/sntp/lwip_sntp.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/apps/sntp/lwip_sntp.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/apps/sntp/lwip_sntp.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv4/lwip_autoip.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv4/lwip_autoip.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv4/lwip_autoip.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv4/lwip_autoip.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv4/lwip_dhcp.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv4/lwip_dhcp.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv4/lwip_dhcp.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv4/lwip_dhcp.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv4/lwip_etharp.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv4/lwip_etharp.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv4/lwip_etharp.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv4/lwip_etharp.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv4/lwip_icmp.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv4/lwip_icmp.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv4/lwip_icmp.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv4/lwip_icmp.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv4/lwip_igmp.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv4/lwip_igmp.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv4/lwip_igmp.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv4/lwip_igmp.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv4/lwip_ip4.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv4/lwip_ip4.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv4/lwip_ip4.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv4/lwip_ip4.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv4/lwip_ip4_addr.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv4/lwip_ip4_addr.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv4/lwip_ip4_addr.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv4/lwip_ip4_addr.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv4/lwip_ip4_frag.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv4/lwip_ip4_frag.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv4/lwip_ip4_frag.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv4/lwip_ip4_frag.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv6/README b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv6/README similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv6/README rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv6/README diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv6/lwip_dhcp6.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv6/lwip_dhcp6.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv6/lwip_dhcp6.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv6/lwip_dhcp6.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv6/lwip_ethip6.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv6/lwip_ethip6.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv6/lwip_ethip6.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv6/lwip_ethip6.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv6/lwip_icmp6.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv6/lwip_icmp6.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv6/lwip_icmp6.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv6/lwip_icmp6.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv6/lwip_inet6.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv6/lwip_inet6.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv6/lwip_inet6.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv6/lwip_inet6.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv6/lwip_ip6.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv6/lwip_ip6.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv6/lwip_ip6.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv6/lwip_ip6.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv6/lwip_ip6_addr.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv6/lwip_ip6_addr.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv6/lwip_ip6_addr.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv6/lwip_ip6_addr.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv6/lwip_ip6_frag.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv6/lwip_ip6_frag.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv6/lwip_ip6_frag.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv6/lwip_ip6_frag.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv6/lwip_mld6.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv6/lwip_mld6.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv6/lwip_mld6.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv6/lwip_mld6.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv6/lwip_nd6.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv6/lwip_nd6.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/ipv6/lwip_nd6.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/ipv6/lwip_nd6.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_def.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_def.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_def.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_def.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_dns.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_dns.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_dns.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_dns.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_inet_chksum.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_inet_chksum.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_inet_chksum.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_inet_chksum.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_init.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_init.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_init.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_init.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_ip.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_ip.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_ip.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_ip.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_mem.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_mem.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_mem.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_mem.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_memp.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_memp.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_memp.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_memp.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_netif.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_netif.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_netif.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_netif.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_pbuf.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_pbuf.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_pbuf.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_pbuf.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_raw.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_raw.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_raw.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_raw.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_stats.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_stats.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_stats.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_stats.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_sys.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_sys.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_sys.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_sys.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_tcp.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_tcp.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_tcp.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_tcp.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_tcp_in.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_tcp_in.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_tcp_in.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_tcp_in.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_tcp_out.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_tcp_out.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_tcp_out.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_tcp_out.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_timeouts.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_timeouts.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_timeouts.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_timeouts.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_udp.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_udp.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/core/lwip_udp.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/core/lwip_udp.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/api.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/api.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/api.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/api.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/FILES b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/FILES similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/FILES rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/FILES diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/fs.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/fs.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/fs.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/fs.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/httpd.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/httpd.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/httpd.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/httpd.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/httpd_opts.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/httpd_opts.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/httpd_opts.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/httpd_opts.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/lwiperf.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/lwiperf.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/lwiperf.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/lwiperf.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/netbiosns.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/netbiosns.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/netbiosns.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/netbiosns.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/netbiosns_opts.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/netbiosns_opts.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/netbiosns_opts.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/netbiosns_opts.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/snmp.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/snmp.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/snmp.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/snmp.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/snmp_core.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/snmp_core.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/snmp_core.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/snmp_core.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/snmp_mib2.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/snmp_mib2.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/snmp_mib2.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/snmp_mib2.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/snmp_opts.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/snmp_opts.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/snmp_opts.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/snmp_opts.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/snmp_scalar.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/snmp_scalar.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/snmp_scalar.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/snmp_scalar.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/snmp_table.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/snmp_table.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/snmp_table.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/snmp_table.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/snmp_threadsync.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/snmp_threadsync.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/snmp_threadsync.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/snmp_threadsync.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/snmpv3.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/snmpv3.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/snmpv3.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/snmpv3.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/sntp.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/sntp.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/sntp.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/sntp.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/sntp_opts.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/sntp_opts.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/apps/sntp_opts.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/apps/sntp_opts.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/arch.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/arch.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/arch.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/arch.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/autoip.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/autoip.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/autoip.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/autoip.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/debug.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/debug.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/debug.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/debug.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/def.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/def.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/def.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/def.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/dhcp.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/dhcp.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/dhcp.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/dhcp.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/dhcp6.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/dhcp6.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/dhcp6.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/dhcp6.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/dns.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/dns.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/dns.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/dns.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/err.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/err.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/err.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/err.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/etharp.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/etharp.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/etharp.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/etharp.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/ethip6.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/ethip6.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/ethip6.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/ethip6.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/icmp.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/icmp.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/icmp.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/icmp.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/icmp6.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/icmp6.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/icmp6.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/icmp6.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/igmp.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/igmp.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/igmp.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/igmp.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/inet.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/inet.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/inet.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/inet.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/inet_chksum.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/inet_chksum.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/inet_chksum.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/inet_chksum.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/init.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/init.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/init.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/init.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/ip.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/ip.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/ip.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/ip.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/ip4.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/ip4.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/ip4.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/ip4.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/ip4_addr.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/ip4_addr.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/ip4_addr.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/ip4_addr.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/ip4_frag.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/ip4_frag.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/ip4_frag.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/ip4_frag.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/ip6.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/ip6.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/ip6.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/ip6.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/ip6_addr.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/ip6_addr.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/ip6_addr.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/ip6_addr.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/ip6_frag.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/ip6_frag.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/ip6_frag.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/ip6_frag.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/ip_addr.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/ip_addr.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/ip_addr.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/ip_addr.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/mem.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/mem.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/mem.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/mem.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/memp.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/memp.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/memp.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/memp.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/mld6.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/mld6.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/mld6.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/mld6.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/nd6.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/nd6.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/nd6.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/nd6.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/netbuf.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/netbuf.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/netbuf.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/netbuf.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/netdb.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/netdb.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/netdb.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/netdb.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/netif.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/netif.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/netif.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/netif.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/netifapi.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/netifapi.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/netifapi.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/netifapi.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/opt.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/opt.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/opt.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/opt.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/pbuf.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/pbuf.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/pbuf.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/pbuf.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/priv/api_msg.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/priv/api_msg.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/priv/api_msg.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/priv/api_msg.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/priv/memp_priv.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/priv/memp_priv.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/priv/memp_priv.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/priv/memp_priv.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/priv/memp_std.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/priv/memp_std.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/priv/memp_std.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/priv/memp_std.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/priv/tcp_priv.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/priv/tcp_priv.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/priv/tcp_priv.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/priv/tcp_priv.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/priv/tcpip_priv.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/priv/tcpip_priv.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/priv/tcpip_priv.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/priv/tcpip_priv.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/raw.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/raw.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/raw.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/raw.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/sio.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/sio.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/sio.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/sio.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/snmp.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/snmp.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/snmp.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/snmp.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/sockets.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/sockets.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/sockets.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/sockets.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/stats.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/stats.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/stats.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/stats.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/sys.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/sys.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/sys.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/sys.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/tcp.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/tcp.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/tcp.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/tcp.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/tcpip.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/tcpip.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/tcpip.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/tcpip.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/timeouts.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/timeouts.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/timeouts.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/timeouts.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/udp.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/udp.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/lwip/udp.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/lwip/udp.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/etharp.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/etharp.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/etharp.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/etharp.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/lowpan6.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/lowpan6.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/lowpan6.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/lowpan6.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/lowpan6_opts.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/lowpan6_opts.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/lowpan6_opts.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/lowpan6_opts.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/lwip_ethernet.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/lwip_ethernet.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/lwip_ethernet.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/lwip_ethernet.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/ccp.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/ccp.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/ccp.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/ccp.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/chap-md5.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/chap-md5.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/chap-md5.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/chap-md5.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/chap-new.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/chap-new.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/chap-new.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/chap-new.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/chap_ms.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/chap_ms.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/chap_ms.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/chap_ms.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/eap.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/eap.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/eap.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/eap.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/ecp.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/ecp.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/ecp.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/ecp.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/eui64.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/eui64.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/eui64.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/eui64.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/fsm.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/fsm.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/fsm.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/fsm.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/ipcp.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/ipcp.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/ipcp.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/ipcp.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/ipv6cp.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/ipv6cp.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/ipv6cp.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/ipv6cp.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/lcp.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/lcp.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/lcp.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/lcp.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/magic.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/magic.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/magic.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/magic.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/mppe.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/mppe.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/mppe.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/mppe.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/polarssl/arc4.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/polarssl/arc4.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/polarssl/arc4.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/polarssl/arc4.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/polarssl/des.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/polarssl/des.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/polarssl/des.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/polarssl/des.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/polarssl/md4.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/polarssl/md4.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/polarssl/md4.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/polarssl/md4.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/polarssl/md5.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/polarssl/md5.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/polarssl/md5.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/polarssl/md5.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/polarssl/sha1.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/polarssl/sha1.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/polarssl/sha1.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/polarssl/sha1.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/ppp.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/ppp.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/ppp.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/ppp.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/ppp_impl.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/ppp_impl.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/ppp_impl.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/ppp_impl.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/ppp_opts.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/ppp_opts.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/ppp_opts.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/ppp_opts.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/pppapi.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/pppapi.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/pppapi.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/pppapi.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/pppcrypt.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/pppcrypt.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/pppcrypt.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/pppcrypt.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/pppdebug.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/pppdebug.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/pppdebug.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/pppdebug.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/pppoe.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/pppoe.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/pppoe.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/pppoe.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/pppol2tp.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/pppol2tp.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/pppol2tp.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/pppol2tp.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/pppos.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/pppos.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/pppos.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/pppos.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/upap.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/upap.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/upap.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/upap.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/vj.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/vj.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/ppp/vj.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/ppp/vj.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/slipif.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/slipif.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/netif/slipif.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/netif/slipif.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/posix/netdb.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/posix/netdb.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/posix/netdb.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/posix/netdb.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/posix/sys/socket.h b/features/FEATURE_LWIP/lwip-interface/lwip/src/include/posix/sys/socket.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/include/posix/sys/socket.h rename to features/FEATURE_LWIP/lwip-interface/lwip/src/include/posix/sys/socket.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/FILES b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/FILES similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/FILES rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/FILES diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/lwip_ethernet.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/lwip_ethernet.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/lwip_ethernet.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/lwip_ethernet.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/lwip_ethernetif.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/lwip_ethernetif.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/lwip_ethernetif.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/lwip_ethernetif.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/lwip_lowpan6.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/lwip_lowpan6.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/lwip_lowpan6.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/lwip_lowpan6.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/lwip_slipif.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/lwip_slipif.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/lwip_slipif.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/lwip_slipif.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/PPPD_FOLLOWUP b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/PPPD_FOLLOWUP similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/PPPD_FOLLOWUP rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/PPPD_FOLLOWUP diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_auth.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_auth.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_auth.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_auth.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_ccp.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_ccp.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_ccp.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_ccp.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_chap-md5.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_chap-md5.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_chap-md5.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_chap-md5.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_chap-new.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_chap-new.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_chap-new.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_chap-new.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_chap_ms.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_chap_ms.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_chap_ms.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_chap_ms.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_demand.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_demand.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_demand.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_demand.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_eap.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_eap.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_eap.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_eap.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_ecp.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_ecp.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_ecp.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_ecp.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_eui64.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_eui64.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_eui64.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_eui64.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_fsm.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_fsm.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_fsm.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_fsm.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_ipcp.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_ipcp.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_ipcp.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_ipcp.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_ipv6cp.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_ipv6cp.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_ipv6cp.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_ipv6cp.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_lcp.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_lcp.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_lcp.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_lcp.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_magic.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_magic.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_magic.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_magic.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_mppe.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_mppe.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_mppe.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_mppe.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_multilink.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_multilink.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_multilink.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_multilink.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_ppp.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_ppp.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_ppp.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_ppp.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_pppapi.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_pppapi.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_pppapi.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_pppapi.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_pppcrypt.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_pppcrypt.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_pppcrypt.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_pppcrypt.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_pppoe.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_pppoe.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_pppoe.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_pppoe.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_pppol2tp.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_pppol2tp.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_pppol2tp.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_pppol2tp.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_pppos.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_pppos.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_pppos.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_pppos.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_upap.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_upap.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_upap.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_upap.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_utils.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_utils.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_utils.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_utils.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_vj.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_vj.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/lwip_vj.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/lwip_vj.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/polarssl/README b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/polarssl/README similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/polarssl/README rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/polarssl/README diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/polarssl/lwip_arc4.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/polarssl/lwip_arc4.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/polarssl/lwip_arc4.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/polarssl/lwip_arc4.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/polarssl/lwip_des.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/polarssl/lwip_des.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/polarssl/lwip_des.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/polarssl/lwip_des.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/polarssl/lwip_md4.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/polarssl/lwip_md4.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/polarssl/lwip_md4.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/polarssl/lwip_md4.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/polarssl/lwip_md5.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/polarssl/lwip_md5.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/polarssl/lwip_md5.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/polarssl/lwip_md5.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/polarssl/lwip_sha1.c b/features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/polarssl/lwip_sha1.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/src/netif/ppp/polarssl/lwip_sha1.c rename to features/FEATURE_LWIP/lwip-interface/lwip/src/netif/ppp/polarssl/lwip_sha1.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/core/test_mem.c b/features/FEATURE_LWIP/lwip-interface/lwip/test/unit/core/test_mem.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/core/test_mem.c rename to features/FEATURE_LWIP/lwip-interface/lwip/test/unit/core/test_mem.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/core/test_mem.h b/features/FEATURE_LWIP/lwip-interface/lwip/test/unit/core/test_mem.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/core/test_mem.h rename to features/FEATURE_LWIP/lwip-interface/lwip/test/unit/core/test_mem.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/core/test_pbuf.c b/features/FEATURE_LWIP/lwip-interface/lwip/test/unit/core/test_pbuf.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/core/test_pbuf.c rename to features/FEATURE_LWIP/lwip-interface/lwip/test/unit/core/test_pbuf.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/core/test_pbuf.h b/features/FEATURE_LWIP/lwip-interface/lwip/test/unit/core/test_pbuf.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/core/test_pbuf.h rename to features/FEATURE_LWIP/lwip-interface/lwip/test/unit/core/test_pbuf.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/dhcp/test_dhcp.c b/features/FEATURE_LWIP/lwip-interface/lwip/test/unit/dhcp/test_dhcp.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/dhcp/test_dhcp.c rename to features/FEATURE_LWIP/lwip-interface/lwip/test/unit/dhcp/test_dhcp.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/dhcp/test_dhcp.h b/features/FEATURE_LWIP/lwip-interface/lwip/test/unit/dhcp/test_dhcp.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/dhcp/test_dhcp.h rename to features/FEATURE_LWIP/lwip-interface/lwip/test/unit/dhcp/test_dhcp.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/etharp/test_etharp.c b/features/FEATURE_LWIP/lwip-interface/lwip/test/unit/etharp/test_etharp.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/etharp/test_etharp.c rename to features/FEATURE_LWIP/lwip-interface/lwip/test/unit/etharp/test_etharp.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/etharp/test_etharp.h b/features/FEATURE_LWIP/lwip-interface/lwip/test/unit/etharp/test_etharp.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/etharp/test_etharp.h rename to features/FEATURE_LWIP/lwip-interface/lwip/test/unit/etharp/test_etharp.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/lwip_check.h b/features/FEATURE_LWIP/lwip-interface/lwip/test/unit/lwip_check.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/lwip_check.h rename to features/FEATURE_LWIP/lwip-interface/lwip/test/unit/lwip_check.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/lwip_unittests.c b/features/FEATURE_LWIP/lwip-interface/lwip/test/unit/lwip_unittests.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/lwip_unittests.c rename to features/FEATURE_LWIP/lwip-interface/lwip/test/unit/lwip_unittests.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/lwipopts.h b/features/FEATURE_LWIP/lwip-interface/lwip/test/unit/lwipopts.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/lwipopts.h rename to features/FEATURE_LWIP/lwip-interface/lwip/test/unit/lwipopts.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/tcp/tcp_helper.c b/features/FEATURE_LWIP/lwip-interface/lwip/test/unit/tcp/tcp_helper.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/tcp/tcp_helper.c rename to features/FEATURE_LWIP/lwip-interface/lwip/test/unit/tcp/tcp_helper.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/tcp/tcp_helper.h b/features/FEATURE_LWIP/lwip-interface/lwip/test/unit/tcp/tcp_helper.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/tcp/tcp_helper.h rename to features/FEATURE_LWIP/lwip-interface/lwip/test/unit/tcp/tcp_helper.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/tcp/test_tcp.c b/features/FEATURE_LWIP/lwip-interface/lwip/test/unit/tcp/test_tcp.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/tcp/test_tcp.c rename to features/FEATURE_LWIP/lwip-interface/lwip/test/unit/tcp/test_tcp.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/tcp/test_tcp.h b/features/FEATURE_LWIP/lwip-interface/lwip/test/unit/tcp/test_tcp.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/tcp/test_tcp.h rename to features/FEATURE_LWIP/lwip-interface/lwip/test/unit/tcp/test_tcp.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/tcp/test_tcp_oos.c b/features/FEATURE_LWIP/lwip-interface/lwip/test/unit/tcp/test_tcp_oos.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/tcp/test_tcp_oos.c rename to features/FEATURE_LWIP/lwip-interface/lwip/test/unit/tcp/test_tcp_oos.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/tcp/test_tcp_oos.h b/features/FEATURE_LWIP/lwip-interface/lwip/test/unit/tcp/test_tcp_oos.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/tcp/test_tcp_oos.h rename to features/FEATURE_LWIP/lwip-interface/lwip/test/unit/tcp/test_tcp_oos.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/udp/test_udp.c b/features/FEATURE_LWIP/lwip-interface/lwip/test/unit/udp/test_udp.c similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/udp/test_udp.c rename to features/FEATURE_LWIP/lwip-interface/lwip/test/unit/udp/test_udp.c diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/udp/test_udp.h b/features/FEATURE_LWIP/lwip-interface/lwip/test/unit/udp/test_udp.h similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/lwip/test/unit/udp/test_udp.h rename to features/FEATURE_LWIP/lwip-interface/lwip/test/unit/udp/test_udp.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip_stack.c b/features/FEATURE_LWIP/lwip-interface/lwip_stack.c similarity index 75% rename from features/net/FEATURE_IPV4/lwip-interface/lwip_stack.c rename to features/FEATURE_LWIP/lwip-interface/lwip_stack.c index 2ada01f22c..89b4e7e8de 100644 --- a/features/net/FEATURE_IPV4/lwip-interface/lwip_stack.c +++ b/features/FEATURE_LWIP/lwip-interface/lwip_stack.c @@ -33,6 +33,16 @@ #include "lwip/dns.h" #include "lwip/udp.h" +#include "emac_api.h" + +#if DEVICE_EMAC + #define MBED_NETIF_INIT_FN emac_lwip_if_init +#else + #define MBED_NETIF_INIT_FN eth_arch_enetif_init +#endif + +#define DHCP_TIMEOUT 15000 + /* Static arena of sockets */ static struct lwip_socket { bool in_use; @@ -47,12 +57,12 @@ static struct lwip_socket { static bool lwip_connected = false; -static void lwip_arena_init(void) +static void mbed_lwip_arena_init(void) { memset(lwip_arena, 0, sizeof lwip_arena); } -static struct lwip_socket *lwip_arena_alloc(void) +static struct lwip_socket *mbed_lwip_arena_alloc(void) { sys_prot_t prot = sys_arch_protect(); @@ -70,12 +80,12 @@ static struct lwip_socket *lwip_arena_alloc(void) return 0; } -static void lwip_arena_dealloc(struct lwip_socket *s) +static void mbed_lwip_arena_dealloc(struct lwip_socket *s) { s->in_use = false; } -static void lwip_socket_callback(struct netconn *nc, enum netconn_evt eh, u16_t len) +static void mbed_lwip_socket_callback(struct netconn *nc, enum netconn_evt eh, u16_t len) { sys_prot_t prot = sys_arch_protect(); @@ -164,7 +174,7 @@ static bool convert_lwip_addr_to_mbed(nsapi_addr_t *out, const ip_addr_t *in) return false; } -static const ip_addr_t *lwip_get_ipv4_addr(const struct netif *netif) +static const ip_addr_t *mbed_lwip_get_ipv4_addr(const struct netif *netif) { #if LWIP_IPV4 if (!netif_is_up(netif)) { @@ -179,7 +189,7 @@ static const ip_addr_t *lwip_get_ipv4_addr(const struct netif *netif) return NULL; } -static const ip_addr_t *lwip_get_ipv6_addr(const struct netif *netif) +static const ip_addr_t *mbed_lwip_get_ipv6_addr(const struct netif *netif) { #if LWIP_IPV6 if (!netif_is_up(netif)) { @@ -198,17 +208,17 @@ static const ip_addr_t *lwip_get_ipv6_addr(const struct netif *netif) } -const ip_addr_t *lwip_get_ip_addr(bool any_addr, const struct netif *netif) +const ip_addr_t *mbed_lwip_get_ip_addr(bool any_addr, const struct netif *netif) { const ip_addr_t *pref_ip_addr = 0; const ip_addr_t *npref_ip_addr = 0; #if IP_VERSION_PREF == PREF_IPV4 - pref_ip_addr = lwip_get_ipv4_addr(netif); - npref_ip_addr = lwip_get_ipv6_addr(netif); + pref_ip_addr = mbed_lwip_get_ipv4_addr(netif); + npref_ip_addr = mbed_lwip_get_ipv6_addr(netif); #else - pref_ip_addr = lwip_get_ipv6_addr(netif); - npref_ip_addr = lwip_get_ipv4_addr(netif); + pref_ip_addr = mbed_lwip_get_ipv6_addr(netif); + npref_ip_addr = mbed_lwip_get_ipv4_addr(netif); #endif if (pref_ip_addr) { @@ -223,7 +233,7 @@ const ip_addr_t *lwip_get_ip_addr(bool any_addr, const struct netif *netif) #if LWIP_IPV6 void add_dns_addr(struct netif *lwip_netif) { - const ip_addr_t *ip_addr = lwip_get_ip_addr(true, lwip_netif); + const ip_addr_t *ip_addr = mbed_lwip_get_ip_addr(true, lwip_netif); if (ip_addr) { if (IP_IS_V6(ip_addr)) { const ip_addr_t *dns_ip_addr; @@ -252,13 +262,13 @@ void add_dns_addr(struct netif *lwip_netif) #endif static sys_sem_t lwip_tcpip_inited; -static void lwip_tcpip_init_irq(void *eh) +static void mbed_lwip_tcpip_init_irq(void *eh) { sys_sem_signal(&lwip_tcpip_inited); } static sys_sem_t lwip_netif_linked; -static void lwip_netif_link_irq(struct netif *lwip_netif) +static void mbed_lwip_netif_link_irq(struct netif *lwip_netif) { if (netif_is_link_up(lwip_netif)) { sys_sem_signal(&lwip_netif_linked); @@ -266,24 +276,24 @@ static void lwip_netif_link_irq(struct netif *lwip_netif) } static sys_sem_t lwip_netif_has_addr; -static void lwip_netif_status_irq(struct netif *lwip_netif) +static void mbed_lwip_netif_status_irq(struct netif *lwip_netif) { static bool any_addr = true; // Indicates that has address - if (any_addr == true && lwip_get_ip_addr(true, lwip_netif)) { + if (any_addr == true && mbed_lwip_get_ip_addr(true, lwip_netif)) { sys_sem_signal(&lwip_netif_has_addr); any_addr = false; return; } // Indicates that has preferred address - if (lwip_get_ip_addr(false, lwip_netif)) { + if (mbed_lwip_get_ip_addr(false, lwip_netif)) { sys_sem_signal(&lwip_netif_has_addr); } } -static void lwip_set_mac_address(void) +static void mbed_lwip_set_mac_address(void) { #if (MBED_MAC_ADDRESS_SUM != MBED_MAC_ADDR_INTERFACE) snprintf(lwip_mac_address, 19, "%02x:%02x:%02x:%02x:%02x:%02x", @@ -298,14 +308,14 @@ static void lwip_set_mac_address(void) } /* LWIP interface implementation */ -const char *lwip_get_mac_address(void) +const char *mbed_lwip_get_mac_address(void) { return lwip_mac_address[0] ? lwip_mac_address : 0; } -char *lwip_get_ip_address(char *buf, int buflen) +char *mbed_lwip_get_ip_address(char *buf, int buflen) { - const ip_addr_t *addr = lwip_get_ip_addr(true, &lwip_netif); + const ip_addr_t *addr = mbed_lwip_get_ip_addr(true, &lwip_netif); if (!addr) { return NULL; } @@ -322,12 +332,12 @@ char *lwip_get_ip_address(char *buf, int buflen) return NULL; } -const char *lwip_get_netmask(char *buf, int buflen) +const char *mbed_lwip_get_netmask(char *buf, int buflen) { #if LWIP_IPV4 const ip4_addr_t *addr = netif_ip4_netmask(&lwip_netif); if (!ip4_addr_isany(addr)) { - return inet_ntoa_r(addr, buf, buflen); + return ip4addr_ntoa_r(addr, buf, buflen); } else { return NULL; } @@ -336,12 +346,12 @@ const char *lwip_get_netmask(char *buf, int buflen) #endif } -char *lwip_get_gateway(char *buf, int buflen) +char *mbed_lwip_get_gateway(char *buf, int buflen) { #if LWIP_IPV4 const ip4_addr_t *addr = netif_ip4_gw(&lwip_netif); if (!ip4_addr_isany(addr)) { - return inet_ntoa_r(addr, buf, buflen); + return ip4addr_ntoa_r(addr, buf, buflen); } else { return NULL; } @@ -350,23 +360,18 @@ char *lwip_get_gateway(char *buf, int buflen) #endif } -int lwip_bringup(bool dhcp, const char *ip, const char *netmask, const char *gw) +int mbed_lwip_init(emac_interface_t *emac) { - // Check if we've already connected - if (lwip_connected) { - return NSAPI_ERROR_PARAMETER; - } - // Check if we've already brought up lwip - if (!lwip_get_mac_address()) { + if (!mbed_lwip_get_mac_address()) { // Set up network - lwip_set_mac_address(); + mbed_lwip_set_mac_address(); sys_sem_new(&lwip_tcpip_inited, 0); sys_sem_new(&lwip_netif_linked, 0); sys_sem_new(&lwip_netif_has_addr, 0); - tcpip_init(lwip_tcpip_init_irq, NULL); + tcpip_init(mbed_lwip_tcpip_init_irq, NULL); sys_arch_sem_wait(&lwip_tcpip_inited, 0); memset(&lwip_netif, 0, sizeof lwip_netif); @@ -374,19 +379,36 @@ int lwip_bringup(bool dhcp, const char *ip, const char *netmask, const char *gw) #if LWIP_IPV4 0, 0, 0, #endif - NULL, eth_arch_enetif_init, tcpip_input)) { - return -1; + emac, MBED_NETIF_INIT_FN, tcpip_input)) { + return NSAPI_ERROR_DEVICE_ERROR; } + netif_set_default(&lwip_netif); - netif_set_link_callback (&lwip_netif, lwip_netif_link_irq); - netif_set_status_callback(&lwip_netif, lwip_netif_status_irq); + netif_set_link_callback(&lwip_netif, mbed_lwip_netif_link_irq); + netif_set_status_callback(&lwip_netif, mbed_lwip_netif_status_irq); +#if !DEVICE_EMAC eth_arch_enable_interrupts(); +#endif + } + + return NSAPI_ERROR_OK; +} + +int mbed_lwip_bringup(bool dhcp, const char *ip, const char *netmask, const char *gw) +{ + // Check if we've already connected + if (lwip_connected) { + return NSAPI_ERROR_PARAMETER; + } + + if(mbed_lwip_init(NULL) != NSAPI_ERROR_OK) { + return NSAPI_ERROR_DEVICE_ERROR; } // Zero out socket set - lwip_arena_init(); + mbed_lwip_arena_init(); #if LWIP_IPV6 netif_create_ip6_linklocal_address(&lwip_netif, 1/*from MAC*/); @@ -451,9 +473,8 @@ int lwip_bringup(bool dhcp, const char *ip, const char *netmask, const char *gw) #endif // If doesn't have address - if (!lwip_get_ip_addr(true, &lwip_netif)) { - //ret = sys_arch_sem_wait(&lwip_netif_has_addr, 15000); - ret = sys_arch_sem_wait(&lwip_netif_has_addr, 30000); + if (!mbed_lwip_get_ip_addr(true, &lwip_netif)) { + ret = sys_arch_sem_wait(&lwip_netif_has_addr, 15000); if (ret == SYS_ARCH_TIMEOUT) { return NSAPI_ERROR_DHCP_FAILURE; } @@ -463,7 +484,7 @@ int lwip_bringup(bool dhcp, const char *ip, const char *netmask, const char *gw) #if ADDR_TIMEOUT // If address is not for preferred stack waits a while to see // if preferred stack address is acquired - if (!lwip_get_ip_addr(false, &lwip_netif)) { + if (!mbed_lwip_get_ip_addr(false, &lwip_netif)) { ret = sys_arch_sem_wait(&lwip_netif_has_addr, ADDR_TIMEOUT * 1000); } #endif @@ -475,7 +496,7 @@ int lwip_bringup(bool dhcp, const char *ip, const char *netmask, const char *gw) return 0; } -int lwip_bringdown(void) +int mbed_lwip_bringdown(void) { // Check if we've connected if (!lwip_connected) { @@ -499,7 +520,7 @@ int lwip_bringdown(void) } /* LWIP error remapping */ -static int lwip_err_remap(err_t err) { +static int mbed_lwip_err_remap(err_t err) { switch (err) { case ERR_OK: case ERR_CLSD: @@ -525,7 +546,7 @@ static int lwip_err_remap(err_t err) { } /* LWIP network stack implementation */ -static int lwip_gethostbyname(nsapi_stack_t *stack, const char *host, nsapi_addr_t *addr, nsapi_version_t version) +static int mbed_lwip_gethostbyname(nsapi_stack_t *stack, const char *host, nsapi_addr_t *addr, nsapi_version_t version) { ip_addr_t lwip_addr; @@ -533,7 +554,7 @@ static int lwip_gethostbyname(nsapi_stack_t *stack, const char *host, nsapi_addr u8_t addr_type; if (version == NSAPI_UNSPEC) { const ip_addr_t *ip_addr; - ip_addr = lwip_get_ip_addr(true, &lwip_netif); + ip_addr = mbed_lwip_get_ip_addr(true, &lwip_netif); if (IP_IS_V6(ip_addr)) { addr_type = NETCONN_DNS_IPV6; } else { @@ -566,7 +587,7 @@ static int lwip_gethostbyname(nsapi_stack_t *stack, const char *host, nsapi_addr return 0; } -static int lwip_socket_open(nsapi_stack_t *stack, nsapi_socket_t *handle, nsapi_protocol_t proto) +static int mbed_lwip_socket_open(nsapi_stack_t *stack, nsapi_socket_t *handle, nsapi_protocol_t proto) { // check if network is connected if (!lwip_connected) { @@ -574,7 +595,7 @@ static int lwip_socket_open(nsapi_stack_t *stack, nsapi_socket_t *handle, nsapi_ } // allocate a socket - struct lwip_socket *s = lwip_arena_alloc(); + struct lwip_socket *s = mbed_lwip_arena_alloc(); if (!s) { return NSAPI_ERROR_NO_SOCKET; } @@ -583,7 +604,7 @@ static int lwip_socket_open(nsapi_stack_t *stack, nsapi_socket_t *handle, nsapi_ #if LWIP_IPV6 && LWIP_IPV4 const ip_addr_t *ip_addr; - ip_addr = lwip_get_ip_addr(true, &lwip_netif); + ip_addr = mbed_lwip_get_ip_addr(true, &lwip_netif); if (IP_IS_V6(ip_addr)) { // Enable IPv6 (or dual-stack). LWIP dual-stack support is @@ -597,10 +618,10 @@ static int lwip_socket_open(nsapi_stack_t *stack, nsapi_socket_t *handle, nsapi_ lwip_proto |= NETCONN_TYPE_IPV6; #endif - s->conn = netconn_new_with_callback(lwip_proto, lwip_socket_callback); + s->conn = netconn_new_with_callback(lwip_proto, mbed_lwip_socket_callback); if (!s->conn) { - lwip_arena_dealloc(s); + mbed_lwip_arena_dealloc(s); return NSAPI_ERROR_NO_SOCKET; } @@ -609,16 +630,16 @@ static int lwip_socket_open(nsapi_stack_t *stack, nsapi_socket_t *handle, nsapi_ return 0; } -static int lwip_socket_close(nsapi_stack_t *stack, nsapi_socket_t handle) +static int mbed_lwip_socket_close(nsapi_stack_t *stack, nsapi_socket_t handle) { struct lwip_socket *s = (struct lwip_socket *)handle; err_t err = netconn_delete(s->conn); - lwip_arena_dealloc(s); - return lwip_err_remap(err); + mbed_lwip_arena_dealloc(s); + return mbed_lwip_err_remap(err); } -static int lwip_socket_bind(nsapi_stack_t *stack, nsapi_socket_t handle, nsapi_addr_t addr, uint16_t port) +static int mbed_lwip_socket_bind(nsapi_stack_t *stack, nsapi_socket_t handle, nsapi_addr_t addr, uint16_t port) { struct lwip_socket *s = (struct lwip_socket *)handle; ip_addr_t ip_addr; @@ -633,18 +654,18 @@ static int lwip_socket_bind(nsapi_stack_t *stack, nsapi_socket_t handle, nsapi_a } err_t err = netconn_bind(s->conn, &ip_addr, port); - return lwip_err_remap(err); + return mbed_lwip_err_remap(err); } -static int lwip_socket_listen(nsapi_stack_t *stack, nsapi_socket_t handle, int backlog) +static int mbed_lwip_socket_listen(nsapi_stack_t *stack, nsapi_socket_t handle, int backlog) { struct lwip_socket *s = (struct lwip_socket *)handle; err_t err = netconn_listen_with_backlog(s->conn, backlog); - return lwip_err_remap(err); + return mbed_lwip_err_remap(err); } -static int lwip_socket_connect(nsapi_stack_t *stack, nsapi_socket_t handle, nsapi_addr_t addr, uint16_t port) +static int mbed_lwip_socket_connect(nsapi_stack_t *stack, nsapi_socket_t handle, nsapi_addr_t addr, uint16_t port) { struct lwip_socket *s = (struct lwip_socket *)handle; ip_addr_t ip_addr; @@ -657,21 +678,21 @@ static int lwip_socket_connect(nsapi_stack_t *stack, nsapi_socket_t handle, nsap err_t err = netconn_connect(s->conn, &ip_addr, port); netconn_set_nonblocking(s->conn, true); - return lwip_err_remap(err); + return mbed_lwip_err_remap(err); } -static int lwip_socket_accept(nsapi_stack_t *stack, nsapi_socket_t server, nsapi_socket_t *handle, nsapi_addr_t *addr, uint16_t *port) +static int mbed_lwip_socket_accept(nsapi_stack_t *stack, nsapi_socket_t server, nsapi_socket_t *handle, nsapi_addr_t *addr, uint16_t *port) { struct lwip_socket *s = (struct lwip_socket *)server; - struct lwip_socket *ns = lwip_arena_alloc(); + struct lwip_socket *ns = mbed_lwip_arena_alloc(); if (!ns) { return NSAPI_ERROR_NO_SOCKET; } err_t err = netconn_accept(s->conn, &ns->conn); if (err != ERR_OK) { - lwip_arena_dealloc(ns); - return lwip_err_remap(err); + mbed_lwip_arena_dealloc(ns); + return mbed_lwip_err_remap(err); } netconn_set_recvtimeout(ns->conn, 1); @@ -683,20 +704,20 @@ static int lwip_socket_accept(nsapi_stack_t *stack, nsapi_socket_t server, nsapi return 0; } -static int lwip_socket_send(nsapi_stack_t *stack, nsapi_socket_t handle, const void *data, unsigned size) +static int mbed_lwip_socket_send(nsapi_stack_t *stack, nsapi_socket_t handle, const void *data, unsigned size) { struct lwip_socket *s = (struct lwip_socket *)handle; size_t bytes_written = 0; err_t err = netconn_write_partly(s->conn, data, size, NETCONN_COPY, &bytes_written); if (err != ERR_OK) { - return lwip_err_remap(err); + return mbed_lwip_err_remap(err); } return (int)bytes_written; } -static int lwip_socket_recv(nsapi_stack_t *stack, nsapi_socket_t handle, void *data, unsigned size) +static int mbed_lwip_socket_recv(nsapi_stack_t *stack, nsapi_socket_t handle, void *data, unsigned size) { struct lwip_socket *s = (struct lwip_socket *)handle; @@ -705,7 +726,7 @@ static int lwip_socket_recv(nsapi_stack_t *stack, nsapi_socket_t handle, void *d s->offset = 0; if (err != ERR_OK) { - return lwip_err_remap(err); + return mbed_lwip_err_remap(err); } } @@ -720,7 +741,7 @@ static int lwip_socket_recv(nsapi_stack_t *stack, nsapi_socket_t handle, void *d return recv; } -static int lwip_socket_sendto(nsapi_stack_t *stack, nsapi_socket_t handle, nsapi_addr_t addr, uint16_t port, const void *data, unsigned size) +static int mbed_lwip_socket_sendto(nsapi_stack_t *stack, nsapi_socket_t handle, nsapi_addr_t addr, uint16_t port, const void *data, unsigned size) { struct lwip_socket *s = (struct lwip_socket *)handle; ip_addr_t ip_addr; @@ -733,26 +754,26 @@ static int lwip_socket_sendto(nsapi_stack_t *stack, nsapi_socket_t handle, nsapi err_t err = netbuf_ref(buf, data, (u16_t)size); if (err != ERR_OK) { netbuf_free(buf); - return lwip_err_remap(err); + return mbed_lwip_err_remap(err); } err = netconn_sendto(s->conn, buf, &ip_addr, port); netbuf_delete(buf); if (err != ERR_OK) { - return lwip_err_remap(err); + return mbed_lwip_err_remap(err); } return size; } -static int lwip_socket_recvfrom(nsapi_stack_t *stack, nsapi_socket_t handle, nsapi_addr_t *addr, uint16_t *port, void *data, unsigned size) +static int mbed_lwip_socket_recvfrom(nsapi_stack_t *stack, nsapi_socket_t handle, nsapi_addr_t *addr, uint16_t *port, void *data, unsigned size) { struct lwip_socket *s = (struct lwip_socket *)handle; struct netbuf *buf; err_t err = netconn_recv(s->conn, &buf); if (err != ERR_OK) { - return lwip_err_remap(err); + return mbed_lwip_err_remap(err); } convert_lwip_addr_to_mbed(addr, netbuf_fromaddr(buf)); @@ -764,7 +785,7 @@ static int lwip_socket_recvfrom(nsapi_stack_t *stack, nsapi_socket_t handle, nsa return recv; } -static int lwip_setsockopt(nsapi_stack_t *stack, nsapi_socket_t handle, int level, int optname, const void *optval, unsigned optlen) +static int mbed_lwip_setsockopt(nsapi_stack_t *stack, nsapi_socket_t handle, int level, int optname, const void *optval, unsigned optlen) { struct lwip_socket *s = (struct lwip_socket *)handle; @@ -810,7 +831,7 @@ static int lwip_setsockopt(nsapi_stack_t *stack, nsapi_socket_t handle, int leve } } -static void lwip_socket_attach(nsapi_stack_t *stack, nsapi_socket_t handle, void (*callback)(void *), void *data) +static void mbed_lwip_socket_attach(nsapi_stack_t *stack, nsapi_socket_t handle, void (*callback)(void *), void *data) { struct lwip_socket *s = (struct lwip_socket *)handle; @@ -820,19 +841,19 @@ static void lwip_socket_attach(nsapi_stack_t *stack, nsapi_socket_t handle, void /* LWIP network stack */ const nsapi_stack_api_t lwip_stack_api = { - .gethostbyname = lwip_gethostbyname, - .socket_open = lwip_socket_open, - .socket_close = lwip_socket_close, - .socket_bind = lwip_socket_bind, - .socket_listen = lwip_socket_listen, - .socket_connect = lwip_socket_connect, - .socket_accept = lwip_socket_accept, - .socket_send = lwip_socket_send, - .socket_recv = lwip_socket_recv, - .socket_sendto = lwip_socket_sendto, - .socket_recvfrom = lwip_socket_recvfrom, - .setsockopt = lwip_setsockopt, - .socket_attach = lwip_socket_attach, + .gethostbyname = mbed_lwip_gethostbyname, + .socket_open = mbed_lwip_socket_open, + .socket_close = mbed_lwip_socket_close, + .socket_bind = mbed_lwip_socket_bind, + .socket_listen = mbed_lwip_socket_listen, + .socket_connect = mbed_lwip_socket_connect, + .socket_accept = mbed_lwip_socket_accept, + .socket_send = mbed_lwip_socket_send, + .socket_recv = mbed_lwip_socket_recv, + .socket_sendto = mbed_lwip_socket_sendto, + .socket_recvfrom = mbed_lwip_socket_recvfrom, + .setsockopt = mbed_lwip_setsockopt, + .socket_attach = mbed_lwip_socket_attach, }; nsapi_stack_t lwip_stack = { diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwip_stack.h b/features/FEATURE_LWIP/lwip-interface/lwip_stack.h similarity index 68% rename from features/net/FEATURE_IPV4/lwip-interface/lwip_stack.h rename to features/FEATURE_LWIP/lwip-interface/lwip_stack.h index 969bc2a250..89161f61f4 100644 --- a/features/net/FEATURE_IPV4/lwip-interface/lwip_stack.h +++ b/features/FEATURE_LWIP/lwip-interface/lwip_stack.h @@ -18,20 +18,21 @@ #define LWIP_STACK_H #include "nsapi.h" +#include "emac_api.h" #ifdef __cplusplus extern "C" { #endif - // Access to lwip through the nsapi -int lwip_bringup(bool dhcp, const char *ip, const char *netmask, const char *gw); -int lwip_bringdown(void); +int mbed_lwip_init(emac_interface_t *emac); +int mbed_lwip_bringup(bool dhcp, const char *ip, const char *netmask, const char *gw); +int mbed_lwip_bringdown(void); -const char *lwip_get_mac_address(void); -char *lwip_get_ip_address(char *buf, int buflen); -char *lwip_get_netmask(char *buf, int buflen); -char *lwip_get_gateway(char *buf, int buflen); +const char *mbed_lwip_get_mac_address(void); +char *mbed_lwip_get_ip_address(char *buf, int buflen); +char *mbed_lwip_get_netmask(char *buf, int buflen); +char *mbed_lwip_get_gateway(char *buf, int buflen); extern nsapi_stack_t lwip_stack; diff --git a/features/net/FEATURE_IPV4/lwip-interface/lwipopts.h b/features/FEATURE_LWIP/lwip-interface/lwipopts.h similarity index 98% rename from features/net/FEATURE_IPV4/lwip-interface/lwipopts.h rename to features/FEATURE_LWIP/lwip-interface/lwipopts.h index 8e7dff9406..48cb655b48 100644 --- a/features/net/FEATURE_IPV4/lwip-interface/lwipopts.h +++ b/features/FEATURE_LWIP/lwip-interface/lwipopts.h @@ -81,9 +81,9 @@ #define DEFAULT_ACCEPTMBOX_SIZE 8 #ifdef LWIP_DEBUG -#define TCPIP_THREAD_STACKSIZE 1024*2 +#define TCPIP_THREAD_STACKSIZE 1200*2 #else -#define TCPIP_THREAD_STACKSIZE 1024 +#define TCPIP_THREAD_STACKSIZE 1200 #endif #define TCPIP_THREAD_PRIO (osPriorityNormal) diff --git a/features/net/FEATURE_IPV4/lwip-interface/mbed_lib.json b/features/FEATURE_LWIP/lwip-interface/mbed_lib.json similarity index 100% rename from features/net/FEATURE_IPV4/lwip-interface/mbed_lib.json rename to features/FEATURE_LWIP/lwip-interface/mbed_lib.json diff --git a/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_ARM/TARGET_LIKE_CORTEX_M0/libnanostack_armcc_Cortex-M0_lowpan_border_router.ar b/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_ARM/TARGET_LIKE_CORTEX_M0/libnanostack_armcc_Cortex-M0_lowpan_border_router.ar new file mode 100644 index 0000000000..e877b3d6a4 Binary files /dev/null and b/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_ARM/TARGET_LIKE_CORTEX_M0/libnanostack_armcc_Cortex-M0_lowpan_border_router.ar differ diff --git a/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_ARM/TARGET_M3/libnanostack_armcc_Cortex-M3_lowpan_border_router.ar b/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_ARM/TARGET_M3/libnanostack_armcc_Cortex-M3_lowpan_border_router.ar new file mode 100644 index 0000000000..33811dddf7 Binary files /dev/null and b/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_ARM/TARGET_M3/libnanostack_armcc_Cortex-M3_lowpan_border_router.ar differ diff --git a/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/libnanostack_armcc_Cortex-M3_lowpan_border_router.ar b/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/libnanostack_armcc_Cortex-M3_lowpan_border_router.ar new file mode 100644 index 0000000000..33811dddf7 Binary files /dev/null and b/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/libnanostack_armcc_Cortex-M3_lowpan_border_router.ar differ diff --git a/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_GCC/TARGET_LIKE_CORTEX_M0/libnanostack_arm-none-eabi-gcc_Cortex-M0_lowpan_border_router.a b/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_GCC/TARGET_LIKE_CORTEX_M0/libnanostack_arm-none-eabi-gcc_Cortex-M0_lowpan_border_router.a new file mode 100644 index 0000000000..96663b6c68 Binary files /dev/null and b/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_GCC/TARGET_LIKE_CORTEX_M0/libnanostack_arm-none-eabi-gcc_Cortex-M0_lowpan_border_router.a differ diff --git a/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_GCC/TARGET_M3/libnanostack_arm-none-eabi-gcc_Cortex-M3_lowpan_border_router.a b/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_GCC/TARGET_M3/libnanostack_arm-none-eabi-gcc_Cortex-M3_lowpan_border_router.a new file mode 100644 index 0000000000..34467eba27 Binary files /dev/null and b/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_GCC/TARGET_M3/libnanostack_arm-none-eabi-gcc_Cortex-M3_lowpan_border_router.a differ diff --git a/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_GCC/TARGET_RTOS_M4_M7/libnanostack_arm-none-eabi-gcc_Cortex-M3_lowpan_border_router.a b/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_GCC/TARGET_RTOS_M4_M7/libnanostack_arm-none-eabi-gcc_Cortex-M3_lowpan_border_router.a new file mode 100644 index 0000000000..34467eba27 Binary files /dev/null and b/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_GCC/TARGET_RTOS_M4_M7/libnanostack_arm-none-eabi-gcc_Cortex-M3_lowpan_border_router.a differ diff --git a/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_IAR/TARGET_LIKE_CORTEX_M0/libnanostack_iccarm_Cortex-M0_lowpan_border_router.a b/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_IAR/TARGET_LIKE_CORTEX_M0/libnanostack_iccarm_Cortex-M0_lowpan_border_router.a new file mode 100644 index 0000000000..b0894e8200 Binary files /dev/null and b/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_IAR/TARGET_LIKE_CORTEX_M0/libnanostack_iccarm_Cortex-M0_lowpan_border_router.a differ diff --git a/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_IAR/TARGET_M3/libnanostack_iccarm_Cortex-M3_lowpan_border_router.a b/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_IAR/TARGET_M3/libnanostack_iccarm_Cortex-M3_lowpan_border_router.a new file mode 100644 index 0000000000..9aabc250e5 Binary files /dev/null and b/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_IAR/TARGET_M3/libnanostack_iccarm_Cortex-M3_lowpan_border_router.a differ diff --git a/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_IAR/TARGET_RTOS_M4_M7/libnanostack_iccarm_Cortex-M3_lowpan_border_router.a b/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_IAR/TARGET_RTOS_M4_M7/libnanostack_iccarm_Cortex-M3_lowpan_border_router.a new file mode 100644 index 0000000000..9aabc250e5 Binary files /dev/null and b/features/nanostack/FEATURE_LOWPAN_BORDER_ROUTER/TOOLCHAIN_IAR/TARGET_RTOS_M4_M7/libnanostack_iccarm_Cortex-M3_lowpan_border_router.a differ diff --git a/features/nanostack/FEATURE_LOWPAN_HOST/TOOLCHAIN_ARM/TARGET_LIKE_CORTEX_M0/libnanostack_armcc_Cortex-M0_lowpan_host.ar b/features/nanostack/FEATURE_LOWPAN_HOST/TOOLCHAIN_ARM/TARGET_LIKE_CORTEX_M0/libnanostack_armcc_Cortex-M0_lowpan_host.ar new file mode 100644 index 0000000000..95e6798c1c Binary files /dev/null and b/features/nanostack/FEATURE_LOWPAN_HOST/TOOLCHAIN_ARM/TARGET_LIKE_CORTEX_M0/libnanostack_armcc_Cortex-M0_lowpan_host.ar differ diff --git a/features/nanostack/FEATURE_LOWPAN_HOST/TOOLCHAIN_ARM/TARGET_M3/libnanostack_armcc_Cortex-M3_lowpan_host.ar b/features/nanostack/FEATURE_LOWPAN_HOST/TOOLCHAIN_ARM/TARGET_M3/libnanostack_armcc_Cortex-M3_lowpan_host.ar new file mode 100644 index 0000000000..0553dec65e Binary files /dev/null and b/features/nanostack/FEATURE_LOWPAN_HOST/TOOLCHAIN_ARM/TARGET_M3/libnanostack_armcc_Cortex-M3_lowpan_host.ar differ diff --git a/features/nanostack/FEATURE_LOWPAN_HOST/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/libnanostack_armcc_Cortex-M3_lowpan_host.ar b/features/nanostack/FEATURE_LOWPAN_HOST/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/libnanostack_armcc_Cortex-M3_lowpan_host.ar new file mode 100644 index 0000000000..0553dec65e Binary files /dev/null and b/features/nanostack/FEATURE_LOWPAN_HOST/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/libnanostack_armcc_Cortex-M3_lowpan_host.ar differ diff --git a/features/nanostack/FEATURE_LOWPAN_HOST/TOOLCHAIN_GCC/TARGET_LIKE_CORTEX_M0/libnanostack_arm-none-eabi-gcc_Cortex-M0_lowpan_host.a b/features/nanostack/FEATURE_LOWPAN_HOST/TOOLCHAIN_GCC/TARGET_LIKE_CORTEX_M0/libnanostack_arm-none-eabi-gcc_Cortex-M0_lowpan_host.a new file mode 100644 index 0000000000..5e2510f12a Binary files /dev/null and b/features/nanostack/FEATURE_LOWPAN_HOST/TOOLCHAIN_GCC/TARGET_LIKE_CORTEX_M0/libnanostack_arm-none-eabi-gcc_Cortex-M0_lowpan_host.a differ diff --git a/features/nanostack/FEATURE_LOWPAN_HOST/TOOLCHAIN_GCC/TARGET_M3/libnanostack_arm-none-eabi-gcc_Cortex-M3_lowpan_host.a b/features/nanostack/FEATURE_LOWPAN_HOST/TOOLCHAIN_GCC/TARGET_M3/libnanostack_arm-none-eabi-gcc_Cortex-M3_lowpan_host.a new file mode 100644 index 0000000000..8b14a42de9 Binary files /dev/null and b/features/nanostack/FEATURE_LOWPAN_HOST/TOOLCHAIN_GCC/TARGET_M3/libnanostack_arm-none-eabi-gcc_Cortex-M3_lowpan_host.a differ diff --git a/features/nanostack/FEATURE_LOWPAN_HOST/TOOLCHAIN_GCC/TARGET_RTOS_M4_M7/libnanostack_arm-none-eabi-gcc_Cortex-M3_lowpan_host.a b/features/nanostack/FEATURE_LOWPAN_HOST/TOOLCHAIN_GCC/TARGET_RTOS_M4_M7/libnanostack_arm-none-eabi-gcc_Cortex-M3_lowpan_host.a new file mode 100644 index 0000000000..8b14a42de9 Binary files /dev/null and b/features/nanostack/FEATURE_LOWPAN_HOST/TOOLCHAIN_GCC/TARGET_RTOS_M4_M7/libnanostack_arm-none-eabi-gcc_Cortex-M3_lowpan_host.a differ diff --git a/features/nanostack/FEATURE_LOWPAN_HOST/TOOLCHAIN_IAR/TARGET_LIKE_CORTEX_M0/libnanostack_iccarm_Cortex-M0_lowpan_host.a b/features/nanostack/FEATURE_LOWPAN_HOST/TOOLCHAIN_IAR/TARGET_LIKE_CORTEX_M0/libnanostack_iccarm_Cortex-M0_lowpan_host.a new file mode 100644 index 0000000000..ad21529689 Binary files /dev/null and b/features/nanostack/FEATURE_LOWPAN_HOST/TOOLCHAIN_IAR/TARGET_LIKE_CORTEX_M0/libnanostack_iccarm_Cortex-M0_lowpan_host.a differ diff --git a/features/nanostack/FEATURE_LOWPAN_HOST/TOOLCHAIN_IAR/TARGET_M3/libnanostack_iccarm_Cortex-M3_lowpan_host.a b/features/nanostack/FEATURE_LOWPAN_HOST/TOOLCHAIN_IAR/TARGET_M3/libnanostack_iccarm_Cortex-M3_lowpan_host.a new file mode 100644 index 0000000000..d76a2dc63f Binary files /dev/null and b/features/nanostack/FEATURE_LOWPAN_HOST/TOOLCHAIN_IAR/TARGET_M3/libnanostack_iccarm_Cortex-M3_lowpan_host.a differ diff --git a/features/nanostack/FEATURE_LOWPAN_HOST/TOOLCHAIN_IAR/TARGET_RTOS_M4_M7/libnanostack_iccarm_Cortex-M3_lowpan_host.a b/features/nanostack/FEATURE_LOWPAN_HOST/TOOLCHAIN_IAR/TARGET_RTOS_M4_M7/libnanostack_iccarm_Cortex-M3_lowpan_host.a new file mode 100644 index 0000000000..d76a2dc63f Binary files /dev/null and b/features/nanostack/FEATURE_LOWPAN_HOST/TOOLCHAIN_IAR/TARGET_RTOS_M4_M7/libnanostack_iccarm_Cortex-M3_lowpan_host.a differ diff --git a/features/nanostack/FEATURE_LOWPAN_ROUTER/TOOLCHAIN_ARM/TARGET_LIKE_CORTEX_M0/libnanostack_armcc_Cortex-M0_lowpan_router.ar b/features/nanostack/FEATURE_LOWPAN_ROUTER/TOOLCHAIN_ARM/TARGET_LIKE_CORTEX_M0/libnanostack_armcc_Cortex-M0_lowpan_router.ar new file mode 100644 index 0000000000..53b6b26378 Binary files /dev/null and b/features/nanostack/FEATURE_LOWPAN_ROUTER/TOOLCHAIN_ARM/TARGET_LIKE_CORTEX_M0/libnanostack_armcc_Cortex-M0_lowpan_router.ar differ diff --git a/features/nanostack/FEATURE_LOWPAN_ROUTER/TOOLCHAIN_ARM/TARGET_M3/libnanostack_armcc_Cortex-M3_lowpan_router.ar b/features/nanostack/FEATURE_LOWPAN_ROUTER/TOOLCHAIN_ARM/TARGET_M3/libnanostack_armcc_Cortex-M3_lowpan_router.ar new file mode 100644 index 0000000000..2987f2e585 Binary files /dev/null and b/features/nanostack/FEATURE_LOWPAN_ROUTER/TOOLCHAIN_ARM/TARGET_M3/libnanostack_armcc_Cortex-M3_lowpan_router.ar differ diff --git a/features/nanostack/FEATURE_LOWPAN_ROUTER/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/libnanostack_armcc_Cortex-M3_lowpan_router.ar b/features/nanostack/FEATURE_LOWPAN_ROUTER/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/libnanostack_armcc_Cortex-M3_lowpan_router.ar new file mode 100644 index 0000000000..2987f2e585 Binary files /dev/null and b/features/nanostack/FEATURE_LOWPAN_ROUTER/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/libnanostack_armcc_Cortex-M3_lowpan_router.ar differ diff --git a/features/nanostack/FEATURE_LOWPAN_ROUTER/TOOLCHAIN_GCC/TARGET_LIKE_CORTEX_M0/libnanostack_arm-none-eabi-gcc_Cortex-M0_lowpan_router.a b/features/nanostack/FEATURE_LOWPAN_ROUTER/TOOLCHAIN_GCC/TARGET_LIKE_CORTEX_M0/libnanostack_arm-none-eabi-gcc_Cortex-M0_lowpan_router.a new file mode 100644 index 0000000000..df5e8b5ba8 Binary files /dev/null and b/features/nanostack/FEATURE_LOWPAN_ROUTER/TOOLCHAIN_GCC/TARGET_LIKE_CORTEX_M0/libnanostack_arm-none-eabi-gcc_Cortex-M0_lowpan_router.a differ diff --git a/features/nanostack/FEATURE_LOWPAN_ROUTER/TOOLCHAIN_GCC/TARGET_M3/libnanostack_arm-none-eabi-gcc_Cortex-M3_lowpan_router.a b/features/nanostack/FEATURE_LOWPAN_ROUTER/TOOLCHAIN_GCC/TARGET_M3/libnanostack_arm-none-eabi-gcc_Cortex-M3_lowpan_router.a new file mode 100644 index 0000000000..e07bd65ab6 Binary files /dev/null and b/features/nanostack/FEATURE_LOWPAN_ROUTER/TOOLCHAIN_GCC/TARGET_M3/libnanostack_arm-none-eabi-gcc_Cortex-M3_lowpan_router.a differ diff --git a/features/nanostack/FEATURE_LOWPAN_ROUTER/TOOLCHAIN_GCC/TARGET_RTOS_M4_M7/libnanostack_arm-none-eabi-gcc_Cortex-M3_lowpan_router.a b/features/nanostack/FEATURE_LOWPAN_ROUTER/TOOLCHAIN_GCC/TARGET_RTOS_M4_M7/libnanostack_arm-none-eabi-gcc_Cortex-M3_lowpan_router.a new file mode 100644 index 0000000000..e07bd65ab6 Binary files /dev/null and b/features/nanostack/FEATURE_LOWPAN_ROUTER/TOOLCHAIN_GCC/TARGET_RTOS_M4_M7/libnanostack_arm-none-eabi-gcc_Cortex-M3_lowpan_router.a differ diff --git a/features/nanostack/FEATURE_LOWPAN_ROUTER/TOOLCHAIN_IAR/TARGET_LIKE_CORTEX_M0/libnanostack_iccarm_Cortex-M0_lowpan_router.a b/features/nanostack/FEATURE_LOWPAN_ROUTER/TOOLCHAIN_IAR/TARGET_LIKE_CORTEX_M0/libnanostack_iccarm_Cortex-M0_lowpan_router.a new file mode 100644 index 0000000000..666f387502 Binary files /dev/null and b/features/nanostack/FEATURE_LOWPAN_ROUTER/TOOLCHAIN_IAR/TARGET_LIKE_CORTEX_M0/libnanostack_iccarm_Cortex-M0_lowpan_router.a differ diff --git a/features/nanostack/FEATURE_LOWPAN_ROUTER/TOOLCHAIN_IAR/TARGET_M3/libnanostack_iccarm_Cortex-M3_lowpan_router.a b/features/nanostack/FEATURE_LOWPAN_ROUTER/TOOLCHAIN_IAR/TARGET_M3/libnanostack_iccarm_Cortex-M3_lowpan_router.a new file mode 100644 index 0000000000..3861fee7e3 Binary files /dev/null and b/features/nanostack/FEATURE_LOWPAN_ROUTER/TOOLCHAIN_IAR/TARGET_M3/libnanostack_iccarm_Cortex-M3_lowpan_router.a differ diff --git a/features/nanostack/FEATURE_LOWPAN_ROUTER/TOOLCHAIN_IAR/TARGET_RTOS_M4_M7/libnanostack_iccarm_Cortex-M3_lowpan_router.a b/features/nanostack/FEATURE_LOWPAN_ROUTER/TOOLCHAIN_IAR/TARGET_RTOS_M4_M7/libnanostack_iccarm_Cortex-M3_lowpan_router.a new file mode 100644 index 0000000000..3861fee7e3 Binary files /dev/null and b/features/nanostack/FEATURE_LOWPAN_ROUTER/TOOLCHAIN_IAR/TARGET_RTOS_M4_M7/libnanostack_iccarm_Cortex-M3_lowpan_router.a differ diff --git a/features/nanostack/FEATURE_NANOSTACK/CONTRIBUTING.md b/features/nanostack/FEATURE_NANOSTACK/CONTRIBUTING.md new file mode 100644 index 0000000000..16946661fd --- /dev/null +++ b/features/nanostack/FEATURE_NANOSTACK/CONTRIBUTING.md @@ -0,0 +1,60 @@ +# How to contribute + +This directory structure contains some repositories that are copied from external sources. + +Please follow these instructions to send contributions to master repositories. + +## Directory structure + +This directory consists of following modules + +* [coap-service](#coap-service) +* [mbed-mesh-api](#mbed-mesh-api) +* [nanostack-interface](#nanostack-interface) +* [sal-stack-nanostack](#sal-stack-nanostack) + +## coap-service + +Master repository is located in the https://github.com/ARMmbed/coap-service + +Please send contributions against that repository. + +To test changes, remove the `coap-service` repository and replace with Git clone +of the master repository. + +``` +rm -rf coap-service +git clone git@github.com:ARMmbed/coap-service.git +``` + +## mbed-mesh-api + +This is the master source of mbed-mesh-api. +Send contributions directly to this repository. + +## nanostack-interface + +This is the master source of nanostack-interface. +Send contributions directly to this repository. + +## sal-stack-nanostack + +This directory holds binary libraries generated from the Nanostack networking library. + +**Only mbed Partners have access to the source code.** + +If you have access, the source directory is available in https://github.com/ARMmbed/sal-stack-nanostack-private + +You can replace the binary libraries with the source tree as follows: + +* Remove the sal-stack-nanostack directory: `rm -rf sal-stack-nanostack` +* Remove the binaries located one directory up: `rm -rf ../nanostack-binaries` +* Clone the original source repository to root folder of your application: `git@github.com:ARMmbed/sal-stack-nanostack-private.git` + +Now you can modify, build and test your changes with the mbed OS build. + +**NOTE:** You do not need to clone the Nanostack to exactly same location in the build tree. This may even cause build problems. + +### Instructions for generating the binary modules + +Check `Releasing.md` from the Nanostack source repository. diff --git a/features/nanostack/FEATURE_NANOSTACK/clone_nanostack.sh b/features/nanostack/FEATURE_NANOSTACK/clone_nanostack.sh new file mode 100755 index 0000000000..7e67195c6a --- /dev/null +++ b/features/nanostack/FEATURE_NANOSTACK/clone_nanostack.sh @@ -0,0 +1,107 @@ +#!/bin/bash + +# +# Export FEATURE_NANOSTACK libraries into mbed OS +# +# Usage: +# +# To remove all repositories call: ./clone_client.sh clean +# To replace all with clone repositores: ./clone_client.sh clone +# To export from cloned repositories: ./clone_client.sh export +# +# For developers: +# Use "clone" functionality to get master repositories to work with. +# +# For maintainers: Creating a release +# Use "clone" to get master repositories. +# For every directory checkout the release branch. +# Now use "export" function to flatten the git repositories into bare directories +# Now you can "git add" each directory and do "git commit" +# +# Note "clone" does implicit "clean" so you lose all changes done into directories. + + +# REPOSITORIES and DIRECTORIES are array of repositories where to clone +# and directories where to clone +# these arrays MUST be in sync +# * Same number of elements +# * Same order. Each line should have maching pair in same index at other array +REPOSITORIES=( + git@github.com:ARMmbed/sal-stack-nanostack.git + git@github.com:ARMmbed/coap-service.git + ) + +DIRECTORIES=( + sal-stack-nanostack + coap-service + ) + +# Exit immediately on fail, thread unset variables as error +set -eu + +# Count number of repositories +N=0 +for repo in ${REPOSITORIES[*]}; do + let N=N+1 +done +let N=N-1 # Substract one, because indexes start from 0 + +print_usage() { + echo -e "Usage: $0 [clean | clone | export ]" + echo -e "\tclean : Remove all repositories" + echo -e "\tclone : Replace repositories with Git cone" + echo -e "\texport : Export cloned Git repositories" +} + +clean() { + for dir in ${DIRECTORIES[*]}; do + rm -rf $dir + done + clean_nanostack_binaries +} + +clone() { + for i in $(seq 0 $N); do + git clone ${REPOSITORIES[$i]} ${DIRECTORIES[$i]} + done +} + +export_repos() { + for i in $(seq 0 $N); do + echo "Exporting ${DIRECTORIES[$i]}" + cd ${DIRECTORIES[$i]} + git archive HEAD -o ../${DIRECTORIES[$i]}.tar.gz + cd .. + rm -rf ${DIRECTORIES[$i]} + mkdir ${DIRECTORIES[$i]} + tar xzf ${DIRECTORIES[$i]}.tar.gz -C ${DIRECTORIES[$i]} + rm ${DIRECTORIES[$i]}.tar.gz + done +} + +copy_nanostack_binaries() { + mkdir -p ../nanostack-binaries + mv sal-stack-nanostack/FEATURE_* ../nanostack-binaries/ +} + +clean_nanostack_binaries() { + rm -rf ../nanostack-binaries +} + +case "${1-}" in + clean) + clean + ;; + clone) + clean + clone + ;; + export) + export_repos + copy_nanostack_binaries + ;; + *) + print_usage + exit 1 + ;; +esac diff --git a/features/net/FEATURE_IPV6/coap-service/.gitignore b/features/nanostack/FEATURE_NANOSTACK/coap-service/.gitignore similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/.gitignore rename to features/nanostack/FEATURE_NANOSTACK/coap-service/.gitignore diff --git a/features/net/FEATURE_IPV6/coap-service/.mbedignore b/features/nanostack/FEATURE_NANOSTACK/coap-service/.mbedignore similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/.mbedignore rename to features/nanostack/FEATURE_NANOSTACK/coap-service/.mbedignore diff --git a/features/net/FEATURE_IPV6/coap-service/.yotta_ignore b/features/nanostack/FEATURE_NANOSTACK/coap-service/.yotta_ignore similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/.yotta_ignore rename to features/nanostack/FEATURE_NANOSTACK/coap-service/.yotta_ignore diff --git a/features/net/FEATURE_IPV6/coap-service/LICENSE b/features/nanostack/FEATURE_NANOSTACK/coap-service/LICENSE similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/LICENSE rename to features/nanostack/FEATURE_NANOSTACK/coap-service/LICENSE diff --git a/features/net/FEATURE_IPV6/coap-service/Makefile.test b/features/nanostack/FEATURE_NANOSTACK/coap-service/Makefile.test similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/Makefile.test rename to features/nanostack/FEATURE_NANOSTACK/coap-service/Makefile.test diff --git a/features/net/FEATURE_IPV6/coap-service/apache-2.0.txt b/features/nanostack/FEATURE_NANOSTACK/coap-service/apache-2.0.txt similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/apache-2.0.txt rename to features/nanostack/FEATURE_NANOSTACK/coap-service/apache-2.0.txt diff --git a/features/net/FEATURE_IPV6/coap-service/coap-service/coap_service_api.h b/features/nanostack/FEATURE_NANOSTACK/coap-service/coap-service/coap_service_api.h similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/coap-service/coap_service_api.h rename to features/nanostack/FEATURE_NANOSTACK/coap-service/coap-service/coap_service_api.h diff --git a/features/net/FEATURE_IPV6/coap-service/junit_xsl.xslt b/features/nanostack/FEATURE_NANOSTACK/coap-service/junit_xsl.xslt similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/junit_xsl.xslt rename to features/nanostack/FEATURE_NANOSTACK/coap-service/junit_xsl.xslt diff --git a/features/net/FEATURE_IPV6/coap-service/module.json b/features/nanostack/FEATURE_NANOSTACK/coap-service/module.json similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/module.json rename to features/nanostack/FEATURE_NANOSTACK/coap-service/module.json diff --git a/features/net/FEATURE_IPV6/coap-service/run_unit_tests.sh b/features/nanostack/FEATURE_NANOSTACK/coap-service/run_unit_tests.sh similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/run_unit_tests.sh rename to features/nanostack/FEATURE_NANOSTACK/coap-service/run_unit_tests.sh diff --git a/features/net/FEATURE_IPV6/coap-service/source/coap_connection_handler.c b/features/nanostack/FEATURE_NANOSTACK/coap-service/source/coap_connection_handler.c similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/source/coap_connection_handler.c rename to features/nanostack/FEATURE_NANOSTACK/coap-service/source/coap_connection_handler.c diff --git a/features/net/FEATURE_IPV6/coap-service/source/coap_message_handler.c b/features/nanostack/FEATURE_NANOSTACK/coap-service/source/coap_message_handler.c similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/source/coap_message_handler.c rename to features/nanostack/FEATURE_NANOSTACK/coap-service/source/coap_message_handler.c diff --git a/features/net/FEATURE_IPV6/coap-service/source/coap_security_handler.c b/features/nanostack/FEATURE_NANOSTACK/coap-service/source/coap_security_handler.c similarity index 99% rename from features/net/FEATURE_IPV6/coap-service/source/coap_security_handler.c rename to features/nanostack/FEATURE_NANOSTACK/coap-service/source/coap_security_handler.c index b235bea406..a33b50a5cc 100644 --- a/features/net/FEATURE_IPV6/coap-service/source/coap_security_handler.c +++ b/features/nanostack/FEATURE_NANOSTACK/coap-service/source/coap_security_handler.c @@ -321,10 +321,11 @@ int coap_security_handler_connect(coap_security_t *sec, bool is_server, SecureSo return -1; } - //TODO: Only needed for server type? +#ifdef MBEDTLS_SSL_SRV_C mbedtls_ssl_conf_dtls_cookies(&sec->_conf, simple_cookie_write, simple_cookie_check, &sec->_cookie); +#endif sec->_is_started = true; @@ -416,10 +417,11 @@ int coap_security_handler_connect_non_blocking(coap_security_t *sec, bool is_ser return -1; } - //Only needed for server type? +#ifdef MBEDTLS_SSL_SRV_C mbedtls_ssl_conf_dtls_cookies(&sec->_conf, simple_cookie_write, simple_cookie_check, &sec->_cookie); +#endif mbedtls_ssl_conf_min_version(&sec->_conf, MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MAJOR_VERSION_3); mbedtls_ssl_conf_max_version(&sec->_conf, MBEDTLS_SSL_MAJOR_VERSION_3, MBEDTLS_SSL_MAJOR_VERSION_3); diff --git a/features/net/FEATURE_IPV6/coap-service/source/coap_service_api.c b/features/nanostack/FEATURE_NANOSTACK/coap-service/source/coap_service_api.c similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/source/coap_service_api.c rename to features/nanostack/FEATURE_NANOSTACK/coap-service/source/coap_service_api.c diff --git a/features/net/FEATURE_IPV6/coap-service/source/include/coap_connection_handler.h b/features/nanostack/FEATURE_NANOSTACK/coap-service/source/include/coap_connection_handler.h similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/source/include/coap_connection_handler.h rename to features/nanostack/FEATURE_NANOSTACK/coap-service/source/include/coap_connection_handler.h diff --git a/features/net/FEATURE_IPV6/coap-service/source/include/coap_message_handler.h b/features/nanostack/FEATURE_NANOSTACK/coap-service/source/include/coap_message_handler.h similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/source/include/coap_message_handler.h rename to features/nanostack/FEATURE_NANOSTACK/coap-service/source/include/coap_message_handler.h diff --git a/features/net/FEATURE_IPV6/coap-service/source/include/coap_security_handler.h b/features/nanostack/FEATURE_NANOSTACK/coap-service/source/include/coap_security_handler.h similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/source/include/coap_security_handler.h rename to features/nanostack/FEATURE_NANOSTACK/coap-service/source/include/coap_security_handler.h diff --git a/features/net/FEATURE_IPV6/coap-service/source/include/coap_service_api_internal.h b/features/nanostack/FEATURE_NANOSTACK/coap-service/source/include/coap_service_api_internal.h similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/source/include/coap_service_api_internal.h rename to features/nanostack/FEATURE_NANOSTACK/coap-service/source/include/coap_service_api_internal.h diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/MakefileWorker.mk b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/MakefileWorker.mk similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/MakefileWorker.mk rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/MakefileWorker.mk diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_connection_handler/coap_connection_handlertest.cpp b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_connection_handler/coap_connection_handlertest.cpp similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_connection_handler/coap_connection_handlertest.cpp rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_connection_handler/coap_connection_handlertest.cpp diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_connection_handler/main.cpp b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_connection_handler/main.cpp similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_connection_handler/main.cpp rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_connection_handler/main.cpp diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_connection_handler/test_coap_connection_handler.c b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_connection_handler/test_coap_connection_handler.c similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_connection_handler/test_coap_connection_handler.c rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_connection_handler/test_coap_connection_handler.c diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_connection_handler/test_coap_connection_handler.h b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_connection_handler/test_coap_connection_handler.h similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_connection_handler/test_coap_connection_handler.h rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_connection_handler/test_coap_connection_handler.h diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_message_handler/coap_message_handlertest.cpp b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_message_handler/coap_message_handlertest.cpp similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_message_handler/coap_message_handlertest.cpp rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_message_handler/coap_message_handlertest.cpp diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_message_handler/main.cpp b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_message_handler/main.cpp similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_message_handler/main.cpp rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_message_handler/main.cpp diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_message_handler/test_coap_message_handler.c b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_message_handler/test_coap_message_handler.c similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_message_handler/test_coap_message_handler.c rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_message_handler/test_coap_message_handler.c diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_message_handler/test_coap_message_handler.h b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_message_handler/test_coap_message_handler.h similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_message_handler/test_coap_message_handler.h rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_message_handler/test_coap_message_handler.h diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_security_handler/coap_security_handlertest.cpp b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_security_handler/coap_security_handlertest.cpp similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_security_handler/coap_security_handlertest.cpp rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_security_handler/coap_security_handlertest.cpp diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_security_handler/main.cpp b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_security_handler/main.cpp similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_security_handler/main.cpp rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_security_handler/main.cpp diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_security_handler/test_coap_security_handler.c b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_security_handler/test_coap_security_handler.c similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_security_handler/test_coap_security_handler.c rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_security_handler/test_coap_security_handler.c diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_security_handler/test_coap_security_handler.h b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_security_handler/test_coap_security_handler.h similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_security_handler/test_coap_security_handler.h rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_security_handler/test_coap_security_handler.h diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_service_api/coap_service_apitest.cpp b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_service_api/coap_service_apitest.cpp similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_service_api/coap_service_apitest.cpp rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_service_api/coap_service_apitest.cpp diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_service_api/main.cpp b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_service_api/main.cpp similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_service_api/main.cpp rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_service_api/main.cpp diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_service_api/test_coap_service_api.c b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_service_api/test_coap_service_api.c similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_service_api/test_coap_service_api.c rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_service_api/test_coap_service_api.c diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_service_api/test_coap_service_api.h b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_service_api/test_coap_service_api.h similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/coap_service_api/test_coap_service_api.h rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/coap_service_api/test_coap_service_api.h diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/makefile_defines.txt b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/makefile_defines.txt similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/makefile_defines.txt rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/makefile_defines.txt diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/run_tests b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/run_tests old mode 100644 new mode 100755 similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/run_tests rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/run_tests diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/coap_connection_handler_stub.c b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/coap_connection_handler_stub.c similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/coap_connection_handler_stub.c rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/coap_connection_handler_stub.c diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/coap_connection_handler_stub.h b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/coap_connection_handler_stub.h similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/coap_connection_handler_stub.h rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/coap_connection_handler_stub.h diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/coap_message_handler_stub.c b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/coap_message_handler_stub.c similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/coap_message_handler_stub.c rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/coap_message_handler_stub.c diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/coap_message_handler_stub.h b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/coap_message_handler_stub.h similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/coap_message_handler_stub.h rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/coap_message_handler_stub.h diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/coap_security_handler_stub.c b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/coap_security_handler_stub.c similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/coap_security_handler_stub.c rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/coap_security_handler_stub.c diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/coap_security_handler_stub.h b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/coap_security_handler_stub.h similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/coap_security_handler_stub.h rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/coap_security_handler_stub.h diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/coap_service_api_stub.c b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/coap_service_api_stub.c similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/coap_service_api_stub.c rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/coap_service_api_stub.c diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/eventOS_event_stub.c b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/eventOS_event_stub.c similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/eventOS_event_stub.c rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/eventOS_event_stub.c diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/eventOS_event_stub.h b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/eventOS_event_stub.h similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/eventOS_event_stub.h rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/eventOS_event_stub.h diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/mbed_trace_stub.c b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/mbed_trace_stub.c similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/mbed_trace_stub.c rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/mbed_trace_stub.c diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/mbedtls_stub.c b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/mbedtls_stub.c similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/mbedtls_stub.c rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/mbedtls_stub.c diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/mbedtls_stub.h b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/mbedtls_stub.h similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/mbedtls_stub.h rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/mbedtls_stub.h diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/ns_list_stub.c b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/ns_list_stub.c similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/ns_list_stub.c rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/ns_list_stub.c diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/ns_timer_stub.c b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/ns_timer_stub.c similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/ns_timer_stub.c rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/ns_timer_stub.c diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/ns_timer_stub.h b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/ns_timer_stub.h similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/ns_timer_stub.h rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/ns_timer_stub.h diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/nsdynmemLIB_stub.c b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/nsdynmemLIB_stub.c similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/nsdynmemLIB_stub.c rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/nsdynmemLIB_stub.c diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/nsdynmemLIB_stub.h b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/nsdynmemLIB_stub.h similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/nsdynmemLIB_stub.h rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/nsdynmemLIB_stub.h diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/randLIB_stub.c b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/randLIB_stub.c similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/randLIB_stub.c rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/randLIB_stub.c diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/sn_coap_builder_stub.c b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/sn_coap_builder_stub.c similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/sn_coap_builder_stub.c rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/sn_coap_builder_stub.c diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/sn_coap_builder_stub.h b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/sn_coap_builder_stub.h similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/sn_coap_builder_stub.h rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/sn_coap_builder_stub.h diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/sn_coap_parser_stub.c b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/sn_coap_parser_stub.c similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/sn_coap_parser_stub.c rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/sn_coap_parser_stub.c diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/sn_coap_parser_stub.h b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/sn_coap_parser_stub.h similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/sn_coap_parser_stub.h rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/sn_coap_parser_stub.h diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/sn_coap_protocol_stub.c b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/sn_coap_protocol_stub.c similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/sn_coap_protocol_stub.c rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/sn_coap_protocol_stub.c diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/sn_coap_protocol_stub.h b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/sn_coap_protocol_stub.h similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/sn_coap_protocol_stub.h rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/sn_coap_protocol_stub.h diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/socket_api_stub.c b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/socket_api_stub.c similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/socket_api_stub.c rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/socket_api_stub.c diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/socket_api_stub.h b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/socket_api_stub.h similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/socket_api_stub.h rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/socket_api_stub.h diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/system_timer_stub.c b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/system_timer_stub.c similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/system_timer_stub.c rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/system_timer_stub.c diff --git a/features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/timeout_stub.c b/features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/timeout_stub.c similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/test/coap-service/unittest/stub/timeout_stub.c rename to features/nanostack/FEATURE_NANOSTACK/coap-service/test/coap-service/unittest/stub/timeout_stub.c diff --git a/features/net/FEATURE_IPV6/coap-service/xsl_script.sh b/features/nanostack/FEATURE_NANOSTACK/coap-service/xsl_script.sh old mode 100644 new mode 100755 similarity index 100% rename from features/net/FEATURE_IPV6/coap-service/xsl_script.sh rename to features/nanostack/FEATURE_NANOSTACK/coap-service/xsl_script.sh diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/.gitignore b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/.gitignore similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/.gitignore rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/.gitignore diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/.mbedignore b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/.mbedignore similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/.mbedignore rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/.mbedignore diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/LICENSE b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/LICENSE similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/LICENSE rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/LICENSE diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/README.md b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/README.md similarity index 95% rename from features/net/FEATURE_IPV6/mbed-mesh-api/README.md rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/README.md index 71e3201319..920231b694 100644 --- a/features/net/FEATURE_IPV6/mbed-mesh-api/README.md +++ b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/README.md @@ -10,7 +10,7 @@ Currently, 6LoWPAN-ND (neighbour discovery) and Thread bootstrap modes are suppo ## Module Configuration -This module supports static configuration via **mbed configuration system** by using the `mbed_app.json` file. The application needs to create the configuration file if it wants to use other than default settings. +This module supports static configuration via **mbed configuration system** by using the `mbed_app.json` file. The application needs to create the configuration file if it wants to use other than default settings. An example of the configuration file: @@ -58,7 +58,7 @@ An example of the configuration file: | 6lowpan-nd-psk-key-id | number | PSK key id when PSK is enabled | | 6lowpan-nd-psk-key | byte array [16] | Pre shared network key | | 6lowpan-nd-sec-level | number [1-7] | Network security level. Use default `5` | - +| 6lowpan-nd-device-type | "NET_6LOWPAN_ROUTER" or "NET_6LOWPAN_HOST" | Device mode. Router is routing packets from other device, creating a mesh network. | ## Usage notes diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/apache-2.0.txt b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/apache-2.0.txt similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/apache-2.0.txt rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/apache-2.0.txt diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/mbed-mesh-api/AbstractMesh.h b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/mbed-mesh-api/AbstractMesh.h similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/mbed-mesh-api/AbstractMesh.h rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/mbed-mesh-api/AbstractMesh.h diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/mbed-mesh-api/AbstractNetworkInterface.h b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/mbed-mesh-api/AbstractNetworkInterface.h similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/mbed-mesh-api/AbstractNetworkInterface.h rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/mbed-mesh-api/AbstractNetworkInterface.h diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/mbed-mesh-api/Mesh6LoWPAN_ND.h b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/mbed-mesh-api/Mesh6LoWPAN_ND.h similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/mbed-mesh-api/Mesh6LoWPAN_ND.h rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/mbed-mesh-api/Mesh6LoWPAN_ND.h diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/mbed-mesh-api/MeshInterfaceFactory.h b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/mbed-mesh-api/MeshInterfaceFactory.h similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/mbed-mesh-api/MeshInterfaceFactory.h rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/mbed-mesh-api/MeshInterfaceFactory.h diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/mbed-mesh-api/MeshThread.h b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/mbed-mesh-api/MeshThread.h similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/mbed-mesh-api/MeshThread.h rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/mbed-mesh-api/MeshThread.h diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/mbed-mesh-api/mesh_interface_types.h b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/mbed-mesh-api/mesh_interface_types.h similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/mbed-mesh-api/mesh_interface_types.h rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/mbed-mesh-api/mesh_interface_types.h diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/mbed_lib.json b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/mbed_lib.json similarity index 95% rename from features/net/FEATURE_IPV6/mbed-mesh-api/mbed_lib.json rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/mbed_lib.json index 299807ae0f..4d21643598 100644 --- a/features/net/FEATURE_IPV6/mbed-mesh-api/mbed_lib.json +++ b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/mbed_lib.json @@ -9,6 +9,7 @@ "6lowpan-nd-psk-key-id": 1, "6lowpan-nd-psk-key": "{0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf}", "6lowpan-nd-sec-level": 5, + "6lowpan-nd-device-type": "NET_6LOWPAN_ROUTER", "thread-pskd": "\"Secret password\"", "thread-config-channel-mask": "0x7fff800", "thread-config-channel-page": 0, diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/module.json b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/module.json similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/module.json rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/module.json diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/source/AbstractMesh.cpp b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/AbstractMesh.cpp similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/source/AbstractMesh.cpp rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/AbstractMesh.cpp diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/source/AbstractNetworkInterface.cpp b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/AbstractNetworkInterface.cpp similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/source/AbstractNetworkInterface.cpp rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/AbstractNetworkInterface.cpp diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/source/CallbackHandler.cpp b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/CallbackHandler.cpp similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/source/CallbackHandler.cpp rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/CallbackHandler.cpp diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/source/Mesh6LoWPAN_ND.cpp b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/Mesh6LoWPAN_ND.cpp similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/source/Mesh6LoWPAN_ND.cpp rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/Mesh6LoWPAN_ND.cpp diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/source/MeshInterfaceFactory.cpp b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/MeshInterfaceFactory.cpp similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/source/MeshInterfaceFactory.cpp rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/MeshInterfaceFactory.cpp diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/source/MeshThread.cpp b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/MeshThread.cpp similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/source/MeshThread.cpp rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/MeshThread.cpp diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/source/include/callback_handler.h b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/include/callback_handler.h similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/source/include/callback_handler.h rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/include/callback_handler.h diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/source/include/mesh_system.h b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/include/mesh_system.h similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/source/include/mesh_system.h rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/include/mesh_system.h diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/source/include/nd_tasklet.h b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/include/nd_tasklet.h similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/source/include/nd_tasklet.h rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/include/nd_tasklet.h diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/source/include/static_config.h b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/include/static_config.h similarity index 99% rename from features/net/FEATURE_IPV6/mbed-mesh-api/source/include/static_config.h rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/include/static_config.h index db2f3dc275..cd2ff27149 100644 --- a/features/net/FEATURE_IPV6/mbed-mesh-api/source/include/static_config.h +++ b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/include/static_config.h @@ -73,7 +73,7 @@ extern "C" { #elif defined MBED_CONF_MBED_MESH_API_6LOWPAN_ND_SECURITY_MODE #define MBED_MESH_API_6LOWPAN_ND_SECURITY_MODE MBED_CONF_MBED_MESH_API_6LOWPAN_ND_SECURITY_MODE #else -#define YOTTA_CFG_MBED_MESH_API_6LOWPAN_ND_SECURITY_MODE NONE +#define MBED_MESH_API_6LOWPAN_ND_SECURITY_MODE NONE #endif #ifdef YOTTA_CFG_MBED_MESH_API_6LOWPAN_ND_PSK_KEY_ID diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/source/include/thread_tasklet.h b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/include/thread_tasklet.h similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/source/include/thread_tasklet.h rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/include/thread_tasklet.h diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/source/mesh_system.c b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/mesh_system.c similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/source/mesh_system.c rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/mesh_system.c diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/source/nd_tasklet.c b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/nd_tasklet.c similarity index 98% rename from features/net/FEATURE_IPV6/mbed-mesh-api/source/nd_tasklet.c rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/nd_tasklet.c index 153b90e6d1..3b74fe02bb 100644 --- a/features/net/FEATURE_IPV6/mbed-mesh-api/source/nd_tasklet.c +++ b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/nd_tasklet.c @@ -72,6 +72,7 @@ typedef struct { /* Tasklet data */ static tasklet_data_str_t *tasklet_data_ptr = NULL; +static mac_api_t *mac_api = NULL; /* private function prototypes */ void nd_tasklet_main(arm_event_s *event); @@ -369,8 +370,7 @@ int8_t nd_tasklet_connect(mesh_interface_cb callback, int8_t nwk_interface_id) tasklet_data_ptr->network_interface_id = nwk_interface_id; tasklet_data_ptr->tasklet_state = TASKLET_STATE_INITIALIZED; - //TODO: Fetch these values from device config api - tasklet_data_ptr->mode = NET_6LOWPAN_ROUTER; + tasklet_data_ptr->mode = MBED_CONF_MBED_MESH_API_6LOWPAN_ND_DEVICE_TYPE; tasklet_data_ptr->sec_mode = NET_SEC_MODE_NO_LINK_SECURITY; //tasklet_data_ptr->psk_sec_info.key_id = 0; @@ -427,7 +427,9 @@ int8_t nd_tasklet_network_init(int8_t device_id) storage_sizes.key_description_table_size = 3; storage_sizes.key_lookup_size = 1; storage_sizes.key_usage_size = 3; - mac_api_t *api = ns_sw_mac_create(device_id, &storage_sizes); - return arm_nwk_interface_lowpan_init(api, INTERFACE_NAME); + if (!mac_api) { + mac_api = ns_sw_mac_create(device_id, &storage_sizes); + } + return arm_nwk_interface_lowpan_init(mac_api, INTERFACE_NAME); } diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/source/thread_tasklet.c b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/thread_tasklet.c similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/source/thread_tasklet.c rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/thread_tasklet.c diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/source/to_be_ported.c b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/to_be_ported.c similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/source/to_be_ported.c rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/source/to_be_ported.c diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/test/6lowpan_nd/README.md b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/test/6lowpan_nd/README.md similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/test/6lowpan_nd/README.md rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/test/6lowpan_nd/README.md diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/test/6lowpan_nd/main.cpp b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/test/6lowpan_nd/main.cpp similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/test/6lowpan_nd/main.cpp rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/test/6lowpan_nd/main.cpp diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/test/system_test/main.cpp b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/test/system_test/main.cpp similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/test/system_test/main.cpp rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/test/system_test/main.cpp diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/test/system_test/test_cases.cpp b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/test/system_test/test_cases.cpp similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/test/system_test/test_cases.cpp rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/test/system_test/test_cases.cpp diff --git a/features/net/FEATURE_IPV6/mbed-mesh-api/test/system_test/test_cases.h b/features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/test/system_test/test_cases.h similarity index 100% rename from features/net/FEATURE_IPV6/mbed-mesh-api/test/system_test/test_cases.h rename to features/nanostack/FEATURE_NANOSTACK/mbed-mesh-api/test/system_test/test_cases.h diff --git a/features/net/FEATURE_IPV6/nanostack-interface/NanostackInterface.cpp b/features/nanostack/FEATURE_NANOSTACK/nanostack-interface/NanostackInterface.cpp similarity index 100% rename from features/net/FEATURE_IPV6/nanostack-interface/NanostackInterface.cpp rename to features/nanostack/FEATURE_NANOSTACK/nanostack-interface/NanostackInterface.cpp diff --git a/features/net/FEATURE_IPV6/nanostack-interface/NanostackInterface.h b/features/nanostack/FEATURE_NANOSTACK/nanostack-interface/NanostackInterface.h similarity index 100% rename from features/net/FEATURE_IPV6/nanostack-interface/NanostackInterface.h rename to features/nanostack/FEATURE_NANOSTACK/nanostack-interface/NanostackInterface.h diff --git a/features/net/FEATURE_IPV6/nanostack-interface/NanostackRfPhy.h b/features/nanostack/FEATURE_NANOSTACK/nanostack-interface/NanostackRfPhy.h similarity index 100% rename from features/net/FEATURE_IPV6/nanostack-interface/NanostackRfPhy.h rename to features/nanostack/FEATURE_NANOSTACK/nanostack-interface/NanostackRfPhy.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/.gitignore b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/.gitignore similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/.gitignore rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/.gitignore diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/DOXYGEN_FRONTPAGE.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/DOXYGEN_FRONTPAGE.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/DOXYGEN_FRONTPAGE.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/DOXYGEN_FRONTPAGE.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/Doxyfile b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/Doxyfile similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/Doxyfile rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/Doxyfile diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/LICENSE b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/LICENSE similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/LICENSE rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/LICENSE diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/LICENSE-permissive-binary-license-1.0.txt b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/LICENSE-permissive-binary-license-1.0.txt similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/LICENSE-permissive-binary-license-1.0.txt rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/LICENSE-permissive-binary-license-1.0.txt diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/README.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/README.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/README.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/README.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/01_overview.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/01_overview.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/01_overview.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/01_overview.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/02_N_arch.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/02_N_arch.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/02_N_arch.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/02_N_arch.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/03_N_usage.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/03_N_usage.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/03_N_usage.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/03_N_usage.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/04_N_networking.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/04_N_networking.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/04_N_networking.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/04_N_networking.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/05_reference.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/05_reference.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/05_reference.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/05_reference.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/06_API_introduction.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/06_API_introduction.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/06_API_introduction.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/06_API_introduction.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/07_API_initialize.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/07_API_initialize.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/07_API_initialize.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/07_API_initialize.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/08_API_events.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/08_API_events.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/08_API_events.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/08_API_events.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/09_API_network_def.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/09_API_network_def.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/09_API_network_def.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/09_API_network_def.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/10_API_timer.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/10_API_timer.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/10_API_timer.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/10_API_timer.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/11_API_sockets.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/11_API_sockets.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/11_API_sockets.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/11_API_sockets.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/12_API_network.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/12_API_network.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/12_API_network.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/12_API_network.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/13_API_memory.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/13_API_memory.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/13_API_memory.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/13_API_memory.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/14_API_data.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/14_API_data.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/14_API_data.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/14_API_data.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/15_API_debug.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/15_API_debug.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/15_API_debug.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/15_API_debug.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/16_API_porting.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/16_API_porting.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/16_API_porting.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/16_API_porting.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/api_changes_to_v4_0_0.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/api_changes_to_v4_0_0.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/api_changes_to_v4_0_0.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/api_changes_to_v4_0_0.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/api_changes_to_v5_0_0.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/api_changes_to_v5_0_0.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/api_changes_to_v5_0_0.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/api_changes_to_v5_0_0.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/dev_stats.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/dev_stats.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/dev_stats.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/dev_stats.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/driver_api.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/driver_api.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/driver_api.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/driver_api.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/6lh.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/6lh.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/6lh.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/6lh.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/6lowpan_border_router_embedded_C_architecture.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/6lowpan_border_router_embedded_C_architecture.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/6lowpan_border_router_embedded_C_architecture.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/6lowpan_border_router_embedded_C_architecture.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/6lowpan_network_architecture.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/6lowpan_network_architecture.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/6lowpan_network_architecture.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/6lowpan_network_architecture.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/6lowpan_stack_architecture.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/6lowpan_stack_architecture.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/6lowpan_stack_architecture.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/6lowpan_stack_architecture.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/6lowpan_stack_networking_topologies.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/6lowpan_stack_networking_topologies.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/6lowpan_stack_networking_topologies.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/6lowpan_stack_networking_topologies.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/6lowpan_stack_osi_model.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/6lowpan_stack_osi_model.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/6lowpan_stack_osi_model.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/6lowpan_stack_osi_model.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/6lr.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/6lr.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/6lr.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/6lr.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/Thread_General.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/Thread_General.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/Thread_General.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/Thread_General.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/Thread_Prot_Arch2.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/Thread_Prot_Arch2.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/Thread_Prot_Arch2.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/Thread_Prot_Arch2.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/Thread_Prot_Arch_Comb.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/Thread_Prot_Arch_Comb.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/Thread_Prot_Arch_Comb.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/Thread_Prot_Arch_Comb.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/Thread_Proto_Arch.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/Thread_Proto_Arch.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/Thread_Proto_Arch.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/Thread_Proto_Arch.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/arch_general.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/arch_general.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/arch_general.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/arch_general.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/br.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/br.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/br.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/br.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/bw.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/bw.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/bw.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/bw.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/ed_scan_process.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/ed_scan_process.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/ed_scan_process.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/ed_scan_process.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/examples.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/examples.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/examples.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/examples.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/high_level_stack_API_interfaces.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/high_level_stack_API_interfaces.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/high_level_stack_API_interfaces.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/high_level_stack_API_interfaces.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/join_process_star_6lowpan_router.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/join_process_star_6lowpan_router.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/join_process_star_6lowpan_router.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/join_process_star_6lowpan_router.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/join_process_to_router_mesh_6lowpan.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/join_process_to_router_mesh_6lowpan.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/join_process_to_router_mesh_6lowpan.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/join_process_to_router_mesh_6lowpan.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/mbedOS_sockets.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/mbedOS_sockets.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/mbedOS_sockets.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/mbedOS_sockets.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/mesh.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/mesh.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/mesh.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/mesh.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/nanostack_in_mbed_OS.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/nanostack_in_mbed_OS.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/nanostack_in_mbed_OS.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/nanostack_in_mbed_OS.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/network_bootstrap_high_level_view.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/network_bootstrap_high_level_view.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/network_bootstrap_high_level_view.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/network_bootstrap_high_level_view.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/network_bootstrapping_process.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/network_bootstrapping_process.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/network_bootstrapping_process.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/network_bootstrapping_process.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/node_to_server.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/node_to_server.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/node_to_server.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/node_to_server.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/rpl_layer_reg_multiple_hops.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/rpl_layer_reg_multiple_hops.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/rpl_layer_reg_multiple_hops.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/rpl_layer_reg_multiple_hops.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/rpl_layer_reg_single_hop.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/rpl_layer_reg_single_hop.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/rpl_layer_reg_single_hop.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/rpl_layer_reg_single_hop.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/rpl_mesh_high_level_view.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/rpl_mesh_high_level_view.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/rpl_mesh_high_level_view.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/rpl_mesh_high_level_view.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/star_topology.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/star_topology.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/star_topology.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/star_topology.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/state_machine_6lowpan.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/state_machine_6lowpan.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/state_machine_6lowpan.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/state_machine_6lowpan.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/temp.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/temp.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/temp.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/temp.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/thread_case1.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/thread_case1.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/thread_case1.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/thread_case1.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/thread_case2.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/thread_case2.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/thread_case2.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/thread_case2.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/thread_case3.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/thread_case3.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/thread_case3.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/thread_case3.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/thread_case4.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/thread_case4.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/thread_case4.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/thread_case4.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/thread_comm_ext.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/thread_comm_ext.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/thread_comm_ext.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/thread_comm_ext.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/thread_ext_pet_seq.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/thread_ext_pet_seq.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/thread_ext_pet_seq.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/thread_ext_pet_seq.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/thread_nat_pet_seq.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/thread_nat_pet_seq.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/thread_nat_pet_seq.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/thread_nat_pet_seq.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/thread_native_comm_pet.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/thread_native_comm_pet.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/thread_native_comm_pet.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/thread_native_comm_pet.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/thread_pet_auth_seq.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/thread_pet_auth_seq.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/thread_pet_auth_seq.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/thread_pet_auth_seq.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/tx_process.png b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/tx_process.png similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/img/tx_process.png rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/img/tx_process.png diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/index.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/index.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/index.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/index.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/platform_API.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/platform_API.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/platform_API.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/platform_API.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/quick_start_build.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/quick_start_build.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/quick_start_build.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/quick_start_build.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/quick_start_config.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/quick_start_config.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/quick_start_config.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/quick_start_config.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/quick_start_hw.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/quick_start_hw.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/quick_start_hw.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/quick_start_hw.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/quick_start_intro.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/quick_start_intro.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/quick_start_intro.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/quick_start_intro.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/thread_APIs.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/thread_APIs.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/thread_APIs.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/thread_APIs.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/thread_comm.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/thread_comm.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/thread_comm.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/thread_comm.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/thread_dev_typ.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/thread_dev_typ.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/thread_dev_typ.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/thread_dev_typ.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/thread_overview.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/thread_overview.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/thread_overview.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/thread_overview.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/docs/thread_sec.md b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/thread_sec.md similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/docs/thread_sec.md rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/docs/thread_sec.md diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/doxygen/mainpage.dox b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/doxygen/mainpage.dox similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/doxygen/mainpage.dox rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/doxygen/mainpage.dox diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/mbed_lib.json b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/mbed_lib.json similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/mbed_lib.json rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/mbed_lib.json diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/mkdocs.yml b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/mkdocs.yml similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/mkdocs.yml rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/mkdocs.yml diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/cca_api.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/cca_api.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/cca_api.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/cca_api.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/ccmLIB.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/ccmLIB.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/ccmLIB.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/ccmLIB.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/dev_stat_api.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/dev_stat_api.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/dev_stat_api.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/dev_stat_api.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/dhcp_service_api.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/dhcp_service_api.h similarity index 93% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/dhcp_service_api.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/dhcp_service_api.h index 33df7f60fb..72c7345486 100644 --- a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/dhcp_service_api.h +++ b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/dhcp_service_api.h @@ -59,6 +59,12 @@ #define TX_OPT_MULTICAST_HOP_LIMIT_64 0x02 /**< Use multicast hop limit of 64. */ ///@} +typedef enum dhcp_instance_type +{ + DHCP_INSTANCE_CLIENT, + DHCP_INSTANCE_SERVER +} dhcp_instance_type_e; + /** * \brief DHCP Service receive callback. * @@ -96,14 +102,18 @@ typedef int (dhcp_service_receive_resp_cb)(uint16_t instance_id, void *ptr, uint /** - * \brief Initialize the server instance. + * \brief Initialize a new DHCP service instance. * * Creates and shares the socket for other DHCP services. * + * \param interface_id Interface for the new DHCP instance. + * \param instance_type The type of the new DHCP instance. + * \param A callback function to receive DHCP messages. + * * \return Instance ID that is used to identify the service. */ -uint16_t dhcp_service_init(int8_t interface_id, dhcp_service_receive_req_cb *receive_req_cb); +uint16_t dhcp_service_init(int8_t interface_id, dhcp_instance_type_e instance_type, dhcp_service_receive_req_cb *receive_req_cb); /** * \brief Deletes a server instance. diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/ethernet_mac_api.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/ethernet_mac_api.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/ethernet_mac_api.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/ethernet_mac_api.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/mac_api.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/mac_api.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/mac_api.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/mac_api.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/mac_common_defines.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/mac_common_defines.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/mac_common_defines.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/mac_common_defines.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/mac_filter_api.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/mac_filter_api.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/mac_filter_api.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/mac_filter_api.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/mac_mcps.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/mac_mcps.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/mac_mcps.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/mac_mcps.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/mlme.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/mlme.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/mlme.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/mlme.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/multicast_api.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/multicast_api.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/multicast_api.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/multicast_api.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/net_6lowpan_parameter_api.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/net_6lowpan_parameter_api.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/net_6lowpan_parameter_api.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/net_6lowpan_parameter_api.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/net_address_extension.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/net_address_extension.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/net_address_extension.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/net_address_extension.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/net_fhss.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/net_fhss.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/net_fhss.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/net_fhss.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/net_interface.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/net_interface.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/net_interface.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/net_interface.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/net_ipv6_api.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/net_ipv6_api.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/net_ipv6_api.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/net_ipv6_api.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/net_mle_api.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/net_mle_api.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/net_mle_api.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/net_mle_api.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/net_nvm_api.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/net_nvm_api.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/net_nvm_api.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/net_nvm_api.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/net_nwk_scan.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/net_nwk_scan.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/net_nwk_scan.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/net_nwk_scan.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/net_pana_parameters_api.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/net_pana_parameters_api.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/net_pana_parameters_api.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/net_pana_parameters_api.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/net_polling_api.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/net_polling_api.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/net_polling_api.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/net_polling_api.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/net_rpl.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/net_rpl.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/net_rpl.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/net_rpl.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/net_sleep.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/net_sleep.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/net_sleep.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/net_sleep.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/net_thread_test.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/net_thread_test.h similarity index 86% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/net_thread_test.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/net_thread_test.h index 33ec6303e7..309dacd4d3 100644 --- a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/net_thread_test.h +++ b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/net_thread_test.h @@ -30,7 +30,7 @@ extern "C" { #include "ns_types.h" - +#define thread_test_router_upgrade(iface) thread_test_router_id_request_send(iface, 2) // THREAD_COAP_STATUS_TLV_TOO_FEW_ROUTERS /** * \brief Add a static neighbour * @@ -174,15 +174,7 @@ int thread_test_set_context_id_reuse_timeout( * \return <0 Remove fail */ int thread_test_remove_router_by_id(int8_t interface_id, uint8_t routerId); -/** - * \brief Start router upgrade process. - * - * \param interface_id Network Interface - * - * \return 0, upgrade started - * \return <0 fail - */ -int thread_test_router_upgrade(int8_t interface_id); + /** * \brief Start router downgrade process. * @@ -367,7 +359,7 @@ int8_t thread_test_neighbour_info_get(int8_t interface_id, uint8_t index, uint16 typedef int (response_cb)(int8_t interface_id, uint8_t *response_ptr, uint16_t response_len); /** - * \brief Send diagnostic command + * \brief Send diagnostic command DEPRECATED * * \param interface_id Network Interface * \param address_ptr Address to which the command is sent @@ -380,6 +372,24 @@ typedef int (response_cb)(int8_t interface_id, uint8_t *response_ptr, uint16_t r */ int thread_test_diagnostic_command_send(int8_t interface_id, uint8_t *address_ptr,const char *uri_ptr, uint8_t request_length, uint8_t *request_ptr, response_cb *resp_cb); +typedef int (coap_response_cb)(int8_t interface_id, uint8_t message_code, uint8_t message_type, uint8_t *response_ptr, uint16_t response_len); + +/** + * \brief Send diagnostic request + * + * \param interface_id Network Interface + * \param address_ptr Address to which the command is sent + * \param msg_type Uri for the command + * \param msg_code Uri for the command + * \param uri_ptr Uri for the command + * \param request_length The length of the request + * \param request_ptr Pointer to the beginning of the request contents + * \param resp_cb Pointer to callback function that is called after the reply for the command is obtained + * + * \return 0, Command send OK + * \return <0 Command send Fail + */ +int thread_test_coap_request_send(int8_t interface_id, uint8_t *address_ptr, uint16_t port, uint8_t msg_type, uint8_t msg_code, uint16_t content_format, const char *uri_ptr, uint8_t *request_ptr, uint8_t request_length, coap_response_cb *resp_cb); /** * \brief Set initial SLAAC iid. @@ -391,6 +401,26 @@ int thread_test_diagnostic_command_send(int8_t interface_id, uint8_t *address_pt */ int8_t thread_test_initial_slaac_iid_set(int8_t interface_id, uint8_t *iid); +/** + * \brief Send router ID request. + * + * \param interface_id Network Interface + * \param status Value of router ID request status TLV + * \return 0, Command OK + * \return <0 Command Fail + */ +int8_t thread_test_router_id_request_send(int8_t interface_id, uint8_t status); + +/** + * \brief Set joiner port to joiner router device. + * If port == 0, then default port is used. + * + * \param iid Joiner port. + * \return 0, Command OK + * \return <0 Command Fail + */ +int8_t thread_test_joiner_router_joiner_port_set(uint16_t port); + #ifdef __cplusplus } #endif diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/ns_address.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/ns_address.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/ns_address.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/ns_address.h diff --git a/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/ns_sha256.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/ns_sha256.h new file mode 100644 index 0000000000..b32a29a748 --- /dev/null +++ b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/ns_sha256.h @@ -0,0 +1,202 @@ +/* + * Copyright (c) 2006-2016 ARM Limited. All rights reserved. + * + * SPDX-License-Identifier: LicenseRef-PBL + * + * Licensed under the Permissive Binary License, Version 1.0 (the "License"); you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.mbed.com/licenses/PBL-1.0 + * + * See the License for the specific language governing permissions and limitations under the License. + * + */ +/** + * \file ns_sha256.h + * + * \brief SHA-256 cryptographic hash function + * + * This file is derived from sha256.h in mbed TLS 2.3.0. + * + * This file provides an API very similar to mbed TLS, either implemented + * locally, or by calling mbed TLS, depending on NS_USE_EXTERNAL_MBED_TLS. + * + * Differences from mbed TLS: + * + * a) ns_ prefix instead of mbedtls_; + * b) Pointers are void * instead of unsigned char * to avoid type clashes; + * c) SHA-224 not supported; + * d) Ability to output truncated hashes. + */ + + +#ifndef NS_SHA256_H_ +#define NS_SHA256_H_ + +#ifdef NS_USE_EXTERNAL_MBED_TLS + +#include +#include "mbedtls/sha256.h" + +typedef mbedtls_sha256_context ns_sha256_context; + +static inline void ns_sha256_init(ns_sha256_context *ctx) +{ + mbedtls_sha256_init(ctx); +} + +static inline void ns_sha256_free(ns_sha256_context *ctx) +{ + mbedtls_sha256_free(ctx); +} + +static inline void ns_sha256_clone(ns_sha256_context *dst, + const ns_sha256_context *src) +{ + mbedtls_sha256_clone(dst, src); +} + +static inline void ns_sha256_starts(ns_sha256_context *ctx) +{ + mbedtls_sha256_starts(ctx, 0); +} + +static inline void ns_sha256_update(ns_sha256_context *ctx, const void *input, + size_t ilen) +{ + mbedtls_sha256_update(ctx, input, ilen); +} + +static inline void ns_sha256_finish(ns_sha256_context *ctx, void *output) +{ + mbedtls_sha256_finish(ctx, output); +} + +static inline void ns_sha256(const void *input, size_t ilen, void *output) +{ + mbedtls_sha256(input, ilen, output, 0); +} + +/* Extensions to standard mbed TLS - output the first bits of a hash only */ +/* Number of bits must be a multiple of 32, and <=256 */ +static inline void ns_sha256_finish_nbits(ns_sha256_context *ctx, void *output, unsigned obits) +{ + if (obits == 256) { + mbedtls_sha256_finish(ctx, output); + } else { + uint8_t sha256[32]; + mbedtls_sha256_finish(ctx, sha256); + memcpy(output, sha256, obits / 8); + } +} + +static inline void ns_sha256_nbits(const void *input, size_t ilen, void *output, unsigned obits) +{ + if (obits == 256) { + mbedtls_sha256(input, ilen, output, 0); + } else { + uint8_t sha256[32]; + mbedtls_sha256(input, ilen, sha256, 0); + memcpy(output, sha256, obits / 8); + } +} + +#else /* NS_USE_EXTERNAL_MBED_TLS */ + +#include +#include + +/** + * \brief SHA-256 context structure + */ +typedef struct +{ + uint32_t total[2]; /*!< number of bytes processed */ + uint32_t state[8]; /*!< intermediate digest state */ + unsigned char buffer[64]; /*!< data block being processed */ +} +ns_sha256_context; + +/** + * \brief Initialize SHA-256 context + * + * \param ctx SHA-256 context to be initialized + */ +void ns_sha256_init( ns_sha256_context *ctx ); + +/** + * \brief Clear SHA-256 context + * + * \param ctx SHA-256 context to be cleared + */ +void ns_sha256_free( ns_sha256_context *ctx ); + +/** + * \brief Clone (the state of) a SHA-256 context + * + * \param dst The destination context + * \param src The context to be cloned + */ +void ns_sha256_clone( ns_sha256_context *dst, + const ns_sha256_context *src ); + +/** + * \brief SHA-256 context setup + * + * \param ctx context to be initialized + */ +void ns_sha256_starts( ns_sha256_context *ctx ); + +/** + * \brief SHA-256 process buffer + * + * \param ctx SHA-256 context + * \param input buffer holding the data + * \param ilen length of the input data + */ +void ns_sha256_update( ns_sha256_context *ctx, const void *input, + size_t ilen ); + +/** + * \brief SHA-256 final digest + * + * \param ctx SHA-256 context + * \param output SHA-256 checksum result + */ +void ns_sha256_finish( ns_sha256_context *ctx, void *output ); + +/** + * \brief SHA-256 final digest + * + * \param ctx SHA-256 context + * \param output SHA-256 checksum result + * \param obits Number of bits of to output - must be multiple of 32 + */ +void ns_sha256_finish_nbits( ns_sha256_context *ctx, + void *output, unsigned obits ); + +/** + * \brief Output = SHA-256( input buffer ) + * + * \param input buffer holding the data + * \param ilen length of the input data + * \param output SHA-256 checksum result + */ +void ns_sha256( const void *input, size_t ilen, + void *output ); + +/** + * \brief Output = SHA-256( input buffer ) + * + * \param input buffer holding the data + * \param ilen length of the input data + * \param output SHA-256 checksum result + * \param obits Number of bits of to output - must be multiple of 32 + */ +void ns_sha256_nbits( const void *input, size_t ilen, + void *output, unsigned obits ); + +#endif /* NS_USE_EXTERNAL_MBED_TLS */ + + +#endif /* NS_SHA256_H_ */ diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/ns_virtual_rf_api.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/ns_virtual_rf_api.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/ns_virtual_rf_api.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/ns_virtual_rf_api.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/nwk_stats_api.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/nwk_stats_api.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/nwk_stats_api.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/nwk_stats_api.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/platform/arm_hal_aes.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/platform/arm_hal_aes.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/platform/arm_hal_aes.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/platform/arm_hal_aes.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/platform/arm_hal_phy.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/platform/arm_hal_phy.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/platform/arm_hal_phy.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/platform/arm_hal_phy.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/platform/os_whiteboard.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/platform/os_whiteboard.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/platform/os_whiteboard.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/platform/os_whiteboard.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/platform/topo_trace.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/platform/topo_trace.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/platform/topo_trace.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/platform/topo_trace.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/serial_mac_api.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/serial_mac_api.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/serial_mac_api.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/serial_mac_api.h diff --git a/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/shalib.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/shalib.h new file mode 100644 index 0000000000..4b70cc0f9d --- /dev/null +++ b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/shalib.h @@ -0,0 +1,101 @@ +/* + * Copyright (c) 2014-2016 ARM Limited. All rights reserved. + * + * SPDX-License-Identifier: LicenseRef-PBL + * + * Licensed under the Permissive Binary License, Version 1.0 (the "License"); you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.mbed.com/licenses/PBL-1.0 + * + * See the License for the specific language governing permissions and limitations under the License. + * + */ +/** + * \file shalib.h + * \brief SHA256 Library API. + * + * \section hmac256-inctuction HMAC256 process sequence: + * 1. SHALIB_init_HMAC(), Init HMAC IN process by given security signature material + * 2. SHALIB_push_data_HMAC(), Give data sectors(s) one by one + * 3. SHALIB_finish_HMAC(), Finish HMAC and save SHA256 hash to given buffer + * + * \section prf256-inctuction PRF256 process sequence: + * 1. shalib_prf_param_get(), Init PRF and get configure structure + * 2. Set the following parameters to configure structure: + * - HMAC security signature pointer and length + * - Label text + * - Seed data and length + * 3. shalib_prf_calc(), Calc PRF256 HASH + * + */ + +#ifndef SHALIB_H_ +#define SHALIB_H_ + +#include "ns_types.h" + + +#ifdef __cplusplus +extern "C" { +#endif + +/*! + * \struct prf_sec_param_t + * \brief PRF 256 stucture + * This structure is used to configure PRF calc operation: secret, label, seed and buffer before call shalib_prf_calc(). + */ +typedef struct { + const uint8_t *secret; /**< HMAC security signature pointer. */ + uint8_t sec_len; /**< HMAC security signature length. */ + const char *label; /**< PRF label text. */ + const uint8_t *seed; /**< PRF Seed data. */ + uint8_t seedlen; /**< PRF Seed data length. */ +} prf_sec_param_t; + + +// Use these for cumulative HMAC +/** + * \brief Init HMAC256 operation by given security material. + * + * \param secret A pointer to security material. + * \param sec_len Length of security material. + */ +void SHALIB_init_HMAC(const uint8_t *secret, uint8_t sec_len); // Call this first... +/** + * \brief Push data for HMAC + * + * \param data A pointer to data. + * \param len Length of data. + */ +void SHALIB_push_data_HMAC(const void *data, uint16_t len); // ... add data ... +/** + * \brief Finish HMAC256 operation and save result in given buffer. + * + * \param buffer A pointer to result buffer. + * \param nwords Length of 32-bit register to save to buffer (8= 256 bit and 4= 128-bit). + */ +void SHALIB_finish_HMAC(void *buffer, uint8_t nwords); // ... get the HMAC digest. + + +/** PRF API */ +/** + * \brief Init PRF library and SHA registers. + * This function returns configure structure where the user needs to set the following items: + * -Security material and length + * -Label text and length + * -Seed data and length + * + * \return A pointer to PRF configure structure. + + */ +prf_sec_param_t *shalib_prf_param_get(void); // GET PRF structure +/* SET secret, label, seed & buffer to 256 PRF */ +/** + * \brief Finish PRF256 operation and save result in given buffer. + */ +void shalib_prf_calc(void *output, uint_fast16_t nwords);// GET 256 PRF +#ifdef __cplusplus +} +#endif +#endif /* SHALIB_H_ */ diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/socket_api.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/socket_api.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/socket_api.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/socket_api.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/sw_mac.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/sw_mac.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/sw_mac.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/sw_mac.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/thread_border_router_api.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/thread_border_router_api.h similarity index 78% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/thread_border_router_api.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/thread_border_router_api.h index 2ca7707340..b227958719 100644 --- a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/thread_border_router_api.h +++ b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/thread_border_router_api.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2015 ARM Limited. All rights reserved. + * Copyright (c) 2014-2016 ARM Limited. All rights reserved. * * SPDX-License-Identifier: LicenseRef-PBL * @@ -27,10 +27,8 @@ #include "ns_types.h" - /** - * Structure specifying the prefix service. - * + * \brief Border router network data structure. */ typedef struct thread_border_router_info_t { unsigned Prf: 2; /**!< Prefix preference, 01 = High, 00 = Default, 11 = Low, 10 = Reserved. */ @@ -44,10 +42,6 @@ typedef struct thread_border_router_info_t { bool stableData: 1; /**!< This data is stable and expected to be available at least 48h. */ } thread_border_router_info_t; -/* Define flags for backwards compatibility. Remove once applications have been updated */ -#define P_slaac_preferred P_preferred -#define P_slaac_valid P_slaac - /** * \brief Create local service that is provided to the Thread network. * If a prefix exists it is updated. For example, when removing SLAAC (Stateless Address Autoconfiguration) you should modify the prefix @@ -158,4 +152,32 @@ int thread_border_router_publish(int8_t interface_id); */ int thread_border_router_delete_all(int8_t interface_id); +/** + * \brief Set Recursive DNS server (RDNSS) option that is encoded according to RFC6106. + * Setting a new RDNSS will overwrite previous RDNSS option. Set RNDDS will be used + * until it is cleared. + * + * \param interface_id Network interface ID. + * \param recursive_dns_server_option Recursive DNS server option encoded according to rfc6106, can be NULL to clear existing RDNSS. + * \param recursive_dns_server_option_len Length of the recursive_dns_server_option in bytes. + * + * \return 0, Option saved OK. + * \return <0 when error occurs during option processing. + */ +int thread_border_router_recursive_dns_server_option_set(int8_t interface_id, uint8_t *recursive_dns_server_option, uint16_t recursive_dns_server_option_len); + +/** + * \brief Set DNS server search list (DNSSL) option that is encoded according to RFC6106. + * Setting a new DNSSL will overwrite previous DNSSL option. Set DNSSL will be used + * until it is cleared. + * + * \param interface_id Network interface ID. + * \param dns_search_list_option DNS search list option encoded according to rfc6106, can be NULL to clear existing DNSSL. + * \param search_list_option_len Length of the dns_search_list_option in bytes. + * + * \return 0, Option saved OK. + * \return <0 when error occurs during option processing. + */ +int thread_border_router_dns_search_list_option_set(int8_t interface_id, uint8_t *dns_search_list_option, uint16_t search_list_option_len); + #endif /* THREAD_DHCPV6_SERVER_H_ */ diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/thread_commissioning_api.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/thread_commissioning_api.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/thread_commissioning_api.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/thread_commissioning_api.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/thread_dhcpv6_server.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/thread_dhcpv6_server.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/thread_dhcpv6_server.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/thread_dhcpv6_server.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/thread_diagcop_lib.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/thread_diagcop_lib.h similarity index 99% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/thread_diagcop_lib.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/thread_diagcop_lib.h index b60c4618dc..80f59e8dd8 100644 --- a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/thread_diagcop_lib.h +++ b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/thread_diagcop_lib.h @@ -40,8 +40,7 @@ #define DIAGCOP_TLV_SUPPLY_VOLTAGE 15 /**< Can not reset*/ #define DIAGCOP_TLV_CHILD_TABLE 16 /**< Can not reset*/ #define DIAGCOP_TLV_CHANNEL_PAGES 17 /**< Can not reset*/ - -#define DIAGCOP_TLV_GET 13 +#define DIAGCOP_TLV_TYPE_LIST 18 /** * \brief Write array TLV. diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/thread_management_api.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/thread_management_api.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/thread_management_api.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/thread_management_api.h diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/thread_management_if.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/thread_management_if.h similarity index 91% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/thread_management_if.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/thread_management_if.h index 775f487638..4c10309f4c 100644 --- a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/thread_management_if.h +++ b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/thread_management_if.h @@ -121,6 +121,38 @@ int thread_management_node_init( device_configuration_s *device_configuration, link_configuration_s *static_configuration); +/** + * Thread device type. + * + * REED - Router enabled End device. Device can become router or end device depending on network conditions. + * FED - Full End Device. Device creates links and makes address queries but does not become router. + * MED - Minimal End Device. Device communicates through parent. With radio on + * SED - Sleepy End Device. Device communicates through parent. Uses data poll to sleep. +*/ +typedef enum { + THREAD_DEVICE_REED = 1, + THREAD_DEVICE_FED, + THREAD_DEVICE_MED, + THREAD_DEVICE_SED, +} thread_device_type_e; + +/** + * Change thread device type. + * + * This function modifies the thread device mode. Default values are given in + * function arm_nwk_interface_configure_6lowpan_bootstrap_set(). + * + * If this function is called when interface is up re-attach is made. + * + * \param interface_id Network interface ID. + * \param device_type Device type of current bootstrap. + * + * \return 0, Set OK. + * \return <0 Set fail. + */ + +int thread_management_device_type_set(int8_t interface_id, thread_device_type_e device_type); + /** * Get Thread network settings. * diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/thread_meshcop_lib.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/thread_meshcop_lib.h similarity index 94% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/thread_meshcop_lib.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/thread_meshcop_lib.h index 17c0f11168..91c7b72692 100644 --- a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/thread_meshcop_lib.h +++ b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/thread_meshcop_lib.h @@ -52,6 +52,11 @@ #define MESHCOP_TLV_STATE 16 #define MESHCOP_TLV_JOINER_UDP_PORT 18 +/** + * Network management TLV specific bit defines + */ +#define MESHCOP_TLV_ACTIVE_TIME_STAMP_U_BIT 0x01 + /** * Relay message TLV */ @@ -158,6 +163,18 @@ uint8_t *thread_meshcop_tlv_data_write_uint32(uint8_t *ptr, const uint8_t type, */ uint8_t *thread_meshcop_tlv_data_write_uint64(uint8_t *ptr, const uint8_t type, const uint64_t data); +/** + * Check if TLV exists in the message. + * + * \param ptr Message buffer. + * \param length Length of the message buffer to validate message. + * \param type Type of TLV searched. + * + * \return true if TLV is found. + * \return false if TLV does not exist. + */ +bool thread_meshcop_tlv_exist(const uint8_t *ptr, const uint16_t length, const uint8_t type); + /** * Find TLV from message. * diff --git a/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/thread_net_config_api.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/thread_net_config_api.h new file mode 100644 index 0000000000..e66a404207 --- /dev/null +++ b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/thread_net_config_api.h @@ -0,0 +1,57 @@ +/* + * Copyright (c) 2016 ARM Limited. All rights reserved. + * + * SPDX-License-Identifier: LicenseRef-PBL + * + * Licensed under the Permissive Binary License, Version 1.0 (the "License"); you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.mbed.com/licenses/PBL-1.0 + * + * See the License for the specific language governing permissions and limitations under the License. + * + */ + +/** + * \file thread_net_config_api.h + * \brief Public API to handle the Thread network services and configuration. + */ + +#ifndef _THREAD_NET_CONFIG_API_H_ +#define _THREAD_NET_CONFIG_API_H_ + +#ifdef __cplusplus +extern "C" { +#endif + +#include "ns_types.h" + +/* + * \brief function callback type for nd_data_request. + * + * \param inteface_id Network interface ID where request was made. + * \param status 0 when response is received from destination, -1 otherwise. + * \param data_ptr ND_data options encoded according to RFC6106. Is NULL if destination was unreachable or didn't have the requested data. + * \param data_len Length of data in bytes. + */ +typedef void thread_net_config_nd_data_req_cb(int8_t interface_id, int8_t status, uint8_t *data_ptr, uint16_t data_len); + +/** + * \brief Request ND options (as in RFC6106) from given destination. + * Response data will be provided in callback function. + * + * \param interface_id network interface ID. + * \param destination IPv6 address where request is sent. + * \param options requested option type identifiers according to RFC6106. + * \param options_len number of options requested. + * \param callback Function that will be called once information is available. + * + * \return 0 on success. A callback will be called with/without response data. + * \return <0 in error cases. Callback will not be called. + */ +int thread_net_config_nd_data_request(int8_t interface_id, const uint8_t destination[16], const uint8_t *options, uint8_t options_len, thread_net_config_nd_data_req_cb *callback); + +#ifdef __cplusplus +} +#endif +#endif /* _THREAD_NET_CONFIG_API_H_ */ diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/whiteboard_api.h b/features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/whiteboard_api.h similarity index 100% rename from features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/whiteboard_api.h rename to features/nanostack/FEATURE_NANOSTACK/sal-stack-nanostack/nanostack/whiteboard_api.h diff --git a/features/nanostack/FEATURE_NANOSTACK_FULL/TOOLCHAIN_ARM/TARGET_LIKE_CORTEX_M0/libnanostack_armcc_Cortex-M0_nanostack_full.ar b/features/nanostack/FEATURE_NANOSTACK_FULL/TOOLCHAIN_ARM/TARGET_LIKE_CORTEX_M0/libnanostack_armcc_Cortex-M0_nanostack_full.ar new file mode 100644 index 0000000000..07a7897839 Binary files /dev/null and b/features/nanostack/FEATURE_NANOSTACK_FULL/TOOLCHAIN_ARM/TARGET_LIKE_CORTEX_M0/libnanostack_armcc_Cortex-M0_nanostack_full.ar differ diff --git a/features/nanostack/FEATURE_NANOSTACK_FULL/TOOLCHAIN_ARM/TARGET_M3/libnanostack_armcc_Cortex-M3_nanostack_full.ar b/features/nanostack/FEATURE_NANOSTACK_FULL/TOOLCHAIN_ARM/TARGET_M3/libnanostack_armcc_Cortex-M3_nanostack_full.ar new file mode 100644 index 0000000000..be759128ce Binary files /dev/null and b/features/nanostack/FEATURE_NANOSTACK_FULL/TOOLCHAIN_ARM/TARGET_M3/libnanostack_armcc_Cortex-M3_nanostack_full.ar differ diff --git a/features/nanostack/FEATURE_NANOSTACK_FULL/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/libnanostack_armcc_Cortex-M3_nanostack_full.ar b/features/nanostack/FEATURE_NANOSTACK_FULL/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/libnanostack_armcc_Cortex-M3_nanostack_full.ar new file mode 100644 index 0000000000..be759128ce Binary files /dev/null and b/features/nanostack/FEATURE_NANOSTACK_FULL/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/libnanostack_armcc_Cortex-M3_nanostack_full.ar differ diff --git a/features/nanostack/FEATURE_NANOSTACK_FULL/TOOLCHAIN_GCC/TARGET_LIKE_CORTEX_M0/libnanostack_arm-none-eabi-gcc_Cortex-M0_nanostack_full.a b/features/nanostack/FEATURE_NANOSTACK_FULL/TOOLCHAIN_GCC/TARGET_LIKE_CORTEX_M0/libnanostack_arm-none-eabi-gcc_Cortex-M0_nanostack_full.a new file mode 100644 index 0000000000..54283f8192 Binary files /dev/null and b/features/nanostack/FEATURE_NANOSTACK_FULL/TOOLCHAIN_GCC/TARGET_LIKE_CORTEX_M0/libnanostack_arm-none-eabi-gcc_Cortex-M0_nanostack_full.a differ diff --git a/features/nanostack/FEATURE_NANOSTACK_FULL/TOOLCHAIN_GCC/TARGET_M3/libnanostack_arm-none-eabi-gcc_Cortex-M3_nanostack_full.a b/features/nanostack/FEATURE_NANOSTACK_FULL/TOOLCHAIN_GCC/TARGET_M3/libnanostack_arm-none-eabi-gcc_Cortex-M3_nanostack_full.a new file mode 100644 index 0000000000..200680b221 Binary files /dev/null and b/features/nanostack/FEATURE_NANOSTACK_FULL/TOOLCHAIN_GCC/TARGET_M3/libnanostack_arm-none-eabi-gcc_Cortex-M3_nanostack_full.a differ diff --git a/features/nanostack/FEATURE_NANOSTACK_FULL/TOOLCHAIN_GCC/TARGET_RTOS_M4_M7/libnanostack_arm-none-eabi-gcc_Cortex-M3_nanostack_full.a b/features/nanostack/FEATURE_NANOSTACK_FULL/TOOLCHAIN_GCC/TARGET_RTOS_M4_M7/libnanostack_arm-none-eabi-gcc_Cortex-M3_nanostack_full.a new file mode 100644 index 0000000000..200680b221 Binary files /dev/null and b/features/nanostack/FEATURE_NANOSTACK_FULL/TOOLCHAIN_GCC/TARGET_RTOS_M4_M7/libnanostack_arm-none-eabi-gcc_Cortex-M3_nanostack_full.a differ diff --git a/features/nanostack/FEATURE_NANOSTACK_FULL/TOOLCHAIN_IAR/TARGET_LIKE_CORTEX_M0/libnanostack_iccarm_Cortex-M0_nanostack_full.a b/features/nanostack/FEATURE_NANOSTACK_FULL/TOOLCHAIN_IAR/TARGET_LIKE_CORTEX_M0/libnanostack_iccarm_Cortex-M0_nanostack_full.a new file mode 100644 index 0000000000..2f13dcdde3 Binary files /dev/null and b/features/nanostack/FEATURE_NANOSTACK_FULL/TOOLCHAIN_IAR/TARGET_LIKE_CORTEX_M0/libnanostack_iccarm_Cortex-M0_nanostack_full.a differ diff --git a/features/nanostack/FEATURE_NANOSTACK_FULL/TOOLCHAIN_IAR/TARGET_M3/libnanostack_iccarm_Cortex-M3_nanostack_full.a b/features/nanostack/FEATURE_NANOSTACK_FULL/TOOLCHAIN_IAR/TARGET_M3/libnanostack_iccarm_Cortex-M3_nanostack_full.a new file mode 100644 index 0000000000..42368b4bc8 Binary files /dev/null and b/features/nanostack/FEATURE_NANOSTACK_FULL/TOOLCHAIN_IAR/TARGET_M3/libnanostack_iccarm_Cortex-M3_nanostack_full.a differ diff --git a/features/nanostack/FEATURE_NANOSTACK_FULL/TOOLCHAIN_IAR/TARGET_RTOS_M4_M7/libnanostack_iccarm_Cortex-M3_nanostack_full.a b/features/nanostack/FEATURE_NANOSTACK_FULL/TOOLCHAIN_IAR/TARGET_RTOS_M4_M7/libnanostack_iccarm_Cortex-M3_nanostack_full.a new file mode 100644 index 0000000000..42368b4bc8 Binary files /dev/null and b/features/nanostack/FEATURE_NANOSTACK_FULL/TOOLCHAIN_IAR/TARGET_RTOS_M4_M7/libnanostack_iccarm_Cortex-M3_nanostack_full.a differ diff --git a/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_ARM/TARGET_LIKE_CORTEX_M0/libnanostack_armcc_Cortex-M0_thread_border_router.ar b/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_ARM/TARGET_LIKE_CORTEX_M0/libnanostack_armcc_Cortex-M0_thread_border_router.ar new file mode 100644 index 0000000000..5c5265fa4d Binary files /dev/null and b/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_ARM/TARGET_LIKE_CORTEX_M0/libnanostack_armcc_Cortex-M0_thread_border_router.ar differ diff --git a/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_ARM/TARGET_M3/libnanostack_armcc_Cortex-M3_thread_border_router.ar b/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_ARM/TARGET_M3/libnanostack_armcc_Cortex-M3_thread_border_router.ar new file mode 100644 index 0000000000..684d7e5a31 Binary files /dev/null and b/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_ARM/TARGET_M3/libnanostack_armcc_Cortex-M3_thread_border_router.ar differ diff --git a/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/libnanostack_armcc_Cortex-M3_thread_border_router.ar b/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/libnanostack_armcc_Cortex-M3_thread_border_router.ar new file mode 100644 index 0000000000..684d7e5a31 Binary files /dev/null and b/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/libnanostack_armcc_Cortex-M3_thread_border_router.ar differ diff --git a/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_GCC/TARGET_LIKE_CORTEX_M0/libnanostack_arm-none-eabi-gcc_Cortex-M0_thread_border_router.a b/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_GCC/TARGET_LIKE_CORTEX_M0/libnanostack_arm-none-eabi-gcc_Cortex-M0_thread_border_router.a new file mode 100644 index 0000000000..4b5f82206d Binary files /dev/null and b/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_GCC/TARGET_LIKE_CORTEX_M0/libnanostack_arm-none-eabi-gcc_Cortex-M0_thread_border_router.a differ diff --git a/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_GCC/TARGET_M3/libnanostack_arm-none-eabi-gcc_Cortex-M3_thread_border_router.a b/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_GCC/TARGET_M3/libnanostack_arm-none-eabi-gcc_Cortex-M3_thread_border_router.a new file mode 100644 index 0000000000..fa9804bff8 Binary files /dev/null and b/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_GCC/TARGET_M3/libnanostack_arm-none-eabi-gcc_Cortex-M3_thread_border_router.a differ diff --git a/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_GCC/TARGET_RTOS_M4_M7/libnanostack_arm-none-eabi-gcc_Cortex-M3_thread_border_router.a b/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_GCC/TARGET_RTOS_M4_M7/libnanostack_arm-none-eabi-gcc_Cortex-M3_thread_border_router.a new file mode 100644 index 0000000000..fa9804bff8 Binary files /dev/null and b/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_GCC/TARGET_RTOS_M4_M7/libnanostack_arm-none-eabi-gcc_Cortex-M3_thread_border_router.a differ diff --git a/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_IAR/TARGET_LIKE_CORTEX_M0/libnanostack_iccarm_Cortex-M0_thread_border_router.a b/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_IAR/TARGET_LIKE_CORTEX_M0/libnanostack_iccarm_Cortex-M0_thread_border_router.a new file mode 100644 index 0000000000..c2ed9e598e Binary files /dev/null and b/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_IAR/TARGET_LIKE_CORTEX_M0/libnanostack_iccarm_Cortex-M0_thread_border_router.a differ diff --git a/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_IAR/TARGET_M3/libnanostack_iccarm_Cortex-M3_thread_border_router.a b/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_IAR/TARGET_M3/libnanostack_iccarm_Cortex-M3_thread_border_router.a new file mode 100644 index 0000000000..7377413813 Binary files /dev/null and b/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_IAR/TARGET_M3/libnanostack_iccarm_Cortex-M3_thread_border_router.a differ diff --git a/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_IAR/TARGET_RTOS_M4_M7/libnanostack_iccarm_Cortex-M3_thread_border_router.a b/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_IAR/TARGET_RTOS_M4_M7/libnanostack_iccarm_Cortex-M3_thread_border_router.a new file mode 100644 index 0000000000..7377413813 Binary files /dev/null and b/features/nanostack/FEATURE_THREAD_BORDER_ROUTER/TOOLCHAIN_IAR/TARGET_RTOS_M4_M7/libnanostack_iccarm_Cortex-M3_thread_border_router.a differ diff --git a/features/nanostack/FEATURE_THREAD_END_DEVICE/TOOLCHAIN_ARM/TARGET_LIKE_CORTEX_M0/libnanostack_armcc_Cortex-M0_thread_end_device.ar b/features/nanostack/FEATURE_THREAD_END_DEVICE/TOOLCHAIN_ARM/TARGET_LIKE_CORTEX_M0/libnanostack_armcc_Cortex-M0_thread_end_device.ar new file mode 100644 index 0000000000..34435487cd Binary files /dev/null and b/features/nanostack/FEATURE_THREAD_END_DEVICE/TOOLCHAIN_ARM/TARGET_LIKE_CORTEX_M0/libnanostack_armcc_Cortex-M0_thread_end_device.ar differ diff --git a/features/nanostack/FEATURE_THREAD_END_DEVICE/TOOLCHAIN_ARM/TARGET_M3/libnanostack_armcc_Cortex-M3_thread_end_device.ar b/features/nanostack/FEATURE_THREAD_END_DEVICE/TOOLCHAIN_ARM/TARGET_M3/libnanostack_armcc_Cortex-M3_thread_end_device.ar new file mode 100644 index 0000000000..10ec4f02a3 Binary files /dev/null and b/features/nanostack/FEATURE_THREAD_END_DEVICE/TOOLCHAIN_ARM/TARGET_M3/libnanostack_armcc_Cortex-M3_thread_end_device.ar differ diff --git a/features/nanostack/FEATURE_THREAD_END_DEVICE/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/libnanostack_armcc_Cortex-M3_thread_end_device.ar b/features/nanostack/FEATURE_THREAD_END_DEVICE/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/libnanostack_armcc_Cortex-M3_thread_end_device.ar new file mode 100644 index 0000000000..10ec4f02a3 Binary files /dev/null and b/features/nanostack/FEATURE_THREAD_END_DEVICE/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/libnanostack_armcc_Cortex-M3_thread_end_device.ar differ diff --git a/features/nanostack/FEATURE_THREAD_END_DEVICE/TOOLCHAIN_GCC/TARGET_LIKE_CORTEX_M0/libnanostack_arm-none-eabi-gcc_Cortex-M0_thread_end_device.a b/features/nanostack/FEATURE_THREAD_END_DEVICE/TOOLCHAIN_GCC/TARGET_LIKE_CORTEX_M0/libnanostack_arm-none-eabi-gcc_Cortex-M0_thread_end_device.a new file mode 100644 index 0000000000..fdb0aaf34b Binary files /dev/null and b/features/nanostack/FEATURE_THREAD_END_DEVICE/TOOLCHAIN_GCC/TARGET_LIKE_CORTEX_M0/libnanostack_arm-none-eabi-gcc_Cortex-M0_thread_end_device.a differ diff --git a/features/nanostack/FEATURE_THREAD_END_DEVICE/TOOLCHAIN_GCC/TARGET_M3/libnanostack_arm-none-eabi-gcc_Cortex-M3_thread_end_device.a b/features/nanostack/FEATURE_THREAD_END_DEVICE/TOOLCHAIN_GCC/TARGET_M3/libnanostack_arm-none-eabi-gcc_Cortex-M3_thread_end_device.a new file mode 100644 index 0000000000..23827414a7 Binary files /dev/null and b/features/nanostack/FEATURE_THREAD_END_DEVICE/TOOLCHAIN_GCC/TARGET_M3/libnanostack_arm-none-eabi-gcc_Cortex-M3_thread_end_device.a differ diff --git a/features/nanostack/FEATURE_THREAD_END_DEVICE/TOOLCHAIN_GCC/TARGET_RTOS_M4_M7/libnanostack_arm-none-eabi-gcc_Cortex-M3_thread_end_device.a b/features/nanostack/FEATURE_THREAD_END_DEVICE/TOOLCHAIN_GCC/TARGET_RTOS_M4_M7/libnanostack_arm-none-eabi-gcc_Cortex-M3_thread_end_device.a new file mode 100644 index 0000000000..23827414a7 Binary files /dev/null and b/features/nanostack/FEATURE_THREAD_END_DEVICE/TOOLCHAIN_GCC/TARGET_RTOS_M4_M7/libnanostack_arm-none-eabi-gcc_Cortex-M3_thread_end_device.a differ diff --git a/features/nanostack/FEATURE_THREAD_END_DEVICE/TOOLCHAIN_IAR/TARGET_LIKE_CORTEX_M0/libnanostack_iccarm_Cortex-M0_thread_end_device.a b/features/nanostack/FEATURE_THREAD_END_DEVICE/TOOLCHAIN_IAR/TARGET_LIKE_CORTEX_M0/libnanostack_iccarm_Cortex-M0_thread_end_device.a new file mode 100644 index 0000000000..6ff82578be Binary files /dev/null and b/features/nanostack/FEATURE_THREAD_END_DEVICE/TOOLCHAIN_IAR/TARGET_LIKE_CORTEX_M0/libnanostack_iccarm_Cortex-M0_thread_end_device.a differ diff --git a/features/nanostack/FEATURE_THREAD_END_DEVICE/TOOLCHAIN_IAR/TARGET_M3/libnanostack_iccarm_Cortex-M3_thread_end_device.a b/features/nanostack/FEATURE_THREAD_END_DEVICE/TOOLCHAIN_IAR/TARGET_M3/libnanostack_iccarm_Cortex-M3_thread_end_device.a new file mode 100644 index 0000000000..ee2f68c417 Binary files /dev/null and b/features/nanostack/FEATURE_THREAD_END_DEVICE/TOOLCHAIN_IAR/TARGET_M3/libnanostack_iccarm_Cortex-M3_thread_end_device.a differ diff --git a/features/nanostack/FEATURE_THREAD_END_DEVICE/TOOLCHAIN_IAR/TARGET_RTOS_M4_M7/libnanostack_iccarm_Cortex-M3_thread_end_device.a b/features/nanostack/FEATURE_THREAD_END_DEVICE/TOOLCHAIN_IAR/TARGET_RTOS_M4_M7/libnanostack_iccarm_Cortex-M3_thread_end_device.a new file mode 100644 index 0000000000..ee2f68c417 Binary files /dev/null and b/features/nanostack/FEATURE_THREAD_END_DEVICE/TOOLCHAIN_IAR/TARGET_RTOS_M4_M7/libnanostack_iccarm_Cortex-M3_thread_end_device.a differ diff --git a/features/nanostack/FEATURE_THREAD_ROUTER/TOOLCHAIN_ARM/TARGET_LIKE_CORTEX_M0/libnanostack_armcc_Cortex-M0_thread_router.ar b/features/nanostack/FEATURE_THREAD_ROUTER/TOOLCHAIN_ARM/TARGET_LIKE_CORTEX_M0/libnanostack_armcc_Cortex-M0_thread_router.ar new file mode 100644 index 0000000000..ac76d9cdfb Binary files /dev/null and b/features/nanostack/FEATURE_THREAD_ROUTER/TOOLCHAIN_ARM/TARGET_LIKE_CORTEX_M0/libnanostack_armcc_Cortex-M0_thread_router.ar differ diff --git a/features/nanostack/FEATURE_THREAD_ROUTER/TOOLCHAIN_ARM/TARGET_M3/libnanostack_armcc_Cortex-M3_thread_router.ar b/features/nanostack/FEATURE_THREAD_ROUTER/TOOLCHAIN_ARM/TARGET_M3/libnanostack_armcc_Cortex-M3_thread_router.ar new file mode 100644 index 0000000000..ce618c79b1 Binary files /dev/null and b/features/nanostack/FEATURE_THREAD_ROUTER/TOOLCHAIN_ARM/TARGET_M3/libnanostack_armcc_Cortex-M3_thread_router.ar differ diff --git a/features/nanostack/FEATURE_THREAD_ROUTER/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/libnanostack_armcc_Cortex-M3_thread_router.ar b/features/nanostack/FEATURE_THREAD_ROUTER/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/libnanostack_armcc_Cortex-M3_thread_router.ar new file mode 100644 index 0000000000..ce618c79b1 Binary files /dev/null and b/features/nanostack/FEATURE_THREAD_ROUTER/TOOLCHAIN_ARM/TARGET_RTOS_M4_M7/libnanostack_armcc_Cortex-M3_thread_router.ar differ diff --git a/features/nanostack/FEATURE_THREAD_ROUTER/TOOLCHAIN_GCC/TARGET_LIKE_CORTEX_M0/libnanostack_arm-none-eabi-gcc_Cortex-M0_thread_router.a b/features/nanostack/FEATURE_THREAD_ROUTER/TOOLCHAIN_GCC/TARGET_LIKE_CORTEX_M0/libnanostack_arm-none-eabi-gcc_Cortex-M0_thread_router.a new file mode 100644 index 0000000000..ddbb03c824 Binary files /dev/null and b/features/nanostack/FEATURE_THREAD_ROUTER/TOOLCHAIN_GCC/TARGET_LIKE_CORTEX_M0/libnanostack_arm-none-eabi-gcc_Cortex-M0_thread_router.a differ diff --git a/features/nanostack/FEATURE_THREAD_ROUTER/TOOLCHAIN_GCC/TARGET_M3/libnanostack_arm-none-eabi-gcc_Cortex-M3_thread_router.a b/features/nanostack/FEATURE_THREAD_ROUTER/TOOLCHAIN_GCC/TARGET_M3/libnanostack_arm-none-eabi-gcc_Cortex-M3_thread_router.a new file mode 100644 index 0000000000..1310780d01 Binary files /dev/null and b/features/nanostack/FEATURE_THREAD_ROUTER/TOOLCHAIN_GCC/TARGET_M3/libnanostack_arm-none-eabi-gcc_Cortex-M3_thread_router.a differ diff --git a/features/nanostack/FEATURE_THREAD_ROUTER/TOOLCHAIN_GCC/TARGET_RTOS_M4_M7/libnanostack_arm-none-eabi-gcc_Cortex-M3_thread_router.a b/features/nanostack/FEATURE_THREAD_ROUTER/TOOLCHAIN_GCC/TARGET_RTOS_M4_M7/libnanostack_arm-none-eabi-gcc_Cortex-M3_thread_router.a new file mode 100644 index 0000000000..1310780d01 Binary files /dev/null and b/features/nanostack/FEATURE_THREAD_ROUTER/TOOLCHAIN_GCC/TARGET_RTOS_M4_M7/libnanostack_arm-none-eabi-gcc_Cortex-M3_thread_router.a differ diff --git a/features/nanostack/FEATURE_THREAD_ROUTER/TOOLCHAIN_IAR/TARGET_LIKE_CORTEX_M0/libnanostack_iccarm_Cortex-M0_thread_router.a b/features/nanostack/FEATURE_THREAD_ROUTER/TOOLCHAIN_IAR/TARGET_LIKE_CORTEX_M0/libnanostack_iccarm_Cortex-M0_thread_router.a new file mode 100644 index 0000000000..39fe356a33 Binary files /dev/null and b/features/nanostack/FEATURE_THREAD_ROUTER/TOOLCHAIN_IAR/TARGET_LIKE_CORTEX_M0/libnanostack_iccarm_Cortex-M0_thread_router.a differ diff --git a/features/nanostack/FEATURE_THREAD_ROUTER/TOOLCHAIN_IAR/TARGET_M3/libnanostack_iccarm_Cortex-M3_thread_router.a b/features/nanostack/FEATURE_THREAD_ROUTER/TOOLCHAIN_IAR/TARGET_M3/libnanostack_iccarm_Cortex-M3_thread_router.a new file mode 100644 index 0000000000..82a5da6cac Binary files /dev/null and b/features/nanostack/FEATURE_THREAD_ROUTER/TOOLCHAIN_IAR/TARGET_M3/libnanostack_iccarm_Cortex-M3_thread_router.a differ diff --git a/features/nanostack/FEATURE_THREAD_ROUTER/TOOLCHAIN_IAR/TARGET_RTOS_M4_M7/libnanostack_iccarm_Cortex-M3_thread_router.a b/features/nanostack/FEATURE_THREAD_ROUTER/TOOLCHAIN_IAR/TARGET_RTOS_M4_M7/libnanostack_iccarm_Cortex-M3_thread_router.a new file mode 100644 index 0000000000..82a5da6cac Binary files /dev/null and b/features/nanostack/FEATURE_THREAD_ROUTER/TOOLCHAIN_IAR/TARGET_RTOS_M4_M7/libnanostack_iccarm_Cortex-M3_thread_router.a differ diff --git a/features/net/FEATURE_IPV6/CONTRIBUTING.md b/features/net/FEATURE_IPV6/CONTRIBUTING.md deleted file mode 100644 index e1d3cf00a0..0000000000 --- a/features/net/FEATURE_IPV6/CONTRIBUTING.md +++ /dev/null @@ -1,83 +0,0 @@ -# How to contribute - -This directory structure is entirely generated or copied from other repositories. Do not send patches against it, they cannot be accepted because all code will be entirely overwritten on next release. - -Instead, follow these instructions to send and test your contributions against master repositories. - -## Directory structure - -This directory consists of following modules - -* [mbed-mesh-api](#mbed-mesh-api) -* [mbed-trace](#mbed-trace) -* [nanostack-hal-mbed-cmsis-rtos](#nanostack-hal-mbed-cmsis-rtos) -* [nanostack-libservice](#nanostack-libservice) -* [sal-stack-nanostack-eventloop](#sal-stack-nanostack-eventloop) -* [sal-stack-nanostack-private](#sal-stack-nanostack-private) - - -## mbed-mesh-api - -mbed Mesh API is copied from master repository https://github.com/ARMmbed/mbed-mesh-api - -To replace the copied version with the master repository, follow these steps: - -* Remove the mbed-mesh-api directory: `rm -rf mbed-mesh-api` -* Clone from the master: `git clone git@github.com:ARMmbed/mbed-mesh-api.git` - -Now you have the mbed-mesh-api directory replaced with the Git repository cloned from the original. You can build and test your changes against it and send patches normally to Github as a pull requests. - -## mbed-trace - -mbed-trace library is copied from master repository https://github.com/ARMmbed/mbed-trace - -To replace the copied version with the master repository, follow these steps: - -* Remove the mbed-mesh-api directory: `rm -rf mbed-trace` -* Clone from the master: `git clone git@github.com:ARMmbed/mbed-trace.git` - -## nanostack-hal-mbed-cmsis-rtos - -nanostack-hal-mbed-cmsis-rtos library is copied from master repository https://github.com/ARMmbed/nanostack-hal-mbed-cmsis-rtos - -To replace the copied version with the master repository, follow these steps: - -* Remove the mbed-mesh-api directory: `rm -rf nanostack-hal-mbed-cmsis-rtos` -* Clone from the master: `git clone git@github.com:ARMmbed/nanostack-hal-mbed-cmsis-rtos.git` - -## nanostack-libservice - -nanostack-libservice library is copied from master repository https://github.com/ARMmbed/nanostack-libservice - -To replace the copied version with the master repository, follow these steps: - -* Remove the mbed-mesh-api directory: `rm -rf nanostack-libservice` -* Clone from the master: `git clone git@github.com:ARMmbed/nanostack-libservice.git` - -## sal-stack-nanostack-eventloop - -sal-stack-nanostack-eventloop library is copied from master repository https://github.com/ARMmbed/sal-stack-nanostack-eventloop - -To replace the copied version with the master repository, follow these steps: - -* Remove the mbed-mesh-api directory: `rm -rf sal-stack-nanostack-eventloop` -* Clone from the master: `git clone git@github.com:ARMmbed/sal-stack-nanostack-eventloop.git` - -## sal-stack-nanostack-private - -This directory holds binary libraries generated from the Nanostack networking library. - -**Only mbed Partners have access to the source code.** - -If you have access, the source directory is available in https://github.com/ARMmbed/sal-stack-nanostack-private - -You can replace the binary libraries with the source tree as follows: - -* Remove the sal-stack-nanostack directory: `rm -rf sal-stack-nanostack` -* Clone the original source repository: `git@github.com:ARMmbed/sal-stack-nanostack-private.git` - -Now you can modify, build and test your changes with the mbed OS build. - -### Instructions for generating the binary modules - -Check `Releasing.md` from the Nanostack source repository. diff --git a/features/net/FEATURE_IPV6/coap-service/CHANGELOG.md b/features/net/FEATURE_IPV6/coap-service/CHANGELOG.md deleted file mode 100644 index ef43ec19c0..0000000000 --- a/features/net/FEATURE_IPV6/coap-service/CHANGELOG.md +++ /dev/null @@ -1,53 +0,0 @@ -# Change Log - -## [v4.0.3](https://github.com/ARMmbed/coap-service/releases/tag/v4.0.3) (15-Sep-2016) -[Full Changelog](https://github.com/ARMmbed/coap-service/compare/mbed-os-5.0-rc1...v4.0.3) - -** New feature ** - -- Updated coap-service to use new structure from mbed-client-c -- Set link layer security when opening socket. - - -**Merged pull requests:** - -commit 0fcd1d4254ca30c2d96ef51a5df513912b5fb133 (HEAD, tag: v4.0.3, origin/master, origin/HEAD, master) -Author: Antti Kauppila -Date: Thu Sep 15 15:21:03 2016 +0300 - - version v4.0.3 - -commit 4769b274ece0989cc43de614171bd20cca0b0a27 -Author: Antti Kauppila -Date: Thu Sep 15 15:18:55 2016 +0300 - - version v4.0.2 - -commit 078bd0db248955c7f09bc53fa1de3e1a2f2eac4e -Merge: 70447c3 bc636c0 -Author: Antti Kauppila -Date: Thu Sep 15 15:17:41 2016 +0300 - - Merge pull request #32 from ARMmbed/coap-option-tidy - - Coap option tidy - -commit bc636c0621f0a895e62b6dc23ecd7a261f18ed7e (origin/coap-option-tidy) -Author: Antti Kauppila -Date: Thu Sep 15 10:42:29 2016 +0300 - - mbed-client-c version updated - -commit 73d5163e4ef07ee10b494290761cf977ae6a6f28 -Author: Antti Kauppila -Date: Thu Sep 8 18:13:26 2016 +0300 - - New CoAP changes updated to this library - - Unittests updated also - -commit 70447c3e35426be19fb1885aaa85e645f2ee144d -Author: Tero Heinonen -Date: Wed Aug 17 14:30:36 2016 +0300 - - Set link layer security when opening socket. (#30) diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/DEPENDENCIES b/features/net/FEATURE_IPV6/sal-stack-nanostack/DEPENDENCIES deleted file mode 100644 index 5adb2eb96a..0000000000 --- a/features/net/FEATURE_IPV6/sal-stack-nanostack/DEPENDENCIES +++ /dev/null @@ -1,6 +0,0 @@ -Dependencies for sal-stack-nanostack library are: - * mbed-client-c > 0.1.6 - * nanostack-libservice > 3.0.0 - * sal-stack-nanostack-eventloop > 0.0.8 - * nanostack-randlib > 0.0.4 - diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_ARM/TARGET_CORTEX_A/TARGET_A9/error_nanostack.c b/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_ARM/TARGET_CORTEX_A/TARGET_A9/error_nanostack.c deleted file mode 100644 index 755f6c7692..0000000000 --- a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_ARM/TARGET_CORTEX_A/TARGET_A9/error_nanostack.c +++ /dev/null @@ -1 +0,0 @@ -#error "No binary build of IPV6/6LoWPAN/Thread stack available for this platform currently." diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_ARM/TARGET_CORTEX_M/TARGET_M0/error_nanostack.c b/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_ARM/TARGET_CORTEX_M/TARGET_M0/error_nanostack.c deleted file mode 100644 index 755f6c7692..0000000000 --- a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_ARM/TARGET_CORTEX_M/TARGET_M0/error_nanostack.c +++ /dev/null @@ -1 +0,0 @@ -#error "No binary build of IPV6/6LoWPAN/Thread stack available for this platform currently." diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_ARM/TARGET_CORTEX_M/TARGET_M0P/error_nanostack.c b/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_ARM/TARGET_CORTEX_M/TARGET_M0P/error_nanostack.c deleted file mode 100644 index 755f6c7692..0000000000 --- a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_ARM/TARGET_CORTEX_M/TARGET_M0P/error_nanostack.c +++ /dev/null @@ -1 +0,0 @@ -#error "No binary build of IPV6/6LoWPAN/Thread stack available for this platform currently." diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_ARM/TARGET_CORTEX_M/TARGET_M3/libnanostack_armcc_Cortex-M3.ar b/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_ARM/TARGET_CORTEX_M/TARGET_M3/libnanostack_armcc_Cortex-M3.ar deleted file mode 100755 index b1d81f8ab7..0000000000 Binary files a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_ARM/TARGET_CORTEX_M/TARGET_M3/libnanostack_armcc_Cortex-M3.ar and /dev/null differ diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_ARM/TARGET_CORTEX_M/TARGET_M4/libnanostack_armcc_Cortex-M3.ar b/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_ARM/TARGET_CORTEX_M/TARGET_M4/libnanostack_armcc_Cortex-M3.ar deleted file mode 100755 index b1d81f8ab7..0000000000 Binary files a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_ARM/TARGET_CORTEX_M/TARGET_M4/libnanostack_armcc_Cortex-M3.ar and /dev/null differ diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_ARM/TARGET_CORTEX_M/TARGET_M7/libnanostack_armcc_Cortex-M7.ar b/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_ARM/TARGET_CORTEX_M/TARGET_M7/libnanostack_armcc_Cortex-M7.ar deleted file mode 100644 index b1d81f8ab7..0000000000 Binary files a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_ARM/TARGET_CORTEX_M/TARGET_M7/libnanostack_armcc_Cortex-M7.ar and /dev/null differ diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_GCC/TARGET_CORTEX_A/TARGET_A9/error_nanostack.c b/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_GCC/TARGET_CORTEX_A/TARGET_A9/error_nanostack.c deleted file mode 100644 index 755f6c7692..0000000000 --- a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_GCC/TARGET_CORTEX_A/TARGET_A9/error_nanostack.c +++ /dev/null @@ -1 +0,0 @@ -#error "No binary build of IPV6/6LoWPAN/Thread stack available for this platform currently." diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_GCC/TARGET_CORTEX_M/TARGET_M0/error_nanostack.c b/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_GCC/TARGET_CORTEX_M/TARGET_M0/error_nanostack.c deleted file mode 100644 index 755f6c7692..0000000000 --- a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_GCC/TARGET_CORTEX_M/TARGET_M0/error_nanostack.c +++ /dev/null @@ -1 +0,0 @@ -#error "No binary build of IPV6/6LoWPAN/Thread stack available for this platform currently." diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_GCC/TARGET_CORTEX_M/TARGET_M0P/error_nanostack.c b/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_GCC/TARGET_CORTEX_M/TARGET_M0P/error_nanostack.c deleted file mode 100644 index 755f6c7692..0000000000 --- a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_GCC/TARGET_CORTEX_M/TARGET_M0P/error_nanostack.c +++ /dev/null @@ -1 +0,0 @@ -#error "No binary build of IPV6/6LoWPAN/Thread stack available for this platform currently." diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_GCC/TARGET_CORTEX_M/TARGET_M3/libnanostack_arm-none-eabi-gcc_Cortex-M3.a b/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_GCC/TARGET_CORTEX_M/TARGET_M3/libnanostack_arm-none-eabi-gcc_Cortex-M3.a deleted file mode 100644 index ae615e489d..0000000000 Binary files a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_GCC/TARGET_CORTEX_M/TARGET_M3/libnanostack_arm-none-eabi-gcc_Cortex-M3.a and /dev/null differ diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_GCC/TARGET_CORTEX_M/TARGET_M4/libnanostack_arm-none-eabi-gcc_Cortex-M3.a b/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_GCC/TARGET_CORTEX_M/TARGET_M4/libnanostack_arm-none-eabi-gcc_Cortex-M3.a deleted file mode 100644 index ae615e489d..0000000000 Binary files a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_GCC/TARGET_CORTEX_M/TARGET_M4/libnanostack_arm-none-eabi-gcc_Cortex-M3.a and /dev/null differ diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_GCC/TARGET_CORTEX_M/TARGET_M7/libnanostack_arm-none-eabi-gcc_Cortex-M7.a b/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_GCC/TARGET_CORTEX_M/TARGET_M7/libnanostack_arm-none-eabi-gcc_Cortex-M7.a deleted file mode 100644 index ae615e489d..0000000000 Binary files a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_GCC/TARGET_CORTEX_M/TARGET_M7/libnanostack_arm-none-eabi-gcc_Cortex-M7.a and /dev/null differ diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_IAR/TARGET_CORTEX_A/TARGET_A9/error_nanostack.c b/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_IAR/TARGET_CORTEX_A/TARGET_A9/error_nanostack.c deleted file mode 100644 index 755f6c7692..0000000000 --- a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_IAR/TARGET_CORTEX_A/TARGET_A9/error_nanostack.c +++ /dev/null @@ -1 +0,0 @@ -#error "No binary build of IPV6/6LoWPAN/Thread stack available for this platform currently." diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_IAR/TARGET_CORTEX_M/TARGET_M0/error_nanostack.c b/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_IAR/TARGET_CORTEX_M/TARGET_M0/error_nanostack.c deleted file mode 100644 index 755f6c7692..0000000000 --- a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_IAR/TARGET_CORTEX_M/TARGET_M0/error_nanostack.c +++ /dev/null @@ -1 +0,0 @@ -#error "No binary build of IPV6/6LoWPAN/Thread stack available for this platform currently." diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_IAR/TARGET_CORTEX_M/TARGET_M0P/error_nanostack.c b/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_IAR/TARGET_CORTEX_M/TARGET_M0P/error_nanostack.c deleted file mode 100644 index 755f6c7692..0000000000 --- a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_IAR/TARGET_CORTEX_M/TARGET_M0P/error_nanostack.c +++ /dev/null @@ -1 +0,0 @@ -#error "No binary build of IPV6/6LoWPAN/Thread stack available for this platform currently." diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_IAR/TARGET_CORTEX_M/TARGET_M3/libnanostack_iccarm_Cortex-M3.a b/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_IAR/TARGET_CORTEX_M/TARGET_M3/libnanostack_iccarm_Cortex-M3.a deleted file mode 100644 index f6ed9b6ff9..0000000000 Binary files a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_IAR/TARGET_CORTEX_M/TARGET_M3/libnanostack_iccarm_Cortex-M3.a and /dev/null differ diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_IAR/TARGET_CORTEX_M/TARGET_M4/libnanostack_iccarm_Cortex-M3.a b/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_IAR/TARGET_CORTEX_M/TARGET_M4/libnanostack_iccarm_Cortex-M3.a deleted file mode 100644 index f6ed9b6ff9..0000000000 Binary files a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_IAR/TARGET_CORTEX_M/TARGET_M4/libnanostack_iccarm_Cortex-M3.a and /dev/null differ diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_IAR/TARGET_CORTEX_M/TARGET_M7/libnanostack_iccarm_Cortex-M7.a b/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_IAR/TARGET_CORTEX_M/TARGET_M7/libnanostack_iccarm_Cortex-M7.a deleted file mode 100644 index f6ed9b6ff9..0000000000 Binary files a/features/net/FEATURE_IPV6/sal-stack-nanostack/TOOLCHAIN_IAR/TARGET_CORTEX_M/TARGET_M7/libnanostack_iccarm_Cortex-M7.a and /dev/null differ diff --git a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/shalib.h b/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/shalib.h deleted file mode 100644 index 4b4fd520ee..0000000000 --- a/features/net/FEATURE_IPV6/sal-stack-nanostack/nanostack/shalib.h +++ /dev/null @@ -1,177 +0,0 @@ -/* - * Copyright (c) 2014-2015 ARM Limited. All rights reserved. - * - * SPDX-License-Identifier: LicenseRef-PBL - * - * Licensed under the Permissive Binary License, Version 1.0 (the "License"); you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.mbed.com/licenses/PBL-1.0 - * - * See the License for the specific language governing permissions and limitations under the License. - * - */ -/** - * \file shalib.h - * \brief SHA256 Library API. - * - * \section sha256-api SHA256 Library API: - * There are two ways to calculate SHA256: - * 1. Calc by given 1 data and length pointer - * - SHALIB_SHA256_HASH(), A function to calculate SHA256 for given data. - * 2. Calc by different data pointer sequence given separately - * - SHALIB_init_sha256(), Init SHA registers - * - SHALIB_push_data_sha256(), Give data sectors(s) one by one - * - **** Give data - * - SHALIB_push_data_sha256(), Give last data sequence - * - SHALIB_finish_sha256(), Finish SHA256 by given data to given buffer - * - * \section sha256res-api SHA256 register resume and save library API: - * SHA256 Operation dataflow can come in many different timeslots or packets and between them, the application needs - * to calculated more SHA256 then SAVE and Resume operation SHA registers is usefully. - * -sha_resume_regs(), Load SHA registers from old HASH sessions - * -sha_save_regs(), Save SHA registers from current HASH sessions - * - * \section hmac256-inctuction HMAC256 process sequence: - * 1. SHALIB_init_HMAC(), Init HMAC IN process by given security signature material - * 2. SHALIB_push_data_sha256(), Give data sectors(s) one by one - * 3. SHALIB_finish_HMAC(), Finish HMAC and save SHA256 hash to given buffer - * - * \section prf256-inctuction PRF256 process sequence: - * 1. shalib_prf_param_get(), Init PRF and get configure structure - * 2. Set the following parameters to configure structure: - * - HMAC security signature pointer and length - * - Label text and length - * - Seed data and length - * - PRF result pointer - * 3. shalib_prf_calc(), Calc PRF256 HASH - * - */ - -#ifndef SHALIB_H_ -#define SHALIB_H_ - -#include "ns_types.h" - - -#ifdef __cplusplus -extern "C" { -#endif - -/** Do Not change. */ -#define SHALIB_RING_BUFFER_SIZE 64 - -/*! - * \struct prf_sec_param_t - * \brief PRF 256 stucture - * This structure is used to configure PRF calc operation: secret, label, seed and buffer before call shalib_prf_calc(). - */ -typedef struct { - const uint8_t *secret; /**< HMAC security signature pointer. */ - uint8_t sec_len; /**< HMAC security signature length. */ - uint8_t label[25]; /**< Label text. */ - uint8_t lablen; /**< Label text length. */ - const uint8_t *seed; /**< Seed data. */ - uint8_t seedlen; /**< Seed data length. */ - uint8_t *buffer; /**< Buffer for saving 256-BIT hash. */ -} prf_sec_param_t; - -/*! - * \struct sha256_temp_t - * \brief SHA temporary buffer database for saving current hash operation or resume saved. - */ -typedef struct { - uint8_t m_Data[SHALIB_RING_BUFFER_SIZE]; /**< 64-bytes ring buffer for SHA256 operation. */ - uint8_t m_Read; /**< Read pointer to ring buffer. */ - uint8_t m_Write; /**< Write pointer to ring buffer. */ - uint32_t SHALIB_pushed_bytes; /**< Hash total byte coun. t*/ - uint8_t SHALIB_buffered_bytes; /**< Ring buffer data in. */ - uint32_t areg_temps[8]; /**< Shalib operation 8 HREG. */ -} sha256_temp_t; - -// Cumulative static version using a static ring buffer object -//============================================================================= -/** - * \brief Init SHA registers. - */ -void SHALIB_init_sha256(void); // Call this first... -/** - * \brief Push data SHALIB. - * - * \param data A pointer to data. - * \param len Length of data. - */ -void SHALIB_push_data_sha256(const uint8_t *data, uint16_t len); // ... add data ... -/** - * \brief Finish SHA-256 operation and get result to given buffer by given length. - * - * The first `len` words of the SHA-256 are output to buffer. - * - * \param buffer A pointer to result buffer. - * \param len Length of 32-bit register to save to buffer (8= 256 bit and 4= 128-bit). - */ -void SHALIB_finish_sha256(uint8_t *buffer, uint8_t len); // ... get the sha256 digest. -/** - * \brief Calc SHA-256 by 1 function call. - * - * \param data_ptr A pointer to data. - * \param data_len Length of data. - * \param buffer A pointer to 256-bit buffer!! - */ -void SHALIB_SHA256_HASH(const uint8_t *data_ptr, uint16_t data_len, uint8_t *buffer); // ... get the sha256 digest. - -/* Shalib registers resume and save API */ -/** - * \brief Resume old SHA-256 registers. - * - * \param ptr A pointer to saved session. - */ -void sha_resume_regs(const sha256_temp_t *ptr); -/** - * \brief Save SHA-256 registers. - * - * \param ptr A pointer to buffer. - */ -void sha_save_regs(sha256_temp_t *ptr); - -// Use these for cumulativec HMAC -/** - * \brief Init HMAC256 operation by given security material. - * - * \param secret A pointer to security material. - * \param sec_len Length of security material. - */ -void SHALIB_init_HMAC(const uint8_t *secret, uint8_t sec_len); // Call this first... -// ... add data ... by SHALIB_push_data_sha256() -/** - * \brief Finish HMAC256 operation and save result in given buffer. - * - * \param buffer A pointer to result buffer. - * \param len Length of 32-bit register to save to buffer (8= 256 bit and 4= 128-bit). - */ -void SHALIB_finish_HMAC(uint8_t *buffer, uint8_t len); // ... get the HMAC digest. - - -/** PRF API */ -/** - * \brief Init PRF library and SHA registers. - * This function returns configure structure where the user needs to set the following items: - * -Security material and length - * -Label text and length - * -Seed data and length - * -Buffer for 256 Result - * - * \return A pointer to PRF configure structure. - - */ -prf_sec_param_t *shalib_prf_param_get(void); // GET PRF structure -/* SET secret, label, seed & buffer to 256 PRF */ -/** - * \brief Finish PRF256 operation and save result in given buffer. - * - */ -void shalib_prf_calc(void);// GET 256 PRF -#ifdef __cplusplus -} -#endif -#endif /* SHALIB_H_ */ diff --git a/features/net/network-socket/CellularInterface.cpp b/features/net/network-socket/CellularInterface.cpp deleted file mode 100644 index 206eba032f..0000000000 --- a/features/net/network-socket/CellularInterface.cpp +++ /dev/null @@ -1,77 +0,0 @@ -/* Socket - * Copyright (c) 2015 ARM Limited - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "network-socket/CellularInterface.h" -#include -#include - - -CellularInterface::CellularInterface() - : _apn(0), _user(0), _pass(0) -{ -} - -CellularInterface::~CellularInterface() -{ - free(_apn); - free(_user); - free(_pass); -} - -int CellularInterface::set_credentials(const char *apn, const char *user, const char *pass) -{ - free(_apn); - _apn = 0; - free(_user); - _user = 0; - free(_pass); - _pass = 0; - - if (apn) { - _apn = (char*)malloc(strlen(apn)+1); - if (!_apn) { - return NSAPI_ERROR_NO_MEMORY; - } - - strcpy(_apn, apn); - } - - if (user) { - _user = (char*)malloc(strlen(user)+1); - if (!_user) { - return NSAPI_ERROR_NO_MEMORY; - } - - strcpy(_user, user); - } - - if (pass) { - _pass = (char*)malloc(strlen(pass)+1); - if (!_pass) { - return NSAPI_ERROR_NO_MEMORY; - } - - strcpy(_pass, pass); - } - - return 0; -} - -int CellularInterface::connect() -{ - return connect(_apn, _user, _pass); -} - diff --git a/features/net/network-socket/WiFiInterface.cpp b/features/net/network-socket/WiFiInterface.cpp deleted file mode 100644 index 128220845d..0000000000 --- a/features/net/network-socket/WiFiInterface.cpp +++ /dev/null @@ -1,71 +0,0 @@ -/* Socket - * Copyright (c) 2015 ARM Limited - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include "network-socket/WiFiInterface.h" -#include -#include - - -WiFiInterface::WiFiInterface() - : _ssid(0), _pass(0), _security(NSAPI_SECURITY_NONE) -{ -} - -WiFiInterface::~WiFiInterface() -{ - free(_ssid); - free(_pass); -} - -int WiFiInterface::set_credentials(const char *ssid, const char *pass, nsapi_security_t security) -{ - free(_ssid); - _ssid = 0; - free(_pass); - _pass = 0; - - if (ssid) { - _ssid = (char*)malloc(strlen(ssid)+1); - if (!_ssid) { - return NSAPI_ERROR_NO_MEMORY; - } - - strcpy(_ssid, ssid); - } - - if (pass) { - _pass = (char*)malloc(strlen(pass)+1); - if (!_pass) { - return NSAPI_ERROR_NO_MEMORY; - } - - strcpy(_pass, pass); - } - - _security = security; - - return 0; -} - -int WiFiInterface::connect() -{ - if (!_ssid || !_pass) { - return NSAPI_ERROR_PARAMETER; - } - - return connect(_ssid, _pass, _security); -} - diff --git a/features/net/network-socket/WiFiInterface.h b/features/net/network-socket/WiFiInterface.h deleted file mode 100644 index 5a5ac88fce..0000000000 --- a/features/net/network-socket/WiFiInterface.h +++ /dev/null @@ -1,92 +0,0 @@ -/* WiFiInterface - * Copyright (c) 2015 ARM Limited - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef WIFI_INTERFACE_H -#define WIFI_INTERFACE_H - -#include "network-socket/NetworkInterface.h" - - -/** Enum of WiFi encryption types - * - * The security type specifies a particular security to use when - * connected to a WiFi network - * - * @enum nsapi_protocol_t - */ -enum nsapi_security_t { - NSAPI_SECURITY_NONE = 0, /*!< open access point */ - NSAPI_SECURITY_WEP, /*!< phrase conforms to WEP */ - NSAPI_SECURITY_WPA, /*!< phrase conforms to WPA */ - NSAPI_SECURITY_WPA2, /*!< phrase conforms to WPA2 */ -}; - -/** WiFiInterface class - * - * Common interface that is shared between WiFi devices - */ -class WiFiInterface: public NetworkInterface -{ -public: - /** WiFiInterface lifetime - */ - WiFiInterface(); - virtual ~WiFiInterface(); - - /** Set the WiFi network credentials - * - * @param ssid Name of the network to connect to - * @param pass Security passphrase to connect to the network - * @param security Type of encryption for connection - * (defaults to NSAPI_SECURITY_NONE) - */ - virtual int set_credentials(const char *ssid, const char *pass, nsapi_security_t security = NSAPI_SECURITY_NONE); - - /** Start the interface - * - * Attempts to connect to a WiFi network. If passphrase is invalid, - * NSAPI_ERROR_AUTH_ERROR is returned. - * - * @param ssid Name of the network to connect to - * @param pass Security passphrase to connect to the network - * @param security Type of encryption for connection - * @return 0 on success, negative error code on failure - */ - virtual int connect(const char *ssid, const char *pass, nsapi_security_t security = NSAPI_SECURITY_NONE) = 0; - - /** Start the interface - * - * Attempts to connect to a WiFi network. Requires ssid and passphrase to be set. - * If passphrase is invalid, NSAPI_ERROR_AUTH_ERROR is returned. - * - * @return 0 on success, negative error code on failure - */ - virtual int connect(); - - /** Stop the interface - * - * @return 0 on success, negative error code on failure - */ - virtual int disconnect() = 0; - -private: - char *_ssid; - char *_pass; - nsapi_security_t _security; -}; - - -#endif diff --git a/features/net/network-socket/CellularInterface.h b/features/netsocket/CellularInterface.h similarity index 89% rename from features/net/network-socket/CellularInterface.h rename to features/netsocket/CellularInterface.h index 2eaffdf71a..9d48f29f99 100644 --- a/features/net/network-socket/CellularInterface.h +++ b/features/netsocket/CellularInterface.h @@ -17,7 +17,7 @@ #ifndef CELLULAR_INTERFACE_H #define CELLULAR_INTERFACE_H -#include "network-socket/NetworkInterface.h" +#include "netsocket/NetworkInterface.h" /** CellularInterface class @@ -29,8 +29,7 @@ class CellularInterface : public NetworkInterface public: /** CellularInterface lifetime */ - CellularInterface(); - virtual ~CellularInterface(); + virtual ~CellularInterface() {}; /** Set the cellular network APN and credentials * @@ -38,7 +37,7 @@ public: * @param user Optional username for the APN * @param pass Optional password fot the APN */ - virtual int set_credentials(const char *apn, const char *user = 0, const char *pass = 0); + virtual int set_credentials(const char *apn, const char *user = 0, const char *pass = 0) = 0; /** Start the interface * @@ -55,18 +54,13 @@ public: * * @return 0 on success, negative error code on failure */ - virtual int connect(); + virtual int connect() = 0; /** Stop the interface * * @return 0 on success, negative error code on failure */ virtual int disconnect() = 0; - -private: - char *_apn; - char *_user; - char *_pass; }; diff --git a/features/net/network-socket/EthInterface.h b/features/netsocket/EthInterface.h similarity index 94% rename from features/net/network-socket/EthInterface.h rename to features/netsocket/EthInterface.h index 0d3e597a0c..fee38c30de 100644 --- a/features/net/network-socket/EthInterface.h +++ b/features/netsocket/EthInterface.h @@ -17,7 +17,7 @@ #ifndef ETH_INTERFACE_H #define ETH_INTERFACE_H -#include "network-socket/NetworkInterface.h" +#include "netsocket/NetworkInterface.h" /** EthInterface class diff --git a/features/net/network-socket/MeshInterface.h b/features/netsocket/MeshInterface.h similarity index 94% rename from features/net/network-socket/MeshInterface.h rename to features/netsocket/MeshInterface.h index 0e25b06f27..1b25a80169 100644 --- a/features/net/network-socket/MeshInterface.h +++ b/features/netsocket/MeshInterface.h @@ -17,7 +17,7 @@ #ifndef MESH_INTERFACE_H #define MESH_INTERFACE_H -#include "network-socket/NetworkInterface.h" +#include "netsocket/NetworkInterface.h" /** MeshInterface class diff --git a/features/net/network-socket/NetworkInterface.cpp b/features/netsocket/NetworkInterface.cpp similarity index 95% rename from features/net/network-socket/NetworkInterface.cpp rename to features/netsocket/NetworkInterface.cpp index 163231eefc..bd6f49831b 100644 --- a/features/net/network-socket/NetworkInterface.cpp +++ b/features/netsocket/NetworkInterface.cpp @@ -14,8 +14,8 @@ * limitations under the License. */ -#include "network-socket/NetworkInterface.h" -#include "network-socket/NetworkStack.h" +#include "netsocket/NetworkInterface.h" +#include "netsocket/NetworkStack.h" #include diff --git a/features/net/network-socket/NetworkInterface.h b/features/netsocket/NetworkInterface.h similarity index 98% rename from features/net/network-socket/NetworkInterface.h rename to features/netsocket/NetworkInterface.h index 92e8eb4693..bf60f9a464 100644 --- a/features/net/network-socket/NetworkInterface.h +++ b/features/netsocket/NetworkInterface.h @@ -17,8 +17,8 @@ #ifndef NETWORK_INTERFACE_H #define NETWORK_INTERFACE_H -#include "network-socket/nsapi_types.h" -#include "network-socket/SocketAddress.h" +#include "netsocket/nsapi_types.h" +#include "netsocket/SocketAddress.h" // Predeclared class class NetworkStack; diff --git a/features/net/network-socket/NetworkStack.cpp b/features/netsocket/NetworkStack.cpp similarity index 100% rename from features/net/network-socket/NetworkStack.cpp rename to features/netsocket/NetworkStack.cpp diff --git a/features/net/network-socket/NetworkStack.h b/features/netsocket/NetworkStack.h similarity index 99% rename from features/net/network-socket/NetworkStack.h rename to features/netsocket/NetworkStack.h index 123f8d2904..1f8434471f 100644 --- a/features/net/network-socket/NetworkStack.h +++ b/features/netsocket/NetworkStack.h @@ -18,8 +18,8 @@ #define NETWORK_STACK_H #include "nsapi_types.h" -#include "network-socket/SocketAddress.h" -#include "network-socket/NetworkInterface.h" +#include "netsocket/SocketAddress.h" +#include "netsocket/NetworkInterface.h" /** NetworkStack class diff --git a/features/net/network-socket/Socket.cpp b/features/netsocket/Socket.cpp similarity index 100% rename from features/net/network-socket/Socket.cpp rename to features/netsocket/Socket.cpp diff --git a/features/net/network-socket/Socket.h b/features/netsocket/Socket.h similarity index 98% rename from features/net/network-socket/Socket.h rename to features/netsocket/Socket.h index 39a89a529f..f96ea81ee4 100644 --- a/features/net/network-socket/Socket.h +++ b/features/netsocket/Socket.h @@ -17,8 +17,8 @@ #ifndef SOCKET_H #define SOCKET_H -#include "network-socket/SocketAddress.h" -#include "network-socket/NetworkStack.h" +#include "netsocket/SocketAddress.h" +#include "netsocket/NetworkStack.h" #include "rtos/Mutex.h" #include "Callback.h" #include "toolchain.h" diff --git a/features/net/network-socket/SocketAddress.cpp b/features/netsocket/SocketAddress.cpp similarity index 100% rename from features/net/network-socket/SocketAddress.cpp rename to features/netsocket/SocketAddress.cpp diff --git a/features/net/network-socket/SocketAddress.h b/features/netsocket/SocketAddress.h similarity index 100% rename from features/net/network-socket/SocketAddress.h rename to features/netsocket/SocketAddress.h diff --git a/features/net/network-socket/TCPServer.cpp b/features/netsocket/TCPServer.cpp similarity index 100% rename from features/net/network-socket/TCPServer.cpp rename to features/netsocket/TCPServer.cpp diff --git a/features/net/network-socket/TCPServer.h b/features/netsocket/TCPServer.h similarity index 94% rename from features/net/network-socket/TCPServer.h rename to features/netsocket/TCPServer.h index e114573888..1a273311e2 100644 --- a/features/net/network-socket/TCPServer.h +++ b/features/netsocket/TCPServer.h @@ -17,10 +17,10 @@ #ifndef TCPSERVER_H #define TCPSERVER_H -#include "network-socket/Socket.h" -#include "network-socket/TCPSocket.h" -#include "network-socket/NetworkStack.h" -#include "network-socket/NetworkInterface.h" +#include "netsocket/Socket.h" +#include "netsocket/TCPSocket.h" +#include "netsocket/NetworkStack.h" +#include "netsocket/NetworkInterface.h" #include "rtos/Semaphore.h" diff --git a/features/net/network-socket/TCPSocket.cpp b/features/netsocket/TCPSocket.cpp similarity index 100% rename from features/net/network-socket/TCPSocket.cpp rename to features/netsocket/TCPSocket.cpp diff --git a/features/net/network-socket/TCPSocket.h b/features/netsocket/TCPSocket.h similarity index 96% rename from features/net/network-socket/TCPSocket.h rename to features/netsocket/TCPSocket.h index 41d9ec0a40..2239b275bb 100644 --- a/features/net/network-socket/TCPSocket.h +++ b/features/netsocket/TCPSocket.h @@ -17,9 +17,9 @@ #ifndef TCPSOCKET_H #define TCPSOCKET_H -#include "network-socket/Socket.h" -#include "network-socket/NetworkStack.h" -#include "network-socket/NetworkInterface.h" +#include "netsocket/Socket.h" +#include "netsocket/NetworkStack.h" +#include "netsocket/NetworkInterface.h" #include "rtos/Semaphore.h" diff --git a/features/net/network-socket/UDPSocket.cpp b/features/netsocket/UDPSocket.cpp similarity index 100% rename from features/net/network-socket/UDPSocket.cpp rename to features/netsocket/UDPSocket.cpp diff --git a/features/net/network-socket/UDPSocket.h b/features/netsocket/UDPSocket.h similarity index 97% rename from features/net/network-socket/UDPSocket.h rename to features/netsocket/UDPSocket.h index a44ec2fed7..10650618eb 100644 --- a/features/net/network-socket/UDPSocket.h +++ b/features/netsocket/UDPSocket.h @@ -17,9 +17,9 @@ #ifndef UDPSOCKET_H #define UDPSOCKET_H -#include "network-socket/Socket.h" -#include "network-socket/NetworkStack.h" -#include "network-socket/NetworkInterface.h" +#include "netsocket/Socket.h" +#include "netsocket/NetworkStack.h" +#include "netsocket/NetworkInterface.h" #include "rtos/Semaphore.h" diff --git a/features/netsocket/WiFiAccessPoint.cpp b/features/netsocket/WiFiAccessPoint.cpp new file mode 100644 index 0000000000..49c62c6868 --- /dev/null +++ b/features/netsocket/WiFiAccessPoint.cpp @@ -0,0 +1,37 @@ +#include "netsocket/WiFiAccessPoint.h" + +WiFiAccessPoint::WiFiAccessPoint() +{ + memset(&_ap, 0, sizeof(_ap)); +} + +WiFiAccessPoint::WiFiAccessPoint(nsapi_wifi_ap_t ap) +{ + _ap = ap; +} + +const char *WiFiAccessPoint::get_ssid() const +{ + return _ap.ssid; +} + +const uint8_t *WiFiAccessPoint::get_bssid() const +{ + return _ap.bssid; +} + +nsapi_security_t WiFiAccessPoint::get_security() const +{ + return _ap.security; +} + +int8_t WiFiAccessPoint::get_rssi() const +{ + return _ap.rssi; +} + +uint8_t WiFiAccessPoint::get_channel() const +{ + return _ap.channel; +} + diff --git a/features/netsocket/WiFiAccessPoint.h b/features/netsocket/WiFiAccessPoint.h new file mode 100644 index 0000000000..b590c45aa2 --- /dev/null +++ b/features/netsocket/WiFiAccessPoint.h @@ -0,0 +1,71 @@ +/* WiFiInterface + * Copyright (c) 2015 - 2016 ARM Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef WIFI_ACCESS_POINT_H +#define WIFI_ACCESS_POINT_H + +#include +#include "netsocket/nsapi_types.h" + +/** WiFiAccessPoint class + * + * Class that represents a WiFi Access Point + * Common interface that is shared between WiFi devices + */ +class WiFiAccessPoint +{ + /** WiFiAccessPoint lifetime + */ +public: + WiFiAccessPoint(); + WiFiAccessPoint(nsapi_wifi_ap_t ap); + + /** Get an access point's ssid + * + * @return The ssid of the access point + */ + const char *get_ssid() const; + + /** Get an access point's bssid + * + * @return The bssid of the access point + */ + const uint8_t *get_bssid() const; + + /** Get an access point's security + * + * @return The security type of the access point + */ + nsapi_security_t get_security() const; + + /** Gets the radio signal strength for the access point + * + * @return Connection strength in dBm (negative value), + * or 0 if measurement impossible + */ + int8_t get_rssi() const; + + /** Get the access point's channel + * + * @return The channel of the access point + */ + uint8_t get_channel() const; + +private: + nsapi_wifi_ap_t _ap; +}; + +#endif diff --git a/features/netsocket/WiFiInterface.h b/features/netsocket/WiFiInterface.h new file mode 100644 index 0000000000..faaf4f8854 --- /dev/null +++ b/features/netsocket/WiFiInterface.h @@ -0,0 +1,105 @@ +/* WiFiInterface + * Copyright (c) 2015 - 2016 ARM Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef WIFI_INTERFACE_H +#define WIFI_INTERFACE_H + +#include +#include "Callback.h" +#include "netsocket/NetworkInterface.h" +#include "netsocket/WiFiAccessPoint.h" + +/** WiFiInterface class + * + * Common interface that is shared between WiFi devices + */ +class WiFiInterface: public NetworkInterface +{ +public: + /** WiFiInterface lifetime + */ + virtual ~WiFiInterface() {}; + + /** Set the WiFi network credentials + * + * @param ssid Name of the network to connect to + * @param pass Security passphrase to connect to the network + * @param security Type of encryption for connection + * (defaults to NSAPI_SECURITY_NONE) + * @return 0 on success, or error code on failure + */ + virtual int set_credentials(const char *ssid, const char *pass, nsapi_security_t security = NSAPI_SECURITY_NONE) = 0; + + /** Set the WiFi network channel + * + * @param channel Channel on which the connection is to be made, or 0 for any (Default: 0) + * @return 0 on success, or error code on failure + */ + virtual int set_channel(uint8_t channel) = 0; + + /** Gets the current radio signal strength for active connection + * + * @return Connection strength in dBm (negative value), + * or 0 if measurement impossible + */ + virtual int8_t get_rssi() = 0; + + /** Start the interface + * + * Attempts to connect to a WiFi network. + * + * @param ssid Name of the network to connect to + * @param pass Security passphrase to connect to the network + * @param security Type of encryption for connection (Default: NSAPI_SECURITY_NONE) + * @param channel Channel on which the connection is to be made, or 0 for any (Default: 0) + * @return 0 on success, or error code on failure + */ + virtual int connect(const char *ssid, const char *pass, + nsapi_security_t security = NSAPI_SECURITY_NONE, + uint8_t channel = 0) = 0; + + /** Start the interface + * + * Attempts to connect to a WiFi network. Requires ssid and passphrase to be set. + * If passphrase is invalid, NSAPI_ERROR_AUTH_ERROR is returned. + * + * @return 0 on success, negative error code on failure + */ + virtual int connect() = 0; + + /** Stop the interface + * + * @return 0 on success, or error code on failure + */ + virtual int disconnect() = 0; + + /** Scan for available networks + * + * The scan will + * If the network interface is set to non-blocking mode, scan will attempt to scan + * for WiFi networks asynchronously and return NSAPI_ERROR_WOULD_BLOCK. If a callback + * is attached, the callback will be called when the operation has completed. + * + * @param ap Pointer to allocated array to store discovered AP + * @param count Size of allocated @a res array, or 0 to only count available AP + * @param timeout Timeout in milliseconds; 0 for no timeout (Default: 0) + * @return Number of entries in @a, or if @a count was 0 number of available networks, negative on error + * see @a nsapi_error + */ + virtual int scan(WiFiAccessPoint *res, unsigned count) = 0; +}; + +#endif diff --git a/features/netsocket/emac_stack_mem.h b/features/netsocket/emac_stack_mem.h new file mode 100644 index 0000000000..b407308fd5 --- /dev/null +++ b/features/netsocket/emac_stack_mem.h @@ -0,0 +1,109 @@ +/* mbed Microcontroller Library + * Copyright (c) 2016 ARM Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#ifndef MBED_EMAC_STACK_MEM_H +#define MBED_EMAC_STACK_MEM_H + +#include "platform.h" + +#if DEVICE_EMAC + +#include + +/** + * Stack memory module + * + * This interface provides abstraction for memory modules used in different IP stacks (often to accommodate zero copy). + * Emac interface may be required to accept output packets and provide received data using this stack specific API. + * This header should be implemented for each IP stack, so that we keep emacs module independent. + */ +typedef void emac_stack_mem_t; +typedef void emac_stack_mem_chain_t; +typedef void emac_stack_t; + +/** + * Allocates stack memory + * + * @param stack Emac stack context + * @param size Size of memory to allocate + * @param align Memory alignment requirements + * @return Allocated memory struct, or NULL in case of error + */ +emac_stack_mem_t *emac_stack_mem_alloc(emac_stack_t* stack, uint32_t size, uint32_t align); + +/** + * Free memory allocated using @a stack_mem_alloc + * + * @param stack Emac stack context + * @param mem Memory to be freed + */ +void emac_stack_mem_free(emac_stack_t* stack, emac_stack_mem_t *mem); + +/** + * Return pointer to the payload + * + * @param stack Emac stack context + * @param mem Memory structure + * @return Pointer to the payload + */ +void *emac_stack_mem_ptr(emac_stack_t* stack, emac_stack_mem_t *mem); + +/** + * Return actual payload size + * + * @param stack Emac stack context + * @param mem Memory structure + * @return Size in bytes + */ +uint32_t emac_stack_mem_len(emac_stack_t* stack, emac_stack_mem_t *mem); + +/** + * Sets the actual payload size (the allocated payload size will not change) + * + * @param stack Emac stack context + * @param mem Memory structure + * @param len Actual payload size + */ +void emac_stack_mem_set_len(emac_stack_t* stack, emac_stack_mem_t *mem, uint32_t len); + +/** + * Returns first memory structure from the list and move the head to point to the next node + * + * @param stack Emac stack context + * @param list Pointer to the list + * @return First memory structure from the list + */ +emac_stack_mem_t *emac_stack_mem_chain_dequeue(emac_stack_t* stack, emac_stack_mem_chain_t **chain); + +/** + * Return total length of the memory chain + * + * @param stack Emac stack context + * @param chain Memory chain + * @return Chain length + */ +uint32_t emac_stack_mem_chain_len(emac_stack_t* stack, emac_stack_mem_chain_t *chain); + +/** + * Increases the reference counter for the memory + * + * @param stack Emac stack context + * @param mem Memory structure + */ +void emac_stack_mem_ref(emac_stack_t* stack, emac_stack_mem_t *mem); + +#endif /* DEVICE_EMAC */ + +#endif /* EMAC_MBED_STACK_MEM_h */ diff --git a/features/net/network-socket/mbed_lib.json b/features/netsocket/mbed_lib.json similarity index 100% rename from features/net/network-socket/mbed_lib.json rename to features/netsocket/mbed_lib.json diff --git a/features/net/network-socket/nsapi.h b/features/netsocket/nsapi.h similarity index 63% rename from features/net/network-socket/nsapi.h rename to features/netsocket/nsapi.h index d61fb5502c..6fe0820e96 100644 --- a/features/net/network-socket/nsapi.h +++ b/features/netsocket/nsapi.h @@ -24,19 +24,19 @@ #ifdef __cplusplus // entry point for C++ api -#include "network-socket/SocketAddress.h" -#include "network-socket/NetworkStack.h" +#include "netsocket/SocketAddress.h" +#include "netsocket/NetworkStack.h" -#include "network-socket/NetworkInterface.h" -#include "network-socket/EthInterface.h" -#include "network-socket/WiFiInterface.h" -#include "network-socket/CellularInterface.h" -#include "network-socket/MeshInterface.h" +#include "netsocket/NetworkInterface.h" +#include "netsocket/EthInterface.h" +#include "netsocket/WiFiInterface.h" +#include "netsocket/CellularInterface.h" +#include "netsocket/MeshInterface.h" -#include "network-socket/Socket.h" -#include "network-socket/UDPSocket.h" -#include "network-socket/TCPSocket.h" -#include "network-socket/TCPServer.h" +#include "netsocket/Socket.h" +#include "netsocket/UDPSocket.h" +#include "netsocket/TCPSocket.h" +#include "netsocket/TCPServer.h" #endif diff --git a/features/net/network-socket/nsapi_dns.cpp b/features/netsocket/nsapi_dns.cpp similarity index 99% rename from features/net/network-socket/nsapi_dns.cpp rename to features/netsocket/nsapi_dns.cpp index 2d46b28cbb..8ca94de563 100644 --- a/features/net/network-socket/nsapi_dns.cpp +++ b/features/netsocket/nsapi_dns.cpp @@ -15,7 +15,7 @@ * limitations under the License. */ #include "nsapi_dns.h" -#include "network-socket/UDPSocket.h" +#include "netsocket/UDPSocket.h" #include #include #include diff --git a/features/net/network-socket/nsapi_dns.h b/features/netsocket/nsapi_dns.h similarity index 99% rename from features/net/network-socket/nsapi_dns.h rename to features/netsocket/nsapi_dns.h index 9f4deca8ba..5db247664d 100644 --- a/features/net/network-socket/nsapi_dns.h +++ b/features/netsocket/nsapi_dns.h @@ -19,7 +19,7 @@ #include "nsapi_types.h" #ifdef __cplusplus -#include "network-socket/NetworkStack.h" +#include "netsocket/NetworkStack.h" #endif #ifndef __cplusplus diff --git a/features/net/network-socket/nsapi_types.h b/features/netsocket/nsapi_types.h similarity index 92% rename from features/net/network-socket/nsapi_types.h rename to features/netsocket/nsapi_types.h index 4324bae68d..57e8f32622 100644 --- a/features/net/network-socket/nsapi_types.h +++ b/features/netsocket/nsapi_types.h @@ -24,7 +24,7 @@ extern "C" { #endif -/** Enum of standardized error codes +/** Enum of standardized error codes * * Valid error codes have negative values and may * be returned by any network operation. @@ -32,6 +32,7 @@ extern "C" { * @enum nsapi_error_t */ typedef enum nsapi_error { + NSAPI_ERROR_OK = 0, /*!< no error */ NSAPI_ERROR_WOULD_BLOCK = -3001, /*!< no data is not available but call is non-blocking */ NSAPI_ERROR_UNSUPPORTED = -3002, /*!< unsupported functionality */ NSAPI_ERROR_PARAMETER = -3003, /*!< invalid configuration */ @@ -39,12 +40,26 @@ typedef enum nsapi_error { NSAPI_ERROR_NO_SOCKET = -3005, /*!< socket not available for use */ NSAPI_ERROR_NO_ADDRESS = -3006, /*!< IP address is not known */ NSAPI_ERROR_NO_MEMORY = -3007, /*!< memory resource not available */ - NSAPI_ERROR_DNS_FAILURE = -3008, /*!< DNS failed to complete successfully */ - NSAPI_ERROR_DHCP_FAILURE = -3009, /*!< DHCP failed to complete successfully */ - NSAPI_ERROR_AUTH_FAILURE = -3010, /*!< connection to access point faield */ - NSAPI_ERROR_DEVICE_ERROR = -3011, /*!< failure interfacing with the network procesor */ + NSAPI_ERROR_NO_SSID = -3008, /*!< ssid not found */ + NSAPI_ERROR_DNS_FAILURE = -3009, /*!< DNS failed to complete successfully */ + NSAPI_ERROR_DHCP_FAILURE = -3010, /*!< DHCP failed to complete successfully */ + NSAPI_ERROR_AUTH_FAILURE = -3011, /*!< connection to access point failed */ + NSAPI_ERROR_DEVICE_ERROR = -3012, /*!< failure interfacing with the network processor */ } nsapi_error_t; +/** Enum of encryption types + * + * The security type specifies a particular security to use when + * connected to a WiFi network + */ +typedef enum nsapi_security { + NSAPI_SECURITY_NONE = 0x0, /*!< open access point */ + NSAPI_SECURITY_WEP = 0x1, /*!< phrase conforms to WEP */ + NSAPI_SECURITY_WPA = 0x2, /*!< phrase conforms to WPA */ + NSAPI_SECURITY_WPA2 = 0x3, /*!< phrase conforms to WPA2 */ + NSAPI_SECURITY_WPA_WPA2 = 0x4, /*!< phrase conforms to WPA/WPA2 */ + NSAPI_SECURITY_UNKNOWN = 0xFF, /*!< unknown/unsupported security in scan results */ +} nsapi_security_t; /** Maximum size of IP address representation */ @@ -148,6 +163,18 @@ typedef enum nsapi_option { NSAPI_RCVBUF, /*!< Sets recv buffer size */ } nsapi_option_t; +/** nsapi_wifi_ap structure + * + * Structure representing a WiFi Access Point + */ +typedef struct nsapi_wifi_ap { + char ssid[33]; /* 32 is what 802.11 defines as longest possible name; +1 for the \0 */ + uint8_t bssid[6]; + nsapi_security_t security; + int8_t rssi; + uint8_t channel; +} nsapi_wifi_ap_t; + /** nsapi_stack structure * diff --git a/libraries/.mbedignore b/features/unsupported/.mbedignore similarity index 100% rename from libraries/.mbedignore rename to features/unsupported/.mbedignore diff --git a/libraries/USBDevice/USBAudio/USBAudio.cpp b/features/unsupported/USBDevice/USBAudio/USBAudio.cpp similarity index 100% rename from libraries/USBDevice/USBAudio/USBAudio.cpp rename to features/unsupported/USBDevice/USBAudio/USBAudio.cpp diff --git a/libraries/USBDevice/USBAudio/USBAudio.h b/features/unsupported/USBDevice/USBAudio/USBAudio.h similarity index 100% rename from libraries/USBDevice/USBAudio/USBAudio.h rename to features/unsupported/USBDevice/USBAudio/USBAudio.h diff --git a/libraries/USBDevice/USBAudio/USBAudio_Types.h b/features/unsupported/USBDevice/USBAudio/USBAudio_Types.h similarity index 100% rename from libraries/USBDevice/USBAudio/USBAudio_Types.h rename to features/unsupported/USBDevice/USBAudio/USBAudio_Types.h diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/inc/devdrv_usb_function_api.h b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/inc/devdrv_usb_function_api.h similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/inc/devdrv_usb_function_api.h rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/inc/devdrv_usb_function_api.h diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/inc/usb_function.h b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/inc/usb_function.h similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/inc/usb_function.h rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/inc/usb_function.h diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/inc/usb_function_version.h b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/inc/usb_function_version.h similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/inc/usb_function_version.h rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/inc/usb_function_version.h diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/inc/usb0_function.h b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/inc/usb0_function.h similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/inc/usb0_function.h rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/inc/usb0_function.h diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/inc/usb0_function_api.h b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/inc/usb0_function_api.h similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/inc/usb0_function_api.h rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/inc/usb0_function_api.h diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/inc/usb0_function_dmacdrv.h b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/inc/usb0_function_dmacdrv.h similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/inc/usb0_function_dmacdrv.h rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/inc/usb0_function_dmacdrv.h diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_function_dataio.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_function_dataio.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_function_dataio.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_function_dataio.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_function_dma.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_function_dma.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_function_dma.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_function_dma.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_function_intrn.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_function_intrn.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_function_intrn.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_function_intrn.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_function_lib.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_function_lib.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_function_lib.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_function_lib.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/function/usb0_function_api.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/function/usb0_function_api.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/function/usb0_function_api.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/function/usb0_function_api.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/function/usb0_function_controlrw.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/function/usb0_function_controlrw.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/function/usb0_function_controlrw.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/function/usb0_function_controlrw.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/function/usb0_function_global.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/function/usb0_function_global.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/function/usb0_function_global.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/function/usb0_function_global.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/function/usb0_function_sig.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/function/usb0_function_sig.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/function/usb0_function_sig.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/function/usb0_function_sig.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/function/usb0_function_sub.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/function/usb0_function_sub.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/function/usb0_function_sub.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/function/usb0_function_sub.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/userdef/usb0_function_dmacdrv.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/userdef/usb0_function_dmacdrv.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/userdef/usb0_function_dmacdrv.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/userdef/usb0_function_dmacdrv.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/userdef/usb0_function_userdef.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/userdef/usb0_function_userdef.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/userdef/usb0_function_userdef.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/userdef/usb0_function_userdef.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/inc/usb1_function.h b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/inc/usb1_function.h similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/inc/usb1_function.h rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/inc/usb1_function.h diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/inc/usb1_function_api.h b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/inc/usb1_function_api.h similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/inc/usb1_function_api.h rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/inc/usb1_function_api.h diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/inc/usb1_function_dmacdrv.h b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/inc/usb1_function_dmacdrv.h similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/inc/usb1_function_dmacdrv.h rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/inc/usb1_function_dmacdrv.h diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_function_dataio.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_function_dataio.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_function_dataio.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_function_dataio.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_function_dma.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_function_dma.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_function_dma.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_function_dma.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_function_intrn.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_function_intrn.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_function_intrn.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_function_intrn.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_function_lib.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_function_lib.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_function_lib.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_function_lib.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/function/usb1_function_api.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/function/usb1_function_api.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/function/usb1_function_api.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/function/usb1_function_api.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/function/usb1_function_controlrw.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/function/usb1_function_controlrw.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/function/usb1_function_controlrw.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/function/usb1_function_controlrw.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/function/usb1_function_global.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/function/usb1_function_global.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/function/usb1_function_global.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/function/usb1_function_global.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/function/usb1_function_sig.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/function/usb1_function_sig.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/function/usb1_function_sig.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/function/usb1_function_sig.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/function/usb1_function_sub.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/function/usb1_function_sub.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/function/usb1_function_sub.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/function/usb1_function_sub.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/userdef/usb1_function_dmacdrv.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/userdef/usb1_function_dmacdrv.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/userdef/usb1_function_dmacdrv.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/userdef/usb1_function_dmacdrv.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/userdef/usb1_function_userdef.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/userdef/usb1_function_userdef.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/userdef/usb1_function_userdef.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/userdef/usb1_function_userdef.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb_function_setting.h b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb_function_setting.h similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb_function_setting.h rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/usb_function_setting.h diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/devdrv_usb_function_api.h b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/devdrv_usb_function_api.h similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/devdrv_usb_function_api.h rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/devdrv_usb_function_api.h diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/usb_function.h b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/usb_function.h similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/usb_function.h rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/usb_function.h diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/usb_function_version.h b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/usb_function_version.h similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/usb_function_version.h rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/usb_function_version.h diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/inc/usb0_function.h b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/inc/usb0_function.h similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/inc/usb0_function.h rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/inc/usb0_function.h diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/inc/usb0_function_api.h b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/inc/usb0_function_api.h similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/inc/usb0_function_api.h rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/inc/usb0_function_api.h diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/inc/usb0_function_dmacdrv.h b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/inc/usb0_function_dmacdrv.h similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/inc/usb0_function_dmacdrv.h rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/inc/usb0_function_dmacdrv.h diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_function_dataio.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_function_dataio.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_function_dataio.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_function_dataio.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_function_dma.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_function_dma.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_function_dma.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_function_dma.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_function_intrn.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_function_intrn.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_function_intrn.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_function_intrn.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_function_lib.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_function_lib.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_function_lib.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_function_lib.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/function/usb0_function_api.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/function/usb0_function_api.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/function/usb0_function_api.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/function/usb0_function_api.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/function/usb0_function_controlrw.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/function/usb0_function_controlrw.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/function/usb0_function_controlrw.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/function/usb0_function_controlrw.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/function/usb0_function_global.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/function/usb0_function_global.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/function/usb0_function_global.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/function/usb0_function_global.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/function/usb0_function_sig.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/function/usb0_function_sig.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/function/usb0_function_sig.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/function/usb0_function_sig.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/function/usb0_function_sub.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/function/usb0_function_sub.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/function/usb0_function_sub.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/function/usb0_function_sub.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/userdef/usb0_function_dmacdrv.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/userdef/usb0_function_dmacdrv.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/userdef/usb0_function_dmacdrv.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/userdef/usb0_function_dmacdrv.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/userdef/usb0_function_userdef.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/userdef/usb0_function_userdef.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/userdef/usb0_function_userdef.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/userdef/usb0_function_userdef.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/inc/usb1_function.h b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/inc/usb1_function.h similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/inc/usb1_function.h rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/inc/usb1_function.h diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/inc/usb1_function_api.h b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/inc/usb1_function_api.h similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/inc/usb1_function_api.h rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/inc/usb1_function_api.h diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/inc/usb1_function_dmacdrv.h b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/inc/usb1_function_dmacdrv.h similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/inc/usb1_function_dmacdrv.h rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/inc/usb1_function_dmacdrv.h diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_function_dataio.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_function_dataio.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_function_dataio.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_function_dataio.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_function_dma.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_function_dma.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_function_dma.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_function_dma.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_function_intrn.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_function_intrn.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_function_intrn.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_function_intrn.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_function_lib.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_function_lib.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_function_lib.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_function_lib.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/function/usb1_function_api.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/function/usb1_function_api.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/function/usb1_function_api.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/function/usb1_function_api.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/function/usb1_function_controlrw.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/function/usb1_function_controlrw.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/function/usb1_function_controlrw.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/function/usb1_function_controlrw.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/function/usb1_function_global.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/function/usb1_function_global.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/function/usb1_function_global.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/function/usb1_function_global.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/function/usb1_function_sig.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/function/usb1_function_sig.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/function/usb1_function_sig.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/function/usb1_function_sig.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/function/usb1_function_sub.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/function/usb1_function_sub.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/function/usb1_function_sub.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/function/usb1_function_sub.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/userdef/usb1_function_dmacdrv.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/userdef/usb1_function_dmacdrv.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/userdef/usb1_function_dmacdrv.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/userdef/usb1_function_dmacdrv.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/userdef/usb1_function_userdef.c b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/userdef/usb1_function_userdef.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/userdef/usb1_function_userdef.c rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/userdef/usb1_function_userdef.c diff --git a/libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb_function_setting.h b/features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb_function_setting.h similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb_function_setting.h rename to features/unsupported/USBDevice/USBDevice/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb_function_setting.h diff --git a/libraries/USBDevice/USBDevice/TARGET_Silicon_Labs/inc/em_usb.h b/features/unsupported/USBDevice/USBDevice/TARGET_Silicon_Labs/inc/em_usb.h similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_Silicon_Labs/inc/em_usb.h rename to features/unsupported/USBDevice/USBDevice/TARGET_Silicon_Labs/inc/em_usb.h diff --git a/libraries/USBDevice/USBDevice/TARGET_Silicon_Labs/inc/em_usbd.h b/features/unsupported/USBDevice/USBDevice/TARGET_Silicon_Labs/inc/em_usbd.h similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_Silicon_Labs/inc/em_usbd.h rename to features/unsupported/USBDevice/USBDevice/TARGET_Silicon_Labs/inc/em_usbd.h diff --git a/libraries/USBDevice/USBDevice/TARGET_Silicon_Labs/inc/em_usbh.h b/features/unsupported/USBDevice/USBDevice/TARGET_Silicon_Labs/inc/em_usbh.h similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_Silicon_Labs/inc/em_usbh.h rename to features/unsupported/USBDevice/USBDevice/TARGET_Silicon_Labs/inc/em_usbh.h diff --git a/libraries/USBDevice/USBDevice/TARGET_Silicon_Labs/inc/em_usbhal.h b/features/unsupported/USBDevice/USBDevice/TARGET_Silicon_Labs/inc/em_usbhal.h similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_Silicon_Labs/inc/em_usbhal.h rename to features/unsupported/USBDevice/USBDevice/TARGET_Silicon_Labs/inc/em_usbhal.h diff --git a/libraries/USBDevice/USBDevice/TARGET_Silicon_Labs/inc/em_usbtypes.h b/features/unsupported/USBDevice/USBDevice/TARGET_Silicon_Labs/inc/em_usbtypes.h similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_Silicon_Labs/inc/em_usbtypes.h rename to features/unsupported/USBDevice/USBDevice/TARGET_Silicon_Labs/inc/em_usbtypes.h diff --git a/libraries/USBDevice/USBDevice/TARGET_Silicon_Labs/inc/usbconfig.h b/features/unsupported/USBDevice/USBDevice/TARGET_Silicon_Labs/inc/usbconfig.h similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_Silicon_Labs/inc/usbconfig.h rename to features/unsupported/USBDevice/USBDevice/TARGET_Silicon_Labs/inc/usbconfig.h diff --git a/libraries/USBDevice/USBDevice/TARGET_Silicon_Labs/src/em_usbd.c b/features/unsupported/USBDevice/USBDevice/TARGET_Silicon_Labs/src/em_usbd.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_Silicon_Labs/src/em_usbd.c rename to features/unsupported/USBDevice/USBDevice/TARGET_Silicon_Labs/src/em_usbd.c diff --git a/libraries/USBDevice/USBDevice/TARGET_Silicon_Labs/src/em_usbdep.c b/features/unsupported/USBDevice/USBDevice/TARGET_Silicon_Labs/src/em_usbdep.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_Silicon_Labs/src/em_usbdep.c rename to features/unsupported/USBDevice/USBDevice/TARGET_Silicon_Labs/src/em_usbdep.c diff --git a/libraries/USBDevice/USBDevice/TARGET_Silicon_Labs/src/em_usbdint.c b/features/unsupported/USBDevice/USBDevice/TARGET_Silicon_Labs/src/em_usbdint.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_Silicon_Labs/src/em_usbdint.c rename to features/unsupported/USBDevice/USBDevice/TARGET_Silicon_Labs/src/em_usbdint.c diff --git a/libraries/USBDevice/USBDevice/TARGET_Silicon_Labs/src/em_usbhal.c b/features/unsupported/USBDevice/USBDevice/TARGET_Silicon_Labs/src/em_usbhal.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_Silicon_Labs/src/em_usbhal.c rename to features/unsupported/USBDevice/USBDevice/TARGET_Silicon_Labs/src/em_usbhal.c diff --git a/libraries/USBDevice/USBDevice/TARGET_Silicon_Labs/src/em_usbtimer.c b/features/unsupported/USBDevice/USBDevice/TARGET_Silicon_Labs/src/em_usbtimer.c similarity index 100% rename from libraries/USBDevice/USBDevice/TARGET_Silicon_Labs/src/em_usbtimer.c rename to features/unsupported/USBDevice/USBDevice/TARGET_Silicon_Labs/src/em_usbtimer.c diff --git a/libraries/USBDevice/USBDevice/USBDescriptor.h b/features/unsupported/USBDevice/USBDevice/USBDescriptor.h similarity index 100% rename from libraries/USBDevice/USBDevice/USBDescriptor.h rename to features/unsupported/USBDevice/USBDevice/USBDescriptor.h diff --git a/libraries/USBDevice/USBDevice/USBDevice.cpp b/features/unsupported/USBDevice/USBDevice/USBDevice.cpp similarity index 100% rename from libraries/USBDevice/USBDevice/USBDevice.cpp rename to features/unsupported/USBDevice/USBDevice/USBDevice.cpp diff --git a/libraries/USBDevice/USBDevice/USBDevice.h b/features/unsupported/USBDevice/USBDevice/USBDevice.h similarity index 100% rename from libraries/USBDevice/USBDevice/USBDevice.h rename to features/unsupported/USBDevice/USBDevice/USBDevice.h diff --git a/libraries/USBDevice/USBDevice/USBDevice_Types.h b/features/unsupported/USBDevice/USBDevice/USBDevice_Types.h similarity index 100% rename from libraries/USBDevice/USBDevice/USBDevice_Types.h rename to features/unsupported/USBDevice/USBDevice/USBDevice_Types.h diff --git a/libraries/USBDevice/USBDevice/USBEndpoints.h b/features/unsupported/USBDevice/USBDevice/USBEndpoints.h similarity index 100% rename from libraries/USBDevice/USBDevice/USBEndpoints.h rename to features/unsupported/USBDevice/USBDevice/USBEndpoints.h diff --git a/libraries/USBDevice/USBDevice/USBEndpoints_EFM32.h b/features/unsupported/USBDevice/USBDevice/USBEndpoints_EFM32.h similarity index 100% rename from libraries/USBDevice/USBDevice/USBEndpoints_EFM32.h rename to features/unsupported/USBDevice/USBDevice/USBEndpoints_EFM32.h diff --git a/libraries/USBDevice/USBDevice/USBEndpoints_KL25Z.h b/features/unsupported/USBDevice/USBDevice/USBEndpoints_KL25Z.h similarity index 100% rename from libraries/USBDevice/USBDevice/USBEndpoints_KL25Z.h rename to features/unsupported/USBDevice/USBDevice/USBEndpoints_KL25Z.h diff --git a/libraries/USBDevice/USBDevice/USBEndpoints_LPC11U.h b/features/unsupported/USBDevice/USBDevice/USBEndpoints_LPC11U.h similarity index 100% rename from libraries/USBDevice/USBDevice/USBEndpoints_LPC11U.h rename to features/unsupported/USBDevice/USBDevice/USBEndpoints_LPC11U.h diff --git a/libraries/USBDevice/USBDevice/USBEndpoints_LPC17_LPC23.h b/features/unsupported/USBDevice/USBDevice/USBEndpoints_LPC17_LPC23.h similarity index 100% rename from libraries/USBDevice/USBDevice/USBEndpoints_LPC17_LPC23.h rename to features/unsupported/USBDevice/USBDevice/USBEndpoints_LPC17_LPC23.h diff --git a/libraries/USBDevice/USBDevice/USBEndpoints_Maxim.h b/features/unsupported/USBDevice/USBDevice/USBEndpoints_Maxim.h similarity index 100% rename from libraries/USBDevice/USBDevice/USBEndpoints_Maxim.h rename to features/unsupported/USBDevice/USBDevice/USBEndpoints_Maxim.h diff --git a/libraries/USBDevice/USBDevice/USBEndpoints_RZ_A1H.h b/features/unsupported/USBDevice/USBDevice/USBEndpoints_RZ_A1H.h similarity index 100% rename from libraries/USBDevice/USBDevice/USBEndpoints_RZ_A1H.h rename to features/unsupported/USBDevice/USBDevice/USBEndpoints_RZ_A1H.h diff --git a/libraries/USBDevice/USBDevice/USBEndpoints_STM32F4.h b/features/unsupported/USBDevice/USBDevice/USBEndpoints_STM32F4.h similarity index 100% rename from libraries/USBDevice/USBDevice/USBEndpoints_STM32F4.h rename to features/unsupported/USBDevice/USBDevice/USBEndpoints_STM32F4.h diff --git a/libraries/USBDevice/USBDevice/USBHAL.h b/features/unsupported/USBDevice/USBDevice/USBHAL.h similarity index 100% rename from libraries/USBDevice/USBDevice/USBHAL.h rename to features/unsupported/USBDevice/USBDevice/USBHAL.h diff --git a/libraries/USBDevice/USBDevice/USBHAL_EFM32.cpp b/features/unsupported/USBDevice/USBDevice/USBHAL_EFM32.cpp similarity index 100% rename from libraries/USBDevice/USBDevice/USBHAL_EFM32.cpp rename to features/unsupported/USBDevice/USBDevice/USBHAL_EFM32.cpp diff --git a/libraries/USBDevice/USBDevice/USBHAL_KL25Z.cpp b/features/unsupported/USBDevice/USBDevice/USBHAL_KL25Z.cpp similarity index 100% rename from libraries/USBDevice/USBDevice/USBHAL_KL25Z.cpp rename to features/unsupported/USBDevice/USBDevice/USBHAL_KL25Z.cpp diff --git a/libraries/USBDevice/USBDevice/USBHAL_LPC11U.cpp b/features/unsupported/USBDevice/USBDevice/USBHAL_LPC11U.cpp similarity index 100% rename from libraries/USBDevice/USBDevice/USBHAL_LPC11U.cpp rename to features/unsupported/USBDevice/USBDevice/USBHAL_LPC11U.cpp diff --git a/libraries/USBDevice/USBDevice/USBHAL_LPC17.cpp b/features/unsupported/USBDevice/USBDevice/USBHAL_LPC17.cpp similarity index 100% rename from libraries/USBDevice/USBDevice/USBHAL_LPC17.cpp rename to features/unsupported/USBDevice/USBDevice/USBHAL_LPC17.cpp diff --git a/libraries/USBDevice/USBDevice/USBHAL_LPC40.cpp b/features/unsupported/USBDevice/USBDevice/USBHAL_LPC40.cpp similarity index 100% rename from libraries/USBDevice/USBDevice/USBHAL_LPC40.cpp rename to features/unsupported/USBDevice/USBDevice/USBHAL_LPC40.cpp diff --git a/libraries/USBDevice/USBDevice/USBHAL_Maxim.cpp b/features/unsupported/USBDevice/USBDevice/USBHAL_Maxim.cpp similarity index 100% rename from libraries/USBDevice/USBDevice/USBHAL_Maxim.cpp rename to features/unsupported/USBDevice/USBDevice/USBHAL_Maxim.cpp diff --git a/libraries/USBDevice/USBDevice/USBHAL_RZ_A1H.cpp b/features/unsupported/USBDevice/USBDevice/USBHAL_RZ_A1H.cpp similarity index 100% rename from libraries/USBDevice/USBDevice/USBHAL_RZ_A1H.cpp rename to features/unsupported/USBDevice/USBDevice/USBHAL_RZ_A1H.cpp diff --git a/libraries/USBDevice/USBDevice/USBHAL_STM32F4.cpp b/features/unsupported/USBDevice/USBDevice/USBHAL_STM32F4.cpp similarity index 100% rename from libraries/USBDevice/USBDevice/USBHAL_STM32F4.cpp rename to features/unsupported/USBDevice/USBDevice/USBHAL_STM32F4.cpp diff --git a/libraries/USBDevice/USBDevice/USBRegs_STM32.h b/features/unsupported/USBDevice/USBDevice/USBRegs_STM32.h similarity index 100% rename from libraries/USBDevice/USBDevice/USBRegs_STM32.h rename to features/unsupported/USBDevice/USBDevice/USBRegs_STM32.h diff --git a/libraries/USBDevice/USBHID/USBHID.cpp b/features/unsupported/USBDevice/USBHID/USBHID.cpp similarity index 100% rename from libraries/USBDevice/USBHID/USBHID.cpp rename to features/unsupported/USBDevice/USBHID/USBHID.cpp diff --git a/libraries/USBDevice/USBHID/USBHID.h b/features/unsupported/USBDevice/USBHID/USBHID.h similarity index 100% rename from libraries/USBDevice/USBHID/USBHID.h rename to features/unsupported/USBDevice/USBHID/USBHID.h diff --git a/libraries/USBDevice/USBHID/USBHID_Types.h b/features/unsupported/USBDevice/USBHID/USBHID_Types.h similarity index 100% rename from libraries/USBDevice/USBHID/USBHID_Types.h rename to features/unsupported/USBDevice/USBHID/USBHID_Types.h diff --git a/libraries/USBDevice/USBHID/USBKeyboard.cpp b/features/unsupported/USBDevice/USBHID/USBKeyboard.cpp similarity index 100% rename from libraries/USBDevice/USBHID/USBKeyboard.cpp rename to features/unsupported/USBDevice/USBHID/USBKeyboard.cpp diff --git a/libraries/USBDevice/USBHID/USBKeyboard.h b/features/unsupported/USBDevice/USBHID/USBKeyboard.h similarity index 100% rename from libraries/USBDevice/USBHID/USBKeyboard.h rename to features/unsupported/USBDevice/USBHID/USBKeyboard.h diff --git a/libraries/USBDevice/USBHID/USBMouse.cpp b/features/unsupported/USBDevice/USBHID/USBMouse.cpp similarity index 100% rename from libraries/USBDevice/USBHID/USBMouse.cpp rename to features/unsupported/USBDevice/USBHID/USBMouse.cpp diff --git a/libraries/USBDevice/USBHID/USBMouse.h b/features/unsupported/USBDevice/USBHID/USBMouse.h similarity index 100% rename from libraries/USBDevice/USBHID/USBMouse.h rename to features/unsupported/USBDevice/USBHID/USBMouse.h diff --git a/libraries/USBDevice/USBHID/USBMouseKeyboard.cpp b/features/unsupported/USBDevice/USBHID/USBMouseKeyboard.cpp similarity index 100% rename from libraries/USBDevice/USBHID/USBMouseKeyboard.cpp rename to features/unsupported/USBDevice/USBHID/USBMouseKeyboard.cpp diff --git a/libraries/USBDevice/USBHID/USBMouseKeyboard.h b/features/unsupported/USBDevice/USBHID/USBMouseKeyboard.h similarity index 100% rename from libraries/USBDevice/USBHID/USBMouseKeyboard.h rename to features/unsupported/USBDevice/USBHID/USBMouseKeyboard.h diff --git a/libraries/USBDevice/USBMIDI/MIDIMessage.h b/features/unsupported/USBDevice/USBMIDI/MIDIMessage.h similarity index 100% rename from libraries/USBDevice/USBMIDI/MIDIMessage.h rename to features/unsupported/USBDevice/USBMIDI/MIDIMessage.h diff --git a/libraries/USBDevice/USBMIDI/USBMIDI.cpp b/features/unsupported/USBDevice/USBMIDI/USBMIDI.cpp similarity index 100% rename from libraries/USBDevice/USBMIDI/USBMIDI.cpp rename to features/unsupported/USBDevice/USBMIDI/USBMIDI.cpp diff --git a/libraries/USBDevice/USBMIDI/USBMIDI.h b/features/unsupported/USBDevice/USBMIDI/USBMIDI.h similarity index 100% rename from libraries/USBDevice/USBMIDI/USBMIDI.h rename to features/unsupported/USBDevice/USBMIDI/USBMIDI.h diff --git a/libraries/USBDevice/USBMSD/USBMSD.cpp b/features/unsupported/USBDevice/USBMSD/USBMSD.cpp similarity index 100% rename from libraries/USBDevice/USBMSD/USBMSD.cpp rename to features/unsupported/USBDevice/USBMSD/USBMSD.cpp diff --git a/libraries/USBDevice/USBMSD/USBMSD.h b/features/unsupported/USBDevice/USBMSD/USBMSD.h similarity index 100% rename from libraries/USBDevice/USBMSD/USBMSD.h rename to features/unsupported/USBDevice/USBMSD/USBMSD.h diff --git a/libraries/USBDevice/USBSerial/CircBuffer.h b/features/unsupported/USBDevice/USBSerial/CircBuffer.h similarity index 100% rename from libraries/USBDevice/USBSerial/CircBuffer.h rename to features/unsupported/USBDevice/USBSerial/CircBuffer.h diff --git a/libraries/USBDevice/USBSerial/USBCDC.cpp b/features/unsupported/USBDevice/USBSerial/USBCDC.cpp similarity index 100% rename from libraries/USBDevice/USBSerial/USBCDC.cpp rename to features/unsupported/USBDevice/USBSerial/USBCDC.cpp diff --git a/libraries/USBDevice/USBSerial/USBCDC.h b/features/unsupported/USBDevice/USBSerial/USBCDC.h similarity index 100% rename from libraries/USBDevice/USBSerial/USBCDC.h rename to features/unsupported/USBDevice/USBSerial/USBCDC.h diff --git a/libraries/USBDevice/USBSerial/USBSerial.cpp b/features/unsupported/USBDevice/USBSerial/USBSerial.cpp similarity index 100% rename from libraries/USBDevice/USBSerial/USBSerial.cpp rename to features/unsupported/USBDevice/USBSerial/USBSerial.cpp diff --git a/libraries/USBDevice/USBSerial/USBSerial.h b/features/unsupported/USBDevice/USBSerial/USBSerial.h similarity index 100% rename from libraries/USBDevice/USBSerial/USBSerial.h rename to features/unsupported/USBDevice/USBSerial/USBSerial.h diff --git a/libraries/USBHost/USBHost/IUSBEnumerator.h b/features/unsupported/USBHost/USBHost/IUSBEnumerator.h similarity index 100% rename from libraries/USBHost/USBHost/IUSBEnumerator.h rename to features/unsupported/USBHost/USBHost/IUSBEnumerator.h diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/inc/devdrv_usb_host_api.h b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/inc/devdrv_usb_host_api.h similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/inc/devdrv_usb_host_api.h rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/inc/devdrv_usb_host_api.h diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/inc/usb_host.h b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/inc/usb_host.h similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/inc/usb_host.h rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/inc/usb_host.h diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/inc/usb_host_version.h b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/inc/usb_host_version.h similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/inc/usb_host_version.h rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/inc/usb_host_version.h diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/ohci_wrapp_RZ_A1.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/ohci_wrapp_RZ_A1.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/ohci_wrapp_RZ_A1.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/ohci_wrapp_RZ_A1.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/ohci_wrapp_RZ_A1.h b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/ohci_wrapp_RZ_A1.h similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/ohci_wrapp_RZ_A1.h rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/ohci_wrapp_RZ_A1.h diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/ohci_wrapp_RZ_A1_local.h b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/ohci_wrapp_RZ_A1_local.h similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/ohci_wrapp_RZ_A1_local.h rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/ohci_wrapp_RZ_A1_local.h diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/ohci_wrapp_pipe.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/ohci_wrapp_pipe.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/ohci_wrapp_pipe.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/ohci_wrapp_pipe.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/inc/usb0_host.h b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/inc/usb0_host.h similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/inc/usb0_host.h rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/inc/usb0_host.h diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/inc/usb0_host_api.h b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/inc/usb0_host_api.h similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/inc/usb0_host_api.h rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/inc/usb0_host_api.h diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/inc/usb0_host_dmacdrv.h b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/inc/usb0_host_dmacdrv.h similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/inc/usb0_host_dmacdrv.h rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/inc/usb0_host_dmacdrv.h diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_host_dataio.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_host_dataio.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_host_dataio.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_host_dataio.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_host_dma.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_host_dma.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_host_dma.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_host_dma.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_host_intrn.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_host_intrn.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_host_intrn.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_host_intrn.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_host_lib.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_host_lib.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_host_lib.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/common/usb0_host_lib.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/host/usb0_host_controlrw.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/host/usb0_host_controlrw.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/host/usb0_host_controlrw.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/host/usb0_host_controlrw.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/host/usb0_host_drv_api.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/host/usb0_host_drv_api.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/host/usb0_host_drv_api.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/host/usb0_host_drv_api.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/host/usb0_host_global.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/host/usb0_host_global.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/host/usb0_host_global.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/host/usb0_host_global.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/host/usb0_host_usbint.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/host/usb0_host_usbint.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/host/usb0_host_usbint.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/host/usb0_host_usbint.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/host/usb0_host_usbsig.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/host/usb0_host_usbsig.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/host/usb0_host_usbsig.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/host/usb0_host_usbsig.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/userdef/usb0_host_dmacdrv.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/userdef/usb0_host_dmacdrv.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/userdef/usb0_host_dmacdrv.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/userdef/usb0_host_dmacdrv.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/userdef/usb0_host_userdef.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/userdef/usb0_host_userdef.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/userdef/usb0_host_userdef.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb0/src/userdef/usb0_host_userdef.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/inc/usb1_host.h b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/inc/usb1_host.h similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/inc/usb1_host.h rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/inc/usb1_host.h diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/inc/usb1_host_api.h b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/inc/usb1_host_api.h similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/inc/usb1_host_api.h rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/inc/usb1_host_api.h diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/inc/usb1_host_dmacdrv.h b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/inc/usb1_host_dmacdrv.h similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/inc/usb1_host_dmacdrv.h rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/inc/usb1_host_dmacdrv.h diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_host_dataio.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_host_dataio.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_host_dataio.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_host_dataio.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_host_dma.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_host_dma.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_host_dma.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_host_dma.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_host_intrn.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_host_intrn.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_host_intrn.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_host_intrn.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_host_lib.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_host_lib.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_host_lib.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/common/usb1_host_lib.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/host/usb1_host_controlrw.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/host/usb1_host_controlrw.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/host/usb1_host_controlrw.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/host/usb1_host_controlrw.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/host/usb1_host_drv_api.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/host/usb1_host_drv_api.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/host/usb1_host_drv_api.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/host/usb1_host_drv_api.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/host/usb1_host_global.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/host/usb1_host_global.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/host/usb1_host_global.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/host/usb1_host_global.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/host/usb1_host_usbint.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/host/usb1_host_usbint.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/host/usb1_host_usbint.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/host/usb1_host_usbint.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/host/usb1_host_usbsig.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/host/usb1_host_usbsig.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/host/usb1_host_usbsig.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/host/usb1_host_usbsig.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/userdef/usb1_host_dmacdrv.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/userdef/usb1_host_dmacdrv.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/userdef/usb1_host_dmacdrv.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/userdef/usb1_host_dmacdrv.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/userdef/usb1_host_userdef.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/userdef/usb1_host_userdef.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/userdef/usb1_host_userdef.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb1/src/userdef/usb1_host_userdef.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb_host_setting.h b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb_host_setting.h similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb_host_setting.h rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/usb_host_setting.h diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/devdrv_usb_host_api.h b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/devdrv_usb_host_api.h similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/devdrv_usb_host_api.h rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/devdrv_usb_host_api.h diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/usb_host.h b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/usb_host.h similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/usb_host.h rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/usb_host.h diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/usb_host_version.h b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/usb_host_version.h similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/usb_host_version.h rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/usb_host_version.h diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/ohci_wrapp_RZ_A1.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/ohci_wrapp_RZ_A1.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/ohci_wrapp_RZ_A1.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/ohci_wrapp_RZ_A1.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/ohci_wrapp_RZ_A1.h b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/ohci_wrapp_RZ_A1.h similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/ohci_wrapp_RZ_A1.h rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/ohci_wrapp_RZ_A1.h diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/ohci_wrapp_RZ_A1_local.h b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/ohci_wrapp_RZ_A1_local.h similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/ohci_wrapp_RZ_A1_local.h rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/ohci_wrapp_RZ_A1_local.h diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/ohci_wrapp_pipe.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/ohci_wrapp_pipe.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/ohci_wrapp_pipe.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/ohci_wrapp_pipe.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/inc/usb0_host.h b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/inc/usb0_host.h similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/inc/usb0_host.h rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/inc/usb0_host.h diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/inc/usb0_host_api.h b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/inc/usb0_host_api.h similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/inc/usb0_host_api.h rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/inc/usb0_host_api.h diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/inc/usb0_host_dmacdrv.h b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/inc/usb0_host_dmacdrv.h similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/inc/usb0_host_dmacdrv.h rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/inc/usb0_host_dmacdrv.h diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_host_dataio.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_host_dataio.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_host_dataio.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_host_dataio.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_host_dma.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_host_dma.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_host_dma.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_host_dma.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_host_intrn.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_host_intrn.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_host_intrn.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_host_intrn.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_host_lib.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_host_lib.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_host_lib.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/common/usb0_host_lib.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/host/usb0_host_controlrw.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/host/usb0_host_controlrw.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/host/usb0_host_controlrw.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/host/usb0_host_controlrw.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/host/usb0_host_drv_api.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/host/usb0_host_drv_api.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/host/usb0_host_drv_api.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/host/usb0_host_drv_api.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/host/usb0_host_global.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/host/usb0_host_global.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/host/usb0_host_global.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/host/usb0_host_global.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/host/usb0_host_usbint.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/host/usb0_host_usbint.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/host/usb0_host_usbint.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/host/usb0_host_usbint.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/host/usb0_host_usbsig.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/host/usb0_host_usbsig.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/host/usb0_host_usbsig.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/host/usb0_host_usbsig.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/userdef/usb0_host_dmacdrv.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/userdef/usb0_host_dmacdrv.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/userdef/usb0_host_dmacdrv.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/userdef/usb0_host_dmacdrv.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/userdef/usb0_host_userdef.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/userdef/usb0_host_userdef.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/userdef/usb0_host_userdef.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb0/src/userdef/usb0_host_userdef.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/inc/usb1_host.h b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/inc/usb1_host.h similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/inc/usb1_host.h rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/inc/usb1_host.h diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/inc/usb1_host_api.h b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/inc/usb1_host_api.h similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/inc/usb1_host_api.h rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/inc/usb1_host_api.h diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/inc/usb1_host_dmacdrv.h b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/inc/usb1_host_dmacdrv.h similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/inc/usb1_host_dmacdrv.h rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/inc/usb1_host_dmacdrv.h diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_host_dataio.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_host_dataio.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_host_dataio.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_host_dataio.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_host_dma.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_host_dma.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_host_dma.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_host_dma.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_host_intrn.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_host_intrn.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_host_intrn.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_host_intrn.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_host_lib.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_host_lib.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_host_lib.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/common/usb1_host_lib.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/host/usb1_host_controlrw.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/host/usb1_host_controlrw.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/host/usb1_host_controlrw.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/host/usb1_host_controlrw.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/host/usb1_host_drv_api.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/host/usb1_host_drv_api.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/host/usb1_host_drv_api.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/host/usb1_host_drv_api.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/host/usb1_host_global.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/host/usb1_host_global.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/host/usb1_host_global.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/host/usb1_host_global.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/host/usb1_host_usbint.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/host/usb1_host_usbint.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/host/usb1_host_usbint.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/host/usb1_host_usbint.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/host/usb1_host_usbsig.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/host/usb1_host_usbsig.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/host/usb1_host_usbsig.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/host/usb1_host_usbsig.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/userdef/usb1_host_dmacdrv.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/userdef/usb1_host_dmacdrv.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/userdef/usb1_host_dmacdrv.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/userdef/usb1_host_dmacdrv.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/userdef/usb1_host_userdef.c b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/userdef/usb1_host_userdef.c similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/userdef/usb1_host_userdef.c rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb1/src/userdef/usb1_host_userdef.c diff --git a/libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb_host_setting.h b/features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb_host_setting.h similarity index 100% rename from libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb_host_setting.h rename to features/unsupported/USBHost/USBHost/TARGET_RENESAS/TARGET_VK_RZ_A1H/usb_host_setting.h diff --git a/libraries/USBHost/USBHost/USBDeviceConnected.cpp b/features/unsupported/USBHost/USBHost/USBDeviceConnected.cpp similarity index 100% rename from libraries/USBHost/USBHost/USBDeviceConnected.cpp rename to features/unsupported/USBHost/USBHost/USBDeviceConnected.cpp diff --git a/libraries/USBHost/USBHost/USBDeviceConnected.h b/features/unsupported/USBHost/USBHost/USBDeviceConnected.h similarity index 100% rename from libraries/USBHost/USBHost/USBDeviceConnected.h rename to features/unsupported/USBHost/USBHost/USBDeviceConnected.h diff --git a/libraries/USBHost/USBHost/USBEndpoint.cpp b/features/unsupported/USBHost/USBHost/USBEndpoint.cpp similarity index 100% rename from libraries/USBHost/USBHost/USBEndpoint.cpp rename to features/unsupported/USBHost/USBHost/USBEndpoint.cpp diff --git a/libraries/USBHost/USBHost/USBEndpoint.h b/features/unsupported/USBHost/USBHost/USBEndpoint.h similarity index 100% rename from libraries/USBHost/USBHost/USBEndpoint.h rename to features/unsupported/USBHost/USBHost/USBEndpoint.h diff --git a/libraries/USBHost/USBHost/USBHALHost.h b/features/unsupported/USBHost/USBHost/USBHALHost.h similarity index 100% rename from libraries/USBHost/USBHost/USBHALHost.h rename to features/unsupported/USBHost/USBHost/USBHALHost.h diff --git a/libraries/USBHost/USBHost/USBHALHost_LPC17.cpp b/features/unsupported/USBHost/USBHost/USBHALHost_LPC17.cpp similarity index 100% rename from libraries/USBHost/USBHost/USBHALHost_LPC17.cpp rename to features/unsupported/USBHost/USBHost/USBHALHost_LPC17.cpp diff --git a/libraries/USBHost/USBHost/USBHALHost_RZ_A1.cpp b/features/unsupported/USBHost/USBHost/USBHALHost_RZ_A1.cpp similarity index 100% rename from libraries/USBHost/USBHost/USBHALHost_RZ_A1.cpp rename to features/unsupported/USBHost/USBHost/USBHALHost_RZ_A1.cpp diff --git a/libraries/USBHost/USBHost/USBHost.cpp b/features/unsupported/USBHost/USBHost/USBHost.cpp similarity index 100% rename from libraries/USBHost/USBHost/USBHost.cpp rename to features/unsupported/USBHost/USBHost/USBHost.cpp diff --git a/libraries/USBHost/USBHost/USBHost.h b/features/unsupported/USBHost/USBHost/USBHost.h similarity index 100% rename from libraries/USBHost/USBHost/USBHost.h rename to features/unsupported/USBHost/USBHost/USBHost.h diff --git a/libraries/USBHost/USBHost/USBHostConf.h b/features/unsupported/USBHost/USBHost/USBHostConf.h similarity index 100% rename from libraries/USBHost/USBHost/USBHostConf.h rename to features/unsupported/USBHost/USBHost/USBHostConf.h diff --git a/libraries/USBHost/USBHost/USBHostTypes.h b/features/unsupported/USBHost/USBHost/USBHostTypes.h similarity index 100% rename from libraries/USBHost/USBHost/USBHostTypes.h rename to features/unsupported/USBHost/USBHost/USBHostTypes.h diff --git a/libraries/USBHost/USBHost/dbg.h b/features/unsupported/USBHost/USBHost/dbg.h similarity index 100% rename from libraries/USBHost/USBHost/dbg.h rename to features/unsupported/USBHost/USBHost/dbg.h diff --git a/libraries/USBHost/USBHost3GModule/IUSBHostSerial.h b/features/unsupported/USBHost/USBHost3GModule/IUSBHostSerial.h similarity index 100% rename from libraries/USBHost/USBHost3GModule/IUSBHostSerial.h rename to features/unsupported/USBHost/USBHost3GModule/IUSBHostSerial.h diff --git a/libraries/USBHost/USBHost3GModule/IUSBHostSerialListener.h b/features/unsupported/USBHost/USBHost3GModule/IUSBHostSerialListener.h similarity index 100% rename from libraries/USBHost/USBHost3GModule/IUSBHostSerialListener.h rename to features/unsupported/USBHost/USBHost3GModule/IUSBHostSerialListener.h diff --git a/libraries/USBHost/USBHost3GModule/WANDongle.cpp b/features/unsupported/USBHost/USBHost3GModule/WANDongle.cpp similarity index 100% rename from libraries/USBHost/USBHost3GModule/WANDongle.cpp rename to features/unsupported/USBHost/USBHost3GModule/WANDongle.cpp diff --git a/libraries/USBHost/USBHost3GModule/WANDongle.h b/features/unsupported/USBHost/USBHost3GModule/WANDongle.h similarity index 100% rename from libraries/USBHost/USBHost3GModule/WANDongle.h rename to features/unsupported/USBHost/USBHost3GModule/WANDongle.h diff --git a/libraries/USBHost/USBHost3GModule/WANDongleInitializer.h b/features/unsupported/USBHost/USBHost3GModule/WANDongleInitializer.h similarity index 100% rename from libraries/USBHost/USBHost3GModule/WANDongleInitializer.h rename to features/unsupported/USBHost/USBHost3GModule/WANDongleInitializer.h diff --git a/libraries/USBHost/USBHost3GModule/WANDongleSerialPort.cpp b/features/unsupported/USBHost/USBHost3GModule/WANDongleSerialPort.cpp similarity index 100% rename from libraries/USBHost/USBHost3GModule/WANDongleSerialPort.cpp rename to features/unsupported/USBHost/USBHost3GModule/WANDongleSerialPort.cpp diff --git a/libraries/USBHost/USBHost3GModule/WANDongleSerialPort.h b/features/unsupported/USBHost/USBHost3GModule/WANDongleSerialPort.h similarity index 100% rename from libraries/USBHost/USBHost3GModule/WANDongleSerialPort.h rename to features/unsupported/USBHost/USBHost3GModule/WANDongleSerialPort.h diff --git a/libraries/USBHost/USBHostHID/USBHostKeyboard.cpp b/features/unsupported/USBHost/USBHostHID/USBHostKeyboard.cpp similarity index 100% rename from libraries/USBHost/USBHostHID/USBHostKeyboard.cpp rename to features/unsupported/USBHost/USBHostHID/USBHostKeyboard.cpp diff --git a/libraries/USBHost/USBHostHID/USBHostKeyboard.h b/features/unsupported/USBHost/USBHostHID/USBHostKeyboard.h similarity index 100% rename from libraries/USBHost/USBHostHID/USBHostKeyboard.h rename to features/unsupported/USBHost/USBHostHID/USBHostKeyboard.h diff --git a/libraries/USBHost/USBHostHID/USBHostMouse.cpp b/features/unsupported/USBHost/USBHostHID/USBHostMouse.cpp similarity index 100% rename from libraries/USBHost/USBHostHID/USBHostMouse.cpp rename to features/unsupported/USBHost/USBHostHID/USBHostMouse.cpp diff --git a/libraries/USBHost/USBHostHID/USBHostMouse.h b/features/unsupported/USBHost/USBHostHID/USBHostMouse.h similarity index 100% rename from libraries/USBHost/USBHostHID/USBHostMouse.h rename to features/unsupported/USBHost/USBHostHID/USBHostMouse.h diff --git a/libraries/USBHost/USBHostHub/USBHostHub.cpp b/features/unsupported/USBHost/USBHostHub/USBHostHub.cpp similarity index 100% rename from libraries/USBHost/USBHostHub/USBHostHub.cpp rename to features/unsupported/USBHost/USBHostHub/USBHostHub.cpp diff --git a/libraries/USBHost/USBHostHub/USBHostHub.h b/features/unsupported/USBHost/USBHostHub/USBHostHub.h similarity index 100% rename from libraries/USBHost/USBHostHub/USBHostHub.h rename to features/unsupported/USBHost/USBHostHub/USBHostHub.h diff --git a/libraries/USBHost/USBHostMIDI/USBHostMIDI.cpp b/features/unsupported/USBHost/USBHostMIDI/USBHostMIDI.cpp similarity index 100% rename from libraries/USBHost/USBHostMIDI/USBHostMIDI.cpp rename to features/unsupported/USBHost/USBHostMIDI/USBHostMIDI.cpp diff --git a/libraries/USBHost/USBHostMIDI/USBHostMIDI.h b/features/unsupported/USBHost/USBHostMIDI/USBHostMIDI.h similarity index 100% rename from libraries/USBHost/USBHostMIDI/USBHostMIDI.h rename to features/unsupported/USBHost/USBHostMIDI/USBHostMIDI.h diff --git a/libraries/USBHost/USBHostMSD/USBHostMSD.cpp b/features/unsupported/USBHost/USBHostMSD/USBHostMSD.cpp similarity index 100% rename from libraries/USBHost/USBHostMSD/USBHostMSD.cpp rename to features/unsupported/USBHost/USBHostMSD/USBHostMSD.cpp diff --git a/libraries/USBHost/USBHostMSD/USBHostMSD.h b/features/unsupported/USBHost/USBHostMSD/USBHostMSD.h similarity index 100% rename from libraries/USBHost/USBHostMSD/USBHostMSD.h rename to features/unsupported/USBHost/USBHostMSD/USBHostMSD.h diff --git a/libraries/USBHost/USBHostSerial/MtxCircBuffer.h b/features/unsupported/USBHost/USBHostSerial/MtxCircBuffer.h similarity index 100% rename from libraries/USBHost/USBHostSerial/MtxCircBuffer.h rename to features/unsupported/USBHost/USBHostSerial/MtxCircBuffer.h diff --git a/libraries/USBHost/USBHostSerial/USBHostSerial.cpp b/features/unsupported/USBHost/USBHostSerial/USBHostSerial.cpp similarity index 100% rename from libraries/USBHost/USBHostSerial/USBHostSerial.cpp rename to features/unsupported/USBHost/USBHostSerial/USBHostSerial.cpp diff --git a/libraries/USBHost/USBHostSerial/USBHostSerial.h b/features/unsupported/USBHost/USBHostSerial/USBHostSerial.h similarity index 100% rename from libraries/USBHost/USBHostSerial/USBHostSerial.h rename to features/unsupported/USBHost/USBHostSerial/USBHostSerial.h diff --git a/libraries/doc/mbed.dia b/features/unsupported/doc/mbed.dia similarity index 100% rename from libraries/doc/mbed.dia rename to features/unsupported/doc/mbed.dia diff --git a/libraries/doc/net/doc.txt b/features/unsupported/doc/net/doc.txt similarity index 100% rename from libraries/doc/net/doc.txt rename to features/unsupported/doc/net/doc.txt diff --git a/libraries/doc/net/layers.dia b/features/unsupported/doc/net/layers.dia similarity index 100% rename from libraries/doc/net/layers.dia rename to features/unsupported/doc/net/layers.dia diff --git a/libraries/doc/net/source.txt b/features/unsupported/doc/net/source.txt similarity index 100% rename from libraries/doc/net/source.txt rename to features/unsupported/doc/net/source.txt diff --git a/libraries/doc/net/sys_arch.txt b/features/unsupported/doc/net/sys_arch.txt similarity index 100% rename from libraries/doc/net/sys_arch.txt rename to features/unsupported/doc/net/sys_arch.txt diff --git a/libraries/doc/net/tcp.dia b/features/unsupported/doc/net/tcp.dia similarity index 100% rename from libraries/doc/net/tcp.dia rename to features/unsupported/doc/net/tcp.dia diff --git a/libraries/doc/net/udp.dia b/features/unsupported/doc/net/udp.dia similarity index 100% rename from libraries/doc/net/udp.dia rename to features/unsupported/doc/net/udp.dia diff --git a/libraries/doc/rtos.txt b/features/unsupported/doc/rtos.txt similarity index 100% rename from libraries/doc/rtos.txt rename to features/unsupported/doc/rtos.txt diff --git a/libraries/doc/style.xml b/features/unsupported/doc/style.xml similarity index 100% rename from libraries/doc/style.xml rename to features/unsupported/doc/style.xml diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_abs_f32.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_abs_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_abs_f32.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_abs_f32.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_abs_q15.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_abs_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_abs_q15.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_abs_q15.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_abs_q31.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_abs_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_abs_q31.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_abs_q31.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_abs_q7.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_abs_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_abs_q7.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_abs_q7.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_add_f32.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_add_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_add_f32.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_add_f32.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_add_q15.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_add_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_add_q15.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_add_q15.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_add_q31.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_add_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_add_q31.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_add_q31.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_add_q7.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_add_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_add_q7.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_add_q7.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_dot_prod_f32.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_dot_prod_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_dot_prod_f32.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_dot_prod_f32.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_dot_prod_q15.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_dot_prod_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_dot_prod_q15.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_dot_prod_q15.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_dot_prod_q31.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_dot_prod_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_dot_prod_q31.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_dot_prod_q31.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_dot_prod_q7.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_dot_prod_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_dot_prod_q7.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_dot_prod_q7.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_mult_f32.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_mult_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_mult_f32.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_mult_f32.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_mult_q15.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_mult_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_mult_q15.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_mult_q15.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_mult_q31.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_mult_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_mult_q31.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_mult_q31.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_mult_q7.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_mult_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_mult_q7.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_mult_q7.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_negate_f32.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_negate_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_negate_f32.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_negate_f32.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_negate_q15.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_negate_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_negate_q15.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_negate_q15.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_negate_q31.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_negate_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_negate_q31.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_negate_q31.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_negate_q7.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_negate_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_negate_q7.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_negate_q7.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_offset_f32.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_offset_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_offset_f32.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_offset_f32.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_offset_q15.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_offset_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_offset_q15.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_offset_q15.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_offset_q31.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_offset_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_offset_q31.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_offset_q31.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_offset_q7.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_offset_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_offset_q7.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_offset_q7.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_scale_f32.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_scale_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_scale_f32.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_scale_f32.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_scale_q15.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_scale_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_scale_q15.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_scale_q15.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_scale_q31.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_scale_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_scale_q31.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_scale_q31.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_scale_q7.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_scale_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_scale_q7.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_scale_q7.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_shift_q15.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_shift_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_shift_q15.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_shift_q15.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_shift_q31.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_shift_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_shift_q31.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_shift_q31.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_shift_q7.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_shift_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_shift_q7.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_shift_q7.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_sub_f32.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_sub_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_sub_f32.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_sub_f32.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_sub_q15.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_sub_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_sub_q15.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_sub_q15.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_sub_q31.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_sub_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_sub_q31.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_sub_q31.c diff --git a/libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_sub_q7.c b/features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_sub_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/BasicMathFunctions/arm_sub_q7.c rename to features/unsupported/dsp/cmsis_dsp/BasicMathFunctions/arm_sub_q7.c diff --git a/libraries/dsp/cmsis_dsp/CommonTables/arm_common_tables.c b/features/unsupported/dsp/cmsis_dsp/CommonTables/arm_common_tables.c similarity index 100% rename from libraries/dsp/cmsis_dsp/CommonTables/arm_common_tables.c rename to features/unsupported/dsp/cmsis_dsp/CommonTables/arm_common_tables.c diff --git a/libraries/dsp/cmsis_dsp/CommonTables/arm_const_structs.c b/features/unsupported/dsp/cmsis_dsp/CommonTables/arm_const_structs.c similarity index 100% rename from libraries/dsp/cmsis_dsp/CommonTables/arm_const_structs.c rename to features/unsupported/dsp/cmsis_dsp/CommonTables/arm_const_structs.c diff --git a/libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_conj_f32.c b/features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_conj_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_conj_f32.c rename to features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_conj_f32.c diff --git a/libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_conj_q15.c b/features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_conj_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_conj_q15.c rename to features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_conj_q15.c diff --git a/libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_conj_q31.c b/features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_conj_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_conj_q31.c rename to features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_conj_q31.c diff --git a/libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_dot_prod_f32.c b/features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_dot_prod_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_dot_prod_f32.c rename to features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_dot_prod_f32.c diff --git a/libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_dot_prod_q15.c b/features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_dot_prod_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_dot_prod_q15.c rename to features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_dot_prod_q15.c diff --git a/libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_dot_prod_q31.c b/features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_dot_prod_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_dot_prod_q31.c rename to features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_dot_prod_q31.c diff --git a/libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mag_f32.c b/features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mag_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mag_f32.c rename to features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mag_f32.c diff --git a/libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mag_q15.c b/features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mag_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mag_q15.c rename to features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mag_q15.c diff --git a/libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mag_q31.c b/features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mag_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mag_q31.c rename to features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mag_q31.c diff --git a/libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mag_squared_f32.c b/features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mag_squared_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mag_squared_f32.c rename to features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mag_squared_f32.c diff --git a/libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mag_squared_q15.c b/features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mag_squared_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mag_squared_q15.c rename to features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mag_squared_q15.c diff --git a/libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mag_squared_q31.c b/features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mag_squared_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mag_squared_q31.c rename to features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mag_squared_q31.c diff --git a/libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mult_cmplx_f32.c b/features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mult_cmplx_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mult_cmplx_f32.c rename to features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mult_cmplx_f32.c diff --git a/libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mult_cmplx_q15.c b/features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mult_cmplx_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mult_cmplx_q15.c rename to features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mult_cmplx_q15.c diff --git a/libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mult_cmplx_q31.c b/features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mult_cmplx_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mult_cmplx_q31.c rename to features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mult_cmplx_q31.c diff --git a/libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mult_real_f32.c b/features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mult_real_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mult_real_f32.c rename to features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mult_real_f32.c diff --git a/libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mult_real_q15.c b/features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mult_real_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mult_real_q15.c rename to features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mult_real_q15.c diff --git a/libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mult_real_q31.c b/features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mult_real_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mult_real_q31.c rename to features/unsupported/dsp/cmsis_dsp/ComplexMathFunctions/arm_cmplx_mult_real_q31.c diff --git a/libraries/dsp/cmsis_dsp/ControllerFunctions/arm_pid_init_f32.c b/features/unsupported/dsp/cmsis_dsp/ControllerFunctions/arm_pid_init_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/ControllerFunctions/arm_pid_init_f32.c rename to features/unsupported/dsp/cmsis_dsp/ControllerFunctions/arm_pid_init_f32.c diff --git a/libraries/dsp/cmsis_dsp/ControllerFunctions/arm_pid_init_q15.c b/features/unsupported/dsp/cmsis_dsp/ControllerFunctions/arm_pid_init_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/ControllerFunctions/arm_pid_init_q15.c rename to features/unsupported/dsp/cmsis_dsp/ControllerFunctions/arm_pid_init_q15.c diff --git a/libraries/dsp/cmsis_dsp/ControllerFunctions/arm_pid_init_q31.c b/features/unsupported/dsp/cmsis_dsp/ControllerFunctions/arm_pid_init_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/ControllerFunctions/arm_pid_init_q31.c rename to features/unsupported/dsp/cmsis_dsp/ControllerFunctions/arm_pid_init_q31.c diff --git a/libraries/dsp/cmsis_dsp/ControllerFunctions/arm_pid_reset_f32.c b/features/unsupported/dsp/cmsis_dsp/ControllerFunctions/arm_pid_reset_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/ControllerFunctions/arm_pid_reset_f32.c rename to features/unsupported/dsp/cmsis_dsp/ControllerFunctions/arm_pid_reset_f32.c diff --git a/libraries/dsp/cmsis_dsp/ControllerFunctions/arm_pid_reset_q15.c b/features/unsupported/dsp/cmsis_dsp/ControllerFunctions/arm_pid_reset_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/ControllerFunctions/arm_pid_reset_q15.c rename to features/unsupported/dsp/cmsis_dsp/ControllerFunctions/arm_pid_reset_q15.c diff --git a/libraries/dsp/cmsis_dsp/ControllerFunctions/arm_pid_reset_q31.c b/features/unsupported/dsp/cmsis_dsp/ControllerFunctions/arm_pid_reset_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/ControllerFunctions/arm_pid_reset_q31.c rename to features/unsupported/dsp/cmsis_dsp/ControllerFunctions/arm_pid_reset_q31.c diff --git a/libraries/dsp/cmsis_dsp/ControllerFunctions/arm_sin_cos_f32.c b/features/unsupported/dsp/cmsis_dsp/ControllerFunctions/arm_sin_cos_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/ControllerFunctions/arm_sin_cos_f32.c rename to features/unsupported/dsp/cmsis_dsp/ControllerFunctions/arm_sin_cos_f32.c diff --git a/libraries/dsp/cmsis_dsp/ControllerFunctions/arm_sin_cos_q31.c b/features/unsupported/dsp/cmsis_dsp/ControllerFunctions/arm_sin_cos_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/ControllerFunctions/arm_sin_cos_q31.c rename to features/unsupported/dsp/cmsis_dsp/ControllerFunctions/arm_sin_cos_q31.c diff --git a/libraries/dsp/cmsis_dsp/FastMathFunctions/arm_cos_f32.c b/features/unsupported/dsp/cmsis_dsp/FastMathFunctions/arm_cos_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FastMathFunctions/arm_cos_f32.c rename to features/unsupported/dsp/cmsis_dsp/FastMathFunctions/arm_cos_f32.c diff --git a/libraries/dsp/cmsis_dsp/FastMathFunctions/arm_cos_q15.c b/features/unsupported/dsp/cmsis_dsp/FastMathFunctions/arm_cos_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FastMathFunctions/arm_cos_q15.c rename to features/unsupported/dsp/cmsis_dsp/FastMathFunctions/arm_cos_q15.c diff --git a/libraries/dsp/cmsis_dsp/FastMathFunctions/arm_cos_q31.c b/features/unsupported/dsp/cmsis_dsp/FastMathFunctions/arm_cos_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FastMathFunctions/arm_cos_q31.c rename to features/unsupported/dsp/cmsis_dsp/FastMathFunctions/arm_cos_q31.c diff --git a/libraries/dsp/cmsis_dsp/FastMathFunctions/arm_sin_f32.c b/features/unsupported/dsp/cmsis_dsp/FastMathFunctions/arm_sin_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FastMathFunctions/arm_sin_f32.c rename to features/unsupported/dsp/cmsis_dsp/FastMathFunctions/arm_sin_f32.c diff --git a/libraries/dsp/cmsis_dsp/FastMathFunctions/arm_sin_q15.c b/features/unsupported/dsp/cmsis_dsp/FastMathFunctions/arm_sin_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FastMathFunctions/arm_sin_q15.c rename to features/unsupported/dsp/cmsis_dsp/FastMathFunctions/arm_sin_q15.c diff --git a/libraries/dsp/cmsis_dsp/FastMathFunctions/arm_sin_q31.c b/features/unsupported/dsp/cmsis_dsp/FastMathFunctions/arm_sin_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FastMathFunctions/arm_sin_q31.c rename to features/unsupported/dsp/cmsis_dsp/FastMathFunctions/arm_sin_q31.c diff --git a/libraries/dsp/cmsis_dsp/FastMathFunctions/arm_sqrt_q15.c b/features/unsupported/dsp/cmsis_dsp/FastMathFunctions/arm_sqrt_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FastMathFunctions/arm_sqrt_q15.c rename to features/unsupported/dsp/cmsis_dsp/FastMathFunctions/arm_sqrt_q15.c diff --git a/libraries/dsp/cmsis_dsp/FastMathFunctions/arm_sqrt_q31.c b/features/unsupported/dsp/cmsis_dsp/FastMathFunctions/arm_sqrt_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FastMathFunctions/arm_sqrt_q31.c rename to features/unsupported/dsp/cmsis_dsp/FastMathFunctions/arm_sqrt_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_32x64_init_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_32x64_init_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_32x64_init_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_32x64_init_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_32x64_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_32x64_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_32x64_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_32x64_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_f32.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_f32.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_f32.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_fast_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_fast_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_fast_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_fast_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_fast_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_fast_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_fast_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_fast_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_init_f32.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_init_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_init_f32.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_init_f32.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_init_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_init_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_init_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_init_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_init_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_init_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_init_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_init_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df1_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df2T_f32.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df2T_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df2T_f32.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df2T_f32.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df2T_f64.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df2T_f64.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df2T_f64.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df2T_f64.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df2T_init_f32.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df2T_init_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df2T_init_f32.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df2T_init_f32.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df2T_init_f64.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df2T_init_f64.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df2T_init_f64.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_df2T_init_f64.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_stereo_df2T_f32.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_stereo_df2T_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_stereo_df2T_f32.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_stereo_df2T_f32.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_stereo_df2T_init_f32.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_stereo_df2T_init_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_stereo_df2T_init_f32.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_biquad_cascade_stereo_df2T_init_f32.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_f32.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_f32.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_f32.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_fast_opt_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_fast_opt_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_fast_opt_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_fast_opt_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_fast_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_fast_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_fast_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_fast_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_fast_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_fast_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_fast_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_fast_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_opt_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_opt_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_opt_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_opt_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_opt_q7.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_opt_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_opt_q7.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_opt_q7.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_f32.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_f32.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_f32.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_fast_opt_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_fast_opt_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_fast_opt_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_fast_opt_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_fast_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_fast_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_fast_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_fast_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_fast_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_fast_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_fast_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_fast_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_opt_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_opt_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_opt_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_opt_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_opt_q7.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_opt_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_opt_q7.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_opt_q7.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_q7.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_q7.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_partial_q7.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_q7.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_conv_q7.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_conv_q7.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_f32.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_f32.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_f32.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_fast_opt_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_fast_opt_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_fast_opt_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_fast_opt_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_fast_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_fast_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_fast_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_fast_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_fast_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_fast_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_fast_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_fast_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_opt_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_opt_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_opt_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_opt_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_opt_q7.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_opt_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_opt_q7.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_opt_q7.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_q7.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_q7.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_correlate_q7.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_f32.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_f32.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_f32.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_fast_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_fast_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_fast_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_fast_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_fast_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_fast_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_fast_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_fast_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_init_f32.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_init_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_init_f32.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_init_f32.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_init_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_init_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_init_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_init_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_init_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_init_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_init_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_init_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_decimate_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_f32.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_f32.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_f32.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_fast_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_fast_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_fast_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_fast_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_fast_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_fast_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_fast_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_fast_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_init_f32.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_init_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_init_f32.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_init_f32.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_init_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_init_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_init_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_init_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_init_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_init_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_init_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_init_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_init_q7.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_init_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_init_q7.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_init_q7.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_interpolate_f32.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_interpolate_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_interpolate_f32.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_interpolate_f32.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_interpolate_init_f32.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_interpolate_init_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_interpolate_init_f32.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_interpolate_init_f32.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_interpolate_init_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_interpolate_init_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_interpolate_init_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_interpolate_init_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_interpolate_init_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_interpolate_init_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_interpolate_init_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_interpolate_init_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_interpolate_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_interpolate_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_interpolate_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_interpolate_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_interpolate_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_interpolate_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_interpolate_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_interpolate_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_lattice_f32.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_lattice_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_lattice_f32.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_lattice_f32.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_lattice_init_f32.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_lattice_init_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_lattice_init_f32.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_lattice_init_f32.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_lattice_init_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_lattice_init_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_lattice_init_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_lattice_init_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_lattice_init_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_lattice_init_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_lattice_init_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_lattice_init_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_lattice_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_lattice_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_lattice_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_lattice_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_lattice_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_lattice_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_lattice_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_lattice_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_q7.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_q7.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_q7.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_f32.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_f32.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_f32.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_init_f32.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_init_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_init_f32.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_init_f32.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_init_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_init_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_init_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_init_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_init_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_init_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_init_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_init_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_init_q7.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_init_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_init_q7.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_init_q7.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_q7.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_q7.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_fir_sparse_q7.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_iir_lattice_f32.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_iir_lattice_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_iir_lattice_f32.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_iir_lattice_f32.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_iir_lattice_init_f32.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_iir_lattice_init_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_iir_lattice_init_f32.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_iir_lattice_init_f32.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_iir_lattice_init_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_iir_lattice_init_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_iir_lattice_init_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_iir_lattice_init_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_iir_lattice_init_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_iir_lattice_init_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_iir_lattice_init_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_iir_lattice_init_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_iir_lattice_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_iir_lattice_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_iir_lattice_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_iir_lattice_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_iir_lattice_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_iir_lattice_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_iir_lattice_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_iir_lattice_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_lms_f32.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_lms_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_lms_f32.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_lms_f32.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_lms_init_f32.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_lms_init_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_lms_init_f32.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_lms_init_f32.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_lms_init_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_lms_init_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_lms_init_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_lms_init_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_lms_init_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_lms_init_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_lms_init_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_lms_init_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_lms_norm_f32.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_lms_norm_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_lms_norm_f32.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_lms_norm_f32.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_lms_norm_init_f32.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_lms_norm_init_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_lms_norm_init_f32.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_lms_norm_init_f32.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_lms_norm_init_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_lms_norm_init_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_lms_norm_init_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_lms_norm_init_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_lms_norm_init_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_lms_norm_init_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_lms_norm_init_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_lms_norm_init_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_lms_norm_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_lms_norm_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_lms_norm_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_lms_norm_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_lms_norm_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_lms_norm_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_lms_norm_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_lms_norm_q31.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_lms_q15.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_lms_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_lms_q15.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_lms_q15.c diff --git a/libraries/dsp/cmsis_dsp/FilteringFunctions/arm_lms_q31.c b/features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_lms_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/FilteringFunctions/arm_lms_q31.c rename to features/unsupported/dsp/cmsis_dsp/FilteringFunctions/arm_lms_q31.c diff --git a/libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_add_f32.c b/features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_add_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_add_f32.c rename to features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_add_f32.c diff --git a/libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_add_q15.c b/features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_add_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_add_q15.c rename to features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_add_q15.c diff --git a/libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_add_q31.c b/features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_add_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_add_q31.c rename to features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_add_q31.c diff --git a/libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_cmplx_mult_f32.c b/features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_cmplx_mult_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_cmplx_mult_f32.c rename to features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_cmplx_mult_f32.c diff --git a/libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_cmplx_mult_q15.c b/features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_cmplx_mult_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_cmplx_mult_q15.c rename to features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_cmplx_mult_q15.c diff --git a/libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_cmplx_mult_q31.c b/features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_cmplx_mult_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_cmplx_mult_q31.c rename to features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_cmplx_mult_q31.c diff --git a/libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_init_f32.c b/features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_init_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_init_f32.c rename to features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_init_f32.c diff --git a/libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_init_q15.c b/features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_init_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_init_q15.c rename to features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_init_q15.c diff --git a/libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_init_q31.c b/features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_init_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_init_q31.c rename to features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_init_q31.c diff --git a/libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_inverse_f32.c b/features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_inverse_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_inverse_f32.c rename to features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_inverse_f32.c diff --git a/libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_inverse_f64.c b/features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_inverse_f64.c similarity index 100% rename from libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_inverse_f64.c rename to features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_inverse_f64.c diff --git a/libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_mult_f32.c b/features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_mult_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_mult_f32.c rename to features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_mult_f32.c diff --git a/libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_mult_fast_q15.c b/features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_mult_fast_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_mult_fast_q15.c rename to features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_mult_fast_q15.c diff --git a/libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_mult_fast_q31.c b/features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_mult_fast_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_mult_fast_q31.c rename to features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_mult_fast_q31.c diff --git a/libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_mult_q15.c b/features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_mult_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_mult_q15.c rename to features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_mult_q15.c diff --git a/libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_mult_q31.c b/features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_mult_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_mult_q31.c rename to features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_mult_q31.c diff --git a/libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_scale_f32.c b/features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_scale_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_scale_f32.c rename to features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_scale_f32.c diff --git a/libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_scale_q15.c b/features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_scale_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_scale_q15.c rename to features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_scale_q15.c diff --git a/libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_scale_q31.c b/features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_scale_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_scale_q31.c rename to features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_scale_q31.c diff --git a/libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_sub_f32.c b/features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_sub_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_sub_f32.c rename to features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_sub_f32.c diff --git a/libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_sub_q15.c b/features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_sub_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_sub_q15.c rename to features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_sub_q15.c diff --git a/libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_sub_q31.c b/features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_sub_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_sub_q31.c rename to features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_sub_q31.c diff --git a/libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_trans_f32.c b/features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_trans_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_trans_f32.c rename to features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_trans_f32.c diff --git a/libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_trans_q15.c b/features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_trans_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_trans_q15.c rename to features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_trans_q15.c diff --git a/libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_trans_q31.c b/features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_trans_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/MatrixFunctions/arm_mat_trans_q31.c rename to features/unsupported/dsp/cmsis_dsp/MatrixFunctions/arm_mat_trans_q31.c diff --git a/libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_max_f32.c b/features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_max_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_max_f32.c rename to features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_max_f32.c diff --git a/libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_max_q15.c b/features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_max_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_max_q15.c rename to features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_max_q15.c diff --git a/libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_max_q31.c b/features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_max_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_max_q31.c rename to features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_max_q31.c diff --git a/libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_max_q7.c b/features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_max_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_max_q7.c rename to features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_max_q7.c diff --git a/libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_mean_f32.c b/features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_mean_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_mean_f32.c rename to features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_mean_f32.c diff --git a/libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_mean_q15.c b/features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_mean_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_mean_q15.c rename to features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_mean_q15.c diff --git a/libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_mean_q31.c b/features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_mean_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_mean_q31.c rename to features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_mean_q31.c diff --git a/libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_mean_q7.c b/features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_mean_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_mean_q7.c rename to features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_mean_q7.c diff --git a/libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_min_f32.c b/features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_min_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_min_f32.c rename to features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_min_f32.c diff --git a/libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_min_q15.c b/features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_min_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_min_q15.c rename to features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_min_q15.c diff --git a/libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_min_q31.c b/features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_min_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_min_q31.c rename to features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_min_q31.c diff --git a/libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_min_q7.c b/features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_min_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_min_q7.c rename to features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_min_q7.c diff --git a/libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_power_f32.c b/features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_power_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_power_f32.c rename to features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_power_f32.c diff --git a/libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_power_q15.c b/features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_power_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_power_q15.c rename to features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_power_q15.c diff --git a/libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_power_q31.c b/features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_power_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_power_q31.c rename to features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_power_q31.c diff --git a/libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_power_q7.c b/features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_power_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_power_q7.c rename to features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_power_q7.c diff --git a/libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_rms_f32.c b/features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_rms_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_rms_f32.c rename to features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_rms_f32.c diff --git a/libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_rms_q15.c b/features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_rms_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_rms_q15.c rename to features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_rms_q15.c diff --git a/libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_rms_q31.c b/features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_rms_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_rms_q31.c rename to features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_rms_q31.c diff --git a/libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_std_f32.c b/features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_std_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_std_f32.c rename to features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_std_f32.c diff --git a/libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_std_q15.c b/features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_std_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_std_q15.c rename to features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_std_q15.c diff --git a/libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_std_q31.c b/features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_std_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_std_q31.c rename to features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_std_q31.c diff --git a/libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_var_f32.c b/features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_var_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_var_f32.c rename to features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_var_f32.c diff --git a/libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_var_q15.c b/features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_var_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_var_q15.c rename to features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_var_q15.c diff --git a/libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_var_q31.c b/features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_var_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/StatisticsFunctions/arm_var_q31.c rename to features/unsupported/dsp/cmsis_dsp/StatisticsFunctions/arm_var_q31.c diff --git a/libraries/dsp/cmsis_dsp/SupportFunctions/arm_copy_f32.c b/features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_copy_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/SupportFunctions/arm_copy_f32.c rename to features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_copy_f32.c diff --git a/libraries/dsp/cmsis_dsp/SupportFunctions/arm_copy_q15.c b/features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_copy_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/SupportFunctions/arm_copy_q15.c rename to features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_copy_q15.c diff --git a/libraries/dsp/cmsis_dsp/SupportFunctions/arm_copy_q31.c b/features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_copy_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/SupportFunctions/arm_copy_q31.c rename to features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_copy_q31.c diff --git a/libraries/dsp/cmsis_dsp/SupportFunctions/arm_copy_q7.c b/features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_copy_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/SupportFunctions/arm_copy_q7.c rename to features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_copy_q7.c diff --git a/libraries/dsp/cmsis_dsp/SupportFunctions/arm_fill_f32.c b/features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_fill_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/SupportFunctions/arm_fill_f32.c rename to features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_fill_f32.c diff --git a/libraries/dsp/cmsis_dsp/SupportFunctions/arm_fill_q15.c b/features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_fill_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/SupportFunctions/arm_fill_q15.c rename to features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_fill_q15.c diff --git a/libraries/dsp/cmsis_dsp/SupportFunctions/arm_fill_q31.c b/features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_fill_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/SupportFunctions/arm_fill_q31.c rename to features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_fill_q31.c diff --git a/libraries/dsp/cmsis_dsp/SupportFunctions/arm_fill_q7.c b/features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_fill_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/SupportFunctions/arm_fill_q7.c rename to features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_fill_q7.c diff --git a/libraries/dsp/cmsis_dsp/SupportFunctions/arm_float_to_q15.c b/features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_float_to_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/SupportFunctions/arm_float_to_q15.c rename to features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_float_to_q15.c diff --git a/libraries/dsp/cmsis_dsp/SupportFunctions/arm_float_to_q31.c b/features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_float_to_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/SupportFunctions/arm_float_to_q31.c rename to features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_float_to_q31.c diff --git a/libraries/dsp/cmsis_dsp/SupportFunctions/arm_float_to_q7.c b/features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_float_to_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/SupportFunctions/arm_float_to_q7.c rename to features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_float_to_q7.c diff --git a/libraries/dsp/cmsis_dsp/SupportFunctions/arm_q15_to_float.c b/features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_q15_to_float.c similarity index 100% rename from libraries/dsp/cmsis_dsp/SupportFunctions/arm_q15_to_float.c rename to features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_q15_to_float.c diff --git a/libraries/dsp/cmsis_dsp/SupportFunctions/arm_q15_to_q31.c b/features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_q15_to_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/SupportFunctions/arm_q15_to_q31.c rename to features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_q15_to_q31.c diff --git a/libraries/dsp/cmsis_dsp/SupportFunctions/arm_q15_to_q7.c b/features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_q15_to_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/SupportFunctions/arm_q15_to_q7.c rename to features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_q15_to_q7.c diff --git a/libraries/dsp/cmsis_dsp/SupportFunctions/arm_q31_to_float.c b/features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_q31_to_float.c similarity index 100% rename from libraries/dsp/cmsis_dsp/SupportFunctions/arm_q31_to_float.c rename to features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_q31_to_float.c diff --git a/libraries/dsp/cmsis_dsp/SupportFunctions/arm_q31_to_q15.c b/features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_q31_to_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/SupportFunctions/arm_q31_to_q15.c rename to features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_q31_to_q15.c diff --git a/libraries/dsp/cmsis_dsp/SupportFunctions/arm_q31_to_q7.c b/features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_q31_to_q7.c similarity index 100% rename from libraries/dsp/cmsis_dsp/SupportFunctions/arm_q31_to_q7.c rename to features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_q31_to_q7.c diff --git a/libraries/dsp/cmsis_dsp/SupportFunctions/arm_q7_to_float.c b/features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_q7_to_float.c similarity index 100% rename from libraries/dsp/cmsis_dsp/SupportFunctions/arm_q7_to_float.c rename to features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_q7_to_float.c diff --git a/libraries/dsp/cmsis_dsp/SupportFunctions/arm_q7_to_q15.c b/features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_q7_to_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/SupportFunctions/arm_q7_to_q15.c rename to features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_q7_to_q15.c diff --git a/libraries/dsp/cmsis_dsp/SupportFunctions/arm_q7_to_q31.c b/features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_q7_to_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/SupportFunctions/arm_q7_to_q31.c rename to features/unsupported/dsp/cmsis_dsp/SupportFunctions/arm_q7_to_q31.c diff --git a/libraries/dsp/cmsis_dsp/SupportFunctions/math_helper.c b/features/unsupported/dsp/cmsis_dsp/SupportFunctions/math_helper.c similarity index 100% rename from libraries/dsp/cmsis_dsp/SupportFunctions/math_helper.c rename to features/unsupported/dsp/cmsis_dsp/SupportFunctions/math_helper.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_bitreversal.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_bitreversal.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_bitreversal.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_bitreversal.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_bitreversal2.S b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_bitreversal2.S similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_bitreversal2.S rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_bitreversal2.S diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_f32.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_f32.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_f32.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_q15.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_q15.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_q15.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_q31.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_q31.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_q31.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix2_f32.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix2_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix2_f32.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix2_f32.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix2_init_f32.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix2_init_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix2_init_f32.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix2_init_f32.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix2_init_q15.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix2_init_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix2_init_q15.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix2_init_q15.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix2_init_q31.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix2_init_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix2_init_q31.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix2_init_q31.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix2_q15.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix2_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix2_q15.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix2_q15.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix2_q31.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix2_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix2_q31.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix2_q31.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix4_f32.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix4_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix4_f32.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix4_f32.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix4_init_f32.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix4_init_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix4_init_f32.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix4_init_f32.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix4_init_q15.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix4_init_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix4_init_q15.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix4_init_q15.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix4_init_q31.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix4_init_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix4_init_q31.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix4_init_q31.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix4_q15.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix4_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix4_q15.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix4_q15.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix4_q31.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix4_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix4_q31.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix4_q31.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix8_f32.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix8_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix8_f32.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_cfft_radix8_f32.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_dct4_f32.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_dct4_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_dct4_f32.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_dct4_f32.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_dct4_init_f32.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_dct4_init_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_dct4_init_f32.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_dct4_init_f32.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_dct4_init_q15.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_dct4_init_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_dct4_init_q15.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_dct4_init_q15.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_dct4_init_q31.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_dct4_init_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_dct4_init_q31.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_dct4_init_q31.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_dct4_q15.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_dct4_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_dct4_q15.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_dct4_q15.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_dct4_q31.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_dct4_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_dct4_q31.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_dct4_q31.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_rfft_f32.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_rfft_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_rfft_f32.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_rfft_f32.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_rfft_fast_f32.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_rfft_fast_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_rfft_fast_f32.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_rfft_fast_f32.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_rfft_fast_init_f32.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_rfft_fast_init_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_rfft_fast_init_f32.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_rfft_fast_init_f32.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_rfft_init_f32.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_rfft_init_f32.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_rfft_init_f32.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_rfft_init_f32.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_rfft_init_q15.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_rfft_init_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_rfft_init_q15.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_rfft_init_q15.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_rfft_init_q31.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_rfft_init_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_rfft_init_q31.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_rfft_init_q31.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_rfft_q15.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_rfft_q15.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_rfft_q15.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_rfft_q15.c diff --git a/libraries/dsp/cmsis_dsp/TransformFunctions/arm_rfft_q31.c b/features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_rfft_q31.c similarity index 100% rename from libraries/dsp/cmsis_dsp/TransformFunctions/arm_rfft_q31.c rename to features/unsupported/dsp/cmsis_dsp/TransformFunctions/arm_rfft_q31.c diff --git a/libraries/dsp/cmsis_dsp/arm_common_tables.h b/features/unsupported/dsp/cmsis_dsp/arm_common_tables.h similarity index 100% rename from libraries/dsp/cmsis_dsp/arm_common_tables.h rename to features/unsupported/dsp/cmsis_dsp/arm_common_tables.h diff --git a/hal/targets/cmsis/arm_const_structs.h b/features/unsupported/dsp/cmsis_dsp/arm_const_structs.h old mode 100755 new mode 100644 similarity index 100% rename from hal/targets/cmsis/arm_const_structs.h rename to features/unsupported/dsp/cmsis_dsp/arm_const_structs.h diff --git a/libraries/dsp/cmsis_dsp/arm_math.h b/features/unsupported/dsp/cmsis_dsp/arm_math.h similarity index 100% rename from libraries/dsp/cmsis_dsp/arm_math.h rename to features/unsupported/dsp/cmsis_dsp/arm_math.h diff --git a/libraries/dsp/cmsis_dsp/math_helper.h b/features/unsupported/dsp/cmsis_dsp/math_helper.h similarity index 100% rename from libraries/dsp/cmsis_dsp/math_helper.h rename to features/unsupported/dsp/cmsis_dsp/math_helper.h diff --git a/libraries/dsp/dsp/FIR_f32.h b/features/unsupported/dsp/dsp/FIR_f32.h similarity index 100% rename from libraries/dsp/dsp/FIR_f32.h rename to features/unsupported/dsp/dsp/FIR_f32.h diff --git a/libraries/dsp/dsp/Sine_f32.cpp b/features/unsupported/dsp/dsp/Sine_f32.cpp similarity index 100% rename from libraries/dsp/dsp/Sine_f32.cpp rename to features/unsupported/dsp/dsp/Sine_f32.cpp diff --git a/libraries/dsp/dsp/Sine_f32.h b/features/unsupported/dsp/dsp/Sine_f32.h similarity index 100% rename from libraries/dsp/dsp/Sine_f32.h rename to features/unsupported/dsp/dsp/Sine_f32.h diff --git a/libraries/dsp/dsp/dsp.h b/features/unsupported/dsp/dsp/dsp.h similarity index 100% rename from libraries/dsp/dsp/dsp.h rename to features/unsupported/dsp/dsp/dsp.h diff --git a/libraries/fs/fat/ChaN/ccsbcs.cpp b/features/unsupported/fs/fat/ChaN/ccsbcs.cpp similarity index 100% rename from libraries/fs/fat/ChaN/ccsbcs.cpp rename to features/unsupported/fs/fat/ChaN/ccsbcs.cpp diff --git a/libraries/fs/fat/ChaN/diskio.cpp b/features/unsupported/fs/fat/ChaN/diskio.cpp similarity index 100% rename from libraries/fs/fat/ChaN/diskio.cpp rename to features/unsupported/fs/fat/ChaN/diskio.cpp diff --git a/libraries/fs/fat/ChaN/diskio.h b/features/unsupported/fs/fat/ChaN/diskio.h similarity index 100% rename from libraries/fs/fat/ChaN/diskio.h rename to features/unsupported/fs/fat/ChaN/diskio.h diff --git a/libraries/fs/fat/ChaN/ff.cpp b/features/unsupported/fs/fat/ChaN/ff.cpp similarity index 100% rename from libraries/fs/fat/ChaN/ff.cpp rename to features/unsupported/fs/fat/ChaN/ff.cpp diff --git a/libraries/fs/fat/ChaN/ff.h b/features/unsupported/fs/fat/ChaN/ff.h similarity index 100% rename from libraries/fs/fat/ChaN/ff.h rename to features/unsupported/fs/fat/ChaN/ff.h diff --git a/libraries/fs/fat/ChaN/ffconf.h b/features/unsupported/fs/fat/ChaN/ffconf.h similarity index 100% rename from libraries/fs/fat/ChaN/ffconf.h rename to features/unsupported/fs/fat/ChaN/ffconf.h diff --git a/libraries/fs/fat/ChaN/integer.h b/features/unsupported/fs/fat/ChaN/integer.h similarity index 100% rename from libraries/fs/fat/ChaN/integer.h rename to features/unsupported/fs/fat/ChaN/integer.h diff --git a/libraries/fs/fat/FATDirHandle.cpp b/features/unsupported/fs/fat/FATDirHandle.cpp similarity index 100% rename from libraries/fs/fat/FATDirHandle.cpp rename to features/unsupported/fs/fat/FATDirHandle.cpp diff --git a/libraries/fs/fat/FATDirHandle.h b/features/unsupported/fs/fat/FATDirHandle.h similarity index 100% rename from libraries/fs/fat/FATDirHandle.h rename to features/unsupported/fs/fat/FATDirHandle.h diff --git a/libraries/fs/fat/FATFileHandle.cpp b/features/unsupported/fs/fat/FATFileHandle.cpp similarity index 100% rename from libraries/fs/fat/FATFileHandle.cpp rename to features/unsupported/fs/fat/FATFileHandle.cpp diff --git a/libraries/fs/fat/FATFileHandle.h b/features/unsupported/fs/fat/FATFileHandle.h similarity index 100% rename from libraries/fs/fat/FATFileHandle.h rename to features/unsupported/fs/fat/FATFileHandle.h diff --git a/libraries/fs/fat/FATFileSystem.cpp b/features/unsupported/fs/fat/FATFileSystem.cpp similarity index 100% rename from libraries/fs/fat/FATFileSystem.cpp rename to features/unsupported/fs/fat/FATFileSystem.cpp diff --git a/libraries/fs/fat/FATFileSystem.h b/features/unsupported/fs/fat/FATFileSystem.h similarity index 100% rename from libraries/fs/fat/FATFileSystem.h rename to features/unsupported/fs/fat/FATFileSystem.h diff --git a/libraries/fs/fat/MemFileSystem.h b/features/unsupported/fs/fat/MemFileSystem.h similarity index 100% rename from libraries/fs/fat/MemFileSystem.h rename to features/unsupported/fs/fat/MemFileSystem.h diff --git a/libraries/fs/sd/SDFileSystem.cpp b/features/unsupported/fs/sd/SDFileSystem.cpp similarity index 100% rename from libraries/fs/sd/SDFileSystem.cpp rename to features/unsupported/fs/sd/SDFileSystem.cpp diff --git a/libraries/fs/sd/SDFileSystem.h b/features/unsupported/fs/sd/SDFileSystem.h similarity index 100% rename from libraries/fs/sd/SDFileSystem.h rename to features/unsupported/fs/sd/SDFileSystem.h diff --git a/libraries/net/cellular/CellularModem/CellularModem.h b/features/unsupported/net/cellular/CellularModem/CellularModem.h similarity index 100% rename from libraries/net/cellular/CellularModem/CellularModem.h rename to features/unsupported/net/cellular/CellularModem/CellularModem.h diff --git a/libraries/net/cellular/CellularModem/at/ATCommandsInterface.cpp b/features/unsupported/net/cellular/CellularModem/at/ATCommandsInterface.cpp similarity index 100% rename from libraries/net/cellular/CellularModem/at/ATCommandsInterface.cpp rename to features/unsupported/net/cellular/CellularModem/at/ATCommandsInterface.cpp diff --git a/libraries/net/cellular/CellularModem/at/ATCommandsInterface.h b/features/unsupported/net/cellular/CellularModem/at/ATCommandsInterface.h similarity index 100% rename from libraries/net/cellular/CellularModem/at/ATCommandsInterface.h rename to features/unsupported/net/cellular/CellularModem/at/ATCommandsInterface.h diff --git a/libraries/net/cellular/CellularModem/core/IOStream.h b/features/unsupported/net/cellular/CellularModem/core/IOStream.h similarity index 100% rename from libraries/net/cellular/CellularModem/core/IOStream.h rename to features/unsupported/net/cellular/CellularModem/core/IOStream.h diff --git a/libraries/net/cellular/CellularModem/core/MtxCircBuffer.h b/features/unsupported/net/cellular/CellularModem/core/MtxCircBuffer.h similarity index 100% rename from libraries/net/cellular/CellularModem/core/MtxCircBuffer.h rename to features/unsupported/net/cellular/CellularModem/core/MtxCircBuffer.h diff --git a/libraries/net/cellular/CellularModem/core/config.h b/features/unsupported/net/cellular/CellularModem/core/config.h similarity index 100% rename from libraries/net/cellular/CellularModem/core/config.h rename to features/unsupported/net/cellular/CellularModem/core/config.h diff --git a/libraries/net/cellular/CellularModem/core/dbg.cpp b/features/unsupported/net/cellular/CellularModem/core/dbg.cpp similarity index 100% rename from libraries/net/cellular/CellularModem/core/dbg.cpp rename to features/unsupported/net/cellular/CellularModem/core/dbg.cpp diff --git a/libraries/net/cellular/CellularModem/core/dbg.h b/features/unsupported/net/cellular/CellularModem/core/dbg.h similarity index 100% rename from libraries/net/cellular/CellularModem/core/dbg.h rename to features/unsupported/net/cellular/CellularModem/core/dbg.h diff --git a/libraries/net/cellular/CellularModem/core/errors.h b/features/unsupported/net/cellular/CellularModem/core/errors.h similarity index 100% rename from libraries/net/cellular/CellularModem/core/errors.h rename to features/unsupported/net/cellular/CellularModem/core/errors.h diff --git a/libraries/net/cellular/CellularModem/core/fwk.h b/features/unsupported/net/cellular/CellularModem/core/fwk.h similarity index 100% rename from libraries/net/cellular/CellularModem/core/fwk.h rename to features/unsupported/net/cellular/CellularModem/core/fwk.h diff --git a/libraries/net/cellular/CellularModem/ip/IPInterface.cpp b/features/unsupported/net/cellular/CellularModem/ip/IPInterface.cpp similarity index 100% rename from libraries/net/cellular/CellularModem/ip/IPInterface.cpp rename to features/unsupported/net/cellular/CellularModem/ip/IPInterface.cpp diff --git a/libraries/net/cellular/CellularModem/ip/IPInterface.h b/features/unsupported/net/cellular/CellularModem/ip/IPInterface.h similarity index 100% rename from libraries/net/cellular/CellularModem/ip/IPInterface.h rename to features/unsupported/net/cellular/CellularModem/ip/IPInterface.h diff --git a/libraries/net/cellular/CellularModem/ip/LwIPInterface.cpp b/features/unsupported/net/cellular/CellularModem/ip/LwIPInterface.cpp similarity index 100% rename from libraries/net/cellular/CellularModem/ip/LwIPInterface.cpp rename to features/unsupported/net/cellular/CellularModem/ip/LwIPInterface.cpp diff --git a/libraries/net/cellular/CellularModem/ip/LwIPInterface.h b/features/unsupported/net/cellular/CellularModem/ip/LwIPInterface.h similarity index 100% rename from libraries/net/cellular/CellularModem/ip/LwIPInterface.h rename to features/unsupported/net/cellular/CellularModem/ip/LwIPInterface.h diff --git a/libraries/net/cellular/CellularModem/ip/PPPIPInterface.cpp b/features/unsupported/net/cellular/CellularModem/ip/PPPIPInterface.cpp similarity index 100% rename from libraries/net/cellular/CellularModem/ip/PPPIPInterface.cpp rename to features/unsupported/net/cellular/CellularModem/ip/PPPIPInterface.cpp diff --git a/libraries/net/cellular/CellularModem/ip/PPPIPInterface.h b/features/unsupported/net/cellular/CellularModem/ip/PPPIPInterface.h similarity index 100% rename from libraries/net/cellular/CellularModem/ip/PPPIPInterface.h rename to features/unsupported/net/cellular/CellularModem/ip/PPPIPInterface.h diff --git a/libraries/net/cellular/CellularModem/link/LinkMonitor.cpp b/features/unsupported/net/cellular/CellularModem/link/LinkMonitor.cpp similarity index 100% rename from libraries/net/cellular/CellularModem/link/LinkMonitor.cpp rename to features/unsupported/net/cellular/CellularModem/link/LinkMonitor.cpp diff --git a/libraries/net/cellular/CellularModem/link/LinkMonitor.h b/features/unsupported/net/cellular/CellularModem/link/LinkMonitor.h similarity index 100% rename from libraries/net/cellular/CellularModem/link/LinkMonitor.h rename to features/unsupported/net/cellular/CellularModem/link/LinkMonitor.h diff --git a/libraries/net/cellular/CellularModem/lwipopts_conf.h b/features/unsupported/net/cellular/CellularModem/lwipopts_conf.h similarity index 100% rename from libraries/net/cellular/CellularModem/lwipopts_conf.h rename to features/unsupported/net/cellular/CellularModem/lwipopts_conf.h diff --git a/libraries/net/cellular/CellularModem/sms/CDMASMSInterface.cpp b/features/unsupported/net/cellular/CellularModem/sms/CDMASMSInterface.cpp similarity index 100% rename from libraries/net/cellular/CellularModem/sms/CDMASMSInterface.cpp rename to features/unsupported/net/cellular/CellularModem/sms/CDMASMSInterface.cpp diff --git a/libraries/net/cellular/CellularModem/sms/CDMASMSInterface.h b/features/unsupported/net/cellular/CellularModem/sms/CDMASMSInterface.h similarity index 100% rename from libraries/net/cellular/CellularModem/sms/CDMASMSInterface.h rename to features/unsupported/net/cellular/CellularModem/sms/CDMASMSInterface.h diff --git a/libraries/net/cellular/CellularModem/sms/GSMSMSInterface.cpp b/features/unsupported/net/cellular/CellularModem/sms/GSMSMSInterface.cpp similarity index 100% rename from libraries/net/cellular/CellularModem/sms/GSMSMSInterface.cpp rename to features/unsupported/net/cellular/CellularModem/sms/GSMSMSInterface.cpp diff --git a/libraries/net/cellular/CellularModem/sms/GSMSMSInterface.h b/features/unsupported/net/cellular/CellularModem/sms/GSMSMSInterface.h similarity index 100% rename from libraries/net/cellular/CellularModem/sms/GSMSMSInterface.h rename to features/unsupported/net/cellular/CellularModem/sms/GSMSMSInterface.h diff --git a/libraries/net/cellular/CellularModem/sms/SMSInterface.h b/features/unsupported/net/cellular/CellularModem/sms/SMSInterface.h similarity index 100% rename from libraries/net/cellular/CellularModem/sms/SMSInterface.h rename to features/unsupported/net/cellular/CellularModem/sms/SMSInterface.h diff --git a/libraries/net/cellular/CellularModem/ussd/USSDInterface.cpp b/features/unsupported/net/cellular/CellularModem/ussd/USSDInterface.cpp similarity index 100% rename from libraries/net/cellular/CellularModem/ussd/USSDInterface.cpp rename to features/unsupported/net/cellular/CellularModem/ussd/USSDInterface.cpp diff --git a/libraries/net/cellular/CellularModem/ussd/USSDInterface.h b/features/unsupported/net/cellular/CellularModem/ussd/USSDInterface.h similarity index 100% rename from libraries/net/cellular/CellularModem/ussd/USSDInterface.h rename to features/unsupported/net/cellular/CellularModem/ussd/USSDInterface.h diff --git a/libraries/net/cellular/CellularUSBModem/serial/io/IOSerialStream.cpp b/features/unsupported/net/cellular/CellularUSBModem/serial/io/IOSerialStream.cpp similarity index 100% rename from libraries/net/cellular/CellularUSBModem/serial/io/IOSerialStream.cpp rename to features/unsupported/net/cellular/CellularUSBModem/serial/io/IOSerialStream.cpp diff --git a/libraries/net/cellular/CellularUSBModem/serial/io/IOSerialStream.h b/features/unsupported/net/cellular/CellularUSBModem/serial/io/IOSerialStream.h similarity index 100% rename from libraries/net/cellular/CellularUSBModem/serial/io/IOSerialStream.h rename to features/unsupported/net/cellular/CellularUSBModem/serial/io/IOSerialStream.h diff --git a/libraries/net/cellular/CellularUSBModem/serial/usb/USBSerialStream.cpp b/features/unsupported/net/cellular/CellularUSBModem/serial/usb/USBSerialStream.cpp similarity index 100% rename from libraries/net/cellular/CellularUSBModem/serial/usb/USBSerialStream.cpp rename to features/unsupported/net/cellular/CellularUSBModem/serial/usb/USBSerialStream.cpp diff --git a/libraries/net/cellular/CellularUSBModem/serial/usb/USBSerialStream.h b/features/unsupported/net/cellular/CellularUSBModem/serial/usb/USBSerialStream.h similarity index 100% rename from libraries/net/cellular/CellularUSBModem/serial/usb/USBSerialStream.h rename to features/unsupported/net/cellular/CellularUSBModem/serial/usb/USBSerialStream.h diff --git a/libraries/net/cellular/UbloxUSBModem/UbloxCDMAModemInitializer.cpp b/features/unsupported/net/cellular/UbloxUSBModem/UbloxCDMAModemInitializer.cpp similarity index 100% rename from libraries/net/cellular/UbloxUSBModem/UbloxCDMAModemInitializer.cpp rename to features/unsupported/net/cellular/UbloxUSBModem/UbloxCDMAModemInitializer.cpp diff --git a/libraries/net/cellular/UbloxUSBModem/UbloxCDMAModemInitializer.h b/features/unsupported/net/cellular/UbloxUSBModem/UbloxCDMAModemInitializer.h similarity index 100% rename from libraries/net/cellular/UbloxUSBModem/UbloxCDMAModemInitializer.h rename to features/unsupported/net/cellular/UbloxUSBModem/UbloxCDMAModemInitializer.h diff --git a/libraries/net/cellular/UbloxUSBModem/UbloxGSMModemInitializer.cpp b/features/unsupported/net/cellular/UbloxUSBModem/UbloxGSMModemInitializer.cpp similarity index 100% rename from libraries/net/cellular/UbloxUSBModem/UbloxGSMModemInitializer.cpp rename to features/unsupported/net/cellular/UbloxUSBModem/UbloxGSMModemInitializer.cpp diff --git a/libraries/net/cellular/UbloxUSBModem/UbloxGSMModemInitializer.h b/features/unsupported/net/cellular/UbloxUSBModem/UbloxGSMModemInitializer.h similarity index 100% rename from libraries/net/cellular/UbloxUSBModem/UbloxGSMModemInitializer.h rename to features/unsupported/net/cellular/UbloxUSBModem/UbloxGSMModemInitializer.h diff --git a/libraries/net/cellular/UbloxUSBModem/UbloxModem.cpp b/features/unsupported/net/cellular/UbloxUSBModem/UbloxModem.cpp similarity index 100% rename from libraries/net/cellular/UbloxUSBModem/UbloxModem.cpp rename to features/unsupported/net/cellular/UbloxUSBModem/UbloxModem.cpp diff --git a/libraries/net/cellular/UbloxUSBModem/UbloxModem.h b/features/unsupported/net/cellular/UbloxUSBModem/UbloxModem.h similarity index 100% rename from libraries/net/cellular/UbloxUSBModem/UbloxModem.h rename to features/unsupported/net/cellular/UbloxUSBModem/UbloxModem.h diff --git a/libraries/net/cellular/UbloxUSBModem/UbloxUSBCDMAModem.cpp b/features/unsupported/net/cellular/UbloxUSBModem/UbloxUSBCDMAModem.cpp similarity index 100% rename from libraries/net/cellular/UbloxUSBModem/UbloxUSBCDMAModem.cpp rename to features/unsupported/net/cellular/UbloxUSBModem/UbloxUSBCDMAModem.cpp diff --git a/libraries/net/cellular/UbloxUSBModem/UbloxUSBCDMAModem.h b/features/unsupported/net/cellular/UbloxUSBModem/UbloxUSBCDMAModem.h similarity index 100% rename from libraries/net/cellular/UbloxUSBModem/UbloxUSBCDMAModem.h rename to features/unsupported/net/cellular/UbloxUSBModem/UbloxUSBCDMAModem.h diff --git a/libraries/net/cellular/UbloxUSBModem/UbloxUSBGSMModem.cpp b/features/unsupported/net/cellular/UbloxUSBModem/UbloxUSBGSMModem.cpp similarity index 100% rename from libraries/net/cellular/UbloxUSBModem/UbloxUSBGSMModem.cpp rename to features/unsupported/net/cellular/UbloxUSBModem/UbloxUSBGSMModem.cpp diff --git a/libraries/net/cellular/UbloxUSBModem/UbloxUSBGSMModem.h b/features/unsupported/net/cellular/UbloxUSBModem/UbloxUSBGSMModem.h similarity index 100% rename from libraries/net/cellular/UbloxUSBModem/UbloxUSBGSMModem.h rename to features/unsupported/net/cellular/UbloxUSBModem/UbloxUSBGSMModem.h diff --git a/libraries/net/eth/EthernetInterface/EthernetInterface.cpp b/features/unsupported/net/eth/EthernetInterface/EthernetInterface.cpp similarity index 100% rename from libraries/net/eth/EthernetInterface/EthernetInterface.cpp rename to features/unsupported/net/eth/EthernetInterface/EthernetInterface.cpp diff --git a/libraries/net/eth/EthernetInterface/EthernetInterface.h b/features/unsupported/net/eth/EthernetInterface/EthernetInterface.h similarity index 100% rename from libraries/net/eth/EthernetInterface/EthernetInterface.h rename to features/unsupported/net/eth/EthernetInterface/EthernetInterface.h diff --git a/features/net/FEATURE_IPV4/lwip-interface/eth_arch.h b/features/unsupported/net/eth/EthernetInterface/eth_arch.h similarity index 94% rename from features/net/FEATURE_IPV4/lwip-interface/eth_arch.h rename to features/unsupported/net/eth/EthernetInterface/eth_arch.h index 1ff54b1d38..25bdde38dd 100644 --- a/features/net/FEATURE_IPV4/lwip-interface/eth_arch.h +++ b/features/unsupported/net/eth/EthernetInterface/eth_arch.h @@ -29,13 +29,17 @@ extern "C" { #endif +#if DEVICE_EMAC +err_t emac_lwip_if_init(struct netif *netif); + +#else /* DEVICE_EMAC */ void eth_arch_enable_interrupts(void); void eth_arch_disable_interrupts(void); err_t eth_arch_enetif_init(struct netif *netif); +#endif #ifdef __cplusplus } #endif #endif // #ifndef ETHARCHINTERFACE_H_ - diff --git a/libraries/net/eth/lwip-eth/arch/TARGET_Freescale/hardware_init_MK64F12.c b/features/unsupported/net/eth/lwip-eth/arch/TARGET_Freescale/hardware_init_MK64F12.c similarity index 100% rename from libraries/net/eth/lwip-eth/arch/TARGET_Freescale/hardware_init_MK64F12.c rename to features/unsupported/net/eth/lwip-eth/arch/TARGET_Freescale/hardware_init_MK64F12.c diff --git a/libraries/net/eth/lwip-eth/arch/TARGET_Freescale/k64f_emac.c b/features/unsupported/net/eth/lwip-eth/arch/TARGET_Freescale/k64f_emac.c similarity index 100% rename from libraries/net/eth/lwip-eth/arch/TARGET_Freescale/k64f_emac.c rename to features/unsupported/net/eth/lwip-eth/arch/TARGET_Freescale/k64f_emac.c diff --git a/libraries/net/eth/lwip-eth/arch/TARGET_Freescale/k64f_emac_config.h b/features/unsupported/net/eth/lwip-eth/arch/TARGET_Freescale/k64f_emac_config.h similarity index 100% rename from libraries/net/eth/lwip-eth/arch/TARGET_Freescale/k64f_emac_config.h rename to features/unsupported/net/eth/lwip-eth/arch/TARGET_Freescale/k64f_emac_config.h diff --git a/libraries/net/eth/lwip-eth/arch/TARGET_Freescale/lwipopts_conf.h b/features/unsupported/net/eth/lwip-eth/arch/TARGET_Freescale/lwipopts_conf.h similarity index 100% rename from libraries/net/eth/lwip-eth/arch/TARGET_Freescale/lwipopts_conf.h rename to features/unsupported/net/eth/lwip-eth/arch/TARGET_Freescale/lwipopts_conf.h diff --git a/libraries/net/eth/lwip-eth/arch/TARGET_NXP/lpc17_emac.c b/features/unsupported/net/eth/lwip-eth/arch/TARGET_NXP/lpc17_emac.c similarity index 100% rename from libraries/net/eth/lwip-eth/arch/TARGET_NXP/lpc17_emac.c rename to features/unsupported/net/eth/lwip-eth/arch/TARGET_NXP/lpc17_emac.c diff --git a/libraries/net/eth/lwip-eth/arch/TARGET_NXP/lpc17xx_emac.h b/features/unsupported/net/eth/lwip-eth/arch/TARGET_NXP/lpc17xx_emac.h similarity index 100% rename from libraries/net/eth/lwip-eth/arch/TARGET_NXP/lpc17xx_emac.h rename to features/unsupported/net/eth/lwip-eth/arch/TARGET_NXP/lpc17xx_emac.h diff --git a/libraries/net/eth/lwip-eth/arch/TARGET_NXP/lpc_emac_config.h b/features/unsupported/net/eth/lwip-eth/arch/TARGET_NXP/lpc_emac_config.h similarity index 100% rename from libraries/net/eth/lwip-eth/arch/TARGET_NXP/lpc_emac_config.h rename to features/unsupported/net/eth/lwip-eth/arch/TARGET_NXP/lpc_emac_config.h diff --git a/libraries/net/eth/lwip-eth/arch/TARGET_NXP/lpc_phy.h b/features/unsupported/net/eth/lwip-eth/arch/TARGET_NXP/lpc_phy.h similarity index 100% rename from libraries/net/eth/lwip-eth/arch/TARGET_NXP/lpc_phy.h rename to features/unsupported/net/eth/lwip-eth/arch/TARGET_NXP/lpc_phy.h diff --git a/libraries/net/eth/lwip-eth/arch/TARGET_NXP/lpc_phy_dp83848.c b/features/unsupported/net/eth/lwip-eth/arch/TARGET_NXP/lpc_phy_dp83848.c similarity index 100% rename from libraries/net/eth/lwip-eth/arch/TARGET_NXP/lpc_phy_dp83848.c rename to features/unsupported/net/eth/lwip-eth/arch/TARGET_NXP/lpc_phy_dp83848.c diff --git a/libraries/net/eth/lwip-eth/arch/TARGET_NXP/lwipopts_conf.h b/features/unsupported/net/eth/lwip-eth/arch/TARGET_NXP/lwipopts_conf.h similarity index 100% rename from libraries/net/eth/lwip-eth/arch/TARGET_NXP/lwipopts_conf.h rename to features/unsupported/net/eth/lwip-eth/arch/TARGET_NXP/lwipopts_conf.h diff --git a/libraries/net/eth/lwip-eth/arch/TARGET_RZ_A1H/lwipopts_conf.h b/features/unsupported/net/eth/lwip-eth/arch/TARGET_RZ_A1H/lwipopts_conf.h similarity index 100% rename from libraries/net/eth/lwip-eth/arch/TARGET_RZ_A1H/lwipopts_conf.h rename to features/unsupported/net/eth/lwip-eth/arch/TARGET_RZ_A1H/lwipopts_conf.h diff --git a/libraries/net/eth/lwip-eth/arch/TARGET_RZ_A1H/rza1_emac.c b/features/unsupported/net/eth/lwip-eth/arch/TARGET_RZ_A1H/rza1_emac.c similarity index 100% rename from libraries/net/eth/lwip-eth/arch/TARGET_RZ_A1H/rza1_emac.c rename to features/unsupported/net/eth/lwip-eth/arch/TARGET_RZ_A1H/rza1_emac.c diff --git a/libraries/net/eth/lwip-eth/arch/TARGET_STM/lwipopts_conf.h b/features/unsupported/net/eth/lwip-eth/arch/TARGET_STM/lwipopts_conf.h similarity index 100% rename from libraries/net/eth/lwip-eth/arch/TARGET_STM/lwipopts_conf.h rename to features/unsupported/net/eth/lwip-eth/arch/TARGET_STM/lwipopts_conf.h diff --git a/libraries/net/eth/lwip-eth/arch/TARGET_STM/stm32f4_emac.c b/features/unsupported/net/eth/lwip-eth/arch/TARGET_STM/stm32f4_emac.c similarity index 100% rename from libraries/net/eth/lwip-eth/arch/TARGET_STM/stm32f4_emac.c rename to features/unsupported/net/eth/lwip-eth/arch/TARGET_STM/stm32f4_emac.c diff --git a/libraries/net/eth/lwip-eth/arch/TARGET_VK_RZ_A1H/lwipopts_conf.h b/features/unsupported/net/eth/lwip-eth/arch/TARGET_VK_RZ_A1H/lwipopts_conf.h similarity index 100% rename from libraries/net/eth/lwip-eth/arch/TARGET_VK_RZ_A1H/lwipopts_conf.h rename to features/unsupported/net/eth/lwip-eth/arch/TARGET_VK_RZ_A1H/lwipopts_conf.h diff --git a/libraries/net/eth/lwip-eth/arch/TARGET_VK_RZ_A1H/rza1_emac.c b/features/unsupported/net/eth/lwip-eth/arch/TARGET_VK_RZ_A1H/rza1_emac.c similarity index 100% rename from libraries/net/eth/lwip-eth/arch/TARGET_VK_RZ_A1H/rza1_emac.c rename to features/unsupported/net/eth/lwip-eth/arch/TARGET_VK_RZ_A1H/rza1_emac.c diff --git a/libraries/net/https/HTTPHeader.cpp b/features/unsupported/net/https/HTTPHeader.cpp similarity index 100% rename from libraries/net/https/HTTPHeader.cpp rename to features/unsupported/net/https/HTTPHeader.cpp diff --git a/libraries/net/https/HTTPHeader.h b/features/unsupported/net/https/HTTPHeader.h similarity index 100% rename from libraries/net/https/HTTPHeader.h rename to features/unsupported/net/https/HTTPHeader.h diff --git a/libraries/net/https/HTTPSClient.cpp b/features/unsupported/net/https/HTTPSClient.cpp similarity index 100% rename from libraries/net/https/HTTPSClient.cpp rename to features/unsupported/net/https/HTTPSClient.cpp diff --git a/libraries/net/https/HTTPSClient.h b/features/unsupported/net/https/HTTPSClient.h similarity index 100% rename from libraries/net/https/HTTPSClient.h rename to features/unsupported/net/https/HTTPSClient.h diff --git a/libraries/net/https/axTLS/crypto/aes.c b/features/unsupported/net/https/axTLS/crypto/aes.c similarity index 100% rename from libraries/net/https/axTLS/crypto/aes.c rename to features/unsupported/net/https/axTLS/crypto/aes.c diff --git a/libraries/net/https/axTLS/crypto/bigint.c b/features/unsupported/net/https/axTLS/crypto/bigint.c similarity index 100% rename from libraries/net/https/axTLS/crypto/bigint.c rename to features/unsupported/net/https/axTLS/crypto/bigint.c diff --git a/libraries/net/https/axTLS/crypto/bigint.h b/features/unsupported/net/https/axTLS/crypto/bigint.h similarity index 100% rename from libraries/net/https/axTLS/crypto/bigint.h rename to features/unsupported/net/https/axTLS/crypto/bigint.h diff --git a/libraries/net/https/axTLS/crypto/bigint_impl.h b/features/unsupported/net/https/axTLS/crypto/bigint_impl.h similarity index 100% rename from libraries/net/https/axTLS/crypto/bigint_impl.h rename to features/unsupported/net/https/axTLS/crypto/bigint_impl.h diff --git a/libraries/net/https/axTLS/crypto/crypto.h b/features/unsupported/net/https/axTLS/crypto/crypto.h similarity index 100% rename from libraries/net/https/axTLS/crypto/crypto.h rename to features/unsupported/net/https/axTLS/crypto/crypto.h diff --git a/libraries/net/https/axTLS/crypto/crypto_misc.c b/features/unsupported/net/https/axTLS/crypto/crypto_misc.c similarity index 100% rename from libraries/net/https/axTLS/crypto/crypto_misc.c rename to features/unsupported/net/https/axTLS/crypto/crypto_misc.c diff --git a/libraries/net/https/axTLS/crypto/hmac.c b/features/unsupported/net/https/axTLS/crypto/hmac.c similarity index 100% rename from libraries/net/https/axTLS/crypto/hmac.c rename to features/unsupported/net/https/axTLS/crypto/hmac.c diff --git a/libraries/net/https/axTLS/crypto/md2.c b/features/unsupported/net/https/axTLS/crypto/md2.c similarity index 100% rename from libraries/net/https/axTLS/crypto/md2.c rename to features/unsupported/net/https/axTLS/crypto/md2.c diff --git a/libraries/net/https/axTLS/crypto/md5.c b/features/unsupported/net/https/axTLS/crypto/md5.c similarity index 100% rename from libraries/net/https/axTLS/crypto/md5.c rename to features/unsupported/net/https/axTLS/crypto/md5.c diff --git a/libraries/net/https/axTLS/crypto/os_int.h b/features/unsupported/net/https/axTLS/crypto/os_int.h similarity index 100% rename from libraries/net/https/axTLS/crypto/os_int.h rename to features/unsupported/net/https/axTLS/crypto/os_int.h diff --git a/libraries/net/https/axTLS/crypto/rc4.c b/features/unsupported/net/https/axTLS/crypto/rc4.c similarity index 100% rename from libraries/net/https/axTLS/crypto/rc4.c rename to features/unsupported/net/https/axTLS/crypto/rc4.c diff --git a/libraries/net/https/axTLS/crypto/rsa.c b/features/unsupported/net/https/axTLS/crypto/rsa.c similarity index 100% rename from libraries/net/https/axTLS/crypto/rsa.c rename to features/unsupported/net/https/axTLS/crypto/rsa.c diff --git a/libraries/net/https/axTLS/crypto/sha1.c b/features/unsupported/net/https/axTLS/crypto/sha1.c similarity index 100% rename from libraries/net/https/axTLS/crypto/sha1.c rename to features/unsupported/net/https/axTLS/crypto/sha1.c diff --git a/libraries/net/https/axTLS/ssl/asn1.c b/features/unsupported/net/https/axTLS/ssl/asn1.c similarity index 100% rename from libraries/net/https/axTLS/ssl/asn1.c rename to features/unsupported/net/https/axTLS/ssl/asn1.c diff --git a/libraries/net/https/axTLS/ssl/cert.h b/features/unsupported/net/https/axTLS/ssl/cert.h similarity index 100% rename from libraries/net/https/axTLS/ssl/cert.h rename to features/unsupported/net/https/axTLS/ssl/cert.h diff --git a/libraries/net/https/axTLS/ssl/config.h b/features/unsupported/net/https/axTLS/ssl/config.h similarity index 100% rename from libraries/net/https/axTLS/ssl/config.h rename to features/unsupported/net/https/axTLS/ssl/config.h diff --git a/libraries/net/https/axTLS/ssl/crypto_misc.h b/features/unsupported/net/https/axTLS/ssl/crypto_misc.h similarity index 100% rename from libraries/net/https/axTLS/ssl/crypto_misc.h rename to features/unsupported/net/https/axTLS/ssl/crypto_misc.h diff --git a/libraries/net/https/axTLS/ssl/gen_cert.c b/features/unsupported/net/https/axTLS/ssl/gen_cert.c similarity index 100% rename from libraries/net/https/axTLS/ssl/gen_cert.c rename to features/unsupported/net/https/axTLS/ssl/gen_cert.c diff --git a/libraries/net/https/axTLS/ssl/loader.c b/features/unsupported/net/https/axTLS/ssl/loader.c similarity index 100% rename from libraries/net/https/axTLS/ssl/loader.c rename to features/unsupported/net/https/axTLS/ssl/loader.c diff --git a/libraries/net/https/axTLS/ssl/openssl.c b/features/unsupported/net/https/axTLS/ssl/openssl.c similarity index 100% rename from libraries/net/https/axTLS/ssl/openssl.c rename to features/unsupported/net/https/axTLS/ssl/openssl.c diff --git a/libraries/net/https/axTLS/ssl/os_port.c b/features/unsupported/net/https/axTLS/ssl/os_port.c similarity index 100% rename from libraries/net/https/axTLS/ssl/os_port.c rename to features/unsupported/net/https/axTLS/ssl/os_port.c diff --git a/libraries/net/https/axTLS/ssl/os_port.h b/features/unsupported/net/https/axTLS/ssl/os_port.h similarity index 100% rename from libraries/net/https/axTLS/ssl/os_port.h rename to features/unsupported/net/https/axTLS/ssl/os_port.h diff --git a/libraries/net/https/axTLS/ssl/os_port_old.h b/features/unsupported/net/https/axTLS/ssl/os_port_old.h similarity index 100% rename from libraries/net/https/axTLS/ssl/os_port_old.h rename to features/unsupported/net/https/axTLS/ssl/os_port_old.h diff --git a/libraries/net/https/axTLS/ssl/p12.c b/features/unsupported/net/https/axTLS/ssl/p12.c similarity index 100% rename from libraries/net/https/axTLS/ssl/p12.c rename to features/unsupported/net/https/axTLS/ssl/p12.c diff --git a/libraries/net/https/axTLS/ssl/private_key.h b/features/unsupported/net/https/axTLS/ssl/private_key.h similarity index 100% rename from libraries/net/https/axTLS/ssl/private_key.h rename to features/unsupported/net/https/axTLS/ssl/private_key.h diff --git a/libraries/net/https/axTLS/ssl/ssl.h b/features/unsupported/net/https/axTLS/ssl/ssl.h similarity index 100% rename from libraries/net/https/axTLS/ssl/ssl.h rename to features/unsupported/net/https/axTLS/ssl/ssl.h diff --git a/libraries/net/https/axTLS/ssl/tls1.c b/features/unsupported/net/https/axTLS/ssl/tls1.c similarity index 100% rename from libraries/net/https/axTLS/ssl/tls1.c rename to features/unsupported/net/https/axTLS/ssl/tls1.c diff --git a/libraries/net/https/axTLS/ssl/tls1.h b/features/unsupported/net/https/axTLS/ssl/tls1.h similarity index 100% rename from libraries/net/https/axTLS/ssl/tls1.h rename to features/unsupported/net/https/axTLS/ssl/tls1.h diff --git a/libraries/net/https/axTLS/ssl/tls1_clnt.c b/features/unsupported/net/https/axTLS/ssl/tls1_clnt.c similarity index 100% rename from libraries/net/https/axTLS/ssl/tls1_clnt.c rename to features/unsupported/net/https/axTLS/ssl/tls1_clnt.c diff --git a/libraries/net/https/axTLS/ssl/tls1_svr.c b/features/unsupported/net/https/axTLS/ssl/tls1_svr.c similarity index 100% rename from libraries/net/https/axTLS/ssl/tls1_svr.c rename to features/unsupported/net/https/axTLS/ssl/tls1_svr.c diff --git a/libraries/net/https/axTLS/ssl/version.h b/features/unsupported/net/https/axTLS/ssl/version.h similarity index 100% rename from libraries/net/https/axTLS/ssl/version.h rename to features/unsupported/net/https/axTLS/ssl/version.h diff --git a/libraries/net/https/axTLS/ssl/x509.c b/features/unsupported/net/https/axTLS/ssl/x509.c similarity index 100% rename from libraries/net/https/axTLS/ssl/x509.c rename to features/unsupported/net/https/axTLS/ssl/x509.c diff --git a/libraries/net/lwip/Socket/Endpoint.cpp b/features/unsupported/net/lwip/Socket/Endpoint.cpp similarity index 100% rename from libraries/net/lwip/Socket/Endpoint.cpp rename to features/unsupported/net/lwip/Socket/Endpoint.cpp diff --git a/libraries/net/lwip/Socket/Endpoint.h b/features/unsupported/net/lwip/Socket/Endpoint.h similarity index 100% rename from libraries/net/lwip/Socket/Endpoint.h rename to features/unsupported/net/lwip/Socket/Endpoint.h diff --git a/libraries/net/lwip/Socket/Socket.cpp b/features/unsupported/net/lwip/Socket/Socket.cpp similarity index 100% rename from libraries/net/lwip/Socket/Socket.cpp rename to features/unsupported/net/lwip/Socket/Socket.cpp diff --git a/libraries/net/lwip/Socket/Socket.h b/features/unsupported/net/lwip/Socket/Socket.h similarity index 100% rename from libraries/net/lwip/Socket/Socket.h rename to features/unsupported/net/lwip/Socket/Socket.h diff --git a/libraries/net/lwip/Socket/TCPSocketConnection.cpp b/features/unsupported/net/lwip/Socket/TCPSocketConnection.cpp similarity index 100% rename from libraries/net/lwip/Socket/TCPSocketConnection.cpp rename to features/unsupported/net/lwip/Socket/TCPSocketConnection.cpp diff --git a/libraries/net/lwip/Socket/TCPSocketConnection.h b/features/unsupported/net/lwip/Socket/TCPSocketConnection.h similarity index 100% rename from libraries/net/lwip/Socket/TCPSocketConnection.h rename to features/unsupported/net/lwip/Socket/TCPSocketConnection.h diff --git a/libraries/net/lwip/Socket/TCPSocketServer.cpp b/features/unsupported/net/lwip/Socket/TCPSocketServer.cpp similarity index 100% rename from libraries/net/lwip/Socket/TCPSocketServer.cpp rename to features/unsupported/net/lwip/Socket/TCPSocketServer.cpp diff --git a/libraries/net/lwip/Socket/TCPSocketServer.h b/features/unsupported/net/lwip/Socket/TCPSocketServer.h similarity index 100% rename from libraries/net/lwip/Socket/TCPSocketServer.h rename to features/unsupported/net/lwip/Socket/TCPSocketServer.h diff --git a/libraries/net/lwip/Socket/UDPSocket.cpp b/features/unsupported/net/lwip/Socket/UDPSocket.cpp similarity index 100% rename from libraries/net/lwip/Socket/UDPSocket.cpp rename to features/unsupported/net/lwip/Socket/UDPSocket.cpp diff --git a/libraries/net/lwip/Socket/UDPSocket.h b/features/unsupported/net/lwip/Socket/UDPSocket.h similarity index 100% rename from libraries/net/lwip/Socket/UDPSocket.h rename to features/unsupported/net/lwip/Socket/UDPSocket.h diff --git a/libraries/net/lwip/lwip-sys/arch/cc.h b/features/unsupported/net/lwip/lwip-sys/arch/cc.h similarity index 99% rename from libraries/net/lwip/lwip-sys/arch/cc.h rename to features/unsupported/net/lwip/lwip-sys/arch/cc.h index 00b6782d3b..c960cbe9d6 100644 --- a/libraries/net/lwip/lwip-sys/arch/cc.h +++ b/features/unsupported/net/lwip/lwip-sys/arch/cc.h @@ -33,6 +33,7 @@ #define __CC_H__ #include +#include /* Types based on stdint.h */ typedef uint8_t u8_t; diff --git a/libraries/net/lwip/lwip-sys/arch/checksum.c b/features/unsupported/net/lwip/lwip-sys/arch/checksum.c similarity index 100% rename from libraries/net/lwip/lwip-sys/arch/checksum.c rename to features/unsupported/net/lwip/lwip-sys/arch/checksum.c diff --git a/libraries/net/lwip/lwip-sys/arch/memcpy.c b/features/unsupported/net/lwip/lwip-sys/arch/memcpy.c similarity index 100% rename from libraries/net/lwip/lwip-sys/arch/memcpy.c rename to features/unsupported/net/lwip/lwip-sys/arch/memcpy.c diff --git a/libraries/net/lwip/lwip-sys/arch/perf.h b/features/unsupported/net/lwip/lwip-sys/arch/perf.h similarity index 100% rename from libraries/net/lwip/lwip-sys/arch/perf.h rename to features/unsupported/net/lwip/lwip-sys/arch/perf.h diff --git a/libraries/net/lwip/lwip-sys/arch/sys_arch.c b/features/unsupported/net/lwip/lwip-sys/arch/sys_arch.c similarity index 100% rename from libraries/net/lwip/lwip-sys/arch/sys_arch.c rename to features/unsupported/net/lwip/lwip-sys/arch/sys_arch.c diff --git a/libraries/net/lwip/lwip-sys/arch/sys_arch.h b/features/unsupported/net/lwip/lwip-sys/arch/sys_arch.h similarity index 100% rename from libraries/net/lwip/lwip-sys/arch/sys_arch.h rename to features/unsupported/net/lwip/lwip-sys/arch/sys_arch.h diff --git a/libraries/net/lwip/lwip/COPYING b/features/unsupported/net/lwip/lwip/COPYING similarity index 100% rename from libraries/net/lwip/lwip/COPYING rename to features/unsupported/net/lwip/lwip/COPYING diff --git a/libraries/net/lwip/lwip/api/api_lib.c b/features/unsupported/net/lwip/lwip/api/api_lib.c similarity index 100% rename from libraries/net/lwip/lwip/api/api_lib.c rename to features/unsupported/net/lwip/lwip/api/api_lib.c diff --git a/libraries/net/lwip/lwip/api/api_msg.c b/features/unsupported/net/lwip/lwip/api/api_msg.c similarity index 100% rename from libraries/net/lwip/lwip/api/api_msg.c rename to features/unsupported/net/lwip/lwip/api/api_msg.c diff --git a/libraries/net/lwip/lwip/api/err.c b/features/unsupported/net/lwip/lwip/api/err.c similarity index 100% rename from libraries/net/lwip/lwip/api/err.c rename to features/unsupported/net/lwip/lwip/api/err.c diff --git a/libraries/net/lwip/lwip/api/netbuf.c b/features/unsupported/net/lwip/lwip/api/netbuf.c similarity index 100% rename from libraries/net/lwip/lwip/api/netbuf.c rename to features/unsupported/net/lwip/lwip/api/netbuf.c diff --git a/libraries/net/lwip/lwip/api/netdb.c b/features/unsupported/net/lwip/lwip/api/netdb.c similarity index 100% rename from libraries/net/lwip/lwip/api/netdb.c rename to features/unsupported/net/lwip/lwip/api/netdb.c diff --git a/libraries/net/lwip/lwip/api/netifapi.c b/features/unsupported/net/lwip/lwip/api/netifapi.c similarity index 100% rename from libraries/net/lwip/lwip/api/netifapi.c rename to features/unsupported/net/lwip/lwip/api/netifapi.c diff --git a/libraries/net/lwip/lwip/api/sockets.c b/features/unsupported/net/lwip/lwip/api/sockets.c similarity index 100% rename from libraries/net/lwip/lwip/api/sockets.c rename to features/unsupported/net/lwip/lwip/api/sockets.c diff --git a/libraries/net/lwip/lwip/api/tcpip.c b/features/unsupported/net/lwip/lwip/api/tcpip.c similarity index 100% rename from libraries/net/lwip/lwip/api/tcpip.c rename to features/unsupported/net/lwip/lwip/api/tcpip.c diff --git a/libraries/net/lwip/lwip/core/def.c b/features/unsupported/net/lwip/lwip/core/def.c similarity index 100% rename from libraries/net/lwip/lwip/core/def.c rename to features/unsupported/net/lwip/lwip/core/def.c diff --git a/libraries/net/lwip/lwip/core/dhcp.c b/features/unsupported/net/lwip/lwip/core/dhcp.c similarity index 100% rename from libraries/net/lwip/lwip/core/dhcp.c rename to features/unsupported/net/lwip/lwip/core/dhcp.c diff --git a/libraries/net/lwip/lwip/core/dns.c b/features/unsupported/net/lwip/lwip/core/dns.c similarity index 100% rename from libraries/net/lwip/lwip/core/dns.c rename to features/unsupported/net/lwip/lwip/core/dns.c diff --git a/libraries/net/lwip/lwip/core/init.c b/features/unsupported/net/lwip/lwip/core/init.c similarity index 100% rename from libraries/net/lwip/lwip/core/init.c rename to features/unsupported/net/lwip/lwip/core/init.c diff --git a/libraries/net/lwip/lwip/core/ipv4/autoip.c b/features/unsupported/net/lwip/lwip/core/ipv4/autoip.c similarity index 100% rename from libraries/net/lwip/lwip/core/ipv4/autoip.c rename to features/unsupported/net/lwip/lwip/core/ipv4/autoip.c diff --git a/libraries/net/lwip/lwip/core/ipv4/icmp.c b/features/unsupported/net/lwip/lwip/core/ipv4/icmp.c similarity index 100% rename from libraries/net/lwip/lwip/core/ipv4/icmp.c rename to features/unsupported/net/lwip/lwip/core/ipv4/icmp.c diff --git a/libraries/net/lwip/lwip/core/ipv4/igmp.c b/features/unsupported/net/lwip/lwip/core/ipv4/igmp.c similarity index 100% rename from libraries/net/lwip/lwip/core/ipv4/igmp.c rename to features/unsupported/net/lwip/lwip/core/ipv4/igmp.c diff --git a/libraries/net/lwip/lwip/core/ipv4/inet.c b/features/unsupported/net/lwip/lwip/core/ipv4/inet.c similarity index 100% rename from libraries/net/lwip/lwip/core/ipv4/inet.c rename to features/unsupported/net/lwip/lwip/core/ipv4/inet.c diff --git a/libraries/net/lwip/lwip/core/ipv4/inet_chksum.c b/features/unsupported/net/lwip/lwip/core/ipv4/inet_chksum.c similarity index 100% rename from libraries/net/lwip/lwip/core/ipv4/inet_chksum.c rename to features/unsupported/net/lwip/lwip/core/ipv4/inet_chksum.c diff --git a/libraries/net/lwip/lwip/core/ipv4/ip.c b/features/unsupported/net/lwip/lwip/core/ipv4/ip.c similarity index 100% rename from libraries/net/lwip/lwip/core/ipv4/ip.c rename to features/unsupported/net/lwip/lwip/core/ipv4/ip.c diff --git a/libraries/net/lwip/lwip/core/ipv4/ip_addr.c b/features/unsupported/net/lwip/lwip/core/ipv4/ip_addr.c similarity index 100% rename from libraries/net/lwip/lwip/core/ipv4/ip_addr.c rename to features/unsupported/net/lwip/lwip/core/ipv4/ip_addr.c diff --git a/libraries/net/lwip/lwip/core/ipv4/ip_frag.c b/features/unsupported/net/lwip/lwip/core/ipv4/ip_frag.c similarity index 100% rename from libraries/net/lwip/lwip/core/ipv4/ip_frag.c rename to features/unsupported/net/lwip/lwip/core/ipv4/ip_frag.c diff --git a/libraries/net/lwip/lwip/core/mem.c b/features/unsupported/net/lwip/lwip/core/mem.c similarity index 100% rename from libraries/net/lwip/lwip/core/mem.c rename to features/unsupported/net/lwip/lwip/core/mem.c diff --git a/libraries/net/lwip/lwip/core/memp.c b/features/unsupported/net/lwip/lwip/core/memp.c similarity index 100% rename from libraries/net/lwip/lwip/core/memp.c rename to features/unsupported/net/lwip/lwip/core/memp.c diff --git a/libraries/net/lwip/lwip/core/netif.c b/features/unsupported/net/lwip/lwip/core/netif.c similarity index 100% rename from libraries/net/lwip/lwip/core/netif.c rename to features/unsupported/net/lwip/lwip/core/netif.c diff --git a/libraries/net/lwip/lwip/core/pbuf.c b/features/unsupported/net/lwip/lwip/core/pbuf.c similarity index 100% rename from libraries/net/lwip/lwip/core/pbuf.c rename to features/unsupported/net/lwip/lwip/core/pbuf.c diff --git a/libraries/net/lwip/lwip/core/raw.c b/features/unsupported/net/lwip/lwip/core/raw.c similarity index 100% rename from libraries/net/lwip/lwip/core/raw.c rename to features/unsupported/net/lwip/lwip/core/raw.c diff --git a/libraries/net/lwip/lwip/core/snmp/asn1_dec.c b/features/unsupported/net/lwip/lwip/core/snmp/asn1_dec.c similarity index 100% rename from libraries/net/lwip/lwip/core/snmp/asn1_dec.c rename to features/unsupported/net/lwip/lwip/core/snmp/asn1_dec.c diff --git a/libraries/net/lwip/lwip/core/snmp/asn1_enc.c b/features/unsupported/net/lwip/lwip/core/snmp/asn1_enc.c similarity index 100% rename from libraries/net/lwip/lwip/core/snmp/asn1_enc.c rename to features/unsupported/net/lwip/lwip/core/snmp/asn1_enc.c diff --git a/libraries/net/lwip/lwip/core/snmp/mib2.c b/features/unsupported/net/lwip/lwip/core/snmp/mib2.c similarity index 100% rename from libraries/net/lwip/lwip/core/snmp/mib2.c rename to features/unsupported/net/lwip/lwip/core/snmp/mib2.c diff --git a/libraries/net/lwip/lwip/core/snmp/mib_structs.c b/features/unsupported/net/lwip/lwip/core/snmp/mib_structs.c similarity index 100% rename from libraries/net/lwip/lwip/core/snmp/mib_structs.c rename to features/unsupported/net/lwip/lwip/core/snmp/mib_structs.c diff --git a/libraries/net/lwip/lwip/core/snmp/msg_in.c b/features/unsupported/net/lwip/lwip/core/snmp/msg_in.c similarity index 100% rename from libraries/net/lwip/lwip/core/snmp/msg_in.c rename to features/unsupported/net/lwip/lwip/core/snmp/msg_in.c diff --git a/libraries/net/lwip/lwip/core/snmp/msg_out.c b/features/unsupported/net/lwip/lwip/core/snmp/msg_out.c similarity index 100% rename from libraries/net/lwip/lwip/core/snmp/msg_out.c rename to features/unsupported/net/lwip/lwip/core/snmp/msg_out.c diff --git a/libraries/net/lwip/lwip/core/stats.c b/features/unsupported/net/lwip/lwip/core/stats.c similarity index 100% rename from libraries/net/lwip/lwip/core/stats.c rename to features/unsupported/net/lwip/lwip/core/stats.c diff --git a/libraries/net/lwip/lwip/core/tcp.c b/features/unsupported/net/lwip/lwip/core/tcp.c similarity index 100% rename from libraries/net/lwip/lwip/core/tcp.c rename to features/unsupported/net/lwip/lwip/core/tcp.c diff --git a/libraries/net/lwip/lwip/core/tcp_in.c b/features/unsupported/net/lwip/lwip/core/tcp_in.c similarity index 100% rename from libraries/net/lwip/lwip/core/tcp_in.c rename to features/unsupported/net/lwip/lwip/core/tcp_in.c diff --git a/libraries/net/lwip/lwip/core/tcp_out.c b/features/unsupported/net/lwip/lwip/core/tcp_out.c similarity index 100% rename from libraries/net/lwip/lwip/core/tcp_out.c rename to features/unsupported/net/lwip/lwip/core/tcp_out.c diff --git a/libraries/net/lwip/lwip/core/timers.c b/features/unsupported/net/lwip/lwip/core/timers.c similarity index 100% rename from libraries/net/lwip/lwip/core/timers.c rename to features/unsupported/net/lwip/lwip/core/timers.c diff --git a/libraries/net/lwip/lwip/core/udp.c b/features/unsupported/net/lwip/lwip/core/udp.c similarity index 100% rename from libraries/net/lwip/lwip/core/udp.c rename to features/unsupported/net/lwip/lwip/core/udp.c diff --git a/libraries/net/lwip/lwip/include/ipv4/lwip/autoip.h b/features/unsupported/net/lwip/lwip/include/ipv4/lwip/autoip.h similarity index 100% rename from libraries/net/lwip/lwip/include/ipv4/lwip/autoip.h rename to features/unsupported/net/lwip/lwip/include/ipv4/lwip/autoip.h diff --git a/libraries/net/lwip/lwip/include/ipv4/lwip/icmp.h b/features/unsupported/net/lwip/lwip/include/ipv4/lwip/icmp.h similarity index 100% rename from libraries/net/lwip/lwip/include/ipv4/lwip/icmp.h rename to features/unsupported/net/lwip/lwip/include/ipv4/lwip/icmp.h diff --git a/libraries/net/lwip/lwip/include/ipv4/lwip/igmp.h b/features/unsupported/net/lwip/lwip/include/ipv4/lwip/igmp.h similarity index 100% rename from libraries/net/lwip/lwip/include/ipv4/lwip/igmp.h rename to features/unsupported/net/lwip/lwip/include/ipv4/lwip/igmp.h diff --git a/libraries/net/lwip/lwip/include/ipv4/lwip/inet.h b/features/unsupported/net/lwip/lwip/include/ipv4/lwip/inet.h similarity index 100% rename from libraries/net/lwip/lwip/include/ipv4/lwip/inet.h rename to features/unsupported/net/lwip/lwip/include/ipv4/lwip/inet.h diff --git a/libraries/net/lwip/lwip/include/ipv4/lwip/inet_chksum.h b/features/unsupported/net/lwip/lwip/include/ipv4/lwip/inet_chksum.h similarity index 100% rename from libraries/net/lwip/lwip/include/ipv4/lwip/inet_chksum.h rename to features/unsupported/net/lwip/lwip/include/ipv4/lwip/inet_chksum.h diff --git a/libraries/net/lwip/lwip/include/ipv4/lwip/ip.h b/features/unsupported/net/lwip/lwip/include/ipv4/lwip/ip.h similarity index 100% rename from libraries/net/lwip/lwip/include/ipv4/lwip/ip.h rename to features/unsupported/net/lwip/lwip/include/ipv4/lwip/ip.h diff --git a/libraries/net/lwip/lwip/include/ipv4/lwip/ip_addr.h b/features/unsupported/net/lwip/lwip/include/ipv4/lwip/ip_addr.h similarity index 100% rename from libraries/net/lwip/lwip/include/ipv4/lwip/ip_addr.h rename to features/unsupported/net/lwip/lwip/include/ipv4/lwip/ip_addr.h diff --git a/libraries/net/lwip/lwip/include/ipv4/lwip/ip_frag.h b/features/unsupported/net/lwip/lwip/include/ipv4/lwip/ip_frag.h similarity index 100% rename from libraries/net/lwip/lwip/include/ipv4/lwip/ip_frag.h rename to features/unsupported/net/lwip/lwip/include/ipv4/lwip/ip_frag.h diff --git a/libraries/net/lwip/lwip/include/lwip/api.h b/features/unsupported/net/lwip/lwip/include/lwip/api.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/api.h rename to features/unsupported/net/lwip/lwip/include/lwip/api.h diff --git a/libraries/net/lwip/lwip/include/lwip/api_msg.h b/features/unsupported/net/lwip/lwip/include/lwip/api_msg.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/api_msg.h rename to features/unsupported/net/lwip/lwip/include/lwip/api_msg.h diff --git a/libraries/net/lwip/lwip/include/lwip/arch.h b/features/unsupported/net/lwip/lwip/include/lwip/arch.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/arch.h rename to features/unsupported/net/lwip/lwip/include/lwip/arch.h diff --git a/libraries/net/lwip/lwip/include/lwip/debug.h b/features/unsupported/net/lwip/lwip/include/lwip/debug.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/debug.h rename to features/unsupported/net/lwip/lwip/include/lwip/debug.h diff --git a/libraries/net/lwip/lwip/include/lwip/def.h b/features/unsupported/net/lwip/lwip/include/lwip/def.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/def.h rename to features/unsupported/net/lwip/lwip/include/lwip/def.h diff --git a/libraries/net/lwip/lwip/include/lwip/dhcp.h b/features/unsupported/net/lwip/lwip/include/lwip/dhcp.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/dhcp.h rename to features/unsupported/net/lwip/lwip/include/lwip/dhcp.h diff --git a/libraries/net/lwip/lwip/include/lwip/dns.h b/features/unsupported/net/lwip/lwip/include/lwip/dns.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/dns.h rename to features/unsupported/net/lwip/lwip/include/lwip/dns.h diff --git a/libraries/net/lwip/lwip/include/lwip/err.h b/features/unsupported/net/lwip/lwip/include/lwip/err.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/err.h rename to features/unsupported/net/lwip/lwip/include/lwip/err.h diff --git a/libraries/net/lwip/lwip/include/lwip/init.h b/features/unsupported/net/lwip/lwip/include/lwip/init.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/init.h rename to features/unsupported/net/lwip/lwip/include/lwip/init.h diff --git a/libraries/net/lwip/lwip/include/lwip/mem.h b/features/unsupported/net/lwip/lwip/include/lwip/mem.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/mem.h rename to features/unsupported/net/lwip/lwip/include/lwip/mem.h diff --git a/libraries/net/lwip/lwip/include/lwip/memp.h b/features/unsupported/net/lwip/lwip/include/lwip/memp.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/memp.h rename to features/unsupported/net/lwip/lwip/include/lwip/memp.h diff --git a/libraries/net/lwip/lwip/include/lwip/memp_std.h b/features/unsupported/net/lwip/lwip/include/lwip/memp_std.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/memp_std.h rename to features/unsupported/net/lwip/lwip/include/lwip/memp_std.h diff --git a/libraries/net/lwip/lwip/include/lwip/netbuf.h b/features/unsupported/net/lwip/lwip/include/lwip/netbuf.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/netbuf.h rename to features/unsupported/net/lwip/lwip/include/lwip/netbuf.h diff --git a/libraries/net/lwip/lwip/include/lwip/netdb.h b/features/unsupported/net/lwip/lwip/include/lwip/netdb.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/netdb.h rename to features/unsupported/net/lwip/lwip/include/lwip/netdb.h diff --git a/libraries/net/lwip/lwip/include/lwip/netif.h b/features/unsupported/net/lwip/lwip/include/lwip/netif.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/netif.h rename to features/unsupported/net/lwip/lwip/include/lwip/netif.h diff --git a/libraries/net/lwip/lwip/include/lwip/netifapi.h b/features/unsupported/net/lwip/lwip/include/lwip/netifapi.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/netifapi.h rename to features/unsupported/net/lwip/lwip/include/lwip/netifapi.h diff --git a/libraries/net/lwip/lwip/include/lwip/opt.h b/features/unsupported/net/lwip/lwip/include/lwip/opt.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/opt.h rename to features/unsupported/net/lwip/lwip/include/lwip/opt.h diff --git a/libraries/net/lwip/lwip/include/lwip/pbuf.h b/features/unsupported/net/lwip/lwip/include/lwip/pbuf.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/pbuf.h rename to features/unsupported/net/lwip/lwip/include/lwip/pbuf.h diff --git a/libraries/net/lwip/lwip/include/lwip/raw.h b/features/unsupported/net/lwip/lwip/include/lwip/raw.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/raw.h rename to features/unsupported/net/lwip/lwip/include/lwip/raw.h diff --git a/libraries/net/lwip/lwip/include/lwip/sio.h b/features/unsupported/net/lwip/lwip/include/lwip/sio.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/sio.h rename to features/unsupported/net/lwip/lwip/include/lwip/sio.h diff --git a/libraries/net/lwip/lwip/include/lwip/snmp.h b/features/unsupported/net/lwip/lwip/include/lwip/snmp.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/snmp.h rename to features/unsupported/net/lwip/lwip/include/lwip/snmp.h diff --git a/libraries/net/lwip/lwip/include/lwip/snmp_asn1.h b/features/unsupported/net/lwip/lwip/include/lwip/snmp_asn1.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/snmp_asn1.h rename to features/unsupported/net/lwip/lwip/include/lwip/snmp_asn1.h diff --git a/libraries/net/lwip/lwip/include/lwip/snmp_msg.h b/features/unsupported/net/lwip/lwip/include/lwip/snmp_msg.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/snmp_msg.h rename to features/unsupported/net/lwip/lwip/include/lwip/snmp_msg.h diff --git a/libraries/net/lwip/lwip/include/lwip/snmp_structs.h b/features/unsupported/net/lwip/lwip/include/lwip/snmp_structs.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/snmp_structs.h rename to features/unsupported/net/lwip/lwip/include/lwip/snmp_structs.h diff --git a/libraries/net/lwip/lwip/include/lwip/sockets.h b/features/unsupported/net/lwip/lwip/include/lwip/sockets.h similarity index 99% rename from libraries/net/lwip/lwip/include/lwip/sockets.h rename to features/unsupported/net/lwip/lwip/include/lwip/sockets.h index 3c8fed24e6..57c4e14cff 100644 --- a/libraries/net/lwip/lwip/include/lwip/sockets.h +++ b/features/unsupported/net/lwip/lwip/include/lwip/sockets.h @@ -304,7 +304,7 @@ typedef struct ip_mreq { /** LWIP_TIMEVAL_PRIVATE: if you want to use the struct timeval provided * by your system, set this to 0 and include in cc.h */ #ifndef LWIP_TIMEVAL_PRIVATE -#define LWIP_TIMEVAL_PRIVATE 1 +#define LWIP_TIMEVAL_PRIVATE 0 #endif #if LWIP_TIMEVAL_PRIVATE diff --git a/libraries/net/lwip/lwip/include/lwip/stats.h b/features/unsupported/net/lwip/lwip/include/lwip/stats.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/stats.h rename to features/unsupported/net/lwip/lwip/include/lwip/stats.h diff --git a/libraries/net/lwip/lwip/include/lwip/sys.h b/features/unsupported/net/lwip/lwip/include/lwip/sys.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/sys.h rename to features/unsupported/net/lwip/lwip/include/lwip/sys.h diff --git a/libraries/net/lwip/lwip/include/lwip/tcp.h b/features/unsupported/net/lwip/lwip/include/lwip/tcp.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/tcp.h rename to features/unsupported/net/lwip/lwip/include/lwip/tcp.h diff --git a/libraries/net/lwip/lwip/include/lwip/tcp_impl.h b/features/unsupported/net/lwip/lwip/include/lwip/tcp_impl.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/tcp_impl.h rename to features/unsupported/net/lwip/lwip/include/lwip/tcp_impl.h diff --git a/libraries/net/lwip/lwip/include/lwip/tcpip.h b/features/unsupported/net/lwip/lwip/include/lwip/tcpip.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/tcpip.h rename to features/unsupported/net/lwip/lwip/include/lwip/tcpip.h diff --git a/libraries/net/lwip/lwip/include/lwip/timers.h b/features/unsupported/net/lwip/lwip/include/lwip/timers.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/timers.h rename to features/unsupported/net/lwip/lwip/include/lwip/timers.h diff --git a/libraries/net/lwip/lwip/include/lwip/udp.h b/features/unsupported/net/lwip/lwip/include/lwip/udp.h similarity index 100% rename from libraries/net/lwip/lwip/include/lwip/udp.h rename to features/unsupported/net/lwip/lwip/include/lwip/udp.h diff --git a/libraries/net/lwip/lwip/include/netif/etharp.h b/features/unsupported/net/lwip/lwip/include/netif/etharp.h similarity index 100% rename from libraries/net/lwip/lwip/include/netif/etharp.h rename to features/unsupported/net/lwip/lwip/include/netif/etharp.h diff --git a/libraries/net/lwip/lwip/include/netif/ppp_oe.h b/features/unsupported/net/lwip/lwip/include/netif/ppp_oe.h similarity index 100% rename from libraries/net/lwip/lwip/include/netif/ppp_oe.h rename to features/unsupported/net/lwip/lwip/include/netif/ppp_oe.h diff --git a/libraries/net/lwip/lwip/include/netif/slipif.h b/features/unsupported/net/lwip/lwip/include/netif/slipif.h similarity index 100% rename from libraries/net/lwip/lwip/include/netif/slipif.h rename to features/unsupported/net/lwip/lwip/include/netif/slipif.h diff --git a/libraries/net/lwip/lwip/lwipopts.h b/features/unsupported/net/lwip/lwip/lwipopts.h similarity index 100% rename from libraries/net/lwip/lwip/lwipopts.h rename to features/unsupported/net/lwip/lwip/lwipopts.h diff --git a/libraries/net/lwip/lwip/netif/etharp.c b/features/unsupported/net/lwip/lwip/netif/etharp.c similarity index 100% rename from libraries/net/lwip/lwip/netif/etharp.c rename to features/unsupported/net/lwip/lwip/netif/etharp.c diff --git a/libraries/net/lwip/lwip/netif/ethernetif.c b/features/unsupported/net/lwip/lwip/netif/ethernetif.c similarity index 100% rename from libraries/net/lwip/lwip/netif/ethernetif.c rename to features/unsupported/net/lwip/lwip/netif/ethernetif.c diff --git a/libraries/net/lwip/lwip/netif/ppp/auth.c b/features/unsupported/net/lwip/lwip/netif/ppp/auth.c similarity index 100% rename from libraries/net/lwip/lwip/netif/ppp/auth.c rename to features/unsupported/net/lwip/lwip/netif/ppp/auth.c diff --git a/libraries/net/lwip/lwip/netif/ppp/auth.h b/features/unsupported/net/lwip/lwip/netif/ppp/auth.h similarity index 100% rename from libraries/net/lwip/lwip/netif/ppp/auth.h rename to features/unsupported/net/lwip/lwip/netif/ppp/auth.h diff --git a/libraries/net/lwip/lwip/netif/ppp/chap.c b/features/unsupported/net/lwip/lwip/netif/ppp/chap.c similarity index 100% rename from libraries/net/lwip/lwip/netif/ppp/chap.c rename to features/unsupported/net/lwip/lwip/netif/ppp/chap.c diff --git a/libraries/net/lwip/lwip/netif/ppp/chap.h b/features/unsupported/net/lwip/lwip/netif/ppp/chap.h similarity index 100% rename from libraries/net/lwip/lwip/netif/ppp/chap.h rename to features/unsupported/net/lwip/lwip/netif/ppp/chap.h diff --git a/libraries/net/lwip/lwip/netif/ppp/chpms.c b/features/unsupported/net/lwip/lwip/netif/ppp/chpms.c similarity index 100% rename from libraries/net/lwip/lwip/netif/ppp/chpms.c rename to features/unsupported/net/lwip/lwip/netif/ppp/chpms.c diff --git a/libraries/net/lwip/lwip/netif/ppp/chpms.h b/features/unsupported/net/lwip/lwip/netif/ppp/chpms.h similarity index 100% rename from libraries/net/lwip/lwip/netif/ppp/chpms.h rename to features/unsupported/net/lwip/lwip/netif/ppp/chpms.h diff --git a/libraries/net/lwip/lwip/netif/ppp/fsm.c b/features/unsupported/net/lwip/lwip/netif/ppp/fsm.c similarity index 100% rename from libraries/net/lwip/lwip/netif/ppp/fsm.c rename to features/unsupported/net/lwip/lwip/netif/ppp/fsm.c diff --git a/libraries/net/lwip/lwip/netif/ppp/fsm.h b/features/unsupported/net/lwip/lwip/netif/ppp/fsm.h similarity index 100% rename from libraries/net/lwip/lwip/netif/ppp/fsm.h rename to features/unsupported/net/lwip/lwip/netif/ppp/fsm.h diff --git a/libraries/net/lwip/lwip/netif/ppp/ipcp.c b/features/unsupported/net/lwip/lwip/netif/ppp/ipcp.c similarity index 100% rename from libraries/net/lwip/lwip/netif/ppp/ipcp.c rename to features/unsupported/net/lwip/lwip/netif/ppp/ipcp.c diff --git a/libraries/net/lwip/lwip/netif/ppp/ipcp.h b/features/unsupported/net/lwip/lwip/netif/ppp/ipcp.h similarity index 100% rename from libraries/net/lwip/lwip/netif/ppp/ipcp.h rename to features/unsupported/net/lwip/lwip/netif/ppp/ipcp.h diff --git a/libraries/net/lwip/lwip/netif/ppp/lcp.c b/features/unsupported/net/lwip/lwip/netif/ppp/lcp.c similarity index 100% rename from libraries/net/lwip/lwip/netif/ppp/lcp.c rename to features/unsupported/net/lwip/lwip/netif/ppp/lcp.c diff --git a/libraries/net/lwip/lwip/netif/ppp/lcp.h b/features/unsupported/net/lwip/lwip/netif/ppp/lcp.h similarity index 100% rename from libraries/net/lwip/lwip/netif/ppp/lcp.h rename to features/unsupported/net/lwip/lwip/netif/ppp/lcp.h diff --git a/libraries/net/lwip/lwip/netif/ppp/magic.c b/features/unsupported/net/lwip/lwip/netif/ppp/magic.c similarity index 100% rename from libraries/net/lwip/lwip/netif/ppp/magic.c rename to features/unsupported/net/lwip/lwip/netif/ppp/magic.c diff --git a/libraries/net/lwip/lwip/netif/ppp/magic.h b/features/unsupported/net/lwip/lwip/netif/ppp/magic.h similarity index 100% rename from libraries/net/lwip/lwip/netif/ppp/magic.h rename to features/unsupported/net/lwip/lwip/netif/ppp/magic.h diff --git a/libraries/net/lwip/lwip/netif/ppp/md5.c b/features/unsupported/net/lwip/lwip/netif/ppp/md5.c similarity index 100% rename from libraries/net/lwip/lwip/netif/ppp/md5.c rename to features/unsupported/net/lwip/lwip/netif/ppp/md5.c diff --git a/libraries/net/lwip/lwip/netif/ppp/md5.h b/features/unsupported/net/lwip/lwip/netif/ppp/md5.h similarity index 100% rename from libraries/net/lwip/lwip/netif/ppp/md5.h rename to features/unsupported/net/lwip/lwip/netif/ppp/md5.h diff --git a/libraries/net/lwip/lwip/netif/ppp/pap.c b/features/unsupported/net/lwip/lwip/netif/ppp/pap.c similarity index 100% rename from libraries/net/lwip/lwip/netif/ppp/pap.c rename to features/unsupported/net/lwip/lwip/netif/ppp/pap.c diff --git a/libraries/net/lwip/lwip/netif/ppp/pap.h b/features/unsupported/net/lwip/lwip/netif/ppp/pap.h similarity index 100% rename from libraries/net/lwip/lwip/netif/ppp/pap.h rename to features/unsupported/net/lwip/lwip/netif/ppp/pap.h diff --git a/libraries/net/lwip/lwip/netif/ppp/ppp.c b/features/unsupported/net/lwip/lwip/netif/ppp/ppp.c similarity index 100% rename from libraries/net/lwip/lwip/netif/ppp/ppp.c rename to features/unsupported/net/lwip/lwip/netif/ppp/ppp.c diff --git a/libraries/net/lwip/lwip/netif/ppp/ppp.h b/features/unsupported/net/lwip/lwip/netif/ppp/ppp.h similarity index 100% rename from libraries/net/lwip/lwip/netif/ppp/ppp.h rename to features/unsupported/net/lwip/lwip/netif/ppp/ppp.h diff --git a/libraries/net/lwip/lwip/netif/ppp/ppp_oe.c b/features/unsupported/net/lwip/lwip/netif/ppp/ppp_oe.c similarity index 100% rename from libraries/net/lwip/lwip/netif/ppp/ppp_oe.c rename to features/unsupported/net/lwip/lwip/netif/ppp/ppp_oe.c diff --git a/libraries/net/lwip/lwip/netif/ppp/pppdebug.h b/features/unsupported/net/lwip/lwip/netif/ppp/pppdebug.h similarity index 100% rename from libraries/net/lwip/lwip/netif/ppp/pppdebug.h rename to features/unsupported/net/lwip/lwip/netif/ppp/pppdebug.h diff --git a/libraries/net/lwip/lwip/netif/ppp/randm.c b/features/unsupported/net/lwip/lwip/netif/ppp/randm.c similarity index 100% rename from libraries/net/lwip/lwip/netif/ppp/randm.c rename to features/unsupported/net/lwip/lwip/netif/ppp/randm.c diff --git a/libraries/net/lwip/lwip/netif/ppp/randm.h b/features/unsupported/net/lwip/lwip/netif/ppp/randm.h similarity index 100% rename from libraries/net/lwip/lwip/netif/ppp/randm.h rename to features/unsupported/net/lwip/lwip/netif/ppp/randm.h diff --git a/libraries/net/lwip/lwip/netif/ppp/vj.c b/features/unsupported/net/lwip/lwip/netif/ppp/vj.c similarity index 100% rename from libraries/net/lwip/lwip/netif/ppp/vj.c rename to features/unsupported/net/lwip/lwip/netif/ppp/vj.c diff --git a/libraries/net/lwip/lwip/netif/ppp/vj.h b/features/unsupported/net/lwip/lwip/netif/ppp/vj.h similarity index 100% rename from libraries/net/lwip/lwip/netif/ppp/vj.h rename to features/unsupported/net/lwip/lwip/netif/ppp/vj.h diff --git a/libraries/net/lwip/lwip/netif/slipif.c b/features/unsupported/net/lwip/lwip/netif/slipif.c similarity index 100% rename from libraries/net/lwip/lwip/netif/slipif.c rename to features/unsupported/net/lwip/lwip/netif/slipif.c diff --git a/libraries/rpc/Arguments.cpp b/features/unsupported/rpc/Arguments.cpp similarity index 100% rename from libraries/rpc/Arguments.cpp rename to features/unsupported/rpc/Arguments.cpp diff --git a/libraries/rpc/Arguments.h b/features/unsupported/rpc/Arguments.h similarity index 100% rename from libraries/rpc/Arguments.h rename to features/unsupported/rpc/Arguments.h diff --git a/libraries/rpc/RPCFunction.cpp b/features/unsupported/rpc/RPCFunction.cpp similarity index 100% rename from libraries/rpc/RPCFunction.cpp rename to features/unsupported/rpc/RPCFunction.cpp diff --git a/libraries/rpc/RPCFunction.h b/features/unsupported/rpc/RPCFunction.h similarity index 100% rename from libraries/rpc/RPCFunction.h rename to features/unsupported/rpc/RPCFunction.h diff --git a/libraries/rpc/RPCVariable.h b/features/unsupported/rpc/RPCVariable.h similarity index 100% rename from libraries/rpc/RPCVariable.h rename to features/unsupported/rpc/RPCVariable.h diff --git a/libraries/rpc/RpcClasses.h b/features/unsupported/rpc/RpcClasses.h similarity index 100% rename from libraries/rpc/RpcClasses.h rename to features/unsupported/rpc/RpcClasses.h diff --git a/libraries/rpc/mbed_rpc.h b/features/unsupported/rpc/mbed_rpc.h similarity index 100% rename from libraries/rpc/mbed_rpc.h rename to features/unsupported/rpc/mbed_rpc.h diff --git a/libraries/rpc/parse_pins.cpp b/features/unsupported/rpc/parse_pins.cpp similarity index 100% rename from libraries/rpc/parse_pins.cpp rename to features/unsupported/rpc/parse_pins.cpp diff --git a/libraries/rpc/parse_pins.h b/features/unsupported/rpc/parse_pins.h similarity index 100% rename from libraries/rpc/parse_pins.h rename to features/unsupported/rpc/parse_pins.h diff --git a/libraries/rpc/rpc.cpp b/features/unsupported/rpc/rpc.cpp similarity index 100% rename from libraries/rpc/rpc.cpp rename to features/unsupported/rpc/rpc.cpp diff --git a/libraries/rpc/rpc.h b/features/unsupported/rpc/rpc.h similarity index 100% rename from libraries/rpc/rpc.h rename to features/unsupported/rpc/rpc.h diff --git a/libraries/tests/KL25Z/lptmr/main.cpp b/features/unsupported/tests/KL25Z/lptmr/main.cpp similarity index 100% rename from libraries/tests/KL25Z/lptmr/main.cpp rename to features/unsupported/tests/KL25Z/lptmr/main.cpp diff --git a/libraries/tests/KL25Z/pit/main.cpp b/features/unsupported/tests/KL25Z/pit/main.cpp similarity index 100% rename from libraries/tests/KL25Z/pit/main.cpp rename to features/unsupported/tests/KL25Z/pit/main.cpp diff --git a/libraries/tests/KL25Z/rtc/main.cpp b/features/unsupported/tests/KL25Z/rtc/main.cpp similarity index 100% rename from libraries/tests/KL25Z/rtc/main.cpp rename to features/unsupported/tests/KL25Z/rtc/main.cpp diff --git a/libraries/tests/benchmarks/all/main.cpp b/features/unsupported/tests/benchmarks/all/main.cpp similarity index 100% rename from libraries/tests/benchmarks/all/main.cpp rename to features/unsupported/tests/benchmarks/all/main.cpp diff --git a/libraries/tests/benchmarks/cenv/main.cpp b/features/unsupported/tests/benchmarks/cenv/main.cpp similarity index 100% rename from libraries/tests/benchmarks/cenv/main.cpp rename to features/unsupported/tests/benchmarks/cenv/main.cpp diff --git a/libraries/tests/benchmarks/float_math/main.cpp b/features/unsupported/tests/benchmarks/float_math/main.cpp similarity index 100% rename from libraries/tests/benchmarks/float_math/main.cpp rename to features/unsupported/tests/benchmarks/float_math/main.cpp diff --git a/libraries/tests/benchmarks/mbed/main.cpp b/features/unsupported/tests/benchmarks/mbed/main.cpp similarity index 100% rename from libraries/tests/benchmarks/mbed/main.cpp rename to features/unsupported/tests/benchmarks/mbed/main.cpp diff --git a/libraries/tests/benchmarks/printf/main.cpp b/features/unsupported/tests/benchmarks/printf/main.cpp similarity index 100% rename from libraries/tests/benchmarks/printf/main.cpp rename to features/unsupported/tests/benchmarks/printf/main.cpp diff --git a/libraries/tests/dsp/cmsis/fir_f32/data.cpp b/features/unsupported/tests/dsp/cmsis/fir_f32/data.cpp similarity index 100% rename from libraries/tests/dsp/cmsis/fir_f32/data.cpp rename to features/unsupported/tests/dsp/cmsis/fir_f32/data.cpp diff --git a/libraries/tests/dsp/cmsis/fir_f32/main.cpp b/features/unsupported/tests/dsp/cmsis/fir_f32/main.cpp similarity index 100% rename from libraries/tests/dsp/cmsis/fir_f32/main.cpp rename to features/unsupported/tests/dsp/cmsis/fir_f32/main.cpp diff --git a/libraries/tests/dsp/mbed/fir_f32/main.cpp b/features/unsupported/tests/dsp/mbed/fir_f32/main.cpp similarity index 100% rename from libraries/tests/dsp/mbed/fir_f32/main.cpp rename to features/unsupported/tests/dsp/mbed/fir_f32/main.cpp diff --git a/libraries/tests/export/mcb1700/main.cpp b/features/unsupported/tests/export/mcb1700/main.cpp similarity index 100% rename from libraries/tests/export/mcb1700/main.cpp rename to features/unsupported/tests/export/mcb1700/main.cpp diff --git a/libraries/tests/libs/SPIHalfDuplex/SPIHalfDuplex.cpp b/features/unsupported/tests/libs/SPIHalfDuplex/SPIHalfDuplex.cpp similarity index 100% rename from libraries/tests/libs/SPIHalfDuplex/SPIHalfDuplex.cpp rename to features/unsupported/tests/libs/SPIHalfDuplex/SPIHalfDuplex.cpp diff --git a/libraries/tests/libs/SPIHalfDuplex/SPIHalfDuplex.h b/features/unsupported/tests/libs/SPIHalfDuplex/SPIHalfDuplex.h similarity index 100% rename from libraries/tests/libs/SPIHalfDuplex/SPIHalfDuplex.h rename to features/unsupported/tests/libs/SPIHalfDuplex/SPIHalfDuplex.h diff --git a/libraries/tests/libs/SerialHalfDuplex/SerialHalfDuplex.cpp b/features/unsupported/tests/libs/SerialHalfDuplex/SerialHalfDuplex.cpp similarity index 100% rename from libraries/tests/libs/SerialHalfDuplex/SerialHalfDuplex.cpp rename to features/unsupported/tests/libs/SerialHalfDuplex/SerialHalfDuplex.cpp diff --git a/libraries/tests/libs/SerialHalfDuplex/SerialHalfDuplex.h b/features/unsupported/tests/libs/SerialHalfDuplex/SerialHalfDuplex.h similarity index 100% rename from libraries/tests/libs/SerialHalfDuplex/SerialHalfDuplex.h rename to features/unsupported/tests/libs/SerialHalfDuplex/SerialHalfDuplex.h diff --git a/libraries/tests/mbed/analog/main.cpp b/features/unsupported/tests/mbed/analog/main.cpp similarity index 100% rename from libraries/tests/mbed/analog/main.cpp rename to features/unsupported/tests/mbed/analog/main.cpp diff --git a/libraries/tests/mbed/analog_in/main.cpp b/features/unsupported/tests/mbed/analog_in/main.cpp similarity index 100% rename from libraries/tests/mbed/analog_in/main.cpp rename to features/unsupported/tests/mbed/analog_in/main.cpp diff --git a/libraries/tests/mbed/analog_pot/main.cpp b/features/unsupported/tests/mbed/analog_pot/main.cpp similarity index 100% rename from libraries/tests/mbed/analog_pot/main.cpp rename to features/unsupported/tests/mbed/analog_pot/main.cpp diff --git a/libraries/tests/mbed/basic/main.cpp b/features/unsupported/tests/mbed/basic/main.cpp similarity index 100% rename from libraries/tests/mbed/basic/main.cpp rename to features/unsupported/tests/mbed/basic/main.cpp diff --git a/libraries/tests/mbed/blinky/main.cpp b/features/unsupported/tests/mbed/blinky/main.cpp similarity index 100% rename from libraries/tests/mbed/blinky/main.cpp rename to features/unsupported/tests/mbed/blinky/main.cpp diff --git a/libraries/tests/mbed/bus/main.cpp b/features/unsupported/tests/mbed/bus/main.cpp similarity index 100% rename from libraries/tests/mbed/bus/main.cpp rename to features/unsupported/tests/mbed/bus/main.cpp diff --git a/libraries/tests/mbed/bus_out/main.cpp b/features/unsupported/tests/mbed/bus_out/main.cpp similarity index 100% rename from libraries/tests/mbed/bus_out/main.cpp rename to features/unsupported/tests/mbed/bus_out/main.cpp diff --git a/libraries/tests/mbed/call_before_main/main.cpp b/features/unsupported/tests/mbed/call_before_main/main.cpp similarity index 100% rename from libraries/tests/mbed/call_before_main/main.cpp rename to features/unsupported/tests/mbed/call_before_main/main.cpp diff --git a/libraries/tests/mbed/can/main.cpp b/features/unsupported/tests/mbed/can/main.cpp similarity index 100% rename from libraries/tests/mbed/can/main.cpp rename to features/unsupported/tests/mbed/can/main.cpp diff --git a/libraries/tests/mbed/can_interrupt/main.cpp b/features/unsupported/tests/mbed/can_interrupt/main.cpp similarity index 100% rename from libraries/tests/mbed/can_interrupt/main.cpp rename to features/unsupported/tests/mbed/can_interrupt/main.cpp diff --git a/libraries/tests/mbed/can_loopback/main.cpp b/features/unsupported/tests/mbed/can_loopback/main.cpp similarity index 100% rename from libraries/tests/mbed/can_loopback/main.cpp rename to features/unsupported/tests/mbed/can_loopback/main.cpp diff --git a/libraries/tests/mbed/cpp/main.cpp b/features/unsupported/tests/mbed/cpp/main.cpp similarity index 100% rename from libraries/tests/mbed/cpp/main.cpp rename to features/unsupported/tests/mbed/cpp/main.cpp diff --git a/libraries/tests/mbed/cstring/main.cpp b/features/unsupported/tests/mbed/cstring/main.cpp similarity index 100% rename from libraries/tests/mbed/cstring/main.cpp rename to features/unsupported/tests/mbed/cstring/main.cpp diff --git a/libraries/tests/mbed/detect/main.cpp b/features/unsupported/tests/mbed/detect/main.cpp similarity index 100% rename from libraries/tests/mbed/detect/main.cpp rename to features/unsupported/tests/mbed/detect/main.cpp diff --git a/libraries/tests/mbed/dev_null/main.cpp b/features/unsupported/tests/mbed/dev_null/main.cpp similarity index 100% rename from libraries/tests/mbed/dev_null/main.cpp rename to features/unsupported/tests/mbed/dev_null/main.cpp diff --git a/libraries/tests/mbed/digitalin_digitalout/main.cpp b/features/unsupported/tests/mbed/digitalin_digitalout/main.cpp similarity index 100% rename from libraries/tests/mbed/digitalin_digitalout/main.cpp rename to features/unsupported/tests/mbed/digitalin_digitalout/main.cpp diff --git a/libraries/tests/mbed/digitalinout/main.cpp b/features/unsupported/tests/mbed/digitalinout/main.cpp similarity index 100% rename from libraries/tests/mbed/digitalinout/main.cpp rename to features/unsupported/tests/mbed/digitalinout/main.cpp diff --git a/libraries/tests/mbed/dir/main.cpp b/features/unsupported/tests/mbed/dir/main.cpp similarity index 100% rename from libraries/tests/mbed/dir/main.cpp rename to features/unsupported/tests/mbed/dir/main.cpp diff --git a/libraries/tests/mbed/dir_sd/main.cpp b/features/unsupported/tests/mbed/dir_sd/main.cpp similarity index 100% rename from libraries/tests/mbed/dir_sd/main.cpp rename to features/unsupported/tests/mbed/dir_sd/main.cpp diff --git a/libraries/tests/mbed/div/main.cpp b/features/unsupported/tests/mbed/div/main.cpp similarity index 100% rename from libraries/tests/mbed/div/main.cpp rename to features/unsupported/tests/mbed/div/main.cpp diff --git a/libraries/tests/mbed/echo/main.cpp b/features/unsupported/tests/mbed/echo/main.cpp similarity index 100% rename from libraries/tests/mbed/echo/main.cpp rename to features/unsupported/tests/mbed/echo/main.cpp diff --git a/libraries/tests/mbed/echo_flow_control/main.cpp b/features/unsupported/tests/mbed/echo_flow_control/main.cpp similarity index 100% rename from libraries/tests/mbed/echo_flow_control/main.cpp rename to features/unsupported/tests/mbed/echo_flow_control/main.cpp diff --git a/libraries/tests/mbed/env/test_env.cpp b/features/unsupported/tests/mbed/env/test_env.cpp similarity index 100% rename from libraries/tests/mbed/env/test_env.cpp rename to features/unsupported/tests/mbed/env/test_env.cpp diff --git a/libraries/tests/mbed/env/test_env.h b/features/unsupported/tests/mbed/env/test_env.h similarity index 100% rename from libraries/tests/mbed/env/test_env.h rename to features/unsupported/tests/mbed/env/test_env.h diff --git a/libraries/tests/mbed/file/main.cpp b/features/unsupported/tests/mbed/file/main.cpp similarity index 100% rename from libraries/tests/mbed/file/main.cpp rename to features/unsupported/tests/mbed/file/main.cpp diff --git a/libraries/tests/mbed/freopen/TextDisplay.cpp b/features/unsupported/tests/mbed/freopen/TextDisplay.cpp similarity index 100% rename from libraries/tests/mbed/freopen/TextDisplay.cpp rename to features/unsupported/tests/mbed/freopen/TextDisplay.cpp diff --git a/libraries/tests/mbed/freopen/TextDisplay.h b/features/unsupported/tests/mbed/freopen/TextDisplay.h similarity index 100% rename from libraries/tests/mbed/freopen/TextDisplay.h rename to features/unsupported/tests/mbed/freopen/TextDisplay.h diff --git a/libraries/tests/mbed/freopen/TextLCD.cpp b/features/unsupported/tests/mbed/freopen/TextLCD.cpp similarity index 100% rename from libraries/tests/mbed/freopen/TextLCD.cpp rename to features/unsupported/tests/mbed/freopen/TextLCD.cpp diff --git a/libraries/tests/mbed/freopen/TextLCD.h b/features/unsupported/tests/mbed/freopen/TextLCD.h similarity index 100% rename from libraries/tests/mbed/freopen/TextLCD.h rename to features/unsupported/tests/mbed/freopen/TextLCD.h diff --git a/libraries/tests/mbed/freopen/main.cpp b/features/unsupported/tests/mbed/freopen/main.cpp similarity index 100% rename from libraries/tests/mbed/freopen/main.cpp rename to features/unsupported/tests/mbed/freopen/main.cpp diff --git a/libraries/tests/mbed/fs/main.cpp b/features/unsupported/tests/mbed/fs/main.cpp similarity index 100% rename from libraries/tests/mbed/fs/main.cpp rename to features/unsupported/tests/mbed/fs/main.cpp diff --git a/libraries/tests/mbed/heap_and_stack/main.cpp b/features/unsupported/tests/mbed/heap_and_stack/main.cpp similarity index 100% rename from libraries/tests/mbed/heap_and_stack/main.cpp rename to features/unsupported/tests/mbed/heap_and_stack/main.cpp diff --git a/libraries/tests/mbed/hello/main.cpp b/features/unsupported/tests/mbed/hello/main.cpp similarity index 100% rename from libraries/tests/mbed/hello/main.cpp rename to features/unsupported/tests/mbed/hello/main.cpp diff --git a/libraries/tests/mbed/i2c_MMA8451Q/main.cpp b/features/unsupported/tests/mbed/i2c_MMA8451Q/main.cpp similarity index 100% rename from libraries/tests/mbed/i2c_MMA8451Q/main.cpp rename to features/unsupported/tests/mbed/i2c_MMA8451Q/main.cpp diff --git a/libraries/tests/mbed/i2c_SRF08/main.cpp b/features/unsupported/tests/mbed/i2c_SRF08/main.cpp similarity index 100% rename from libraries/tests/mbed/i2c_SRF08/main.cpp rename to features/unsupported/tests/mbed/i2c_SRF08/main.cpp diff --git a/libraries/tests/mbed/i2c_TMP102/main.cpp b/features/unsupported/tests/mbed/i2c_TMP102/main.cpp similarity index 100% rename from libraries/tests/mbed/i2c_TMP102/main.cpp rename to features/unsupported/tests/mbed/i2c_TMP102/main.cpp diff --git a/libraries/tests/mbed/i2c_at30tse75x/main.cpp b/features/unsupported/tests/mbed/i2c_at30tse75x/main.cpp similarity index 100% rename from libraries/tests/mbed/i2c_at30tse75x/main.cpp rename to features/unsupported/tests/mbed/i2c_at30tse75x/main.cpp diff --git a/libraries/tests/mbed/i2c_eeprom/main.cpp b/features/unsupported/tests/mbed/i2c_eeprom/main.cpp similarity index 100% rename from libraries/tests/mbed/i2c_eeprom/main.cpp rename to features/unsupported/tests/mbed/i2c_eeprom/main.cpp diff --git a/libraries/tests/mbed/i2c_eeprom_line/main.cpp b/features/unsupported/tests/mbed/i2c_eeprom_line/main.cpp similarity index 100% rename from libraries/tests/mbed/i2c_eeprom_line/main.cpp rename to features/unsupported/tests/mbed/i2c_eeprom_line/main.cpp diff --git a/libraries/tests/mbed/i2c_master/main.cpp b/features/unsupported/tests/mbed/i2c_master/main.cpp similarity index 100% rename from libraries/tests/mbed/i2c_master/main.cpp rename to features/unsupported/tests/mbed/i2c_master/main.cpp diff --git a/libraries/tests/mbed/i2c_master_asynch/main.cpp b/features/unsupported/tests/mbed/i2c_master_asynch/main.cpp similarity index 100% rename from libraries/tests/mbed/i2c_master_asynch/main.cpp rename to features/unsupported/tests/mbed/i2c_master_asynch/main.cpp diff --git a/libraries/tests/mbed/i2c_master_slave/main.cpp b/features/unsupported/tests/mbed/i2c_master_slave/main.cpp similarity index 100% rename from libraries/tests/mbed/i2c_master_slave/main.cpp rename to features/unsupported/tests/mbed/i2c_master_slave/main.cpp diff --git a/libraries/tests/mbed/i2c_master_slave_asynch/main.cpp b/features/unsupported/tests/mbed/i2c_master_slave_asynch/main.cpp similarity index 100% rename from libraries/tests/mbed/i2c_master_slave_asynch/main.cpp rename to features/unsupported/tests/mbed/i2c_master_slave_asynch/main.cpp diff --git a/libraries/tests/mbed/i2c_mma7660/main.cpp b/features/unsupported/tests/mbed/i2c_mma7660/main.cpp similarity index 100% rename from libraries/tests/mbed/i2c_mma7660/main.cpp rename to features/unsupported/tests/mbed/i2c_mma7660/main.cpp diff --git a/libraries/tests/mbed/i2c_slave/main.cpp b/features/unsupported/tests/mbed/i2c_slave/main.cpp similarity index 100% rename from libraries/tests/mbed/i2c_slave/main.cpp rename to features/unsupported/tests/mbed/i2c_slave/main.cpp diff --git a/libraries/tests/mbed/interrupt_chaining/main.cpp b/features/unsupported/tests/mbed/interrupt_chaining/main.cpp similarity index 100% rename from libraries/tests/mbed/interrupt_chaining/main.cpp rename to features/unsupported/tests/mbed/interrupt_chaining/main.cpp diff --git a/libraries/tests/mbed/interruptin/main.cpp b/features/unsupported/tests/mbed/interruptin/main.cpp similarity index 100% rename from libraries/tests/mbed/interruptin/main.cpp rename to features/unsupported/tests/mbed/interruptin/main.cpp diff --git a/libraries/tests/mbed/interruptin_2/main.cpp b/features/unsupported/tests/mbed/interruptin_2/main.cpp similarity index 100% rename from libraries/tests/mbed/interruptin_2/main.cpp rename to features/unsupported/tests/mbed/interruptin_2/main.cpp diff --git a/libraries/tests/mbed/modserial/main.cpp b/features/unsupported/tests/mbed/modserial/main.cpp similarity index 100% rename from libraries/tests/mbed/modserial/main.cpp rename to features/unsupported/tests/mbed/modserial/main.cpp diff --git a/libraries/tests/mbed/pin_toggling/main.cpp b/features/unsupported/tests/mbed/pin_toggling/main.cpp similarity index 100% rename from libraries/tests/mbed/pin_toggling/main.cpp rename to features/unsupported/tests/mbed/pin_toggling/main.cpp diff --git a/libraries/tests/mbed/portinout/main.cpp b/features/unsupported/tests/mbed/portinout/main.cpp similarity index 100% rename from libraries/tests/mbed/portinout/main.cpp rename to features/unsupported/tests/mbed/portinout/main.cpp diff --git a/libraries/tests/mbed/portout/main.cpp b/features/unsupported/tests/mbed/portout/main.cpp similarity index 100% rename from libraries/tests/mbed/portout/main.cpp rename to features/unsupported/tests/mbed/portout/main.cpp diff --git a/libraries/tests/mbed/portout_portin/main.cpp b/features/unsupported/tests/mbed/portout_portin/main.cpp similarity index 100% rename from libraries/tests/mbed/portout_portin/main.cpp rename to features/unsupported/tests/mbed/portout_portin/main.cpp diff --git a/libraries/tests/mbed/pwm/main.cpp b/features/unsupported/tests/mbed/pwm/main.cpp similarity index 99% rename from libraries/tests/mbed/pwm/main.cpp rename to features/unsupported/tests/mbed/pwm/main.cpp index fd5805327b..a5d025e2d6 100644 --- a/libraries/tests/mbed/pwm/main.cpp +++ b/features/unsupported/tests/mbed/pwm/main.cpp @@ -157,7 +157,7 @@ int main() { printf("Initialize PWM on pin PD_12 with duty cycle: %.2f\n", result); notify_completion(result == value ? true : false); -#elif defined(TARGET_UBLOX_C029) +#elif defined(TARGET_UBLOX_EVK_ODIN_W2) PwmOut pwm_1(PA_0); pwm_1.write(value); diff --git a/libraries/tests/mbed/pwm_led/pwm.cpp b/features/unsupported/tests/mbed/pwm_led/pwm.cpp similarity index 100% rename from libraries/tests/mbed/pwm_led/pwm.cpp rename to features/unsupported/tests/mbed/pwm_led/pwm.cpp diff --git a/libraries/tests/mbed/reset/main.cpp b/features/unsupported/tests/mbed/reset/main.cpp similarity index 100% rename from libraries/tests/mbed/reset/main.cpp rename to features/unsupported/tests/mbed/reset/main.cpp diff --git a/libraries/tests/mbed/rpc/main.cpp b/features/unsupported/tests/mbed/rpc/main.cpp similarity index 100% rename from libraries/tests/mbed/rpc/main.cpp rename to features/unsupported/tests/mbed/rpc/main.cpp diff --git a/libraries/tests/mbed/rtc/main.cpp b/features/unsupported/tests/mbed/rtc/main.cpp similarity index 100% rename from libraries/tests/mbed/rtc/main.cpp rename to features/unsupported/tests/mbed/rtc/main.cpp diff --git a/libraries/tests/mbed/sd/main.cpp b/features/unsupported/tests/mbed/sd/main.cpp similarity index 100% rename from libraries/tests/mbed/sd/main.cpp rename to features/unsupported/tests/mbed/sd/main.cpp diff --git a/libraries/tests/mbed/sd_perf_fatfs/main.cpp b/features/unsupported/tests/mbed/sd_perf_fatfs/main.cpp similarity index 100% rename from libraries/tests/mbed/sd_perf_fatfs/main.cpp rename to features/unsupported/tests/mbed/sd_perf_fatfs/main.cpp diff --git a/libraries/tests/mbed/sd_perf_fhandle/main.cpp b/features/unsupported/tests/mbed/sd_perf_fhandle/main.cpp similarity index 100% rename from libraries/tests/mbed/sd_perf_fhandle/main.cpp rename to features/unsupported/tests/mbed/sd_perf_fhandle/main.cpp diff --git a/libraries/tests/mbed/sd_perf_stdio/main.cpp b/features/unsupported/tests/mbed/sd_perf_stdio/main.cpp similarity index 100% rename from libraries/tests/mbed/sd_perf_stdio/main.cpp rename to features/unsupported/tests/mbed/sd_perf_stdio/main.cpp diff --git a/libraries/tests/mbed/semihost/main.cpp b/features/unsupported/tests/mbed/semihost/main.cpp similarity index 100% rename from libraries/tests/mbed/semihost/main.cpp rename to features/unsupported/tests/mbed/semihost/main.cpp diff --git a/libraries/tests/mbed/serial_complete/main.cpp b/features/unsupported/tests/mbed/serial_complete/main.cpp similarity index 100% rename from libraries/tests/mbed/serial_complete/main.cpp rename to features/unsupported/tests/mbed/serial_complete/main.cpp diff --git a/libraries/tests/mbed/serial_interrupt/main.cpp b/features/unsupported/tests/mbed/serial_interrupt/main.cpp similarity index 100% rename from libraries/tests/mbed/serial_interrupt/main.cpp rename to features/unsupported/tests/mbed/serial_interrupt/main.cpp diff --git a/libraries/tests/mbed/serial_interrupt_2/main.cpp b/features/unsupported/tests/mbed/serial_interrupt_2/main.cpp similarity index 100% rename from libraries/tests/mbed/serial_interrupt_2/main.cpp rename to features/unsupported/tests/mbed/serial_interrupt_2/main.cpp diff --git a/libraries/tests/mbed/serial_nc_rx/main.cpp b/features/unsupported/tests/mbed/serial_nc_rx/main.cpp similarity index 100% rename from libraries/tests/mbed/serial_nc_rx/main.cpp rename to features/unsupported/tests/mbed/serial_nc_rx/main.cpp diff --git a/libraries/tests/mbed/serial_nc_tx/main.cpp b/features/unsupported/tests/mbed/serial_nc_tx/main.cpp similarity index 100% rename from libraries/tests/mbed/serial_nc_tx/main.cpp rename to features/unsupported/tests/mbed/serial_nc_tx/main.cpp diff --git a/libraries/tests/mbed/sleep/main.cpp b/features/unsupported/tests/mbed/sleep/main.cpp similarity index 100% rename from libraries/tests/mbed/sleep/main.cpp rename to features/unsupported/tests/mbed/sleep/main.cpp diff --git a/libraries/tests/mbed/sleep_timeout/main.cpp b/features/unsupported/tests/mbed/sleep_timeout/main.cpp similarity index 100% rename from libraries/tests/mbed/sleep_timeout/main.cpp rename to features/unsupported/tests/mbed/sleep_timeout/main.cpp diff --git a/libraries/tests/mbed/spi/main.cpp b/features/unsupported/tests/mbed/spi/main.cpp similarity index 100% rename from libraries/tests/mbed/spi/main.cpp rename to features/unsupported/tests/mbed/spi/main.cpp diff --git a/libraries/tests/mbed/spi_ADXL345/main.cpp b/features/unsupported/tests/mbed/spi_ADXL345/main.cpp similarity index 100% rename from libraries/tests/mbed/spi_ADXL345/main.cpp rename to features/unsupported/tests/mbed/spi_ADXL345/main.cpp diff --git a/libraries/tests/mbed/spi_C12832/main.cpp b/features/unsupported/tests/mbed/spi_C12832/main.cpp similarity index 100% rename from libraries/tests/mbed/spi_C12832/main.cpp rename to features/unsupported/tests/mbed/spi_C12832/main.cpp diff --git a/libraries/tests/mbed/spi_master/main.cpp b/features/unsupported/tests/mbed/spi_master/main.cpp similarity index 100% rename from libraries/tests/mbed/spi_master/main.cpp rename to features/unsupported/tests/mbed/spi_master/main.cpp diff --git a/libraries/tests/mbed/spi_slave/main.cpp b/features/unsupported/tests/mbed/spi_slave/main.cpp similarity index 100% rename from libraries/tests/mbed/spi_slave/main.cpp rename to features/unsupported/tests/mbed/spi_slave/main.cpp diff --git a/libraries/tests/mbed/spifi1/main.cpp b/features/unsupported/tests/mbed/spifi1/main.cpp similarity index 100% rename from libraries/tests/mbed/spifi1/main.cpp rename to features/unsupported/tests/mbed/spifi1/main.cpp diff --git a/libraries/tests/mbed/spifi1/spifi_rom_api.h b/features/unsupported/tests/mbed/spifi1/spifi_rom_api.h similarity index 100% rename from libraries/tests/mbed/spifi1/spifi_rom_api.h rename to features/unsupported/tests/mbed/spifi1/spifi_rom_api.h diff --git a/libraries/tests/mbed/spifi2/main.cpp b/features/unsupported/tests/mbed/spifi2/main.cpp similarity index 100% rename from libraries/tests/mbed/spifi2/main.cpp rename to features/unsupported/tests/mbed/spifi2/main.cpp diff --git a/libraries/tests/mbed/spifi2/spifi_rom_api.h b/features/unsupported/tests/mbed/spifi2/spifi_rom_api.h similarity index 100% rename from libraries/tests/mbed/spifi2/spifi_rom_api.h rename to features/unsupported/tests/mbed/spifi2/spifi_rom_api.h diff --git a/libraries/tests/mbed/spifi2/splashImage01.c b/features/unsupported/tests/mbed/spifi2/splashImage01.c similarity index 100% rename from libraries/tests/mbed/spifi2/splashImage01.c rename to features/unsupported/tests/mbed/spifi2/splashImage01.c diff --git a/libraries/tests/mbed/spifi2/splashImage02.c b/features/unsupported/tests/mbed/spifi2/splashImage02.c similarity index 100% rename from libraries/tests/mbed/spifi2/splashImage02.c rename to features/unsupported/tests/mbed/spifi2/splashImage02.c diff --git a/libraries/tests/mbed/spifi2/splashImage03.c b/features/unsupported/tests/mbed/spifi2/splashImage03.c similarity index 100% rename from libraries/tests/mbed/spifi2/splashImage03.c rename to features/unsupported/tests/mbed/spifi2/splashImage03.c diff --git a/libraries/tests/mbed/spifi2/splashImage04.c b/features/unsupported/tests/mbed/spifi2/splashImage04.c similarity index 100% rename from libraries/tests/mbed/spifi2/splashImage04.c rename to features/unsupported/tests/mbed/spifi2/splashImage04.c diff --git a/libraries/tests/mbed/spifi2/splashImage05.c b/features/unsupported/tests/mbed/spifi2/splashImage05.c similarity index 100% rename from libraries/tests/mbed/spifi2/splashImage05.c rename to features/unsupported/tests/mbed/spifi2/splashImage05.c diff --git a/libraries/tests/mbed/spifi2/splashImage06.c b/features/unsupported/tests/mbed/spifi2/splashImage06.c similarity index 100% rename from libraries/tests/mbed/spifi2/splashImage06.c rename to features/unsupported/tests/mbed/spifi2/splashImage06.c diff --git a/libraries/tests/mbed/spifi2/splashImage07.c b/features/unsupported/tests/mbed/spifi2/splashImage07.c similarity index 100% rename from libraries/tests/mbed/spifi2/splashImage07.c rename to features/unsupported/tests/mbed/spifi2/splashImage07.c diff --git a/libraries/tests/mbed/spifi2/splashImage08.c b/features/unsupported/tests/mbed/spifi2/splashImage08.c similarity index 100% rename from libraries/tests/mbed/spifi2/splashImage08.c rename to features/unsupported/tests/mbed/spifi2/splashImage08.c diff --git a/libraries/tests/mbed/spifi2/splashImage09.c b/features/unsupported/tests/mbed/spifi2/splashImage09.c similarity index 100% rename from libraries/tests/mbed/spifi2/splashImage09.c rename to features/unsupported/tests/mbed/spifi2/splashImage09.c diff --git a/libraries/tests/mbed/spifi2/splashImage10.c b/features/unsupported/tests/mbed/spifi2/splashImage10.c similarity index 100% rename from libraries/tests/mbed/spifi2/splashImage10.c rename to features/unsupported/tests/mbed/spifi2/splashImage10.c diff --git a/libraries/tests/mbed/spifi2/splashImage11.c b/features/unsupported/tests/mbed/spifi2/splashImage11.c similarity index 100% rename from libraries/tests/mbed/spifi2/splashImage11.c rename to features/unsupported/tests/mbed/spifi2/splashImage11.c diff --git a/libraries/tests/mbed/spifi2/splashImage12.c b/features/unsupported/tests/mbed/spifi2/splashImage12.c similarity index 100% rename from libraries/tests/mbed/spifi2/splashImage12.c rename to features/unsupported/tests/mbed/spifi2/splashImage12.c diff --git a/libraries/tests/mbed/spifi2/splashImage13.c b/features/unsupported/tests/mbed/spifi2/splashImage13.c similarity index 100% rename from libraries/tests/mbed/spifi2/splashImage13.c rename to features/unsupported/tests/mbed/spifi2/splashImage13.c diff --git a/libraries/tests/mbed/spifi2/splashImage14.c b/features/unsupported/tests/mbed/spifi2/splashImage14.c similarity index 100% rename from libraries/tests/mbed/spifi2/splashImage14.c rename to features/unsupported/tests/mbed/spifi2/splashImage14.c diff --git a/libraries/tests/mbed/spifi2/splashImage15.c b/features/unsupported/tests/mbed/spifi2/splashImage15.c similarity index 100% rename from libraries/tests/mbed/spifi2/splashImage15.c rename to features/unsupported/tests/mbed/spifi2/splashImage15.c diff --git a/libraries/tests/mbed/stdio/main.cpp b/features/unsupported/tests/mbed/stdio/main.cpp similarity index 100% rename from libraries/tests/mbed/stdio/main.cpp rename to features/unsupported/tests/mbed/stdio/main.cpp diff --git a/libraries/tests/mbed/stdio_benchmark/main.cpp b/features/unsupported/tests/mbed/stdio_benchmark/main.cpp similarity index 100% rename from libraries/tests/mbed/stdio_benchmark/main.cpp rename to features/unsupported/tests/mbed/stdio_benchmark/main.cpp diff --git a/libraries/tests/mbed/stl/main.cpp b/features/unsupported/tests/mbed/stl/main.cpp similarity index 100% rename from libraries/tests/mbed/stl/main.cpp rename to features/unsupported/tests/mbed/stl/main.cpp diff --git a/libraries/tests/mbed/ticker/main.cpp b/features/unsupported/tests/mbed/ticker/main.cpp similarity index 100% rename from libraries/tests/mbed/ticker/main.cpp rename to features/unsupported/tests/mbed/ticker/main.cpp diff --git a/libraries/tests/mbed/ticker_2/main.cpp b/features/unsupported/tests/mbed/ticker_2/main.cpp similarity index 100% rename from libraries/tests/mbed/ticker_2/main.cpp rename to features/unsupported/tests/mbed/ticker_2/main.cpp diff --git a/libraries/tests/mbed/ticker_3/main.cpp b/features/unsupported/tests/mbed/ticker_3/main.cpp similarity index 100% rename from libraries/tests/mbed/ticker_3/main.cpp rename to features/unsupported/tests/mbed/ticker_3/main.cpp diff --git a/libraries/tests/mbed/ticker_mfun/main.cpp b/features/unsupported/tests/mbed/ticker_mfun/main.cpp similarity index 100% rename from libraries/tests/mbed/ticker_mfun/main.cpp rename to features/unsupported/tests/mbed/ticker_mfun/main.cpp diff --git a/libraries/tests/mbed/time_us/main.cpp b/features/unsupported/tests/mbed/time_us/main.cpp similarity index 100% rename from libraries/tests/mbed/time_us/main.cpp rename to features/unsupported/tests/mbed/time_us/main.cpp diff --git a/libraries/tests/mbed/timeout/main.cpp b/features/unsupported/tests/mbed/timeout/main.cpp similarity index 100% rename from libraries/tests/mbed/timeout/main.cpp rename to features/unsupported/tests/mbed/timeout/main.cpp diff --git a/libraries/tests/mbed/tsi/main.cpp b/features/unsupported/tests/mbed/tsi/main.cpp similarity index 100% rename from libraries/tests/mbed/tsi/main.cpp rename to features/unsupported/tests/mbed/tsi/main.cpp diff --git a/libraries/tests/mbed/vtor_reloc/main.cpp b/features/unsupported/tests/mbed/vtor_reloc/main.cpp similarity index 100% rename from libraries/tests/mbed/vtor_reloc/main.cpp rename to features/unsupported/tests/mbed/vtor_reloc/main.cpp diff --git a/libraries/tests/mbed/wfi/main.cpp b/features/unsupported/tests/mbed/wfi/main.cpp similarity index 100% rename from libraries/tests/mbed/wfi/main.cpp rename to features/unsupported/tests/mbed/wfi/main.cpp diff --git a/libraries/tests/net/cellular/http/common/HTTPClient/HTTPClient.cpp b/features/unsupported/tests/net/cellular/http/common/HTTPClient/HTTPClient.cpp similarity index 100% rename from libraries/tests/net/cellular/http/common/HTTPClient/HTTPClient.cpp rename to features/unsupported/tests/net/cellular/http/common/HTTPClient/HTTPClient.cpp diff --git a/libraries/tests/net/cellular/http/common/HTTPClient/HTTPClient.h b/features/unsupported/tests/net/cellular/http/common/HTTPClient/HTTPClient.h similarity index 100% rename from libraries/tests/net/cellular/http/common/HTTPClient/HTTPClient.h rename to features/unsupported/tests/net/cellular/http/common/HTTPClient/HTTPClient.h diff --git a/libraries/tests/net/cellular/http/common/HTTPClient/IHTTPData.h b/features/unsupported/tests/net/cellular/http/common/HTTPClient/IHTTPData.h similarity index 100% rename from libraries/tests/net/cellular/http/common/HTTPClient/IHTTPData.h rename to features/unsupported/tests/net/cellular/http/common/HTTPClient/IHTTPData.h diff --git a/libraries/tests/net/cellular/http/common/HTTPClient/data/HTTPMap.cpp b/features/unsupported/tests/net/cellular/http/common/HTTPClient/data/HTTPMap.cpp similarity index 100% rename from libraries/tests/net/cellular/http/common/HTTPClient/data/HTTPMap.cpp rename to features/unsupported/tests/net/cellular/http/common/HTTPClient/data/HTTPMap.cpp diff --git a/libraries/tests/net/cellular/http/common/HTTPClient/data/HTTPMap.h b/features/unsupported/tests/net/cellular/http/common/HTTPClient/data/HTTPMap.h similarity index 100% rename from libraries/tests/net/cellular/http/common/HTTPClient/data/HTTPMap.h rename to features/unsupported/tests/net/cellular/http/common/HTTPClient/data/HTTPMap.h diff --git a/libraries/tests/net/cellular/http/common/HTTPClient/data/HTTPText.cpp b/features/unsupported/tests/net/cellular/http/common/HTTPClient/data/HTTPText.cpp similarity index 100% rename from libraries/tests/net/cellular/http/common/HTTPClient/data/HTTPText.cpp rename to features/unsupported/tests/net/cellular/http/common/HTTPClient/data/HTTPText.cpp diff --git a/libraries/tests/net/cellular/http/common/HTTPClient/data/HTTPText.h b/features/unsupported/tests/net/cellular/http/common/HTTPClient/data/HTTPText.h similarity index 100% rename from libraries/tests/net/cellular/http/common/HTTPClient/data/HTTPText.h rename to features/unsupported/tests/net/cellular/http/common/HTTPClient/data/HTTPText.h diff --git a/libraries/tests/net/cellular/http/common/httptest.cpp b/features/unsupported/tests/net/cellular/http/common/httptest.cpp similarity index 100% rename from libraries/tests/net/cellular/http/common/httptest.cpp rename to features/unsupported/tests/net/cellular/http/common/httptest.cpp diff --git a/libraries/tests/net/cellular/http/common/httptest.h b/features/unsupported/tests/net/cellular/http/common/httptest.h similarity index 100% rename from libraries/tests/net/cellular/http/common/httptest.h rename to features/unsupported/tests/net/cellular/http/common/httptest.h diff --git a/libraries/tests/net/cellular/http/ubloxusb/main.cpp b/features/unsupported/tests/net/cellular/http/ubloxusb/main.cpp similarity index 100% rename from libraries/tests/net/cellular/http/ubloxusb/main.cpp rename to features/unsupported/tests/net/cellular/http/ubloxusb/main.cpp diff --git a/libraries/tests/net/cellular/sms/common/smstest.cpp b/features/unsupported/tests/net/cellular/sms/common/smstest.cpp similarity index 100% rename from libraries/tests/net/cellular/sms/common/smstest.cpp rename to features/unsupported/tests/net/cellular/sms/common/smstest.cpp diff --git a/libraries/tests/net/cellular/sms/common/smstest.h b/features/unsupported/tests/net/cellular/sms/common/smstest.h similarity index 100% rename from libraries/tests/net/cellular/sms/common/smstest.h rename to features/unsupported/tests/net/cellular/sms/common/smstest.h diff --git a/libraries/tests/net/cellular/sms/ubloxusb/main.cpp b/features/unsupported/tests/net/cellular/sms/ubloxusb/main.cpp similarity index 100% rename from libraries/tests/net/cellular/sms/ubloxusb/main.cpp rename to features/unsupported/tests/net/cellular/sms/ubloxusb/main.cpp diff --git a/libraries/tests/net/echo/tcp_client/main.cpp b/features/unsupported/tests/net/echo/tcp_client/main.cpp similarity index 100% rename from libraries/tests/net/echo/tcp_client/main.cpp rename to features/unsupported/tests/net/echo/tcp_client/main.cpp diff --git a/libraries/tests/net/echo/tcp_client_loop/main.cpp b/features/unsupported/tests/net/echo/tcp_client_loop/main.cpp similarity index 100% rename from libraries/tests/net/echo/tcp_client_loop/main.cpp rename to features/unsupported/tests/net/echo/tcp_client_loop/main.cpp diff --git a/libraries/tests/net/echo/tcp_server/main.cpp b/features/unsupported/tests/net/echo/tcp_server/main.cpp similarity index 100% rename from libraries/tests/net/echo/tcp_server/main.cpp rename to features/unsupported/tests/net/echo/tcp_server/main.cpp diff --git a/libraries/tests/net/echo/udp_client/main.cpp b/features/unsupported/tests/net/echo/udp_client/main.cpp similarity index 100% rename from libraries/tests/net/echo/udp_client/main.cpp rename to features/unsupported/tests/net/echo/udp_client/main.cpp diff --git a/libraries/tests/net/echo/udp_link_layer/main.cpp b/features/unsupported/tests/net/echo/udp_link_layer/main.cpp similarity index 100% rename from libraries/tests/net/echo/udp_link_layer/main.cpp rename to features/unsupported/tests/net/echo/udp_link_layer/main.cpp diff --git a/libraries/tests/net/echo/udp_server/main.cpp b/features/unsupported/tests/net/echo/udp_server/main.cpp similarity index 100% rename from libraries/tests/net/echo/udp_server/main.cpp rename to features/unsupported/tests/net/echo/udp_server/main.cpp diff --git a/libraries/tests/net/helloworld/broadcast_receive/main.cpp b/features/unsupported/tests/net/helloworld/broadcast_receive/main.cpp similarity index 100% rename from libraries/tests/net/helloworld/broadcast_receive/main.cpp rename to features/unsupported/tests/net/helloworld/broadcast_receive/main.cpp diff --git a/libraries/tests/net/helloworld/broadcast_send/main.cpp b/features/unsupported/tests/net/helloworld/broadcast_send/main.cpp similarity index 100% rename from libraries/tests/net/helloworld/broadcast_send/main.cpp rename to features/unsupported/tests/net/helloworld/broadcast_send/main.cpp diff --git a/libraries/tests/net/helloworld/multicast_receive/main.cpp b/features/unsupported/tests/net/helloworld/multicast_receive/main.cpp similarity index 100% rename from libraries/tests/net/helloworld/multicast_receive/main.cpp rename to features/unsupported/tests/net/helloworld/multicast_receive/main.cpp diff --git a/libraries/tests/net/helloworld/multicast_send/main.cpp b/features/unsupported/tests/net/helloworld/multicast_send/main.cpp similarity index 100% rename from libraries/tests/net/helloworld/multicast_send/main.cpp rename to features/unsupported/tests/net/helloworld/multicast_send/main.cpp diff --git a/libraries/tests/net/helloworld/tcpclient/main.cpp b/features/unsupported/tests/net/helloworld/tcpclient/main.cpp similarity index 100% rename from libraries/tests/net/helloworld/tcpclient/main.cpp rename to features/unsupported/tests/net/helloworld/tcpclient/main.cpp diff --git a/libraries/tests/net/helloworld/udpclient/main.cpp b/features/unsupported/tests/net/helloworld/udpclient/main.cpp similarity index 100% rename from libraries/tests/net/helloworld/udpclient/main.cpp rename to features/unsupported/tests/net/helloworld/udpclient/main.cpp diff --git a/libraries/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/HTTPClient.cpp b/features/unsupported/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/HTTPClient.cpp similarity index 100% rename from libraries/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/HTTPClient.cpp rename to features/unsupported/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/HTTPClient.cpp diff --git a/libraries/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/HTTPClient.h b/features/unsupported/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/HTTPClient.h similarity index 100% rename from libraries/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/HTTPClient.h rename to features/unsupported/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/HTTPClient.h diff --git a/libraries/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/IHTTPData.h b/features/unsupported/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/IHTTPData.h similarity index 100% rename from libraries/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/IHTTPData.h rename to features/unsupported/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/IHTTPData.h diff --git a/libraries/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/data/HTTPMap.cpp b/features/unsupported/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/data/HTTPMap.cpp similarity index 100% rename from libraries/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/data/HTTPMap.cpp rename to features/unsupported/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/data/HTTPMap.cpp diff --git a/libraries/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/data/HTTPMap.h b/features/unsupported/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/data/HTTPMap.h similarity index 100% rename from libraries/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/data/HTTPMap.h rename to features/unsupported/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/data/HTTPMap.h diff --git a/libraries/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/data/HTTPText.cpp b/features/unsupported/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/data/HTTPText.cpp similarity index 100% rename from libraries/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/data/HTTPText.cpp rename to features/unsupported/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/data/HTTPText.cpp diff --git a/libraries/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/data/HTTPText.h b/features/unsupported/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/data/HTTPText.h similarity index 100% rename from libraries/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/data/HTTPText.h rename to features/unsupported/tests/net/protocols/HTTPClient_HelloWorld/HTTPClient/data/HTTPText.h diff --git a/libraries/tests/net/protocols/HTTPClient_HelloWorld/main.cpp b/features/unsupported/tests/net/protocols/HTTPClient_HelloWorld/main.cpp similarity index 100% rename from libraries/tests/net/protocols/HTTPClient_HelloWorld/main.cpp rename to features/unsupported/tests/net/protocols/HTTPClient_HelloWorld/main.cpp diff --git a/libraries/tests/net/protocols/NTPClient_HelloWorld/NTPClient/NTPClient.cpp b/features/unsupported/tests/net/protocols/NTPClient_HelloWorld/NTPClient/NTPClient.cpp similarity index 100% rename from libraries/tests/net/protocols/NTPClient_HelloWorld/NTPClient/NTPClient.cpp rename to features/unsupported/tests/net/protocols/NTPClient_HelloWorld/NTPClient/NTPClient.cpp diff --git a/libraries/tests/net/protocols/NTPClient_HelloWorld/NTPClient/NTPClient.h b/features/unsupported/tests/net/protocols/NTPClient_HelloWorld/NTPClient/NTPClient.h similarity index 100% rename from libraries/tests/net/protocols/NTPClient_HelloWorld/NTPClient/NTPClient.h rename to features/unsupported/tests/net/protocols/NTPClient_HelloWorld/NTPClient/NTPClient.h diff --git a/libraries/tests/net/protocols/NTPClient_HelloWorld/main.cpp b/features/unsupported/tests/net/protocols/NTPClient_HelloWorld/main.cpp similarity index 100% rename from libraries/tests/net/protocols/NTPClient_HelloWorld/main.cpp rename to features/unsupported/tests/net/protocols/NTPClient_HelloWorld/main.cpp diff --git a/libraries/tests/peripherals/ADXL345/ADXL345.cpp b/features/unsupported/tests/peripherals/ADXL345/ADXL345.cpp similarity index 100% rename from libraries/tests/peripherals/ADXL345/ADXL345.cpp rename to features/unsupported/tests/peripherals/ADXL345/ADXL345.cpp diff --git a/libraries/tests/peripherals/ADXL345/ADXL345.h b/features/unsupported/tests/peripherals/ADXL345/ADXL345.h similarity index 100% rename from libraries/tests/peripherals/ADXL345/ADXL345.h rename to features/unsupported/tests/peripherals/ADXL345/ADXL345.h diff --git a/libraries/tests/peripherals/AT30TSE75X/AT30TSE75X.cpp b/features/unsupported/tests/peripherals/AT30TSE75X/AT30TSE75X.cpp similarity index 100% rename from libraries/tests/peripherals/AT30TSE75X/AT30TSE75X.cpp rename to features/unsupported/tests/peripherals/AT30TSE75X/AT30TSE75X.cpp diff --git a/libraries/tests/peripherals/AT30TSE75X/AT30TSE75X.h b/features/unsupported/tests/peripherals/AT30TSE75X/AT30TSE75X.h similarity index 100% rename from libraries/tests/peripherals/AT30TSE75X/AT30TSE75X.h rename to features/unsupported/tests/peripherals/AT30TSE75X/AT30TSE75X.h diff --git a/libraries/tests/peripherals/AX12/AX12.cpp b/features/unsupported/tests/peripherals/AX12/AX12.cpp similarity index 100% rename from libraries/tests/peripherals/AX12/AX12.cpp rename to features/unsupported/tests/peripherals/AX12/AX12.cpp diff --git a/libraries/tests/peripherals/AX12/AX12.h b/features/unsupported/tests/peripherals/AX12/AX12.h similarity index 100% rename from libraries/tests/peripherals/AX12/AX12.h rename to features/unsupported/tests/peripherals/AX12/AX12.h diff --git a/libraries/tests/peripherals/C12832/C12832.cpp b/features/unsupported/tests/peripherals/C12832/C12832.cpp similarity index 100% rename from libraries/tests/peripherals/C12832/C12832.cpp rename to features/unsupported/tests/peripherals/C12832/C12832.cpp diff --git a/libraries/tests/peripherals/C12832/C12832.h b/features/unsupported/tests/peripherals/C12832/C12832.h similarity index 100% rename from libraries/tests/peripherals/C12832/C12832.h rename to features/unsupported/tests/peripherals/C12832/C12832.h diff --git a/libraries/tests/peripherals/C12832/GraphicsDisplay.cpp b/features/unsupported/tests/peripherals/C12832/GraphicsDisplay.cpp similarity index 100% rename from libraries/tests/peripherals/C12832/GraphicsDisplay.cpp rename to features/unsupported/tests/peripherals/C12832/GraphicsDisplay.cpp diff --git a/libraries/tests/peripherals/C12832/GraphicsDisplay.h b/features/unsupported/tests/peripherals/C12832/GraphicsDisplay.h similarity index 100% rename from libraries/tests/peripherals/C12832/GraphicsDisplay.h rename to features/unsupported/tests/peripherals/C12832/GraphicsDisplay.h diff --git a/libraries/tests/peripherals/C12832/Small_7.h b/features/unsupported/tests/peripherals/C12832/Small_7.h similarity index 100% rename from libraries/tests/peripherals/C12832/Small_7.h rename to features/unsupported/tests/peripherals/C12832/Small_7.h diff --git a/libraries/tests/peripherals/C12832/TextDisplay.cpp b/features/unsupported/tests/peripherals/C12832/TextDisplay.cpp similarity index 100% rename from libraries/tests/peripherals/C12832/TextDisplay.cpp rename to features/unsupported/tests/peripherals/C12832/TextDisplay.cpp diff --git a/libraries/tests/peripherals/C12832/TextDisplay.h b/features/unsupported/tests/peripherals/C12832/TextDisplay.h similarity index 100% rename from libraries/tests/peripherals/C12832/TextDisplay.h rename to features/unsupported/tests/peripherals/C12832/TextDisplay.h diff --git a/libraries/tests/peripherals/MMA7660/MMA7660.cpp b/features/unsupported/tests/peripherals/MMA7660/MMA7660.cpp similarity index 100% rename from libraries/tests/peripherals/MMA7660/MMA7660.cpp rename to features/unsupported/tests/peripherals/MMA7660/MMA7660.cpp diff --git a/libraries/tests/peripherals/MMA7660/MMA7660.h b/features/unsupported/tests/peripherals/MMA7660/MMA7660.h similarity index 100% rename from libraries/tests/peripherals/MMA7660/MMA7660.h rename to features/unsupported/tests/peripherals/MMA7660/MMA7660.h diff --git a/libraries/tests/peripherals/MMA8451Q/MMA8451Q.cpp b/features/unsupported/tests/peripherals/MMA8451Q/MMA8451Q.cpp similarity index 100% rename from libraries/tests/peripherals/MMA8451Q/MMA8451Q.cpp rename to features/unsupported/tests/peripherals/MMA8451Q/MMA8451Q.cpp diff --git a/libraries/tests/peripherals/MMA8451Q/MMA8451Q.h b/features/unsupported/tests/peripherals/MMA8451Q/MMA8451Q.h similarity index 100% rename from libraries/tests/peripherals/MMA8451Q/MMA8451Q.h rename to features/unsupported/tests/peripherals/MMA8451Q/MMA8451Q.h diff --git a/libraries/tests/peripherals/SRF08/SRF08.cpp b/features/unsupported/tests/peripherals/SRF08/SRF08.cpp similarity index 100% rename from libraries/tests/peripherals/SRF08/SRF08.cpp rename to features/unsupported/tests/peripherals/SRF08/SRF08.cpp diff --git a/libraries/tests/peripherals/SRF08/SRF08.h b/features/unsupported/tests/peripherals/SRF08/SRF08.h similarity index 100% rename from libraries/tests/peripherals/SRF08/SRF08.h rename to features/unsupported/tests/peripherals/SRF08/SRF08.h diff --git a/libraries/tests/peripherals/TMP102/TMP102.cpp b/features/unsupported/tests/peripherals/TMP102/TMP102.cpp similarity index 100% rename from libraries/tests/peripherals/TMP102/TMP102.cpp rename to features/unsupported/tests/peripherals/TMP102/TMP102.cpp diff --git a/libraries/tests/peripherals/TMP102/TMP102.h b/features/unsupported/tests/peripherals/TMP102/TMP102.h similarity index 100% rename from libraries/tests/peripherals/TMP102/TMP102.h rename to features/unsupported/tests/peripherals/TMP102/TMP102.h diff --git a/libraries/tests/peripherals/TSI/TSISensor.cpp b/features/unsupported/tests/peripherals/TSI/TSISensor.cpp similarity index 100% rename from libraries/tests/peripherals/TSI/TSISensor.cpp rename to features/unsupported/tests/peripherals/TSI/TSISensor.cpp diff --git a/libraries/tests/peripherals/TSI/TSISensor.h b/features/unsupported/tests/peripherals/TSI/TSISensor.h similarity index 100% rename from libraries/tests/peripherals/TSI/TSISensor.h rename to features/unsupported/tests/peripherals/TSI/TSISensor.h diff --git a/libraries/tests/rtos/cmsis/basic/main.cpp b/features/unsupported/tests/rtos/cmsis/basic/main.cpp similarity index 100% rename from libraries/tests/rtos/cmsis/basic/main.cpp rename to features/unsupported/tests/rtos/cmsis/basic/main.cpp diff --git a/libraries/tests/rtos/cmsis/isr/main.cpp b/features/unsupported/tests/rtos/cmsis/isr/main.cpp similarity index 100% rename from libraries/tests/rtos/cmsis/isr/main.cpp rename to features/unsupported/tests/rtos/cmsis/isr/main.cpp diff --git a/libraries/tests/rtos/cmsis/mail/main.cpp b/features/unsupported/tests/rtos/cmsis/mail/main.cpp similarity index 100% rename from libraries/tests/rtos/cmsis/mail/main.cpp rename to features/unsupported/tests/rtos/cmsis/mail/main.cpp diff --git a/libraries/tests/rtos/cmsis/mutex/main.cpp b/features/unsupported/tests/rtos/cmsis/mutex/main.cpp similarity index 100% rename from libraries/tests/rtos/cmsis/mutex/main.cpp rename to features/unsupported/tests/rtos/cmsis/mutex/main.cpp diff --git a/libraries/tests/rtos/cmsis/queue/main.cpp b/features/unsupported/tests/rtos/cmsis/queue/main.cpp similarity index 100% rename from libraries/tests/rtos/cmsis/queue/main.cpp rename to features/unsupported/tests/rtos/cmsis/queue/main.cpp diff --git a/libraries/tests/rtos/cmsis/semaphore/main.cpp b/features/unsupported/tests/rtos/cmsis/semaphore/main.cpp similarity index 100% rename from libraries/tests/rtos/cmsis/semaphore/main.cpp rename to features/unsupported/tests/rtos/cmsis/semaphore/main.cpp diff --git a/libraries/tests/rtos/cmsis/signals/main.cpp b/features/unsupported/tests/rtos/cmsis/signals/main.cpp similarity index 100% rename from libraries/tests/rtos/cmsis/signals/main.cpp rename to features/unsupported/tests/rtos/cmsis/signals/main.cpp diff --git a/libraries/tests/rtos/cmsis/timer/main.cpp b/features/unsupported/tests/rtos/cmsis/timer/main.cpp similarity index 100% rename from libraries/tests/rtos/cmsis/timer/main.cpp rename to features/unsupported/tests/rtos/cmsis/timer/main.cpp diff --git a/libraries/tests/rtos/mbed/basic/main.cpp b/features/unsupported/tests/rtos/mbed/basic/main.cpp similarity index 100% rename from libraries/tests/rtos/mbed/basic/main.cpp rename to features/unsupported/tests/rtos/mbed/basic/main.cpp diff --git a/libraries/tests/rtos/mbed/file/main.cpp b/features/unsupported/tests/rtos/mbed/file/main.cpp similarity index 100% rename from libraries/tests/rtos/mbed/file/main.cpp rename to features/unsupported/tests/rtos/mbed/file/main.cpp diff --git a/libraries/tests/rtos/mbed/isr/main.cpp b/features/unsupported/tests/rtos/mbed/isr/main.cpp similarity index 100% rename from libraries/tests/rtos/mbed/isr/main.cpp rename to features/unsupported/tests/rtos/mbed/isr/main.cpp diff --git a/libraries/tests/rtos/mbed/mail/main.cpp b/features/unsupported/tests/rtos/mbed/mail/main.cpp similarity index 100% rename from libraries/tests/rtos/mbed/mail/main.cpp rename to features/unsupported/tests/rtos/mbed/mail/main.cpp diff --git a/libraries/tests/rtos/mbed/mutex/main.cpp b/features/unsupported/tests/rtos/mbed/mutex/main.cpp similarity index 95% rename from libraries/tests/rtos/mbed/mutex/main.cpp rename to features/unsupported/tests/rtos/mbed/mutex/main.cpp index aff4ec7915..da10822b3b 100644 --- a/libraries/tests/rtos/mbed/mutex/main.cpp +++ b/features/unsupported/tests/rtos/mbed/mutex/main.cpp @@ -22,6 +22,10 @@ #define STACK_SIZE DEFAULT_STACK_SIZE/2 #elif defined(TARGET_STM32F303K8) && defined(TOOLCHAIN_IAR) #define STACK_SIZE DEFAULT_STACK_SIZE/2 +#elif defined(TARGET_STM32F334C8) + #define STACK_SIZE DEFAULT_STACK_SIZE/2 +#elif defined(TARGET_STM32L073RZ) + #define STACK_SIZE DEFAULT_STACK_SIZE/2 #elif (defined(TARGET_EFM32HG_STK3400)) && !defined(TOOLCHAIN_ARM_MICRO) #define STACK_SIZE 512 #elif (defined(TARGET_EFM32LG_STK3600) || defined(TARGET_EFM32WG_STK3800) || defined(TARGET_EFM32PG_STK3401)) && !defined(TOOLCHAIN_ARM_MICRO) diff --git a/libraries/tests/rtos/mbed/queue/main.cpp b/features/unsupported/tests/rtos/mbed/queue/main.cpp similarity index 100% rename from libraries/tests/rtos/mbed/queue/main.cpp rename to features/unsupported/tests/rtos/mbed/queue/main.cpp diff --git a/libraries/tests/rtos/mbed/semaphore/main.cpp b/features/unsupported/tests/rtos/mbed/semaphore/main.cpp similarity index 92% rename from libraries/tests/rtos/mbed/semaphore/main.cpp rename to features/unsupported/tests/rtos/mbed/semaphore/main.cpp index 10a8a7e417..8873534d34 100644 --- a/libraries/tests/rtos/mbed/semaphore/main.cpp +++ b/features/unsupported/tests/rtos/mbed/semaphore/main.cpp @@ -17,13 +17,17 @@ */ #if (defined(TARGET_STM32F072RB) || defined(TARGET_STM32F070RB)) #define STACK_SIZE DEFAULT_STACK_SIZE/2 -#elif defined(TARGET_STM32F334R8) && (defined(TOOLCHAIN_GCC) || defined(TOOLCHAIN_IAR)) +#elif defined(TARGET_STM32F334R8) #define STACK_SIZE DEFAULT_STACK_SIZE/4 #elif defined(TARGET_STM32F103RB) && defined(TOOLCHAIN_IAR) #define STACK_SIZE DEFAULT_STACK_SIZE/4 #elif defined(TARGET_STM32F302R8) && defined(TOOLCHAIN_IAR) #define STACK_SIZE DEFAULT_STACK_SIZE/2 -#elif defined(TARGET_STM32F303K8) && defined(TOOLCHAIN_IAR) +#elif defined(TARGET_STM32F303K8) + #define STACK_SIZE DEFAULT_STACK_SIZE/4 +#elif defined(TARGET_STM32F334C8) + #define STACK_SIZE DEFAULT_STACK_SIZE/4 +#elif defined(TARGET_STM32L073RZ) #define STACK_SIZE DEFAULT_STACK_SIZE/4 #elif (defined(TARGET_EFM32HG_STK3400)) && !defined(TOOLCHAIN_ARM_MICRO) #define STACK_SIZE 512 diff --git a/libraries/tests/rtos/mbed/signals/main.cpp b/features/unsupported/tests/rtos/mbed/signals/main.cpp similarity index 100% rename from libraries/tests/rtos/mbed/signals/main.cpp rename to features/unsupported/tests/rtos/mbed/signals/main.cpp diff --git a/libraries/tests/rtos/mbed/timer/main.cpp b/features/unsupported/tests/rtos/mbed/timer/main.cpp similarity index 100% rename from libraries/tests/rtos/mbed/timer/main.cpp rename to features/unsupported/tests/rtos/mbed/timer/main.cpp diff --git a/libraries/tests/usb/device/audio/main.cpp b/features/unsupported/tests/usb/device/audio/main.cpp similarity index 100% rename from libraries/tests/usb/device/audio/main.cpp rename to features/unsupported/tests/usb/device/audio/main.cpp diff --git a/libraries/tests/usb/device/basic/main.cpp b/features/unsupported/tests/usb/device/basic/main.cpp similarity index 100% rename from libraries/tests/usb/device/basic/main.cpp rename to features/unsupported/tests/usb/device/basic/main.cpp diff --git a/libraries/tests/usb/device/keyboard/main.cpp b/features/unsupported/tests/usb/device/keyboard/main.cpp similarity index 100% rename from libraries/tests/usb/device/keyboard/main.cpp rename to features/unsupported/tests/usb/device/keyboard/main.cpp diff --git a/libraries/tests/usb/device/midi/main.cpp b/features/unsupported/tests/usb/device/midi/main.cpp similarity index 100% rename from libraries/tests/usb/device/midi/main.cpp rename to features/unsupported/tests/usb/device/midi/main.cpp diff --git a/libraries/tests/usb/device/mouse_keyboard/main.cpp b/features/unsupported/tests/usb/device/mouse_keyboard/main.cpp similarity index 100% rename from libraries/tests/usb/device/mouse_keyboard/main.cpp rename to features/unsupported/tests/usb/device/mouse_keyboard/main.cpp diff --git a/libraries/tests/usb/device/raw_hid/main.cpp b/features/unsupported/tests/usb/device/raw_hid/main.cpp similarity index 100% rename from libraries/tests/usb/device/raw_hid/main.cpp rename to features/unsupported/tests/usb/device/raw_hid/main.cpp diff --git a/libraries/tests/usb/device/serial/main.cpp b/features/unsupported/tests/usb/device/serial/main.cpp similarity index 100% rename from libraries/tests/usb/device/serial/main.cpp rename to features/unsupported/tests/usb/device/serial/main.cpp diff --git a/libraries/tests/utest/basic/basic.cpp b/features/unsupported/tests/utest/basic/basic.cpp similarity index 100% rename from libraries/tests/utest/basic/basic.cpp rename to features/unsupported/tests/utest/basic/basic.cpp diff --git a/libraries/tests/utest/bus/busout_ut.cpp b/features/unsupported/tests/utest/bus/busout_ut.cpp similarity index 100% rename from libraries/tests/utest/bus/busout_ut.cpp rename to features/unsupported/tests/utest/bus/busout_ut.cpp diff --git a/libraries/tests/utest/general/general.cpp b/features/unsupported/tests/utest/general/general.cpp similarity index 100% rename from libraries/tests/utest/general/general.cpp rename to features/unsupported/tests/utest/general/general.cpp diff --git a/libraries/tests/utest/i2c_eeprom_asynch/i2c_eeprom_asynch.cpp b/features/unsupported/tests/utest/i2c_eeprom_asynch/i2c_eeprom_asynch.cpp similarity index 100% rename from libraries/tests/utest/i2c_eeprom_asynch/i2c_eeprom_asynch.cpp rename to features/unsupported/tests/utest/i2c_eeprom_asynch/i2c_eeprom_asynch.cpp diff --git a/libraries/tests/utest/lp_ticker/lp_ticker.cpp b/features/unsupported/tests/utest/lp_ticker/lp_ticker.cpp similarity index 100% rename from libraries/tests/utest/lp_ticker/lp_ticker.cpp rename to features/unsupported/tests/utest/lp_ticker/lp_ticker.cpp diff --git a/libraries/tests/utest/semihost_fs/semihost_fs.cpp b/features/unsupported/tests/utest/semihost_fs/semihost_fs.cpp similarity index 100% rename from libraries/tests/utest/semihost_fs/semihost_fs.cpp rename to features/unsupported/tests/utest/semihost_fs/semihost_fs.cpp diff --git a/libraries/tests/utest/serial_asynch/serial_asynch.cpp b/features/unsupported/tests/utest/serial_asynch/serial_asynch.cpp similarity index 100% rename from libraries/tests/utest/serial_asynch/serial_asynch.cpp rename to features/unsupported/tests/utest/serial_asynch/serial_asynch.cpp diff --git a/libraries/tests/utest/spi_asynch/spi_master_asynch.cpp b/features/unsupported/tests/utest/spi_asynch/spi_master_asynch.cpp similarity index 100% rename from libraries/tests/utest/spi_asynch/spi_master_asynch.cpp rename to features/unsupported/tests/utest/spi_asynch/spi_master_asynch.cpp diff --git a/libraries/tests/utest/testrunner/testrunner.cpp b/features/unsupported/tests/utest/testrunner/testrunner.cpp similarity index 100% rename from libraries/tests/utest/testrunner/testrunner.cpp rename to features/unsupported/tests/utest/testrunner/testrunner.cpp diff --git a/libraries/tests/utest/testrunner/testrunner.h b/features/unsupported/tests/utest/testrunner/testrunner.h similarity index 100% rename from libraries/tests/utest/testrunner/testrunner.h rename to features/unsupported/tests/utest/testrunner/testrunner.h diff --git a/hal/.yotta_ignore b/hal/.yotta_ignore deleted file mode 100644 index 91d629dd18..0000000000 --- a/hal/.yotta_ignore +++ /dev/null @@ -1,14 +0,0 @@ -# ignore files for targets that aren't supported by the yotta build (to -# minimise the size of the published module) - -TARGET_ARM_SSG -TARGET_Freescale -TARGET_RENESAS -TARGET_Silicon_Labs -TARGET_Atmel -TARGET_Maxim -TARGET_NXP -TARGET_STM -TARGET_WIZNET -TOOLCHAIN_IAR - diff --git a/hal/CMakeLists.txt b/hal/CMakeLists.txt deleted file mode 100644 index 6e42617341..0000000000 --- a/hal/CMakeLists.txt +++ /dev/null @@ -1,112 +0,0 @@ -# -# mbed-2 yotta-compatible build system -# - -# make sure necessary features are enabled: -project(mbed-classic) -enable_language(ASM) - -# override compilation flags: -if(CMAKE_C_COMPILER_ID MATCHES GNU) - set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99") -endif() - -# the mbed.a library is built from two sets of source files + include -# directories: -# -# MBED_COMMON_SOURCES: the source files that are the same for all targets, -# these are easily found by globbing: -# -file(GLOB MBED_COMMON_SOURCES "common/*.cpp" "common/*.c") -# -# (always include the hal header directory, too) -set(MBED_COMMON_INCLUDE_DIRS "hal") - -# and MBED_TARGET_SOURCES: these depend on which target we are building for. To -# find these we need to walk the directories in targets/, and wherever we see a -# TARGET_ name, recurse only if matches what we're -# currently building for -macro(mbed_find_target_dirs PARENT_DIRECTORY SOURCES_LIST INCLUDES_LIST) - # append this directory to the search path: - list(APPEND ${INCLUDES_LIST} "${PARENT_DIRECTORY}") - # add all source files in this directory to the sources list: - file(GLOB sources "${PARENT_DIRECTORY}/*.cpp" "${PARENT_DIRECTORY}/*.c" "${PARENT_DIRECTORY}/*.s" "${PARENT_DIRECTORY}/*.S" ) - list(APPEND ${SOURCES_LIST} ${sources}) - - # get a list of all subdirectories that we want to recurse into: - file(GLOB dir_children RELATIVE "${PARENT_DIRECTORY}" "${PARENT_DIRECTORY}/*") - set(matching_subdirs "") - foreach(child ${dir_children}) - if(IS_DIRECTORY "${PARENT_DIRECTORY}/${child}") - # is this directory name a magic one? - if("${child}" MATCHES "^TARGET_") - # target-magic: recurse if the MBED_LEGACY_TARGET_DEFINITIONS **list** - # contains a matching value: - foreach(legacy_magic_def ${MBED_LEGACY_TARGET_DEFINITIONS}) - # we could probably unroll the list into a single regex if - # this is a performance problem: - if("${child}" MATCHES "^TARGET_${legacy_magic_def}$") - list(APPEND matching_subdirs ${child}) - break() - endif() - endforeach() - elseif("${child}" MATCHES "^TOOLCHAIN_") - # toolchain-magic: (recurse if the MBED_LEGACY_TOOLCHAIN matches - # this name) - if("${child}" MATCHES "^TOOLCHAIN_${MBED_LEGACY_TOOLCHAIN}$") - list(APPEND matching_subdirs "${child}") - endif() - else() - # not special: always recurse into this directory - list(APPEND matching_subdirs "${child}") - endif() - endif() - endforeach() - #message("matching_subdirs: ${matching_subdirs}") - - # recurse: - foreach(subdir ${matching_subdirs}) - mbed_find_target_dirs("${PARENT_DIRECTORY}/${subdir}" ${SOURCES_LIST} ${INCLUDES_LIST}) - endforeach() -endmacro() - -set(MBED_TARGET_SOURCES "") -set(MBED_TARGET_INCLUDE_DIRS "") -mbed_find_target_dirs("${CMAKE_CURRENT_SOURCE_DIR}/targets" MBED_TARGET_SOURCES MBED_TARGET_INCLUDE_DIRS) -#message("found target sources: ${MBED_TARGET_SOURCES}") -#message("found target include dirs: ${MBED_TARGET_INCLUDE_DIRS}") - -# unfortunately, for ARMCC, the startup code needs to be provided as an object -# on the command line (not as part of an archive). To do this we override the -# CMake add_executable command. -if(CMAKE_C_COMPILER_ID STREQUAL "ARMCC") - set(MBED_TARGET_STARTUP_CODE_SOURCES "") - foreach(src ${MBED_TARGET_SOURCES}) - if("${src}" MATCHES .*startup_.*\\.[sS]) - LIST(APPEND MBED_TARGET_STARTUP_CODE_SOURCES "${src}") - endif() - endforeach() - add_library(mbed_classic_startupcod OBJECT ${MBED_TARGET_STARTUP_CODE_SOURCES}) - macro (add_executable _name) - _add_executable(${ARGV} $) - endmacro() -endif() - -# we have to append any target-specific include dirs to the global include dirs -# list, so that any indirect includes (e.g. via mbed.h) of files in those -# directories will work: -# (non-target-specific include dirs are listed in extraIncludes in module.json) -foreach(dir ${MBED_TARGET_INCLUDE_DIRS}) - set_property(GLOBAL APPEND PROPERTY YOTTA_GLOBAL_INCLUDE_DIRS ${dir}) -endforeach() - -# finally, we can construct a library using the determined set of include paths -# + source files. Note that the library name must match the name of the yotta -# module (defined in module.json) for this module to link properly with other -# yotta modules. -include_directories(${MBED_COMMON_INCLUDE_DIRS}) -include_directories(${MBED_TARGET_INCLUDE_DIRS}) -add_library(mbed-classic - ${MBED_COMMON_SOURCES} - ${MBED_TARGET_SOURCES} -) diff --git a/hal/hal/analogin_api.h b/hal/analogin_api.h similarity index 100% rename from hal/hal/analogin_api.h rename to hal/analogin_api.h diff --git a/hal/hal/analogout_api.h b/hal/analogout_api.h similarity index 100% rename from hal/hal/analogout_api.h rename to hal/analogout_api.h diff --git a/hal/api/mbed.h b/hal/api/mbed.h deleted file mode 100644 index 472246ac9e..0000000000 --- a/hal/api/mbed.h +++ /dev/null @@ -1,83 +0,0 @@ -/* mbed Microcontroller Library - * Copyright (c) 2006-2013 ARM Limited - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -#ifndef MBED_H -#define MBED_H - -#define MBED_LIBRARY_VERSION 123 - -#if MBED_CONF_RTOS_PRESENT -#include "rtos/rtos.h" -#endif - -#if MBED_CONF_NSAPI_PRESENT -#include "network-socket/nsapi.h" -#endif - -#include "toolchain.h" -#include "platform.h" - -// Useful C libraries -#include -#include - -// mbed Debug libraries -#include "mbed_error.h" -#include "mbed_interface.h" -#include "mbed_assert.h" - -// mbed Peripheral components -#include "DigitalIn.h" -#include "DigitalOut.h" -#include "DigitalInOut.h" -#include "BusIn.h" -#include "BusOut.h" -#include "BusInOut.h" -#include "PortIn.h" -#include "PortInOut.h" -#include "PortOut.h" -#include "AnalogIn.h" -#include "AnalogOut.h" -#include "PwmOut.h" -#include "Serial.h" -#include "SPI.h" -#include "SPISlave.h" -#include "I2C.h" -#include "I2CSlave.h" -#include "Ethernet.h" -#include "CAN.h" -#include "RawSerial.h" - -// mbed Internal components -#include "Timer.h" -#include "Ticker.h" -#include "Timeout.h" -#include "LowPowerTimeout.h" -#include "LowPowerTicker.h" -#include "LowPowerTimer.h" -#include "LocalFileSystem.h" -#include "InterruptIn.h" -#include "wait_api.h" -#include "sleep_api.h" -#include "rtc_time.h" - -// mbed Non-hardware components -#include "Callback.h" -#include "FunctionPointer.h" - -using namespace mbed; -using namespace std; - -#endif diff --git a/hal/hal/buffer.h b/hal/buffer.h similarity index 100% rename from hal/hal/buffer.h rename to hal/buffer.h diff --git a/hal/hal/can_api.h b/hal/can_api.h similarity index 98% rename from hal/hal/can_api.h rename to hal/can_api.h index 120b2873a8..c4f9b3c3ff 100644 --- a/hal/hal/can_api.h +++ b/hal/can_api.h @@ -22,7 +22,7 @@ #include "PinNames.h" #include "PeripheralNames.h" -#include "can_helper.h" +#include "hal/can_helper.h" #ifdef __cplusplus extern "C" { diff --git a/hal/api/can_helper.h b/hal/can_helper.h similarity index 100% rename from hal/api/can_helper.h rename to hal/can_helper.h diff --git a/hal/hal/dma_api.h b/hal/dma_api.h similarity index 100% rename from hal/hal/dma_api.h rename to hal/dma_api.h diff --git a/hal/hal/ethernet_api.h b/hal/ethernet_api.h similarity index 100% rename from hal/hal/ethernet_api.h rename to hal/ethernet_api.h diff --git a/hal/hal/gpio_api.h b/hal/gpio_api.h similarity index 100% rename from hal/hal/gpio_api.h rename to hal/gpio_api.h diff --git a/hal/hal/gpio_irq_api.h b/hal/gpio_irq_api.h similarity index 100% rename from hal/hal/gpio_irq_api.h rename to hal/gpio_irq_api.h diff --git a/hal/hal/emac_api.h b/hal/hal/emac_api.h new file mode 100644 index 0000000000..bebd56f707 --- /dev/null +++ b/hal/hal/emac_api.h @@ -0,0 +1,163 @@ +/* mbed Microcontroller Library + * Copyright (c) 2016 ARM Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef MBED_EMAC_API_H +#define MBED_EMAC_API_H + +#include "platform.h" + + +#if DEVICE_EMAC + +#include +#include "emac_stack_mem.h" + +typedef struct emac_interface emac_interface_t; + +/** + * EmacInterface + * + * This interface should be used to abstract low level access to networking hardware + */ + +/** + * Callback to be register with Emac interface and to be called fore received packets + * + * @param data Arbitrary user data (IP stack) + * @param buf Received data + */ +typedef void (*emac_link_input_fn)(void *data, emac_stack_mem_chain_t *buf); + +/** + * Callback to be register with Emac interface and to be called for link status changes + * + * @param data Arbitrary user data (IP stack) + * @param up Link status + */ +typedef void (*emac_link_state_change_fn)(void *data, bool up); + +/** + * Return maximum transmission unit + * + * @param emac Emac interface + * @return MTU in bytes + */ +typedef uint32_t (*emac_get_mtu_size_fn)(emac_interface_t *emac); + +/** + * Return interface name + * + * @param emac Emac interface + * @param name Pointer to where the name should be written + * @param size Maximum number of character to copy + */ +typedef void (*emac_get_ifname_fn)(emac_interface_t *emac, char *name, uint8_t size); + +/** + * Returns size of the underlying interface HW address size + * + * @param emac Emac interface + * @return HW address size in bytes + */ +typedef uint8_t (*emac_get_hwaddr_size_fn)(emac_interface_t *emac); + +/** + * Return interface hw address + * + * Copies HW address to provided memory, @param addr has to be of correct size see @a get_hwaddr_size + * + * @param emac Emac interface + * @param addr HW address for underlying interface + */ +typedef void (*emac_get_hwaddr_fn)(emac_interface_t *emac, uint8_t *addr); + +/** + * Set HW address for interface + * + * Provided address has to be of correct size, see @a get_hwaddr_size + * + * @param emac Emac interface + * @param addr Address to be set + */ +typedef void (*emac_set_hwaddr_fn)(emac_interface_t *emac, uint8_t *addr); + +/** + * Sends the packet over the link + * + * That can not be called from an interrupt context. + * + * @param emac Emac interface + * @param buf Packet to be send + * @return True if the packet was send successfully, False otherwise + */ +typedef bool (*emac_link_out_fn)(emac_interface_t *emac, emac_stack_mem_t *buf); + +/** + * Initializes the HW + * + * @return True on success, False in case of an error. + */ +typedef bool (*emac_power_up_fn)(emac_interface_t *emac); + +/** + * Deinitializes the HW + * + * @param emac Emac interface + */ +typedef void (*emac_power_down_fn)(emac_interface_t *emac); + +/** + * Sets a callback that needs to be called for packets received for that interface + * + * @param emac Emac interface + * @param input_cb Function to be register as a callback + * @param data Arbitrary user data to be passed to the callback + */ +typedef void (*emac_set_link_input_cb_fn)(emac_interface_t *emac, emac_link_input_fn input_cb, void *data); + +/** + * Sets a callback that needs to be called on link status changes for given interface + * + * @param emac Emac interface + * @param state_cb Function to be register as a callback + * @param data Arbitrary user data to be passed to the callback + */ +typedef void (*emac_set_link_state_cb_fn)(emac_interface_t *emac, emac_link_state_change_fn state_cb, void *data); + +typedef struct emac_interface_ops { + emac_get_mtu_size_fn get_mtu_size; + emac_get_ifname_fn get_ifname; + emac_get_hwaddr_size_fn get_hwaddr_size; + emac_get_hwaddr_fn get_hwaddr; + emac_set_hwaddr_fn set_hwaddr; + emac_link_out_fn link_out; + emac_power_up_fn power_up; + emac_power_down_fn power_down; + emac_set_link_input_cb_fn set_link_input_cb; + emac_set_link_state_cb_fn set_link_state_cb; +} emac_interface_ops_t; + +typedef struct emac_interface { + const emac_interface_ops_t ops; + void *hw; +} emac_interface_t; + +#else + +typedef void *emac_interface_t; + +#endif /* DEVICE_EMAC */ +#endif /* MBED_EMAC_API_H */ diff --git a/hal/hal/i2c_api.h b/hal/i2c_api.h similarity index 99% rename from hal/hal/i2c_api.h rename to hal/i2c_api.h index 68eae512f8..4daae5592f 100644 --- a/hal/hal/i2c_api.h +++ b/hal/i2c_api.h @@ -17,10 +17,10 @@ #define MBED_I2C_API_H #include "device.h" -#include "buffer.h" +#include "hal/buffer.h" #if DEVICE_I2C_ASYNCH -#include "dma_api.h" +#include "hal/dma_api.h" #endif #if DEVICE_I2C diff --git a/hal/hal/lp_ticker_api.h b/hal/lp_ticker_api.h similarity index 98% rename from hal/hal/lp_ticker_api.h rename to hal/lp_ticker_api.h index aae5a3f365..85cd7f3fe2 100644 --- a/hal/hal/lp_ticker_api.h +++ b/hal/lp_ticker_api.h @@ -20,7 +20,7 @@ #if DEVICE_LOWPOWERTIMER -#include "ticker_api.h" +#include "hal/ticker_api.h" #ifdef __cplusplus extern "C" { diff --git a/hal/common/mbed_gpio.c b/hal/mbed_gpio.c similarity index 98% rename from hal/common/mbed_gpio.c rename to hal/mbed_gpio.c index 3839e8bb2d..b9dda3f1b3 100644 --- a/hal/common/mbed_gpio.c +++ b/hal/mbed_gpio.c @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "gpio_api.h" +#include "hal/gpio_api.h" static inline void _gpio_init_in(gpio_t* gpio, PinName pin, PinMode mode) { diff --git a/hal/common/mbed_lp_ticker_api.c b/hal/mbed_lp_ticker_api.c similarity index 97% rename from hal/common/mbed_lp_ticker_api.c rename to hal/mbed_lp_ticker_api.c index ab0a531f7f..838223b547 100644 --- a/hal/common/mbed_lp_ticker_api.c +++ b/hal/mbed_lp_ticker_api.c @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "lp_ticker_api.h" +#include "hal/lp_ticker_api.h" #if DEVICE_LOWPOWERTIMER diff --git a/hal/common/mbed_pinmap_common.c b/hal/mbed_pinmap_common.c similarity index 97% rename from hal/common/mbed_pinmap_common.c rename to hal/mbed_pinmap_common.c index 5aab0e6176..93658b2793 100644 --- a/hal/common/mbed_pinmap_common.c +++ b/hal/mbed_pinmap_common.c @@ -13,8 +13,8 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "pinmap.h" -#include "mbed_error.h" +#include "hal/pinmap.h" +#include "platform/mbed_error.h" void pinmap_pinout(PinName pin, const PinMap *map) { if (pin == NC) diff --git a/hal/common/mbed_ticker_api.c b/hal/mbed_ticker_api.c similarity index 98% rename from hal/common/mbed_ticker_api.c rename to hal/mbed_ticker_api.c index e4bf86dcd0..d7a9af6296 100644 --- a/hal/common/mbed_ticker_api.c +++ b/hal/mbed_ticker_api.c @@ -14,8 +14,8 @@ * limitations under the License. */ #include -#include "ticker_api.h" -#include "critical.h" +#include "hal/ticker_api.h" +#include "platform/critical.h" void ticker_set_handler(const ticker_data_t *const data, ticker_event_handler handler) { data->interface->init(); diff --git a/hal/common/mbed_us_ticker_api.c b/hal/mbed_us_ticker_api.c similarity index 97% rename from hal/common/mbed_us_ticker_api.c rename to hal/mbed_us_ticker_api.c index 0b209505d6..67ae6dba31 100644 --- a/hal/common/mbed_us_ticker_api.c +++ b/hal/mbed_us_ticker_api.c @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "us_ticker_api.h" +#include "hal/us_ticker_api.h" static ticker_event_queue_t events; diff --git a/hal/module.json b/hal/module.json deleted file mode 100644 index d98a54a260..0000000000 --- a/hal/module.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "mbed-classic", - "version": "0.0.1", - "description": "mbed core SDK (for mbed 2.0, *not* mbedOS)", - "keywords": [ - "mbed" - ], - "author": "Bogdan Marinescu ", - "repository": { - "url": "git@github.com:mbedmicro/mbed.git", - "type": "git" - }, - "homepage": "https://github.com/mbedmicro/mbed", - "licenses": [ - { - "url": "https://spdx.org/licenses/Apache-2.0", - "type": "Apache-2.0" - } - ], - "extraIncludes": [ - "api", - "hal", - "targets/hal", - "targets/cmsis" - ], - "dependencies": { - }, - "targetDependencies": { - } -} diff --git a/hal/hal/pinmap.h b/hal/pinmap.h similarity index 100% rename from hal/hal/pinmap.h rename to hal/pinmap.h diff --git a/hal/hal/port_api.h b/hal/port_api.h similarity index 100% rename from hal/hal/port_api.h rename to hal/port_api.h diff --git a/hal/hal/pwmout_api.h b/hal/pwmout_api.h similarity index 100% rename from hal/hal/pwmout_api.h rename to hal/pwmout_api.h diff --git a/hal/hal/rtc_api.h b/hal/rtc_api.h similarity index 100% rename from hal/hal/rtc_api.h rename to hal/rtc_api.h diff --git a/hal/hal/serial_api.h b/hal/serial_api.h similarity index 99% rename from hal/hal/serial_api.h rename to hal/serial_api.h index 16d3699ab0..d28c119e96 100644 --- a/hal/hal/serial_api.h +++ b/hal/serial_api.h @@ -17,8 +17,8 @@ #define MBED_SERIAL_API_H #include "device.h" -#include "buffer.h" -#include "dma_api.h" +#include "hal/buffer.h" +#include "hal/dma_api.h" #if DEVICE_SERIAL diff --git a/hal/hal/sleep_api.h b/hal/sleep_api.h similarity index 100% rename from hal/hal/sleep_api.h rename to hal/sleep_api.h diff --git a/hal/hal/spi_api.h b/hal/spi_api.h similarity index 99% rename from hal/hal/spi_api.h rename to hal/spi_api.h index f69b4ec4d5..f82200f5e1 100644 --- a/hal/hal/spi_api.h +++ b/hal/spi_api.h @@ -17,8 +17,8 @@ #define MBED_SPI_API_H #include "device.h" -#include "dma_api.h" -#include "buffer.h" +#include "hal/dma_api.h" +#include "hal/buffer.h" #if DEVICE_SPI diff --git a/hal/hal/storage_abstraction/Driver_Common.h b/hal/storage_abstraction/Driver_Common.h similarity index 100% rename from hal/hal/storage_abstraction/Driver_Common.h rename to hal/storage_abstraction/Driver_Common.h diff --git a/hal/hal/storage_abstraction/Driver_Storage.h b/hal/storage_abstraction/Driver_Storage.h similarity index 100% rename from hal/hal/storage_abstraction/Driver_Storage.h rename to hal/storage_abstraction/Driver_Storage.h diff --git a/hal/hal/ticker_api.h b/hal/ticker_api.h similarity index 100% rename from hal/hal/ticker_api.h rename to hal/ticker_api.h diff --git a/hal/hal/trng_api.h b/hal/trng_api.h similarity index 100% rename from hal/hal/trng_api.h rename to hal/trng_api.h diff --git a/hal/hal/us_ticker_api.h b/hal/us_ticker_api.h similarity index 98% rename from hal/hal/us_ticker_api.h rename to hal/us_ticker_api.h index 70bf4e0990..3a88c3ee9d 100644 --- a/hal/hal/us_ticker_api.h +++ b/hal/us_ticker_api.h @@ -17,7 +17,7 @@ #define MBED_US_TICKER_API_H #include -#include "ticker_api.h" +#include "hal/ticker_api.h" #ifdef __cplusplus extern "C" { diff --git a/mbed.h b/mbed.h new file mode 100644 index 0000000000..c77e30a53b --- /dev/null +++ b/mbed.h @@ -0,0 +1,87 @@ +/* mbed Microcontroller Library + * Copyright (c) 2006-2013 ARM Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +#ifndef MBED_H +#define MBED_H + +#define MBED_LIBRARY_VERSION 123 + +#if MBED_CONF_RTOS_PRESENT +#include "rtos/rtos.h" +#endif + +#if MBED_CONF_NSAPI_PRESENT +#include "netsocket/nsapi.h" +#endif + +#if MBED_CONF_EVENTS_PRESENT +#include "events/mbed_events.h" +#endif + +#include "platform/toolchain.h" +#include "platform/platform.h" + +// Useful C libraries +#include +#include + +// mbed Debug libraries +#include "platform/mbed_error.h" +#include "platform/mbed_interface.h" +#include "platform/mbed_assert.h" + +// mbed Peripheral components +#include "drivers/DigitalIn.h" +#include "drivers/DigitalOut.h" +#include "drivers/DigitalInOut.h" +#include "drivers/BusIn.h" +#include "drivers/BusOut.h" +#include "drivers/BusInOut.h" +#include "drivers/PortIn.h" +#include "drivers/PortInOut.h" +#include "drivers/PortOut.h" +#include "drivers/AnalogIn.h" +#include "drivers/AnalogOut.h" +#include "drivers/PwmOut.h" +#include "drivers/Serial.h" +#include "drivers/SPI.h" +#include "drivers/SPISlave.h" +#include "drivers/I2C.h" +#include "drivers/I2CSlave.h" +#include "drivers/Ethernet.h" +#include "drivers/CAN.h" +#include "drivers/RawSerial.h" + +// mbed Internal components +#include "drivers/Timer.h" +#include "drivers/Ticker.h" +#include "drivers/Timeout.h" +#include "drivers/LowPowerTimeout.h" +#include "drivers/LowPowerTicker.h" +#include "drivers/LowPowerTimer.h" +#include "drivers/LocalFileSystem.h" +#include "drivers/InterruptIn.h" +#include "platform/wait_api.h" +#include "hal/sleep_api.h" +#include "platform/rtc_time.h" + +// mbed Non-hardware components +#include "platform/Callback.h" +#include "platform/FunctionPointer.h" + +using namespace mbed; +using namespace std; + +#endif diff --git a/hal/api/CThunk.h b/platform/CThunk.h similarity index 100% rename from hal/api/CThunk.h rename to platform/CThunk.h diff --git a/hal/common/CallChain.cpp b/platform/CallChain.cpp similarity index 96% rename from hal/common/CallChain.cpp rename to platform/CallChain.cpp index ff55f97775..0eb5393891 100644 --- a/hal/common/CallChain.cpp +++ b/platform/CallChain.cpp @@ -1,6 +1,6 @@ -#include "CallChain.h" +#include "platform/CallChain.h" #include "cmsis.h" -#include "critical.h" +#include "platform/critical.h" namespace mbed { @@ -45,7 +45,7 @@ pFunctionPointer_t CallChain::add(Callback func) { pFunctionPointer_t CallChain::add_front(Callback func) { CallChainLink *link = new CallChainLink(func); link->next = _chain; - _chain = link->next; + _chain = link; return &link->cb; } diff --git a/hal/api/CallChain.h b/platform/CallChain.h similarity index 98% rename from hal/api/CallChain.h rename to platform/CallChain.h index 7b0b20edc5..93422d44ef 100644 --- a/hal/api/CallChain.h +++ b/platform/CallChain.h @@ -16,8 +16,8 @@ #ifndef MBED_CALLCHAIN_H #define MBED_CALLCHAIN_H -#include "Callback.h" -#include "toolchain.h" +#include "platform/Callback.h" +#include "platform/toolchain.h" #include namespace mbed { diff --git a/hal/api/Callback.h b/platform/Callback.h similarity index 93% rename from hal/api/Callback.h rename to platform/Callback.h index a587b24b32..e39f2252da 100644 --- a/hal/api/Callback.h +++ b/platform/Callback.h @@ -19,8 +19,8 @@ #include #include #include -#include "mbed_assert.h" -#include "toolchain.h" +#include "platform/mbed_assert.h" +#include "platform/toolchain.h" namespace mbed { @@ -707,24 +707,10 @@ private: // Generate operations for function object template void generate(const F &f) { - struct local { - static R call(const void *p) { - return (*(F*)p)(); - } - - static void move(void *d, const void *p) { - new (d) F(*(F*)p); - } - - static void dtor(void *p) { - ((F*)p)->~F(); - } - }; - static const ops ops = { - &local::call, - &local::move, - &local::dtor, + &Callback::function_call, + &Callback::function_move, + &Callback::function_dtor, }; MBED_ASSERT(sizeof(Callback) - sizeof(_ops) >= sizeof(F)); @@ -732,6 +718,22 @@ private: _ops = &ops; } + // Function attributes + template + static R function_call(const void *p) { + return (*(F*)p)(); + } + + template + static void function_move(void *d, const void *p) { + new (d) F(*(F*)p); + } + + template + static void function_dtor(void *p) { + ((F*)p)->~F(); + } + // Wrappers for functions with context template struct method_context { @@ -1411,24 +1413,10 @@ private: // Generate operations for function object template void generate(const F &f) { - struct local { - static R call(const void *p, A0 a0) { - return (*(F*)p)(a0); - } - - static void move(void *d, const void *p) { - new (d) F(*(F*)p); - } - - static void dtor(void *p) { - ((F*)p)->~F(); - } - }; - static const ops ops = { - &local::call, - &local::move, - &local::dtor, + &Callback::function_call, + &Callback::function_move, + &Callback::function_dtor, }; MBED_ASSERT(sizeof(Callback) - sizeof(_ops) >= sizeof(F)); @@ -1436,6 +1424,22 @@ private: _ops = &ops; } + // Function attributes + template + static R function_call(const void *p, A0 a0) { + return (*(F*)p)(a0); + } + + template + static void function_move(void *d, const void *p) { + new (d) F(*(F*)p); + } + + template + static void function_dtor(void *p) { + ((F*)p)->~F(); + } + // Wrappers for functions with context template struct method_context { @@ -2115,24 +2119,10 @@ private: // Generate operations for function object template void generate(const F &f) { - struct local { - static R call(const void *p, A0 a0, A1 a1) { - return (*(F*)p)(a0, a1); - } - - static void move(void *d, const void *p) { - new (d) F(*(F*)p); - } - - static void dtor(void *p) { - ((F*)p)->~F(); - } - }; - static const ops ops = { - &local::call, - &local::move, - &local::dtor, + &Callback::function_call, + &Callback::function_move, + &Callback::function_dtor, }; MBED_ASSERT(sizeof(Callback) - sizeof(_ops) >= sizeof(F)); @@ -2140,6 +2130,22 @@ private: _ops = &ops; } + // Function attributes + template + static R function_call(const void *p, A0 a0, A1 a1) { + return (*(F*)p)(a0, a1); + } + + template + static void function_move(void *d, const void *p) { + new (d) F(*(F*)p); + } + + template + static void function_dtor(void *p) { + ((F*)p)->~F(); + } + // Wrappers for functions with context template struct method_context { @@ -2819,24 +2825,10 @@ private: // Generate operations for function object template void generate(const F &f) { - struct local { - static R call(const void *p, A0 a0, A1 a1, A2 a2) { - return (*(F*)p)(a0, a1, a2); - } - - static void move(void *d, const void *p) { - new (d) F(*(F*)p); - } - - static void dtor(void *p) { - ((F*)p)->~F(); - } - }; - static const ops ops = { - &local::call, - &local::move, - &local::dtor, + &Callback::function_call, + &Callback::function_move, + &Callback::function_dtor, }; MBED_ASSERT(sizeof(Callback) - sizeof(_ops) >= sizeof(F)); @@ -2844,6 +2836,22 @@ private: _ops = &ops; } + // Function attributes + template + static R function_call(const void *p, A0 a0, A1 a1, A2 a2) { + return (*(F*)p)(a0, a1, a2); + } + + template + static void function_move(void *d, const void *p) { + new (d) F(*(F*)p); + } + + template + static void function_dtor(void *p) { + ((F*)p)->~F(); + } + // Wrappers for functions with context template struct method_context { @@ -3523,24 +3531,10 @@ private: // Generate operations for function object template void generate(const F &f) { - struct local { - static R call(const void *p, A0 a0, A1 a1, A2 a2, A3 a3) { - return (*(F*)p)(a0, a1, a2, a3); - } - - static void move(void *d, const void *p) { - new (d) F(*(F*)p); - } - - static void dtor(void *p) { - ((F*)p)->~F(); - } - }; - static const ops ops = { - &local::call, - &local::move, - &local::dtor, + &Callback::function_call, + &Callback::function_move, + &Callback::function_dtor, }; MBED_ASSERT(sizeof(Callback) - sizeof(_ops) >= sizeof(F)); @@ -3548,6 +3542,22 @@ private: _ops = &ops; } + // Function attributes + template + static R function_call(const void *p, A0 a0, A1 a1, A2 a2, A3 a3) { + return (*(F*)p)(a0, a1, a2, a3); + } + + template + static void function_move(void *d, const void *p) { + new (d) F(*(F*)p); + } + + template + static void function_dtor(void *p) { + ((F*)p)->~F(); + } + // Wrappers for functions with context template struct method_context { @@ -4227,24 +4237,10 @@ private: // Generate operations for function object template void generate(const F &f) { - struct local { - static R call(const void *p, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { - return (*(F*)p)(a0, a1, a2, a3, a4); - } - - static void move(void *d, const void *p) { - new (d) F(*(F*)p); - } - - static void dtor(void *p) { - ((F*)p)->~F(); - } - }; - static const ops ops = { - &local::call, - &local::move, - &local::dtor, + &Callback::function_call, + &Callback::function_move, + &Callback::function_dtor, }; MBED_ASSERT(sizeof(Callback) - sizeof(_ops) >= sizeof(F)); @@ -4252,6 +4248,22 @@ private: _ops = &ops; } + // Function attributes + template + static R function_call(const void *p, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) { + return (*(F*)p)(a0, a1, a2, a3, a4); + } + + template + static void function_move(void *d, const void *p) { + new (d) F(*(F*)p); + } + + template + static void function_dtor(void *p) { + ((F*)p)->~F(); + } + // Wrappers for functions with context template struct method_context { @@ -4436,54 +4448,6 @@ Callback callback(R (*func)(const volatile T*), const volatile T *arg) { return Callback(func, arg); } -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(const F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(volatile F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(const volatile F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - /** Create a callback class with type infered from the arguments * * @param obj Optional pointer to object to bind to function @@ -4757,54 +4721,6 @@ Callback callback(R (*func)(const volatile T*, A0), const volatile T *arg return Callback(func, arg); } -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(const F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(volatile F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(const volatile F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - /** Create a callback class with type infered from the arguments * * @param obj Optional pointer to object to bind to function @@ -5078,54 +4994,6 @@ Callback callback(R (*func)(const volatile T*, A0, A1), const volatil return Callback(func, arg); } -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(const F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(volatile F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(const volatile F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - /** Create a callback class with type infered from the arguments * * @param obj Optional pointer to object to bind to function @@ -5399,54 +5267,6 @@ Callback callback(R (*func)(const volatile T*, A0, A1, A2), const return Callback(func, arg); } -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(const F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(volatile F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(const volatile F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - /** Create a callback class with type infered from the arguments * * @param obj Optional pointer to object to bind to function @@ -5720,54 +5540,6 @@ Callback callback(R (*func)(const volatile T*, A0, A1, A2, A3 return Callback(func, arg); } -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(const F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(volatile F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(const volatile F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - /** Create a callback class with type infered from the arguments * * @param obj Optional pointer to object to bind to function @@ -6041,54 +5813,6 @@ Callback callback(R (*func)(const volatile T*, A0, A1, A2 return Callback(func, arg); } -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(const F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(volatile F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - -/** Create a callback class with type infered from the arguments - * @param func Function object to attach - * @note The function object is limited to a single word of storage - */ -template -Callback callback(const volatile F f, typename detail::enable_if< - detail::is_type::value && - sizeof(F) <= sizeof(uintptr_t) - >::type = detail::nil()) { - return Callback(f); -} - /** Create a callback class with type infered from the arguments * * @param obj Optional pointer to object to bind to function diff --git a/hal/api/CircularBuffer.h b/platform/CircularBuffer.h similarity index 98% rename from hal/api/CircularBuffer.h rename to platform/CircularBuffer.h index 466288c4be..90c5f5764a 100644 --- a/hal/api/CircularBuffer.h +++ b/platform/CircularBuffer.h @@ -16,7 +16,7 @@ #ifndef MBED_CIRCULARBUFFER_H #define MBED_CIRCULARBUFFER_H -#include "critical.h" +#include "platform/critical.h" namespace mbed { diff --git a/hal/api/FunctionPointer.h b/platform/FunctionPointer.h similarity index 97% rename from hal/api/FunctionPointer.h rename to platform/FunctionPointer.h index af51a8c929..abec19039f 100644 --- a/hal/api/FunctionPointer.h +++ b/platform/FunctionPointer.h @@ -16,8 +16,8 @@ #ifndef MBED_FUNCTIONPOINTER_H #define MBED_FUNCTIONPOINTER_H -#include "Callback.h" -#include "toolchain.h" +#include "platform/Callback.h" +#include "platform/toolchain.h" #include #include diff --git a/hal/api/PlatformMutex.h b/platform/PlatformMutex.h similarity index 97% rename from hal/api/PlatformMutex.h rename to platform/PlatformMutex.h index 97b9c2d095..4e62e88c48 100644 --- a/hal/api/PlatformMutex.h +++ b/platform/PlatformMutex.h @@ -17,7 +17,7 @@ #define PLATFORM_MUTEX_H #ifdef MBED_CONF_RTOS_PRESENT -#include "Mutex.h" +#include "rtos/Mutex.h" typedef rtos::Mutex PlatformMutex; #else /** A stub mutex for when an RTOS is not present diff --git a/hal/api/SingletonPtr.h b/platform/SingletonPtr.h similarity index 98% rename from hal/api/SingletonPtr.h rename to platform/SingletonPtr.h index 820c8ed7d1..914fd78472 100644 --- a/hal/api/SingletonPtr.h +++ b/platform/SingletonPtr.h @@ -18,7 +18,7 @@ #include #include -#include "mbed_assert.h" +#include "platform/mbed_assert.h" #ifdef MBED_CONF_RTOS_PRESENT #include "cmsis_os.h" #endif diff --git a/hal/api/Transaction.h b/platform/Transaction.h similarity index 96% rename from hal/api/Transaction.h rename to platform/Transaction.h index d093c3e6b5..2114611ee8 100644 --- a/hal/api/Transaction.h +++ b/platform/Transaction.h @@ -16,8 +16,8 @@ #ifndef MBED_TRANSACTION_H #define MBED_TRANSACTION_H -#include "platform.h" -#include "FunctionPointer.h" +#include "platform/platform.h" +#include "platform/FunctionPointer.h" namespace mbed { diff --git a/hal/api/critical.h b/platform/critical.h similarity index 100% rename from hal/api/critical.h rename to platform/critical.h diff --git a/hal/common/mbed_alloc_wrappers.cpp b/platform/mbed_alloc_wrappers.cpp similarity index 98% rename from hal/common/mbed_alloc_wrappers.cpp rename to platform/mbed_alloc_wrappers.cpp index 6f6be1b50f..4cf9a3a2cf 100644 --- a/hal/common/mbed_alloc_wrappers.cpp +++ b/platform/mbed_alloc_wrappers.cpp @@ -14,11 +14,11 @@ * limitations under the License. */ -#include "mbed_mem_trace.h" -#include "mbed_stats.h" -#include "toolchain.h" -#include "SingletonPtr.h" -#include "PlatformMutex.h" +#include "platform/mbed_mem_trace.h" +#include "platform/mbed_stats.h" +#include "platform/toolchain.h" +#include "platform/SingletonPtr.h" +#include "platform/PlatformMutex.h" #include #include #include diff --git a/hal/common/mbed_assert.c b/platform/mbed_assert.c similarity index 89% rename from hal/common/mbed_assert.c rename to platform/mbed_assert.c index 2906c5e256..acf30acdfe 100644 --- a/hal/common/mbed_assert.c +++ b/platform/mbed_assert.c @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "mbed_assert.h" +#include "platform/mbed_assert.h" #include "device.h" -#include "mbed_interface.h" -#include "critical.h" +#include "platform/mbed_interface.h" +#include "platform/critical.h" void mbed_assert_internal(const char *expr, const char *file, int line) { diff --git a/hal/api/mbed_assert.h b/platform/mbed_assert.h similarity index 100% rename from hal/api/mbed_assert.h rename to platform/mbed_assert.h diff --git a/hal/common/mbed_board.c b/platform/mbed_board.c similarity index 92% rename from hal/common/mbed_board.c rename to platform/mbed_board.c index 2cd5f5564b..cbd67fad11 100644 --- a/hal/common/mbed_board.c +++ b/platform/mbed_board.c @@ -14,12 +14,12 @@ * limitations under the License. */ #include -#include "gpio_api.h" -#include "wait_api.h" -#include "toolchain.h" -#include "mbed_interface.h" -#include "critical.h" -#include "serial_api.h" +#include "hal/gpio_api.h" +#include "platform/wait_api.h" +#include "platform/toolchain.h" +#include "platform/mbed_interface.h" +#include "platform/critical.h" +#include "hal/serial_api.h" #if DEVICE_SERIAL extern int stdio_uart_inited; diff --git a/hal/common/mbed_critical.c b/platform/mbed_critical.c similarity index 97% rename from hal/common/mbed_critical.c rename to platform/mbed_critical.c index f65f67a8b5..a81680e922 100644 --- a/hal/common/mbed_critical.c +++ b/platform/mbed_critical.c @@ -15,10 +15,11 @@ * limitations under the License. */ -#include "critical.h" +#include "platform/critical.h" #include "cmsis.h" -#include "mbed_assert.h" +#include "platform/mbed_assert.h" +#include "platform/toolchain.h" #define EXCLUSIVE_ACCESS (!defined (__CORTEX_M0) && !defined (__CORTEX_M0PLUS)) @@ -34,7 +35,7 @@ bool core_util_are_interrupts_enabled(void) #endif } -void core_util_critical_section_enter(void) +MBED_WEAK void core_util_critical_section_enter(void) { bool interrupts_disabled = !core_util_are_interrupts_enabled(); __disable_irq(); @@ -59,7 +60,7 @@ void core_util_critical_section_enter(void) interrupt_enable_counter++; } -void core_util_critical_section_exit(void) +MBED_WEAK void core_util_critical_section_exit(void) { /* If critical_section_enter has not previously been called, do nothing */ if (interrupt_enable_counter) { diff --git a/hal/api/mbed_debug.h b/platform/mbed_debug.h similarity index 100% rename from hal/api/mbed_debug.h rename to platform/mbed_debug.h diff --git a/hal/common/mbed_error.c b/platform/mbed_error.c similarity index 90% rename from hal/common/mbed_error.c rename to platform/mbed_error.c index 6fc72009a7..dd026f32cf 100644 --- a/hal/common/mbed_error.c +++ b/platform/mbed_error.c @@ -16,9 +16,9 @@ #include #include #include "device.h" -#include "toolchain.h" -#include "mbed_error.h" -#include "mbed_interface.h" +#include "platform/toolchain.h" +#include "platform/mbed_error.h" +#include "platform/mbed_interface.h" #if DEVICE_STDIO_MESSAGES #include #endif diff --git a/hal/api/mbed_error.h b/platform/mbed_error.h similarity index 100% rename from hal/api/mbed_error.h rename to platform/mbed_error.h diff --git a/hal/common/mbed_interface.c b/platform/mbed_interface.c similarity index 93% rename from hal/common/mbed_interface.c rename to platform/mbed_interface.c index 5b27b30879..26a3799dbd 100644 --- a/hal/common/mbed_interface.c +++ b/platform/mbed_interface.c @@ -14,13 +14,13 @@ * limitations under the License. */ #include -#include "mbed_interface.h" +#include "platform/mbed_interface.h" -#include "gpio_api.h" -#include "wait_api.h" -#include "semihost_api.h" -#include "mbed_error.h" -#include "toolchain.h" +#include "hal/gpio_api.h" +#include "platform/wait_api.h" +#include "platform/semihost_api.h" +#include "platform/mbed_error.h" +#include "platform/toolchain.h" #if DEVICE_SEMIHOST diff --git a/hal/api/mbed_interface.h b/platform/mbed_interface.h similarity index 100% rename from hal/api/mbed_interface.h rename to platform/mbed_interface.h diff --git a/mbed_lib.json b/platform/mbed_lib.json similarity index 71% rename from mbed_lib.json rename to platform/mbed_lib.json index 9f2fa3bca3..f9ec0fd2cf 100644 --- a/mbed_lib.json +++ b/platform/mbed_lib.json @@ -1,5 +1,5 @@ { - "name": "core", + "name": "platform", "config": { "stdio-convert-newlines": { "help": "Enable conversion to standard newlines on stdin/stdout", @@ -14,6 +14,11 @@ "stdio-flush-at-exit": { "help": "Enable or disable the flush of standard I/O's at exit.", "value": true + }, + + "default-serial-baud-rate": { + "help": "Default baud rate for a Serial or RawSerial instance (if not specified in the constructor)", + "value": 9600 } }, "target_overrides": { diff --git a/hal/common/mbed_mem_trace.c b/platform/mbed_mem_trace.c similarity index 98% rename from hal/common/mbed_mem_trace.c rename to platform/mbed_mem_trace.c index ab753fadc7..18b5be79fe 100644 --- a/hal/common/mbed_mem_trace.c +++ b/platform/mbed_mem_trace.c @@ -17,8 +17,8 @@ #include #include #include -#include "mbed_mem_trace.h" -#include "critical.h" +#include "platform/mbed_mem_trace.h" +#include "platform/critical.h" /****************************************************************************** * Internal variables, functions and helpers diff --git a/hal/api/mbed_mem_trace.h b/platform/mbed_mem_trace.h similarity index 100% rename from hal/api/mbed_mem_trace.h rename to platform/mbed_mem_trace.h diff --git a/hal/common/mbed_rtc_time.cpp b/platform/mbed_rtc_time.cpp similarity index 92% rename from hal/common/mbed_rtc_time.cpp rename to platform/mbed_rtc_time.cpp index 617a04169f..4f912fbf6c 100644 --- a/hal/common/mbed_rtc_time.cpp +++ b/platform/mbed_rtc_time.cpp @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "rtc_api.h" +#include "hal/rtc_api.h" #include -#include "critical.h" -#include "rtc_time.h" -#include "us_ticker_api.h" -#include "SingletonPtr.h" -#include "PlatformMutex.h" +#include "platform/critical.h" +#include "platform/rtc_time.h" +#include "hal/us_ticker_api.h" +#include "platform/SingletonPtr.h" +#include "platform/PlatformMutex.h" static SingletonPtr _mutex; diff --git a/hal/common/mbed_semihost_api.c b/platform/mbed_semihost_api.c similarity index 99% rename from hal/common/mbed_semihost_api.c rename to platform/mbed_semihost_api.c index e4e136eca2..187c6a70c0 100644 --- a/hal/common/mbed_semihost_api.c +++ b/platform/mbed_semihost_api.c @@ -14,7 +14,7 @@ * limitations under the License. */ #include "cmsis.h" -#include "semihost_api.h" +#include "platform/semihost_api.h" #include #include diff --git a/hal/api/mbed_stats.h b/platform/mbed_stats.h similarity index 100% rename from hal/api/mbed_stats.h rename to platform/mbed_stats.h diff --git a/hal/common/mbed_wait_api_no_rtos.c b/platform/mbed_wait_api_no_rtos.c similarity index 94% rename from hal/common/mbed_wait_api_no_rtos.c rename to platform/mbed_wait_api_no_rtos.c index 1995ef119d..a2f531fe1b 100644 --- a/hal/common/mbed_wait_api_no_rtos.c +++ b/platform/mbed_wait_api_no_rtos.c @@ -18,8 +18,8 @@ // if the RTOS is not present. #ifndef MBED_CONF_RTOS_PRESENT -#include "wait_api.h" -#include "us_ticker_api.h" +#include "platform/wait_api.h" +#include "hal/us_ticker_api.h" void wait(float s) { wait_us(s * 1000000.0f); diff --git a/hal/common/mbed_wait_api_rtos.cpp b/platform/mbed_wait_api_rtos.cpp similarity index 92% rename from hal/common/mbed_wait_api_rtos.cpp rename to platform/mbed_wait_api_rtos.cpp index 2797227a13..f0952d08e1 100644 --- a/hal/common/mbed_wait_api_rtos.cpp +++ b/platform/mbed_wait_api_rtos.cpp @@ -18,10 +18,10 @@ // if the RTOS is present. #ifdef MBED_CONF_RTOS_PRESENT -#include "wait_api.h" -#include "us_ticker_api.h" -#include "rtos.h" -#include "critical.h" +#include "platform/wait_api.h" +#include "hal/us_ticker_api.h" +#include "rtos/rtos.h" +#include "platform/critical.h" void wait(float s) { wait_us(s * 1000000.0f); diff --git a/hal/api/platform.h b/platform/platform.h similarity index 100% rename from hal/api/platform.h rename to platform/platform.h index ee79a30f03..d35897fd8f 100644 --- a/hal/api/platform.h +++ b/platform/platform.h @@ -16,13 +16,13 @@ #ifndef MBED_PLATFORM_H #define MBED_PLATFORM_H -#include "device.h" -#include "PinNames.h" -#include "PeripheralNames.h" - #include #include #include #include +#include "device.h" +#include "PinNames.h" +#include "PeripheralNames.h" + #endif diff --git a/hal/common/retarget.cpp b/platform/retarget.cpp similarity index 96% rename from hal/common/retarget.cpp rename to platform/retarget.cpp index 2172d14bc3..17af0798b3 100644 --- a/hal/common/retarget.cpp +++ b/platform/retarget.cpp @@ -13,18 +13,18 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -#include "platform.h" -#include "FileHandle.h" -#include "FileSystemLike.h" -#include "FilePath.h" -#include "serial_api.h" -#include "toolchain.h" -#include "semihost_api.h" -#include "mbed_interface.h" -#include "SingletonPtr.h" -#include "PlatformMutex.h" -#include "mbed_error.h" -#include "mbed_stats.h" +#include "platform/platform.h" +#include "drivers/FileHandle.h" +#include "drivers/FileSystemLike.h" +#include "drivers/FilePath.h" +#include "hal/serial_api.h" +#include "platform/toolchain.h" +#include "platform/semihost_api.h" +#include "platform/mbed_interface.h" +#include "platform/SingletonPtr.h" +#include "platform/PlatformMutex.h" +#include "platform/mbed_error.h" +#include "platform/mbed_stats.h" #include #include #if DEVICE_STDIO_MESSAGES @@ -98,7 +98,7 @@ FileHandle::~FileHandle() { #if DEVICE_SERIAL extern int stdio_uart_inited; extern serial_t stdio_uart; -#if MBED_CONF_CORE_STDIO_CONVERT_NEWLINES +#if MBED_CONF_PLATFORM_STDIO_CONVERT_NEWLINES static char stdio_in_prev; static char stdio_out_prev; #endif @@ -108,8 +108,8 @@ static void init_serial() { #if DEVICE_SERIAL if (stdio_uart_inited) return; serial_init(&stdio_uart, STDIO_UART_TX, STDIO_UART_RX); -#if MBED_CONF_CORE_STDIO_BAUD_RATE - serial_baud(&stdio_uart, MBED_CONF_CORE_STDIO_BAUD_RATE); +#if MBED_CONF_PLATFORM_STDIO_BAUD_RATE + serial_baud(&stdio_uart, MBED_CONF_PLATFORM_STDIO_BAUD_RATE); #endif #endif } @@ -243,7 +243,7 @@ extern "C" int PREFIX(_write)(FILEHANDLE fh, const unsigned char *buffer, unsign if (fh < 3) { #if DEVICE_SERIAL if (!stdio_uart_inited) init_serial(); -#if MBED_CONF_CORE_STDIO_CONVERT_NEWLINES +#if MBED_CONF_PLATFORM_STDIO_CONVERT_NEWLINES for (unsigned int i = 0; i < length; i++) { if (buffer[i] == '\n' && stdio_out_prev != '\r') { serial_putc(&stdio_uart, '\r'); @@ -281,7 +281,7 @@ extern "C" int PREFIX(_read)(FILEHANDLE fh, unsigned char *buffer, unsigned int // only read a character at a time from stdin #if DEVICE_SERIAL if (!stdio_uart_inited) init_serial(); -#if MBED_CONF_CORE_STDIO_CONVERT_NEWLINES +#if MBED_CONF_PLATFORM_STDIO_CONVERT_NEWLINES while (true) { char c = serial_getc(&stdio_uart); if ((c == '\r' && stdio_in_prev != '\n') || @@ -609,7 +609,7 @@ extern "C" void exit(int return_code) { #endif #if DEVICE_STDIO_MESSAGES -#if MBED_CONF_CORE_STDIO_FLUSH_AT_EXIT +#if MBED_CONF_PLATFORM_STDIO_FLUSH_AT_EXIT fflush(stdout); fflush(stderr); #endif diff --git a/hal/api/rtc_time.h b/platform/rtc_time.h similarity index 100% rename from hal/api/rtc_time.h rename to platform/rtc_time.h diff --git a/hal/api/semihost_api.h b/platform/semihost_api.h similarity index 98% rename from hal/api/semihost_api.h rename to platform/semihost_api.h index 808ece669e..63b2d17bdf 100644 --- a/hal/api/semihost_api.h +++ b/platform/semihost_api.h @@ -17,7 +17,7 @@ #define MBED_SEMIHOST_H #include "device.h" -#include "toolchain.h" +#include "platform/toolchain.h" #ifdef __cplusplus extern "C" { diff --git a/hal/api/toolchain.h b/platform/toolchain.h similarity index 100% rename from hal/api/toolchain.h rename to platform/toolchain.h diff --git a/hal/api/wait_api.h b/platform/wait_api.h similarity index 100% rename from hal/api/wait_api.h rename to platform/wait_api.h diff --git a/rtos/rtos/Mail.h b/rtos/Mail.h similarity index 100% rename from rtos/rtos/Mail.h rename to rtos/Mail.h diff --git a/rtos/rtos/MemoryPool.h b/rtos/MemoryPool.h similarity index 100% rename from rtos/rtos/MemoryPool.h rename to rtos/MemoryPool.h diff --git a/rtos/rtos/Mutex.cpp b/rtos/Mutex.cpp similarity index 96% rename from rtos/rtos/Mutex.cpp rename to rtos/Mutex.cpp index d10e598297..432e0a7ba2 100644 --- a/rtos/rtos/Mutex.cpp +++ b/rtos/Mutex.cpp @@ -19,10 +19,10 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -#include "Mutex.h" +#include "rtos/Mutex.h" #include -#include "mbed_error.h" +#include "platform/mbed_error.h" namespace rtos { diff --git a/rtos/rtos/Mutex.h b/rtos/Mutex.h similarity index 100% rename from rtos/rtos/Mutex.h rename to rtos/Mutex.h diff --git a/rtos/rtos/Queue.h b/rtos/Queue.h similarity index 98% rename from rtos/rtos/Queue.h rename to rtos/Queue.h index 6e55e02db6..c6ceec71b8 100644 --- a/rtos/rtos/Queue.h +++ b/rtos/Queue.h @@ -26,7 +26,7 @@ #include #include "cmsis_os.h" -#include "mbed_error.h" +#include "platform/mbed_error.h" namespace rtos { diff --git a/rtos/rtos/RtosTimer.cpp b/rtos/RtosTimer.cpp similarity index 96% rename from rtos/rtos/RtosTimer.cpp rename to rtos/RtosTimer.cpp index dbb9532dbe..6bfe36ea05 100644 --- a/rtos/rtos/RtosTimer.cpp +++ b/rtos/RtosTimer.cpp @@ -19,13 +19,13 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -#include "RtosTimer.h" +#include "rtos/RtosTimer.h" #include #include "mbed.h" #include "cmsis_os.h" -#include "mbed_error.h" +#include "platform/mbed_error.h" namespace rtos { diff --git a/rtos/rtos/RtosTimer.h b/rtos/RtosTimer.h similarity index 98% rename from rtos/rtos/RtosTimer.h rename to rtos/RtosTimer.h index b2f5c3d4c0..ecae03056e 100644 --- a/rtos/rtos/RtosTimer.h +++ b/rtos/RtosTimer.h @@ -24,8 +24,8 @@ #include #include "cmsis_os.h" -#include "Callback.h" -#include "toolchain.h" +#include "platform/Callback.h" +#include "platform/toolchain.h" namespace rtos { diff --git a/rtos/rtos/Semaphore.cpp b/rtos/Semaphore.cpp similarity index 98% rename from rtos/rtos/Semaphore.cpp rename to rtos/Semaphore.cpp index ee356b2eaf..a97a6705b2 100644 --- a/rtos/rtos/Semaphore.cpp +++ b/rtos/Semaphore.cpp @@ -19,7 +19,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -#include "Semaphore.h" +#include "rtos/Semaphore.h" #include diff --git a/rtos/rtos/Semaphore.h b/rtos/Semaphore.h similarity index 100% rename from rtos/rtos/Semaphore.h rename to rtos/Semaphore.h diff --git a/rtos/rtos/Thread.cpp b/rtos/Thread.cpp similarity index 99% rename from rtos/rtos/Thread.cpp rename to rtos/Thread.cpp index 0822872f78..61bfe964c6 100644 --- a/rtos/rtos/Thread.cpp +++ b/rtos/Thread.cpp @@ -19,10 +19,10 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ -#include "Thread.h" +#include "rtos/Thread.h" #include "mbed.h" -#include "rtos_idle.h" +#include "rtos/rtos_idle.h" // rt_tid2ptcb is an internal function which we exposed to get TCB for thread id #undef NULL //Workaround for conflicting macros in rt_TypeDef.h and stdio.h diff --git a/rtos/rtos/Thread.h b/rtos/Thread.h similarity index 99% rename from rtos/rtos/Thread.h rename to rtos/Thread.h index 00ef016ea7..3be7d9c46f 100644 --- a/rtos/rtos/Thread.h +++ b/rtos/Thread.h @@ -24,10 +24,10 @@ #include #include "cmsis_os.h" -#include "Callback.h" -#include "toolchain.h" -#include "Semaphore.h" -#include "Mutex.h" +#include "platform/Callback.h" +#include "platform/toolchain.h" +#include "rtos/Semaphore.h" +#include "rtos/Mutex.h" namespace rtos { diff --git a/rtos/rtos/rtos.h b/rtos/rtos.h similarity index 88% rename from rtos/rtos/rtos.h rename to rtos/rtos.h index d23d0447d9..efc8221c15 100644 --- a/rtos/rtos/rtos.h +++ b/rtos/rtos.h @@ -22,13 +22,13 @@ #ifndef RTOS_H #define RTOS_H -#include "Thread.h" -#include "Mutex.h" -#include "RtosTimer.h" -#include "Semaphore.h" -#include "Mail.h" -#include "MemoryPool.h" -#include "Queue.h" +#include "rtos/Thread.h" +#include "rtos/Mutex.h" +#include "rtos/RtosTimer.h" +#include "rtos/Semaphore.h" +#include "rtos/Mail.h" +#include "rtos/MemoryPool.h" +#include "rtos/Queue.h" using namespace rtos; diff --git a/rtos/rtos/rtos_idle.c b/rtos/rtos_idle.c similarity index 98% rename from rtos/rtos/rtos_idle.c rename to rtos/rtos_idle.c index 1edef6e35a..c1a35ef02c 100644 --- a/rtos/rtos/rtos_idle.c +++ b/rtos/rtos_idle.c @@ -20,7 +20,7 @@ * SOFTWARE. */ -#include "rtos_idle.h" +#include "rtos/rtos_idle.h" static void default_idle_hook(void) { diff --git a/rtos/rtos/rtos_idle.h b/rtos/rtos_idle.h similarity index 100% rename from rtos/rtos/rtos_idle.h rename to rtos/rtos_idle.h diff --git a/setup.py b/setup.py deleted file mode 100644 index 42d6dcb9fc..0000000000 --- a/setup.py +++ /dev/null @@ -1,49 +0,0 @@ -""" -This module defines the attributes of the -PyPI package for the Mbed SDK -""" - -from shutil import copyfileobj -from os.path import isfile, join -from tempfile import TemporaryFile -from setuptools import find_packages -from distutils.core import setup - -LICENSE = open('LICENSE').read() -DESCRIPTION = """A set of Python scripts that can be used to compile programs written on top of the `mbed framework`_. It can also be used to export mbed projects to other build systems and IDEs (uVision, IAR, makefiles). - -.. _mbed framework: http://mbed.org""" -OWNER_NAMES = 'emilmont, bogdanm' -OWNER_EMAILS = 'Emilio.Monti@arm.com, Bogdan.Marinescu@arm.com' - -# If mbed_settings.py exists in tools, read it in a temporary file -# so it can be restored later -mbed_settings = join('mbed_settings.py') -backup = None -if isfile(mbed_settings): - backup = TemporaryFile() - with open(mbed_settings, "rb") as f: - copyfileobj(f, backup) - -# Create the correct mbed_settings.py for the distribution -with open(mbed_settings, "wt") as f: - f.write("from mbed_settings import *\n") - -setup(name='mbed-tools', - version='0.1.14', - description='Build and test system for mbed', - long_description=DESCRIPTION, - author=OWNER_NAMES, - author_email=OWNER_EMAILS, - maintainer=OWNER_NAMES, - maintainer_email=OWNER_EMAILS, - url='https://github.com/mbedmicro/mbed', - packages=find_packages(), - license=LICENSE, - install_requires=["PrettyTable>=0.7.2", "PySerial>=2.7", "IntelHex>=1.3", "colorama>=0.3.3", "Jinja2>=2.7.3", "project-generator>=0.9.3,<0.10.0", "project-generator-definitions>=0.2.26,<0.3.0", "junit-xml", "requests", "pyYAML"]) - -# Restore previous mbed_settings if needed -if backup: - backup.seek(0) - with open(mbed_settings, "wb") as f: - copyfileobj(backup, f) diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/PeripheralNames.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/PeripheralNames.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/PinNames.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/PinNames.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/PinNames.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/PortNames.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/PortNames.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/PortNames.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/.gitattributes b/targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/.gitattributes similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/.gitattributes rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/.gitattributes diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/LICENSE-permissive-binary-license-1.0.txt b/targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/LICENSE-permissive-binary-license-1.0.txt similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/LICENSE-permissive-binary-license-1.0.txt rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/LICENSE-permissive-binary-license-1.0.txt diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/LICENSE.txt b/targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/LICENSE.txt similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/LICENSE.txt rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/LICENSE.txt diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/cordio.0.0.1.ar b/targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/cordio.0.0.1.ar similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/cordio.0.0.1.ar rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/cordio.0.0.1.ar diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/cordio_platform.0.0.1.ar b/targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/cordio_platform.0.0.1.ar similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/cordio_platform.0.0.1.ar rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/cordio_platform.0.0.1.ar diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/.gitattributes b/targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/.gitattributes similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/.gitattributes rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/.gitattributes diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/LICENSE-permissive-binary-license-1.0.txt b/targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/LICENSE-permissive-binary-license-1.0.txt similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/LICENSE-permissive-binary-license-1.0.txt rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/LICENSE-permissive-binary-license-1.0.txt diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/LICENSE.txt b/targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/LICENSE.txt similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/LICENSE.txt rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/LICENSE.txt diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/libcordio.0.0.1.a b/targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/libcordio.0.0.1.a similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/libcordio.0.0.1.a rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/libcordio.0.0.1.a diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/libcordio_platform.0.0.1.a b/targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/libcordio_platform.0.0.1.a similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/libcordio_platform.0.0.1.a rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/libcordio_platform.0.0.1.a diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/.gitattributes b/targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/.gitattributes similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/.gitattributes rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/.gitattributes diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/LICENSE-permissive-binary-license-1.0.txt b/targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/LICENSE-permissive-binary-license-1.0.txt similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/LICENSE-permissive-binary-license-1.0.txt rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/LICENSE-permissive-binary-license-1.0.txt diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/LICENSE.txt b/targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/LICENSE.txt similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/LICENSE.txt rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/LICENSE.txt diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/libcordio.0.0.1.a b/targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/libcordio.0.0.1.a similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/libcordio.0.0.1.a rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/libcordio.0.0.1.a diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/libcordio_platform.0.0.1.a b/targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/libcordio_platform.0.0.1.a similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/libcordio_platform.0.0.1.a rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/libcordio_platform.0.0.1.a diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/analogin_api.c b/targets/TARGET_ARM_SSG/TARGET_BEETLE/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/analogin_api.c rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/analogin_api.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/LICENSE-permissive-binary-license-1.0.txt b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/LICENSE-permissive-binary-license-1.0.txt similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/LICENSE-permissive-binary-license-1.0.txt rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/LICENSE-permissive-binary-license-1.0.txt diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/firmware/.gitattributes b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/firmware/.gitattributes similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/firmware/.gitattributes rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/firmware/.gitattributes diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/firmware/CORDIO_RO_2.1.o b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/firmware/CORDIO_RO_2.1.o similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/firmware/CORDIO_RO_2.1.o rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/firmware/CORDIO_RO_2.1.o diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/firmware/LICENSE-permissive-binary-license-1.0.txt b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/firmware/LICENSE-permissive-binary-license-1.0.txt similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/firmware/LICENSE-permissive-binary-license-1.0.txt rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/firmware/LICENSE-permissive-binary-license-1.0.txt diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/firmware/LICENSE.txt b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/firmware/LICENSE.txt similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/firmware/LICENSE.txt rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/firmware/LICENSE.txt diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/firmware/TRIM_2.1.o b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/firmware/TRIM_2.1.o similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/firmware/TRIM_2.1.o rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/firmware/TRIM_2.1.o diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/beetle/board/board.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/beetle/board/board.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/beetle/board/board.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/beetle/board/board.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/beetle/board/main_board.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/beetle/board/main_board.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/beetle/board/main_board.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/beetle/board/main_board.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/beetle/chip/chip.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/beetle/chip/chip.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/beetle/chip/chip.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/beetle/chip/chip.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/beetle/chip/chip_hw.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/beetle/chip/chip_hw.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/beetle/chip/chip_hw.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/beetle/chip/chip_hw.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/ble_init.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/ble_init.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/ble_init.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/ble_init.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/cordio_bt4_defs.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/cordio_bt4_defs.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/cordio_bt4_defs.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/cordio_bt4_defs.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/cordio_sdk_version.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/cordio_sdk_version.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/cordio_sdk_version.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/cordio_sdk_version.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/driver/drv_console.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/driver/drv_console.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/driver/drv_console.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/driver/drv_console.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/driver/drv_llcc.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/driver/drv_llcc.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/driver/drv_llcc.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/driver/drv_llcc.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/driver/drv_uart.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/driver/drv_uart.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/driver/drv_uart.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/driver/drv_uart.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/hci/dual_chip/hci_core_ps.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/hci/dual_chip/hci_core_ps.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/hci/dual_chip/hci_core_ps.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/hci/dual_chip/hci_core_ps.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/hci/include/hci_core.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/hci/include/hci_core.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/hci/include/hci_core.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/hci/include/hci_core.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/hci/include/hci_drv.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/hci/include/hci_drv.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/hci/include/hci_drv.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/hci/include/hci_drv.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/hci/include/hci_tr.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/hci/include/hci_tr.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/hci/include/hci_tr.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/hci/include/hci_tr.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/hpal/hpal_blep.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/hpal/hpal_blep.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/hpal/hpal_blep.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/hpal/hpal_blep.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/hpal/hpal_hci.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/hpal/hpal_hci.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/hpal/hpal_hci.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/hpal/hpal_hci.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/cfg/cfg_stack.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/cfg/cfg_stack.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/cfg/cfg_stack.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/cfg/cfg_stack.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/att_api.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/att_api.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/att_api.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/att_api.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/att_defs.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/att_defs.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/att_defs.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/att_defs.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/att_handler.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/att_handler.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/att_handler.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/att_handler.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/att_uuid.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/att_uuid.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/att_uuid.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/att_uuid.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/dm_api.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/dm_api.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/dm_api.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/dm_api.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/dm_handler.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/dm_handler.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/dm_handler.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/dm_handler.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/hci_api.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/hci_api.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/hci_api.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/hci_api.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/hci_defs.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/hci_defs.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/hci_defs.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/hci_defs.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/hci_handler.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/hci_handler.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/hci_handler.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/hci_handler.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/l2c_api.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/l2c_api.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/l2c_api.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/l2c_api.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/l2c_defs.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/l2c_defs.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/l2c_defs.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/l2c_defs.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/l2c_handler.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/l2c_handler.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/l2c_handler.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/l2c_handler.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/smp_api.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/smp_api.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/smp_api.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/smp_api.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/smp_defs.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/smp_defs.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/smp_defs.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/smp_defs.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/smp_handler.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/smp_handler.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/smp_handler.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/stack/include/smp_handler.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/util/bda.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/util/bda.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/util/bda.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/util/bda.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/util/bstream.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/util/bstream.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/util/bstream.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/util/bstream.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/util/utils.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/util/utils.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/util/utils.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/util/utils.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/generic/wsf_assert.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/generic/wsf_assert.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/generic/wsf_assert.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/generic/wsf_assert.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/generic/wsf_os_int.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/generic/wsf_os_int.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/generic/wsf_os_int.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/generic/wsf_os_int.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/generic/wsf_trace.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/generic/wsf_trace.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/generic/wsf_trace.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/generic/wsf_trace.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/generic/wsf_types.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/generic/wsf_types.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/generic/wsf_types.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/generic/wsf_types.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_buf.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_buf.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_buf.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_buf.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_math.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_math.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_math.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_math.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_msg.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_msg.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_msg.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_msg.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_os.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_os.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_os.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_os.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_queue.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_queue.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_queue.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_queue.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_sec.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_sec.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_sec.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_sec.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_sec_int.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_sec_int.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_sec_int.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_sec_int.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_timer.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_timer.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_timer.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/include/wsf_timer.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/mbed-os/wsf_mbed_os.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/mbed-os/wsf_mbed_os.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/mbed-os/wsf_mbed_os.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/cordio/include/wsf/mbed-os/wsf_mbed_os.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/device.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/device.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/device.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/device.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/gpio_api.c b/targets/TARGET_ARM_SSG/TARGET_BEETLE/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/gpio_api.c rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/gpio_api.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/gpio_irq_api.c b/targets/TARGET_ARM_SSG/TARGET_BEETLE/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/gpio_irq_api.c rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/gpio_object.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/gpio_object.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/gpio_object.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/i2c_api.c b/targets/TARGET_ARM_SSG/TARGET_BEETLE/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/i2c_api.c rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/i2c_api.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/i2c_def.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/i2c_def.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/i2c_def.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/i2c_def.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/lp_ticker.c b/targets/TARGET_ARM_SSG/TARGET_BEETLE/lp_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/lp_ticker.c rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/lp_ticker.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/mbed_sdk_init.c b/targets/TARGET_ARM_SSG/TARGET_BEETLE/mbed_sdk_init.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/mbed_sdk_init.c rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/mbed_sdk_init.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/objects.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/objects.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/objects.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/objects.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/pinmap.c b/targets/TARGET_ARM_SSG/TARGET_BEETLE/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/pinmap.c rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/pinmap.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/port_api.c b/targets/TARGET_ARM_SSG/TARGET_BEETLE/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/port_api.c rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/port_api.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/serial_api.c b/targets/TARGET_ARM_SSG/TARGET_BEETLE/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/serial_api.c rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/serial_api.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/sleep.c b/targets/TARGET_ARM_SSG/TARGET_BEETLE/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/sleep.c rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/sleep.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/spi_api.c b/targets/TARGET_ARM_SSG/TARGET_BEETLE/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/spi_api.c rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/spi_api.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/spi_def.h b/targets/TARGET_ARM_SSG/TARGET_BEETLE/spi_def.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/spi_def.h rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/spi_def.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/us_ticker.c b/targets/TARGET_ARM_SSG/TARGET_BEETLE/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_BEETLE/us_ticker.c rename to targets/TARGET_ARM_SSG/TARGET_BEETLE/us_ticker.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/PeripheralNames.h b/targets/TARGET_ARM_SSG/TARGET_IOTSS/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/PeripheralNames.h rename to targets/TARGET_ARM_SSG/TARGET_IOTSS/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/PinNames.h b/targets/TARGET_ARM_SSG/TARGET_IOTSS/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/PinNames.h rename to targets/TARGET_ARM_SSG/TARGET_IOTSS/PinNames.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/PortNames.h b/targets/TARGET_ARM_SSG/TARGET_IOTSS/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/PortNames.h rename to targets/TARGET_ARM_SSG/TARGET_IOTSS/PortNames.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/SDK/ETH_MPS2.c b/targets/TARGET_ARM_SSG/TARGET_IOTSS/SDK/ETH_MPS2.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/SDK/ETH_MPS2.c rename to targets/TARGET_ARM_SSG/TARGET_IOTSS/SDK/ETH_MPS2.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/SDK/ETH_MPS2.h b/targets/TARGET_ARM_SSG/TARGET_IOTSS/SDK/ETH_MPS2.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/SDK/ETH_MPS2.h rename to targets/TARGET_ARM_SSG/TARGET_IOTSS/SDK/ETH_MPS2.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/SDK/fpga.c b/targets/TARGET_ARM_SSG/TARGET_IOTSS/SDK/fpga.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/SDK/fpga.c rename to targets/TARGET_ARM_SSG/TARGET_IOTSS/SDK/fpga.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/SDK/fpga.h b/targets/TARGET_ARM_SSG/TARGET_IOTSS/SDK/fpga.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/SDK/fpga.h rename to targets/TARGET_ARM_SSG/TARGET_IOTSS/SDK/fpga.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/SDK/mps2_ethernet_api.c b/targets/TARGET_ARM_SSG/TARGET_IOTSS/SDK/mps2_ethernet_api.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/SDK/mps2_ethernet_api.c rename to targets/TARGET_ARM_SSG/TARGET_IOTSS/SDK/mps2_ethernet_api.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/SDK/mps2_ethernet_api.h b/targets/TARGET_ARM_SSG/TARGET_IOTSS/SDK/mps2_ethernet_api.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/SDK/mps2_ethernet_api.h rename to targets/TARGET_ARM_SSG/TARGET_IOTSS/SDK/mps2_ethernet_api.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/analogin_api.c b/targets/TARGET_ARM_SSG/TARGET_IOTSS/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/analogin_api.c rename to targets/TARGET_ARM_SSG/TARGET_IOTSS/analogin_api.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/device.h b/targets/TARGET_ARM_SSG/TARGET_IOTSS/device.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/device.h rename to targets/TARGET_ARM_SSG/TARGET_IOTSS/device.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/ethernet_api.c b/targets/TARGET_ARM_SSG/TARGET_IOTSS/ethernet_api.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/ethernet_api.c rename to targets/TARGET_ARM_SSG/TARGET_IOTSS/ethernet_api.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/gpio_api.c b/targets/TARGET_ARM_SSG/TARGET_IOTSS/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/gpio_api.c rename to targets/TARGET_ARM_SSG/TARGET_IOTSS/gpio_api.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/gpio_irq_api.c b/targets/TARGET_ARM_SSG/TARGET_IOTSS/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/gpio_irq_api.c rename to targets/TARGET_ARM_SSG/TARGET_IOTSS/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/gpio_object.h b/targets/TARGET_ARM_SSG/TARGET_IOTSS/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/gpio_object.h rename to targets/TARGET_ARM_SSG/TARGET_IOTSS/gpio_object.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/i2c_api.c b/targets/TARGET_ARM_SSG/TARGET_IOTSS/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/i2c_api.c rename to targets/TARGET_ARM_SSG/TARGET_IOTSS/i2c_api.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/objects.h b/targets/TARGET_ARM_SSG/TARGET_IOTSS/objects.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/objects.h rename to targets/TARGET_ARM_SSG/TARGET_IOTSS/objects.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/pinmap.c b/targets/TARGET_ARM_SSG/TARGET_IOTSS/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/pinmap.c rename to targets/TARGET_ARM_SSG/TARGET_IOTSS/pinmap.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/port_api.c b/targets/TARGET_ARM_SSG/TARGET_IOTSS/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/port_api.c rename to targets/TARGET_ARM_SSG/TARGET_IOTSS/port_api.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/serial_api.c b/targets/TARGET_ARM_SSG/TARGET_IOTSS/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/serial_api.c rename to targets/TARGET_ARM_SSG/TARGET_IOTSS/serial_api.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/spi_api.c b/targets/TARGET_ARM_SSG/TARGET_IOTSS/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/spi_api.c rename to targets/TARGET_ARM_SSG/TARGET_IOTSS/spi_api.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/spi_def.h b/targets/TARGET_ARM_SSG/TARGET_IOTSS/spi_def.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/spi_def.h rename to targets/TARGET_ARM_SSG/TARGET_IOTSS/spi_def.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/us_ticker.c b/targets/TARGET_ARM_SSG/TARGET_IOTSS/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_IOTSS/us_ticker.c rename to targets/TARGET_ARM_SSG/TARGET_IOTSS/us_ticker.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/PeripheralNames.h b/targets/TARGET_ARM_SSG/TARGET_MPS2/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/PeripheralNames.h rename to targets/TARGET_ARM_SSG/TARGET_MPS2/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/PinNames.h b/targets/TARGET_ARM_SSG/TARGET_MPS2/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/PinNames.h rename to targets/TARGET_ARM_SSG/TARGET_MPS2/PinNames.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/PortNames.h b/targets/TARGET_ARM_SSG/TARGET_MPS2/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/PortNames.h rename to targets/TARGET_ARM_SSG/TARGET_MPS2/PortNames.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/SDK/ETH_MPS2.c b/targets/TARGET_ARM_SSG/TARGET_MPS2/SDK/ETH_MPS2.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/SDK/ETH_MPS2.c rename to targets/TARGET_ARM_SSG/TARGET_MPS2/SDK/ETH_MPS2.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/SDK/ETH_MPS2.h b/targets/TARGET_ARM_SSG/TARGET_MPS2/SDK/ETH_MPS2.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/SDK/ETH_MPS2.h rename to targets/TARGET_ARM_SSG/TARGET_MPS2/SDK/ETH_MPS2.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/SDK/fpga.c b/targets/TARGET_ARM_SSG/TARGET_MPS2/SDK/fpga.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/SDK/fpga.c rename to targets/TARGET_ARM_SSG/TARGET_MPS2/SDK/fpga.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/SDK/fpga.h b/targets/TARGET_ARM_SSG/TARGET_MPS2/SDK/fpga.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/SDK/fpga.h rename to targets/TARGET_ARM_SSG/TARGET_MPS2/SDK/fpga.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/SDK/mps2_ethernet_api.c b/targets/TARGET_ARM_SSG/TARGET_MPS2/SDK/mps2_ethernet_api.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/SDK/mps2_ethernet_api.c rename to targets/TARGET_ARM_SSG/TARGET_MPS2/SDK/mps2_ethernet_api.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/SDK/mps2_ethernet_api.h b/targets/TARGET_ARM_SSG/TARGET_MPS2/SDK/mps2_ethernet_api.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/SDK/mps2_ethernet_api.h rename to targets/TARGET_ARM_SSG/TARGET_MPS2/SDK/mps2_ethernet_api.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/analogin_api.c b/targets/TARGET_ARM_SSG/TARGET_MPS2/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/analogin_api.c rename to targets/TARGET_ARM_SSG/TARGET_MPS2/analogin_api.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/device.h b/targets/TARGET_ARM_SSG/TARGET_MPS2/device.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/device.h rename to targets/TARGET_ARM_SSG/TARGET_MPS2/device.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/ethernet_api.c b/targets/TARGET_ARM_SSG/TARGET_MPS2/ethernet_api.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/ethernet_api.c rename to targets/TARGET_ARM_SSG/TARGET_MPS2/ethernet_api.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/gpio_api.c b/targets/TARGET_ARM_SSG/TARGET_MPS2/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/gpio_api.c rename to targets/TARGET_ARM_SSG/TARGET_MPS2/gpio_api.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/gpio_irq_api.c b/targets/TARGET_ARM_SSG/TARGET_MPS2/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/gpio_irq_api.c rename to targets/TARGET_ARM_SSG/TARGET_MPS2/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/gpio_object.h b/targets/TARGET_ARM_SSG/TARGET_MPS2/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/gpio_object.h rename to targets/TARGET_ARM_SSG/TARGET_MPS2/gpio_object.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/i2c_api.c b/targets/TARGET_ARM_SSG/TARGET_MPS2/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/i2c_api.c rename to targets/TARGET_ARM_SSG/TARGET_MPS2/i2c_api.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/objects.h b/targets/TARGET_ARM_SSG/TARGET_MPS2/objects.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/objects.h rename to targets/TARGET_ARM_SSG/TARGET_MPS2/objects.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/pinmap.c b/targets/TARGET_ARM_SSG/TARGET_MPS2/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/pinmap.c rename to targets/TARGET_ARM_SSG/TARGET_MPS2/pinmap.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/port_api.c b/targets/TARGET_ARM_SSG/TARGET_MPS2/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/port_api.c rename to targets/TARGET_ARM_SSG/TARGET_MPS2/port_api.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/serial_api.c b/targets/TARGET_ARM_SSG/TARGET_MPS2/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/serial_api.c rename to targets/TARGET_ARM_SSG/TARGET_MPS2/serial_api.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/spi_api.c b/targets/TARGET_ARM_SSG/TARGET_MPS2/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/spi_api.c rename to targets/TARGET_ARM_SSG/TARGET_MPS2/spi_api.c diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/spi_def.h b/targets/TARGET_ARM_SSG/TARGET_MPS2/spi_def.h similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/spi_def.h rename to targets/TARGET_ARM_SSG/TARGET_MPS2/spi_def.h diff --git a/hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/us_ticker.c b/targets/TARGET_ARM_SSG/TARGET_MPS2/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_ARM_SSG/TARGET_MPS2/us_ticker.c rename to targets/TARGET_ARM_SSG/TARGET_MPS2/us_ticker.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/PortNames.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/PortNames.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/PortNames.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/PeripheralNames.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/PeripheralNames.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/PeripheralPins.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/PeripheralPins.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/PeripheralPins.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/PeripheralPins.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/PinNames.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/PinNames.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/PinNames.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/SAMW25_XPLAINED_PRO/mbed_overrides.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/SAMW25_XPLAINED_PRO/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/SAMW25_XPLAINED_PRO/mbed_overrides.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/SAMW25_XPLAINED_PRO/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/SAMW25_XPLAINED_PRO/samw25_xplained_pro.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/SAMW25_XPLAINED_PRO/samw25_xplained_pro.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/SAMW25_XPLAINED_PRO/samw25_xplained_pro.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/SAMW25_XPLAINED_PRO/samw25_xplained_pro.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/analogout_api.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/analogout_api.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/analogout_api.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/analogout_api.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/device.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/device.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/device.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21G18A/device.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/PeripheralNames.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/PeripheralNames.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/PeripheralPins.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/PeripheralPins.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/PeripheralPins.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/PeripheralPins.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/PinNames.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/PinNames.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/PinNames.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/SAMD21_XPLAINED_PRO/mbed_overrides.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/SAMD21_XPLAINED_PRO/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/SAMD21_XPLAINED_PRO/mbed_overrides.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/SAMD21_XPLAINED_PRO/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/SAMD21_XPLAINED_PRO/samd21_xplained_pro.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/SAMD21_XPLAINED_PRO/samd21_xplained_pro.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/SAMD21_XPLAINED_PRO/samd21_xplained_pro.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/SAMD21_XPLAINED_PRO/samd21_xplained_pro.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/analogout_api.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/analogout_api.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/analogout_api.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/analogout_api.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/device.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/device.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/device.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21J18A/device.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/PeripheralNames.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/PeripheralNames.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/PeripheralPins.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/PeripheralPins.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/PeripheralPins.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/PeripheralPins.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/PinNames.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/PinNames.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/PinNames.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/SAML21_XPLAINED_PRO/mbed_overrides.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/SAML21_XPLAINED_PRO/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/SAML21_XPLAINED_PRO/mbed_overrides.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/SAML21_XPLAINED_PRO/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/SAML21_XPLAINED_PRO/saml21_xplained_pro.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/SAML21_XPLAINED_PRO/saml21_xplained_pro.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/SAML21_XPLAINED_PRO/saml21_xplained_pro.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/SAML21_XPLAINED_PRO/saml21_xplained_pro.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/analogout_api.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/analogout_api.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/analogout_api.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/analogout_api.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/device.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/device.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/device.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21J18A/device.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/PeripheralNames.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/PeripheralNames.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/PeripheralPins.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/PeripheralPins.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/PeripheralPins.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/PeripheralPins.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/PinNames.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/PinNames.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/PinNames.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/SAMR21_XPLAINED_PRO/mbed_overrides.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/SAMR21_XPLAINED_PRO/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/SAMR21_XPLAINED_PRO/mbed_overrides.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/SAMR21_XPLAINED_PRO/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/SAMR21_XPLAINED_PRO/samr21_xplained_pro.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/SAMR21_XPLAINED_PRO/samr21_xplained_pro.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/SAMR21_XPLAINED_PRO/samr21_xplained_pro.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/SAMR21_XPLAINED_PRO/samr21_xplained_pro.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/device.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/device.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/device.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21G18A/device.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/analogin_api.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/analogin_api.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/analogin_api.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMD21/conf_board.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMD21/conf_board.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMD21/conf_board.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMD21/conf_board.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMD21/conf_clocks.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMD21/conf_clocks.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMD21/conf_clocks.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMD21/conf_clocks.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMD21/conf_dma.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMD21/conf_dma.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMD21/conf_dma.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMD21/conf_dma.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMD21/conf_extint.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMD21/conf_extint.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMD21/conf_extint.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMD21/conf_extint.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMD21/conf_spi.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMD21/conf_spi.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMD21/conf_spi.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMD21/conf_spi.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMD21/conf_test.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMD21/conf_test.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMD21/conf_test.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMD21/conf_test.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAML21/conf_board.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAML21/conf_board.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAML21/conf_board.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAML21/conf_board.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAML21/conf_clocks.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAML21/conf_clocks.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAML21/conf_clocks.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAML21/conf_clocks.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAML21/conf_dma.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAML21/conf_dma.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAML21/conf_dma.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAML21/conf_dma.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAML21/conf_extint.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAML21/conf_extint.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAML21/conf_extint.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAML21/conf_extint.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAML21/conf_spi.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAML21/conf_spi.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAML21/conf_spi.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAML21/conf_spi.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAML21/conf_test.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAML21/conf_test.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAML21/conf_test.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAML21/conf_test.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMR21/conf_board.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMR21/conf_board.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMR21/conf_board.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMR21/conf_board.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMR21/conf_clocks.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMR21/conf_clocks.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMR21/conf_clocks.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMR21/conf_clocks.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMR21/conf_dma.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMR21/conf_dma.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMR21/conf_dma.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMR21/conf_dma.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMR21/conf_extint.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMR21/conf_extint.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMR21/conf_extint.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMR21/conf_extint.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMR21/conf_spi.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMR21/conf_spi.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMR21/conf_spi.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMR21/conf_spi.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMR21/conf_test.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMR21/conf_test.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMR21/conf_test.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/config/TARGET_SAMR21/conf_test.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/dma_api.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/dma_api.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/dma_api.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/dma_api.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/dma_api_HAL.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/dma_api_HAL.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/dma_api_HAL.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/dma_api_HAL.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/TARGET_SAMD21/adc.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/TARGET_SAMD21/adc.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/TARGET_SAMD21/adc.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/TARGET_SAMD21/adc.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/TARGET_SAMD21/adc_feature.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/TARGET_SAMD21/adc_feature.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/TARGET_SAMD21/adc_feature.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/TARGET_SAMD21/adc_feature.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/TARGET_SAML21/adc.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/TARGET_SAML21/adc.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/TARGET_SAML21/adc.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/TARGET_SAML21/adc.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/TARGET_SAML21/adc_feature.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/TARGET_SAML21/adc_feature.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/TARGET_SAML21/adc_feature.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/TARGET_SAML21/adc_feature.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/TARGET_SAMR21/adc.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/TARGET_SAMR21/adc.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/TARGET_SAMR21/adc.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/TARGET_SAMR21/adc.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/TARGET_SAMR21/adc_feature.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/TARGET_SAMR21/adc_feature.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/TARGET_SAMR21/adc_feature.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/TARGET_SAMR21/adc_feature.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/adc.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/adc.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/adc.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/adc/adc.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dac/TARGET_SAMD21/dac.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dac/TARGET_SAMD21/dac.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dac/TARGET_SAMD21/dac.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dac/TARGET_SAMD21/dac.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dac/TARGET_SAMD21/dac_feature.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dac/TARGET_SAMD21/dac_feature.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dac/TARGET_SAMD21/dac_feature.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dac/TARGET_SAMD21/dac_feature.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dac/TARGET_SAML21/dac.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dac/TARGET_SAML21/dac.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dac/TARGET_SAML21/dac.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dac/TARGET_SAML21/dac.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dac/TARGET_SAML21/dac_feature.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dac/TARGET_SAML21/dac_feature.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dac/TARGET_SAML21/dac_feature.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dac/TARGET_SAML21/dac_feature.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dac/dac.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dac/dac.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dac/dac.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dac/dac.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dma/dma.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dma/dma.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dma/dma.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dma/dma.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dma/dma.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dma/dma.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dma/dma.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dma/dma.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dma/dma_crc.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dma/dma_crc.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dma/dma_crc.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/dma/dma_crc.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/extint/TARGET_SAMD21/extint.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/extint/TARGET_SAMD21/extint.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/extint/TARGET_SAMD21/extint.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/extint/TARGET_SAMD21/extint.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/extint/TARGET_SAML21/extint.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/extint/TARGET_SAML21/extint.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/extint/TARGET_SAML21/extint.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/extint/TARGET_SAML21/extint.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/extint/TARGET_SAMR21/extint.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/extint/TARGET_SAMR21/extint.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/extint/TARGET_SAMR21/extint.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/extint/TARGET_SAMR21/extint.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/extint/extint.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/extint/extint.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/extint/extint.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/extint/extint.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/extint/extint_callback.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/extint/extint_callback.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/extint/extint_callback.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/extint/extint_callback.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/extint/extint_callback.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/extint/extint_callback.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/extint/extint_callback.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/extint/extint_callback.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/port/port.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/port/port.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/port/port.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/port/port.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/port/port.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/port/port.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/port/port.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/port/port.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/rtc/TARGET_SAMD21/rtc_count.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/rtc/TARGET_SAMD21/rtc_count.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/rtc/TARGET_SAMD21/rtc_count.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/rtc/TARGET_SAMD21/rtc_count.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/rtc/TARGET_SAML21/module_config/conf_rtc.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/rtc/TARGET_SAML21/module_config/conf_rtc.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/rtc/TARGET_SAML21/module_config/conf_rtc.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/rtc/TARGET_SAML21/module_config/conf_rtc.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/rtc/TARGET_SAML21/rtc_count.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/rtc/TARGET_SAML21/rtc_count.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/rtc/TARGET_SAML21/rtc_count.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/rtc/TARGET_SAML21/rtc_count.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/rtc/TARGET_SAMR21/rtc_count.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/rtc/TARGET_SAMR21/rtc_count.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/rtc/TARGET_SAMR21/rtc_count.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/rtc/TARGET_SAMR21/rtc_count.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/rtc/rtc_count.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/rtc/rtc_count.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/rtc/rtc_count.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/rtc/rtc_count.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_common.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_common.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_common.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_common.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_master.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_master.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_master.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_master.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_master_interrupt.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_master_interrupt.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_master_interrupt.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_master_interrupt.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_sam0/i2c_master.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_sam0/i2c_master.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_sam0/i2c_master.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_sam0/i2c_master.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_sam0/i2c_master_interrupt.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_sam0/i2c_master_interrupt.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_sam0/i2c_master_interrupt.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_sam0/i2c_master_interrupt.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_sam0/i2c_slave.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_sam0/i2c_slave.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_sam0/i2c_slave.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_sam0/i2c_slave.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_slave.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_slave.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_slave.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_slave.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_slave_interrupt.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_slave_interrupt.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_slave_interrupt.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/i2c/i2c_slave_interrupt.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/sercom.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/sercom.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/sercom.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/sercom.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/sercom.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/sercom.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/sercom.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/sercom.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/sercom_interrupt.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/sercom_interrupt.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/sercom_interrupt.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/sercom_interrupt.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/sercom_interrupt.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/sercom_interrupt.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/sercom_interrupt.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/sercom_interrupt.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/sercom_pinout.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/sercom_pinout.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/sercom_pinout.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/sercom_pinout.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/usart/usart.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/usart/usart.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/usart/usart.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/usart/usart.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/usart/usart.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/usart/usart.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/usart/usart.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/usart/usart.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/usart/usart_interrupt.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/usart/usart_interrupt.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/usart/usart_interrupt.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/usart/usart_interrupt.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/usart/usart_interrupt.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/usart/usart_interrupt.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/usart/usart_interrupt.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/sercom/usart/usart_interrupt.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/services/delay/delay.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/services/delay/delay.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/services/delay/delay.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/services/delay/delay.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/services/delay/sam0/systick_counter.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/services/delay/sam0/systick_counter.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/services/delay/sam0/systick_counter.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/services/delay/sam0/systick_counter.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/services/delay/sam0/systick_counter.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/services/delay/sam0/systick_counter.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/services/delay/sam0/systick_counter.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/services/delay/sam0/systick_counter.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMD21/clock.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMD21/clock.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMD21/clock.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMD21/clock.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMD21/clock_config_check.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMD21/clock_config_check.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMD21/clock_config_check.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMD21/clock_config_check.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMD21/clock_feature.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMD21/clock_feature.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMD21/clock_feature.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMD21/clock_feature.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMD21/gclk.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMD21/gclk.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMD21/gclk.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMD21/gclk.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAML21/clock.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAML21/clock.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAML21/clock.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAML21/clock.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAML21/clock_config_check.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAML21/clock_config_check.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAML21/clock_config_check.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAML21/clock_config_check.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAML21/clock_feature.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAML21/clock_feature.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAML21/clock_feature.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAML21/clock_feature.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAML21/gclk.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAML21/gclk.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAML21/gclk.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAML21/gclk.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMR21/clock.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMR21/clock.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMR21/clock.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMR21/clock.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMR21/clock_config_check.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMR21/clock_config_check.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMR21/clock_config_check.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMR21/clock_config_check.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMR21/clock_feature.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMR21/clock_feature.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMR21/clock_feature.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMR21/clock_feature.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMR21/gclk.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMR21/gclk.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMR21/gclk.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/TARGET_SAMR21/gclk.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/clock.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/clock.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/clock.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/clock.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/gclk.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/gclk.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/gclk.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/clock/gclk.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/interrupt/TARGET_SAMD21/system_interrupt_features.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/interrupt/TARGET_SAMD21/system_interrupt_features.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/interrupt/TARGET_SAMD21/system_interrupt_features.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/interrupt/TARGET_SAMD21/system_interrupt_features.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/interrupt/TARGET_SAML21/system_interrupt_features.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/interrupt/TARGET_SAML21/system_interrupt_features.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/interrupt/TARGET_SAML21/system_interrupt_features.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/interrupt/TARGET_SAML21/system_interrupt_features.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/interrupt/TARGET_SAMR21/system_interrupt_features.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/interrupt/TARGET_SAMR21/system_interrupt_features.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/interrupt/TARGET_SAMR21/system_interrupt_features.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/interrupt/TARGET_SAMR21/system_interrupt_features.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/interrupt/system_interrupt.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/interrupt/system_interrupt.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/interrupt/system_interrupt.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/interrupt/system_interrupt.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/interrupt/system_interrupt.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/interrupt/system_interrupt.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/interrupt/system_interrupt.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/interrupt/system_interrupt.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/pinmux/pinmux.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/pinmux/pinmux.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/pinmux/pinmux.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/pinmux/pinmux.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/pinmux/pinmux.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/pinmux/pinmux.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/pinmux/pinmux.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/pinmux/pinmux.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/power/TARGET_SAMD21/power.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/power/TARGET_SAMD21/power.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/power/TARGET_SAMD21/power.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/power/TARGET_SAMD21/power.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/power/TARGET_SAML21/power.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/power/TARGET_SAML21/power.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/power/TARGET_SAML21/power.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/power/TARGET_SAML21/power.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/power/TARGET_SAMR21/power.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/power/TARGET_SAMR21/power.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/power/TARGET_SAMR21/power.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/power/TARGET_SAMR21/power.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/reset/TARGET_SAMD21/reset.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/reset/TARGET_SAMD21/reset.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/reset/TARGET_SAMD21/reset.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/reset/TARGET_SAMD21/reset.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/reset/TARGET_SAML21/reset.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/reset/TARGET_SAML21/reset.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/reset/TARGET_SAML21/reset.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/reset/TARGET_SAML21/reset.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/reset/TARGET_SAMR21/reset.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/reset/TARGET_SAMR21/reset.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/reset/TARGET_SAMR21/reset.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/reset/TARGET_SAMR21/reset.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/system.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/system.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/system.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/system.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/system.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/system.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/system.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/system/system.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tc/TARGET_SAMD21/tc.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tc/TARGET_SAMD21/tc.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tc/TARGET_SAMD21/tc.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tc/TARGET_SAMD21/tc.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tc/TARGET_SAML21/tc.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tc/TARGET_SAML21/tc.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tc/TARGET_SAML21/tc.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tc/TARGET_SAML21/tc.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tc/TARGET_SAMR21/tc.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tc/TARGET_SAMR21/tc.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tc/TARGET_SAMR21/tc.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tc/TARGET_SAMR21/tc.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tc/tc.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tc/tc.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tc/tc.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tc/tc.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tc/tc_interrupt.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tc/tc_interrupt.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tc/tc_interrupt.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tc/tc_interrupt.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tc/tc_interrupt.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tc/tc_interrupt.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tc/tc_interrupt.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tc/tc_interrupt.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tcc/tcc.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tcc/tcc.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tcc/tcc.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tcc/tcc.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tcc/tcc.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tcc/tcc.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tcc/tcc.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/drivers/tcc/tcc.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/gpio_api.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/gpio_api.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/gpio_api.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/gpio_irq_api.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/gpio_irq_api.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/gpio_object.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/gpio_object.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/gpio_object.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/i2c_api.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/i2c_api.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/i2c_api.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/objects.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/objects.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/objects.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/objects.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/pinmap.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/pinmap.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/pinmap.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/pinmap_function.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/pinmap_function.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/pinmap_function.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/pinmap_function.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/pinmap_function.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/pinmap_function.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/pinmap_function.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/pinmap_function.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/port_api.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/port_api.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/port_api.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/pwmout_api.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/pwmout_api.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/pwmout_api.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/rtc_api.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/rtc_api.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/rtc_api.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/rtc_api.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/sercom_dma.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/sercom_dma.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/sercom_dma.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/sercom_dma.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/sercom_dma.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/sercom_dma.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/sercom_dma.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/sercom_dma.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/serial_api.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/serial_api.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/serial_api.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/sleep_api.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/sleep_api.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/sleep_api.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/sleep_api.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/spi_api.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/spi_api.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/spi_api.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/us_ticker.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM0P/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM0P/us_ticker.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM0P/us_ticker.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/PortNames.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/PortNames.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/PortNames.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/PeripheralNames.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/PeripheralNames.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/PeripheralPins.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/PeripheralPins.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/PeripheralPins.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/PeripheralPins.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/PinNames.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/PinNames.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/PinNames.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/SAMG55_XPLAINED_PRO/board_init.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/SAMG55_XPLAINED_PRO/board_init.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/SAMG55_XPLAINED_PRO/board_init.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/SAMG55_XPLAINED_PRO/board_init.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/SAMG55_XPLAINED_PRO/mbed_overrides.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/SAMG55_XPLAINED_PRO/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/SAMG55_XPLAINED_PRO/mbed_overrides.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/SAMG55_XPLAINED_PRO/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/SAMG55_XPLAINED_PRO/samg55_xplained_pro.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/SAMG55_XPLAINED_PRO/samg55_xplained_pro.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/SAMG55_XPLAINED_PRO/samg55_xplained_pro.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/SAMG55_XPLAINED_PRO/samg55_xplained_pro.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/device.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/device.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/device.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55J19/device.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/analogin_api.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/analogin_api.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/analogin_api.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/board.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/board.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/board.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/board.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_board.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_board.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_board.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_board.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_clock.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_clock.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_clock.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_clock.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_extint.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_extint.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_extint.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_extint.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_serialdrv.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_serialdrv.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_serialdrv.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_serialdrv.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_sleepmgr.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_sleepmgr.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_sleepmgr.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_sleepmgr.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_timer.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_timer.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_timer.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_timer.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_uart_serial.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_uart_serial.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_uart_serial.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/config/TARGET_SAMG55/conf_uart_serial.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/adc/adc2.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/adc/adc2.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/adc/adc2.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/adc/adc2.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/adc/adc2.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/adc/adc2.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/adc/adc2.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/adc/adc2.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/efc/efc.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/efc/efc.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/efc/efc.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/efc/efc.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/efc/efc.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/efc/efc.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/efc/efc.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/efc/efc.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/flexcom/flexcom.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/flexcom/flexcom.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/flexcom/flexcom.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/flexcom/flexcom.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/flexcom/flexcom.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/flexcom/flexcom.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/flexcom/flexcom.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/flexcom/flexcom.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pdc/pdc.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pdc/pdc.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pdc/pdc.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pdc/pdc.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pdc/pdc.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pdc/pdc.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pdc/pdc.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pdc/pdc.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pio/pio.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pio/pio.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pio/pio.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pio/pio.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pio/pio.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pio/pio.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pio/pio.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pio/pio.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pio/pio_handler.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pio/pio_handler.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pio/pio_handler.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pio/pio_handler.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pio/pio_handler.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pio/pio_handler.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pio/pio_handler.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pio/pio_handler.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pmc/pmc.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pmc/pmc.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pmc/pmc.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pmc/pmc.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pmc/pmc.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pmc/pmc.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pmc/pmc.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pmc/pmc.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pmc/sleep.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pmc/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pmc/sleep.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pmc/sleep.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pmc/sleep.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pmc/sleep.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pmc/sleep.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/pmc/sleep.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/rtc/rtc.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/rtc/rtc.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/rtc/rtc.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/rtc/rtc.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/rtc/rtc.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/rtc/rtc.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/rtc/rtc.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/rtc/rtc.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/rtt/rtt.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/rtt/rtt.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/rtt/rtt.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/rtt/rtt.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/rtt/rtt.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/rtt/rtt.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/rtt/rtt.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/rtt/rtt.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/spi/spi_driver.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/spi/spi_driver.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/spi/spi_driver.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/spi/spi_driver.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/spi/spi_driver.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/spi/spi_driver.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/spi/spi_driver.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/spi/spi_driver.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/supc/supc.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/supc/supc.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/supc/supc.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/supc/supc.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/supc/supc.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/supc/supc.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/supc/supc.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/supc/supc.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/tc/tc.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/tc/tc.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/tc/tc.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/tc/tc.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/tc/tc.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/tc/tc.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/tc/tc.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/tc/tc.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/twi/twi.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/twi/twi.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/twi/twi.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/twi/twi.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/twi/twi.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/twi/twi.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/twi/twi.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/twi/twi.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/usart/usart.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/usart/usart.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/usart/usart.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/usart/usart.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/usart/usart.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/usart/usart.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/usart/usart.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/drivers/usart/usart.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/gpio_api.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/gpio_api.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/gpio_api.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/gpio_irq_api.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/gpio_irq_api.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/gpio_object.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/gpio_object.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/gpio_object.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/i2c_api.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/i2c_api.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/i2c_api.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/lp_ticker.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/lp_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/lp_ticker.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/lp_ticker.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/objects.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/objects.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/objects.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/objects.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/pinmap.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/pinmap.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/pinmap.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/port_api.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/port_api.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/port_api.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/pwmout_api.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/pwmout_api.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/pwmout_api.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/rtc_api.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/rtc_api.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/rtc_api.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/rtc_api.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/serial_api.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/serial_api.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/serial_api.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/dfll.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/dfll.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/dfll.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/dfll.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/genclk.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/genclk.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/genclk.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/genclk.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/osc.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/osc.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/osc.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/osc.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/pll.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/pll.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/pll.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/pll.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/samg/genclk.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/samg/genclk.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/samg/genclk.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/samg/genclk.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/samg/osc.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/samg/osc.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/samg/osc.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/samg/osc.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/samg/pll.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/samg/pll.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/samg/pll.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/samg/pll.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/samg/sysclk.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/samg/sysclk.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/samg/sysclk.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/samg/sysclk.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/samg/sysclk.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/samg/sysclk.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/samg/sysclk.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/samg/sysclk.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/sysclk.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/sysclk.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/sysclk.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/clock/sysclk.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/delay/delay.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/delay/delay.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/delay/delay.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/delay/delay.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/delay/sam/cycle_counter.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/delay/sam/cycle_counter.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/delay/sam/cycle_counter.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/delay/sam/cycle_counter.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/delay/sam/cycle_counter.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/delay/sam/cycle_counter.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/delay/sam/cycle_counter.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/delay/sam/cycle_counter.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/gpio/gpio.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/gpio/gpio.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/gpio/gpio.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/gpio/gpio.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/gpio/sam_gpio/sam_gpio.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/gpio/sam_gpio/sam_gpio.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/gpio/sam_gpio/sam_gpio.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/gpio/sam_gpio/sam_gpio.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/ioport/ioport.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/ioport/ioport.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/ioport/ioport.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/ioport/ioport.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/ioport/sam/ioport_gpio.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/ioport/sam/ioport_gpio.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/ioport/sam/ioport_gpio.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/ioport/sam/ioport_gpio.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/ioport/sam/ioport_pio.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/ioport/sam/ioport_pio.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/ioport/sam/ioport_pio.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/ioport/sam/ioport_pio.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/serial/sam_uart/uart_serial.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/serial/sam_uart/uart_serial.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/serial/sam_uart/uart_serial.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/serial/sam_uart/uart_serial.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/serial/serial_platform.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/serial/serial_platform.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/serial/serial_platform.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/serial/serial_platform.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/serial/usart_serial.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/serial/usart_serial.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/serial/usart_serial.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/serial/usart_serial.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/sleepmgr/sam/module_config/conf_sleepmgr.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/sleepmgr/sam/module_config/conf_sleepmgr.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/sleepmgr/sam/module_config/conf_sleepmgr.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/sleepmgr/sam/module_config/conf_sleepmgr.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/sleepmgr/sam/sleepmgr.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/sleepmgr/sam/sleepmgr.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/sleepmgr/sam/sleepmgr.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/sleepmgr/sam/sleepmgr.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/sleepmgr/sam/sleepmgr.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/sleepmgr/sam/sleepmgr.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/sleepmgr/sam/sleepmgr.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/sleepmgr/sam/sleepmgr.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/sleepmgr/sleepmgr.h b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/sleepmgr/sleepmgr.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/services/sleepmgr/sleepmgr.h rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/services/sleepmgr/sleepmgr.h diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/sleep_api.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/sleep_api.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/sleep_api.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/sleep_api.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/spi_api.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/spi_api.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/spi_api.c diff --git a/hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/us_ticker.c b/targets/TARGET_Atmel/TARGET_SAM_CortexM4/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/TARGET_SAM_CortexM4/us_ticker.c rename to targets/TARGET_Atmel/TARGET_SAM_CortexM4/us_ticker.c diff --git a/hal/targets/hal/TARGET_Atmel/common/utils/interrupt.h b/targets/TARGET_Atmel/common/utils/interrupt.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/common/utils/interrupt.h rename to targets/TARGET_Atmel/common/utils/interrupt.h diff --git a/hal/targets/hal/TARGET_Atmel/common/utils/interrupt/interrupt_sam_nvic.c b/targets/TARGET_Atmel/common/utils/interrupt/interrupt_sam_nvic.c similarity index 100% rename from hal/targets/hal/TARGET_Atmel/common/utils/interrupt/interrupt_sam_nvic.c rename to targets/TARGET_Atmel/common/utils/interrupt/interrupt_sam_nvic.c diff --git a/hal/targets/hal/TARGET_Atmel/common/utils/interrupt/interrupt_sam_nvic.h b/targets/TARGET_Atmel/common/utils/interrupt/interrupt_sam_nvic.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/common/utils/interrupt/interrupt_sam_nvic.h rename to targets/TARGET_Atmel/common/utils/interrupt/interrupt_sam_nvic.h diff --git a/hal/targets/hal/TARGET_Atmel/common/utils/parts.h b/targets/TARGET_Atmel/common/utils/parts.h similarity index 100% rename from hal/targets/hal/TARGET_Atmel/common/utils/parts.h rename to targets/TARGET_Atmel/common/utils/parts.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/PeripheralPins.h b/targets/TARGET_Freescale/TARGET_K20XX/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_K20XX/PeripheralPins.h rename to targets/TARGET_Freescale/TARGET_K20XX/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/PortNames.h b/targets/TARGET_Freescale/TARGET_K20XX/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_K20XX/PortNames.h rename to targets/TARGET_Freescale/TARGET_K20XX/PortNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/PeripheralNames.h b/targets/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/PeripheralNames.h rename to targets/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/PeripheralPins.c b/targets/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/PeripheralPins.c rename to targets/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/PinNames.h b/targets/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/PinNames.h rename to targets/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/PinNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/device.h b/targets/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/device.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/device.h rename to targets/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/device.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/us_ticker.c b/targets/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/us_ticker.c rename to targets/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/us_ticker.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/PeripheralNames.h b/targets/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/PeripheralNames.h rename to targets/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/PeripheralPins.c b/targets/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/PeripheralPins.c rename to targets/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/PinNames.h b/targets/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/PinNames.h rename to targets/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/PinNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/device.h b/targets/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/device.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/device.h rename to targets/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/device.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/us_ticker.c b/targets/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/us_ticker.c rename to targets/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/us_ticker.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/analogin_api.c b/targets/TARGET_Freescale/TARGET_K20XX/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_K20XX/analogin_api.c rename to targets/TARGET_Freescale/TARGET_K20XX/analogin_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/analogout_api.c b/targets/TARGET_Freescale/TARGET_K20XX/analogout_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_K20XX/analogout_api.c rename to targets/TARGET_Freescale/TARGET_K20XX/analogout_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/clk_freqs.h b/targets/TARGET_Freescale/TARGET_K20XX/clk_freqs.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_K20XX/clk_freqs.h rename to targets/TARGET_Freescale/TARGET_K20XX/clk_freqs.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/gpio_api.c b/targets/TARGET_Freescale/TARGET_K20XX/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_K20XX/gpio_api.c rename to targets/TARGET_Freescale/TARGET_K20XX/gpio_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/gpio_irq_api.c b/targets/TARGET_Freescale/TARGET_K20XX/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_K20XX/gpio_irq_api.c rename to targets/TARGET_Freescale/TARGET_K20XX/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/gpio_object.h b/targets/TARGET_Freescale/TARGET_K20XX/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_K20XX/gpio_object.h rename to targets/TARGET_Freescale/TARGET_K20XX/gpio_object.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/i2c_api.c b/targets/TARGET_Freescale/TARGET_K20XX/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_K20XX/i2c_api.c rename to targets/TARGET_Freescale/TARGET_K20XX/i2c_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/objects.h b/targets/TARGET_Freescale/TARGET_K20XX/objects.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_K20XX/objects.h rename to targets/TARGET_Freescale/TARGET_K20XX/objects.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/pinmap.c b/targets/TARGET_Freescale/TARGET_K20XX/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_K20XX/pinmap.c rename to targets/TARGET_Freescale/TARGET_K20XX/pinmap.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/port_api.c b/targets/TARGET_Freescale/TARGET_K20XX/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_K20XX/port_api.c rename to targets/TARGET_Freescale/TARGET_K20XX/port_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/pwmout_api.c b/targets/TARGET_Freescale/TARGET_K20XX/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_K20XX/pwmout_api.c rename to targets/TARGET_Freescale/TARGET_K20XX/pwmout_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/rtc_api.c b/targets/TARGET_Freescale/TARGET_K20XX/rtc_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_K20XX/rtc_api.c rename to targets/TARGET_Freescale/TARGET_K20XX/rtc_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/serial_api.c b/targets/TARGET_Freescale/TARGET_K20XX/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_K20XX/serial_api.c rename to targets/TARGET_Freescale/TARGET_K20XX/serial_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/sleep.c b/targets/TARGET_Freescale/TARGET_K20XX/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_K20XX/sleep.c rename to targets/TARGET_Freescale/TARGET_K20XX/sleep.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_K20XX/spi_api.c b/targets/TARGET_Freescale/TARGET_K20XX/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_K20XX/spi_api.c rename to targets/TARGET_Freescale/TARGET_K20XX/spi_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/PeripheralPins.h b/targets/TARGET_Freescale/TARGET_KLXX/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/PeripheralPins.h rename to targets/TARGET_Freescale/TARGET_KLXX/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/PortNames.h b/targets/TARGET_Freescale/TARGET_KLXX/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/PortNames.h rename to targets/TARGET_Freescale/TARGET_KLXX/PortNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/PeripheralNames.h b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/PeripheralNames.h rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/PeripheralPins.c b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/PeripheralPins.c rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/PinNames.h b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/PinNames.h rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/PinNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/device.h b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/device.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/device.h rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/device.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/gpio_irq_api.c b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/gpio_irq_api.c rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/mbed_overrides.c b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/mbed_overrides.c rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/serial_api.c b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/serial_api.c rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/serial_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/spi_api.c b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/spi_api.c rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/spi_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/PeripheralNames.h b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/PeripheralNames.h rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/PeripheralPins.c b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/PeripheralPins.c rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/PinNames.h b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/PinNames.h rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/PinNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/device.h b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/device.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/device.h rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/device.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/gpio_irq_api.c b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/gpio_irq_api.c rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/mbed_overrides.c b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/mbed_overrides.c rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/serial_api.c b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/serial_api.c rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/serial_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/spi_api.c b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/spi_api.c rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/spi_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/PeripheralNames.h b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/PeripheralNames.h rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/PeripheralPins.c b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/PeripheralPins.c rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/PinNames.h b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/PinNames.h rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/PinNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/device.h b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/device.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/device.h rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/device.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/gpio_irq_api.c b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/gpio_irq_api.c rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/mbed_overrides.c b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/mbed_overrides.c rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/serial_api.c b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/serial_api.c rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/serial_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/spi_api.c b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/spi_api.c rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/spi_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/PeripheralNames.h b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/PeripheralNames.h rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/PeripheralPins.c b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/PeripheralPins.c rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/PinNames.h b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/PinNames.h rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/PinNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/device.h b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/device.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/device.h rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/device.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/gpio_irq_api.c b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/gpio_irq_api.c rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/mbed_overrides.c b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/mbed_overrides.c rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/serial_api.c b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/serial_api.c rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/serial_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/spi_api.c b/targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/spi_api.c rename to targets/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/spi_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/analogin_api.c b/targets/TARGET_Freescale/TARGET_KLXX/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/analogin_api.c rename to targets/TARGET_Freescale/TARGET_KLXX/analogin_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/analogout_api.c b/targets/TARGET_Freescale/TARGET_KLXX/analogout_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/analogout_api.c rename to targets/TARGET_Freescale/TARGET_KLXX/analogout_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/clk_freqs.h b/targets/TARGET_Freescale/TARGET_KLXX/clk_freqs.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/clk_freqs.h rename to targets/TARGET_Freescale/TARGET_KLXX/clk_freqs.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/gpio_api.c b/targets/TARGET_Freescale/TARGET_KLXX/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/gpio_api.c rename to targets/TARGET_Freescale/TARGET_KLXX/gpio_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/gpio_object.h b/targets/TARGET_Freescale/TARGET_KLXX/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/gpio_object.h rename to targets/TARGET_Freescale/TARGET_KLXX/gpio_object.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/i2c_api.c b/targets/TARGET_Freescale/TARGET_KLXX/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/i2c_api.c rename to targets/TARGET_Freescale/TARGET_KLXX/i2c_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/objects.h b/targets/TARGET_Freescale/TARGET_KLXX/objects.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/objects.h rename to targets/TARGET_Freescale/TARGET_KLXX/objects.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/pinmap.c b/targets/TARGET_Freescale/TARGET_KLXX/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/pinmap.c rename to targets/TARGET_Freescale/TARGET_KLXX/pinmap.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/port_api.c b/targets/TARGET_Freescale/TARGET_KLXX/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/port_api.c rename to targets/TARGET_Freescale/TARGET_KLXX/port_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/pwmout_api.c b/targets/TARGET_Freescale/TARGET_KLXX/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/pwmout_api.c rename to targets/TARGET_Freescale/TARGET_KLXX/pwmout_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/rtc_api.c b/targets/TARGET_Freescale/TARGET_KLXX/rtc_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/rtc_api.c rename to targets/TARGET_Freescale/TARGET_KLXX/rtc_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/sleep.c b/targets/TARGET_Freescale/TARGET_KLXX/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/sleep.c rename to targets/TARGET_Freescale/TARGET_KLXX/sleep.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KLXX/us_ticker.c b/targets/TARGET_Freescale/TARGET_KLXX/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KLXX/us_ticker.c rename to targets/TARGET_Freescale/TARGET_KLXX/us_ticker.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/PeripheralNames.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/PeripheralNames.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/PeripheralPins.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/PeripheralPins.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/PinNames.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/PinNames.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/PinNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/device.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/device.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/device.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/device.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/fsl_clock_config.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/fsl_clock_config.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/fsl_clock_config.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/fsl_clock_config.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/fsl_clock_config.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/fsl_clock_config.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/fsl_clock_config.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/fsl_clock_config.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/mbed_overrides.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/mbed_overrides.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/TARGET_FRDM/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_adc16.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_adc16.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_adc16.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_adc16.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_adc16.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_adc16.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_adc16.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_adc16.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_clock.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_clock.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_clock.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_clock.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_clock.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_clock.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_clock.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_clock.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_cmp.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_cmp.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_cmp.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_cmp.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_cmp.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_cmp.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_cmp.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_cmp.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_common.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_common.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_common.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_common.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_common.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_common.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_common.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_common.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_crc.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_crc.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_crc.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_crc.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_crc.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_crc.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_crc.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_crc.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dac.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dac.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dac.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dac.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dac.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dac.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dac.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dac.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dmamux.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dmamux.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dmamux.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dmamux.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dmamux.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dmamux.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dmamux.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dmamux.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dspi.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dspi.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dspi.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dspi.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dspi.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dspi.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dspi.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dspi.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dspi_edma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dspi_edma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dspi_edma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dspi_edma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dspi_edma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dspi_edma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dspi_edma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_dspi_edma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_edma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_edma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_edma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_edma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_edma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_edma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_edma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_edma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_ewm.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_ewm.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_ewm.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_ewm.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_ewm.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_ewm.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_ewm.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_ewm.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_flash.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_flash.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_flash.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_flash.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_flash.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_flash.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_flash.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_flash.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_flexbus.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_flexbus.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_flexbus.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_flexbus.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_flexbus.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_flexbus.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_flexbus.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_flexbus.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_ftm.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_ftm.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_ftm.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_ftm.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_ftm.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_ftm.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_ftm.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_ftm.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_gpio.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_gpio.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_gpio.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_gpio.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_gpio.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_gpio.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_gpio.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_gpio.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_i2c.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_i2c.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_i2c.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_i2c.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_i2c.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_i2c.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_i2c.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_i2c.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_i2c_edma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_i2c_edma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_i2c_edma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_i2c_edma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_i2c_edma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_i2c_edma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_i2c_edma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_i2c_edma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_llwu.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_llwu.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_llwu.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_llwu.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_llwu.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_llwu.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_llwu.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_llwu.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_lptmr.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_lptmr.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_lptmr.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_lptmr.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_lptmr.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_lptmr.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_lptmr.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_lptmr.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_lpuart.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_lpuart.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_lpuart.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_lpuart.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_lpuart.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_lpuart.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_lpuart.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_lpuart.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_lpuart_edma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_lpuart_edma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_lpuart_edma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_lpuart_edma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_lpuart_edma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_lpuart_edma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_lpuart_edma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_lpuart_edma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_pdb.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_pdb.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_pdb.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_pdb.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_pdb.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_pdb.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_pdb.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_pdb.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_pit.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_pit.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_pit.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_pit.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_pit.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_pit.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_pit.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_pit.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_pmc.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_pmc.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_pmc.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_pmc.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_pmc.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_pmc.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_pmc.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_pmc.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_port.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_port.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_port.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_port.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_rcm.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_rcm.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_rcm.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_rcm.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_rcm.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_rcm.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_rcm.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_rcm.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_rnga.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_rnga.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_rnga.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_rnga.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_rnga.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_rnga.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_rnga.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_rnga.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_rtc.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_rtc.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_rtc.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_rtc.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_rtc.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_rtc.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_rtc.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_rtc.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_sai.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_sai.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_sai.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_sai.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_sai.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_sai.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_sai.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_sai.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_sai_edma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_sai_edma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_sai_edma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_sai_edma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_sai_edma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_sai_edma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_sai_edma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_sai_edma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_sim.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_sim.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_sim.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_sim.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_sim.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_sim.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_sim.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_sim.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_smc.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_smc.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_smc.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_smc.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_smc.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_smc.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_smc.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_smc.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_uart.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_uart.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_uart.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_uart.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_uart.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_uart.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_uart.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_uart.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_uart_edma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_uart_edma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_uart_edma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_uart_edma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_uart_edma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_uart_edma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_uart_edma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_uart_edma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_vref.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_vref.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_vref.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_vref.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_vref.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_vref.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_vref.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_vref.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_wdog.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_wdog.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_wdog.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_wdog.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_wdog.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_wdog.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_wdog.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/drivers/fsl_wdog.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/peripheral_clock_defines.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/peripheral_clock_defines.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/peripheral_clock_defines.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/peripheral_clock_defines.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/pwmout_api.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/pwmout_api.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/pwmout_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/serial_api.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/serial_api.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/serial_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/spi_api.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/spi_api.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/spi_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/us_ticker.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/us_ticker.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K22F/us_ticker.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/PeripheralNames.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/PeripheralNames.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/PeripheralPins.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/PeripheralPins.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/PinNames.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/PinNames.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/PinNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/crc.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/crc.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/crc.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/crc.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/crc.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/crc.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/crc.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/crc.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/device.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/device.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/device.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/device.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/fsl_clock_config.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/fsl_clock_config.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/fsl_clock_config.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/fsl_clock_config.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/fsl_clock_config.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/fsl_clock_config.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/fsl_clock_config.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/fsl_clock_config.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/fsl_phy.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/fsl_phy.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/fsl_phy.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/fsl_phy.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/fsl_phy.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/fsl_phy.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/fsl_phy.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/fsl_phy.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/mbed_overrides.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/mbed_overrides.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/TARGET_FRDM/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_adc16.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_adc16.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_adc16.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_adc16.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_adc16.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_adc16.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_adc16.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_adc16.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_clock.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_clock.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_clock.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_clock.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_clock.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_clock.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_clock.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_clock.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_cmp.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_cmp.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_cmp.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_cmp.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_cmp.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_cmp.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_cmp.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_cmp.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_cmt.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_cmt.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_cmt.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_cmt.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_cmt.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_cmt.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_cmt.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_cmt.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_common.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_common.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_common.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_common.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_common.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_common.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_common.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_common.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_crc.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_crc.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_crc.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_crc.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_crc.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_crc.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_crc.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_crc.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dac.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dac.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dac.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dac.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dac.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dac.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dac.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dac.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dmamux.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dmamux.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dmamux.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dmamux.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dmamux.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dmamux.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dmamux.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dmamux.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dspi.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dspi.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dspi.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dspi.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dspi.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dspi.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dspi.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dspi.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dspi_edma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dspi_edma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dspi_edma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dspi_edma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dspi_edma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dspi_edma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dspi_edma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_dspi_edma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_edma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_edma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_edma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_edma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_edma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_edma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_edma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_edma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_enet.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_enet.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_enet.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_enet.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_enet.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_enet.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_enet.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_enet.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_ewm.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_ewm.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_ewm.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_ewm.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_ewm.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_ewm.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_ewm.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_ewm.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_flash.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_flash.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_flash.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_flash.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_flash.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_flash.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_flash.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_flash.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_flexbus.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_flexbus.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_flexbus.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_flexbus.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_flexbus.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_flexbus.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_flexbus.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_flexbus.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_flexcan.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_flexcan.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_flexcan.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_flexcan.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_flexcan.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_flexcan.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_flexcan.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_flexcan.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_ftm.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_ftm.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_ftm.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_ftm.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_ftm.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_ftm.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_ftm.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_ftm.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_gpio.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_gpio.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_gpio.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_gpio.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_gpio.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_gpio.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_gpio.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_gpio.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_i2c.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_i2c.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_i2c.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_i2c.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_i2c.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_i2c.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_i2c.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_i2c.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_i2c_edma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_i2c_edma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_i2c_edma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_i2c_edma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_i2c_edma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_i2c_edma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_i2c_edma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_i2c_edma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_llwu.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_llwu.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_llwu.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_llwu.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_llwu.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_llwu.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_llwu.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_llwu.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lmem_cache.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lmem_cache.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lmem_cache.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lmem_cache.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lmem_cache.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lmem_cache.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lmem_cache.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lmem_cache.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lptmr.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lptmr.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lptmr.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lptmr.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lptmr.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lptmr.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lptmr.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lptmr.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lpuart.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lpuart.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lpuart.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lpuart.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lpuart.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lpuart.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lpuart.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lpuart.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lpuart_edma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lpuart_edma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lpuart_edma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lpuart_edma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lpuart_edma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lpuart_edma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lpuart_edma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_lpuart_edma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_mpu.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_mpu.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_mpu.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_mpu.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_mpu.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_mpu.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_mpu.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_mpu.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_pdb.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_pdb.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_pdb.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_pdb.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_pdb.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_pdb.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_pdb.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_pdb.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_pit.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_pit.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_pit.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_pit.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_pit.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_pit.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_pit.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_pit.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_pmc.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_pmc.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_pmc.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_pmc.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_pmc.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_pmc.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_pmc.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_pmc.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_port.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_port.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_port.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_port.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_rcm.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_rcm.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_rcm.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_rcm.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_rcm.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_rcm.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_rcm.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_rcm.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_rnga.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_rnga.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_rnga.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_rnga.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_rnga.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_rnga.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_rnga.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_rnga.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_rtc.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_rtc.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_rtc.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_rtc.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_rtc.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_rtc.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_rtc.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_rtc.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sai.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sai.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sai.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sai.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sai.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sai.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sai.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sai.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sai_edma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sai_edma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sai_edma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sai_edma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sai_edma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sai_edma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sai_edma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sai_edma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sdhc.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sdhc.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sdhc.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sdhc.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sdhc.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sdhc.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sdhc.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sdhc.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sdramc.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sdramc.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sdramc.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sdramc.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sdramc.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sdramc.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sdramc.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sdramc.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sim.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sim.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sim.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sim.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sim.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sim.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sim.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_sim.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_smc.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_smc.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_smc.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_smc.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_smc.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_smc.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_smc.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_smc.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_tpm.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_tpm.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_tpm.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_tpm.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_tpm.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_tpm.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_tpm.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_tpm.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_tsi_v4.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_tsi_v4.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_tsi_v4.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_tsi_v4.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_tsi_v4.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_tsi_v4.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_tsi_v4.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_tsi_v4.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_uart.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_uart.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_uart.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_uart.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_uart.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_uart.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_uart.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_uart.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_uart_edma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_uart_edma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_uart_edma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_uart_edma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_uart_edma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_uart_edma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_uart_edma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_uart_edma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_vref.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_vref.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_vref.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_vref.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_vref.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_vref.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_vref.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_vref.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_wdog.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_wdog.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_wdog.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_wdog.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_wdog.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_wdog.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_wdog.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/drivers/fsl_wdog.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/peripheral_clock_defines.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/peripheral_clock_defines.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/peripheral_clock_defines.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/peripheral_clock_defines.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/pwmout_api.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/pwmout_api.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/pwmout_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/serial_api.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/serial_api.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/serial_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/spi_api.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/spi_api.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/spi_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/trng_api.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/trng_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/trng_api.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/trng_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/us_ticker.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/us_ticker.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_K66F/us_ticker.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/PeripheralNames.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/PeripheralNames.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/PeripheralPins.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/PeripheralPins.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/PinNames.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/PinNames.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/PinNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/device.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/device.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/device.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/device.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/fsl_clock_config.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/fsl_clock_config.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/fsl_clock_config.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/fsl_clock_config.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/fsl_clock_config.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/fsl_clock_config.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/fsl_clock_config.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/fsl_clock_config.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/mbed_overrides.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/mbed_overrides.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/TARGET_FRDM/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_adc16.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_adc16.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_adc16.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_adc16.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_adc16.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_adc16.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_adc16.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_adc16.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_clock.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_clock.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_clock.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_clock.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_clock.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_clock.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_clock.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_clock.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_cmp.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_cmp.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_cmp.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_cmp.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_cmp.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_cmp.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_cmp.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_cmp.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_common.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_common.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_common.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_common.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_common.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_common.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_common.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_common.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_cop.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_cop.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_cop.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_cop.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_cop.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_cop.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_cop.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_cop.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_crc.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_crc.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_crc.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_crc.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_crc.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_crc.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_crc.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_crc.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_dma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_dma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_dma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_dma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_dma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_dma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_dma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_dma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_dmamux.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_dmamux.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_dmamux.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_dmamux.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_dmamux.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_dmamux.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_dmamux.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_dmamux.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flash.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flash.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flash.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flash.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flash.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flash.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flash.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flash.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_i2c_master.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_i2c_master.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_i2c_master.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_i2c_master.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_i2c_master.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_i2c_master.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_i2c_master.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_i2c_master.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_i2s.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_i2s.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_i2s.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_i2s.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_i2s.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_i2s.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_i2s.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_i2s.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_i2s_dma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_i2s_dma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_i2s_dma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_i2s_dma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_i2s_dma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_i2s_dma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_i2s_dma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_i2s_dma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_spi.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_spi.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_spi.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_spi.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_spi.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_spi.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_spi.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_spi.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_spi_dma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_spi_dma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_spi_dma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_spi_dma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_spi_dma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_spi_dma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_spi_dma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_spi_dma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_uart.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_uart.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_uart.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_uart.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_uart.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_uart.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_uart.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_uart.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_uart_dma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_uart_dma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_uart_dma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_uart_dma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_uart_dma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_uart_dma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_uart_dma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_flexio_uart_dma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_gpio.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_gpio.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_gpio.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_gpio.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_gpio.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_gpio.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_gpio.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_gpio.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_i2c.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_i2c.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_i2c.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_i2c.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_i2c.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_i2c.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_i2c.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_i2c.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_i2c_dma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_i2c_dma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_i2c_dma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_i2c_dma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_i2c_dma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_i2c_dma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_i2c_dma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_i2c_dma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_llwu.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_llwu.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_llwu.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_llwu.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_llwu.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_llwu.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_llwu.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_llwu.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_lptmr.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_lptmr.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_lptmr.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_lptmr.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_lptmr.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_lptmr.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_lptmr.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_lptmr.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_lpuart.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_lpuart.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_lpuart.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_lpuart.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_lpuart.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_lpuart.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_lpuart.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_lpuart.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_lpuart_dma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_lpuart_dma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_lpuart_dma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_lpuart_dma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_lpuart_dma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_lpuart_dma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_lpuart_dma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_lpuart_dma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_pit.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_pit.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_pit.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_pit.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_pit.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_pit.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_pit.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_pit.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_pmc.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_pmc.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_pmc.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_pmc.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_pmc.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_pmc.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_pmc.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_pmc.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_port.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_port.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_port.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_port.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_rcm.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_rcm.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_rcm.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_rcm.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_rcm.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_rcm.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_rcm.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_rcm.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_rtc.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_rtc.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_rtc.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_rtc.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_rtc.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_rtc.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_rtc.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_rtc.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_sim.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_sim.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_sim.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_sim.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_sim.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_sim.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_sim.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_sim.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_smc.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_smc.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_smc.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_smc.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_smc.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_smc.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_smc.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_smc.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_spi.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_spi.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_spi.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_spi.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_spi.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_spi.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_spi.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_spi.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_spi_dma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_spi_dma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_spi_dma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_spi_dma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_spi_dma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_spi_dma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_spi_dma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_spi_dma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_tpm.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_tpm.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_tpm.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_tpm.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_tpm.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_tpm.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_tpm.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_tpm.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_uart.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_uart.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_uart.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_uart.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_uart.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_uart.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_uart.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_uart.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_uart_dma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_uart_dma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_uart_dma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_uart_dma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_uart_dma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_uart_dma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_uart_dma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_uart_dma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_vref.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_vref.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_vref.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_vref.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_vref.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_vref.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_vref.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/drivers/fsl_vref.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/peripheral_clock_defines.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/peripheral_clock_defines.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/peripheral_clock_defines.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/peripheral_clock_defines.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/pwmout_api.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/pwmout_api.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/pwmout_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/serial_api.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/serial_api.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/serial_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/spi_api.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/spi_api.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/spi_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/us_ticker.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/us_ticker.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL27Z/us_ticker.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/PeripheralNames.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/PeripheralNames.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/PeripheralPins.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/PeripheralPins.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/PinNames.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/PinNames.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/PinNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/device.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/device.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/device.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/device.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/fsl_clock_config.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/fsl_clock_config.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/fsl_clock_config.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/fsl_clock_config.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/fsl_clock_config.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/fsl_clock_config.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/fsl_clock_config.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/fsl_clock_config.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/mbed_overrides.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/mbed_overrides.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/TARGET_FRDM/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_adc16.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_adc16.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_adc16.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_adc16.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_adc16.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_adc16.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_adc16.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_adc16.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_clock.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_clock.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_clock.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_clock.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_clock.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_clock.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_clock.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_clock.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_cmp.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_cmp.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_cmp.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_cmp.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_cmp.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_cmp.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_cmp.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_cmp.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_common.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_common.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_common.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_common.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_common.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_common.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_common.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_common.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_cop.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_cop.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_cop.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_cop.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_cop.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_cop.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_cop.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_cop.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_dac.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_dac.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_dac.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_dac.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_dac.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_dac.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_dac.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_dac.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_dma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_dma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_dma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_dma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_dma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_dma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_dma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_dma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_dmamux.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_dmamux.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_dmamux.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_dmamux.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_dmamux.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_dmamux.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_dmamux.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_dmamux.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flash.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flash.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flash.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flash.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flash.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flash.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flash.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flash.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_i2c_master.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_i2c_master.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_i2c_master.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_i2c_master.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_i2c_master.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_i2c_master.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_i2c_master.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_i2c_master.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_i2s.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_i2s.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_i2s.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_i2s.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_i2s.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_i2s.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_i2s.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_i2s.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_i2s_dma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_i2s_dma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_i2s_dma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_i2s_dma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_i2s_dma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_i2s_dma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_i2s_dma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_i2s_dma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_spi.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_spi.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_spi.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_spi.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_spi.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_spi.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_spi.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_spi.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_spi_dma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_spi_dma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_spi_dma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_spi_dma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_spi_dma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_spi_dma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_spi_dma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_spi_dma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_uart.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_uart.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_uart.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_uart.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_uart.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_uart.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_uart.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_uart.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_uart_dma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_uart_dma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_uart_dma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_uart_dma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_uart_dma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_uart_dma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_uart_dma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_flexio_uart_dma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_gpio.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_gpio.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_gpio.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_gpio.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_gpio.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_gpio.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_gpio.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_gpio.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_i2c.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_i2c.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_i2c.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_i2c.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_i2c.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_i2c.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_i2c.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_i2c.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_i2c_dma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_i2c_dma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_i2c_dma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_i2c_dma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_i2c_dma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_i2c_dma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_i2c_dma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_i2c_dma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_llwu.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_llwu.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_llwu.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_llwu.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_llwu.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_llwu.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_llwu.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_llwu.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_lptmr.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_lptmr.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_lptmr.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_lptmr.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_lptmr.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_lptmr.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_lptmr.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_lptmr.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_lpuart.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_lpuart.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_lpuart.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_lpuart.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_lpuart.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_lpuart.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_lpuart.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_lpuart.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_lpuart_dma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_lpuart_dma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_lpuart_dma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_lpuart_dma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_lpuart_dma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_lpuart_dma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_lpuart_dma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_lpuart_dma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_pit.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_pit.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_pit.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_pit.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_pit.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_pit.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_pit.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_pit.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_pmc.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_pmc.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_pmc.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_pmc.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_pmc.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_pmc.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_pmc.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_pmc.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_port.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_port.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_port.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_port.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_rcm.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_rcm.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_rcm.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_rcm.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_rcm.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_rcm.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_rcm.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_rcm.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_rtc.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_rtc.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_rtc.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_rtc.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_rtc.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_rtc.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_rtc.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_rtc.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_sai.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_sai.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_sai.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_sai.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_sai.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_sai.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_sai.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_sai.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_sai_dma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_sai_dma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_sai_dma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_sai_dma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_sai_dma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_sai_dma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_sai_dma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_sai_dma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_sim.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_sim.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_sim.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_sim.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_sim.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_sim.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_sim.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_sim.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_slcd.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_slcd.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_slcd.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_slcd.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_slcd.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_slcd.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_slcd.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_slcd.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_smc.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_smc.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_smc.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_smc.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_smc.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_smc.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_smc.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_smc.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_spi.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_spi.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_spi.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_spi.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_spi.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_spi.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_spi.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_spi.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_spi_dma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_spi_dma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_spi_dma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_spi_dma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_spi_dma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_spi_dma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_spi_dma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_spi_dma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_tpm.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_tpm.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_tpm.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_tpm.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_tpm.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_tpm.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_tpm.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_tpm.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_uart.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_uart.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_uart.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_uart.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_uart.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_uart.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_uart.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_uart.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_uart_dma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_uart_dma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_uart_dma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_uart_dma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_uart_dma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_uart_dma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_uart_dma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_uart_dma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_vref.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_vref.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_vref.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_vref.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_vref.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_vref.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_vref.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/drivers/fsl_vref.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/peripheral_clock_defines.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/peripheral_clock_defines.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/peripheral_clock_defines.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/peripheral_clock_defines.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/pwmout_api.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/pwmout_api.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/pwmout_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/serial_api.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/serial_api.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/serial_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/spi_api.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/spi_api.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/spi_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/us_ticker.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/us_ticker.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_KL43Z/us_ticker.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/PeripheralNames.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/PeripheralNames.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/PeripheralPins.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/PeripheralPins.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/PinNames.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/PinNames.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/PinNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/crc.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/crc.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/crc.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/crc.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/crc.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/crc.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/crc.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/crc.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/device.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/device.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/device.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/device.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/fsl_clock_config.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/fsl_clock_config.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/fsl_clock_config.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/fsl_clock_config.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/fsl_clock_config.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/fsl_clock_config.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/fsl_clock_config.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/fsl_clock_config.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/fsl_phy.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/fsl_phy.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/fsl_phy.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/fsl_phy.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/fsl_phy.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/fsl_phy.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/fsl_phy.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/fsl_phy.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/mbed_overrides.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/mbed_overrides.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_FRDM/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/PeripheralNames.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/PeripheralNames.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/PeripheralPins.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/PeripheralPins.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/PinNames.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/PinNames.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/PinNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/device.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/device.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/device.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/device.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/fsl_clock_config.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/fsl_clock_config.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/fsl_clock_config.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/fsl_clock_config.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/fsl_clock_config.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/fsl_clock_config.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/fsl_clock_config.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/fsl_clock_config.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/mbed_overrides.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/mbed_overrides.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_HEXIWEAR/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/PeripheralNames.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/PeripheralNames.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/PeripheralPins.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/PeripheralPins.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/PinNames.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/PinNames.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/PinNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/device.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/device.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/device.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/device.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/fsl_clock_config.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/fsl_clock_config.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/fsl_clock_config.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/fsl_clock_config.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/fsl_clock_config.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/fsl_clock_config.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/fsl_clock_config.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/fsl_clock_config.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/mbed_overrides.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/mbed_overrides.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/TARGET_MTS_GAMBIT/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_adc16.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_adc16.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_adc16.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_adc16.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_adc16.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_adc16.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_adc16.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_adc16.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_clock.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_clock.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_clock.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_clock.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_clock.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_clock.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_clock.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_clock.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_cmp.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_cmp.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_cmp.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_cmp.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_cmp.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_cmp.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_cmp.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_cmp.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_cmt.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_cmt.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_cmt.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_cmt.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_cmt.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_cmt.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_cmt.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_cmt.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_common.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_common.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_common.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_common.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_common.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_common.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_common.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_common.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_crc.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_crc.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_crc.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_crc.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_crc.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_crc.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_crc.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_crc.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dac.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dac.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dac.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dac.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dac.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dac.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dac.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dac.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dmamux.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dmamux.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dmamux.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dmamux.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dmamux.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dmamux.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dmamux.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dmamux.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dspi.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dspi.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dspi.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dspi.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dspi.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dspi.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dspi.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dspi.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dspi_edma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dspi_edma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dspi_edma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dspi_edma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dspi_edma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dspi_edma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dspi_edma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_dspi_edma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_edma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_edma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_edma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_edma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_edma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_edma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_edma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_edma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_enet.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_enet.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_enet.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_enet.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_enet.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_enet.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_enet.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_enet.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_ewm.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_ewm.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_ewm.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_ewm.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_ewm.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_ewm.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_ewm.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_ewm.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_flash.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_flash.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_flash.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_flash.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_flash.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_flash.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_flash.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_flash.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_flexbus.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_flexbus.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_flexbus.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_flexbus.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_flexbus.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_flexbus.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_flexbus.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_flexbus.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_flexcan.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_flexcan.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_flexcan.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_flexcan.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_flexcan.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_flexcan.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_flexcan.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_flexcan.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_ftm.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_ftm.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_ftm.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_ftm.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_ftm.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_ftm.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_ftm.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_ftm.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_gpio.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_gpio.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_gpio.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_gpio.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_gpio.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_gpio.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_gpio.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_gpio.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_i2c.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_i2c.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_i2c.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_i2c.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_i2c.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_i2c.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_i2c.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_i2c.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_i2c_edma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_i2c_edma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_i2c_edma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_i2c_edma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_i2c_edma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_i2c_edma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_i2c_edma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_i2c_edma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_llwu.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_llwu.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_llwu.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_llwu.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_llwu.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_llwu.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_llwu.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_llwu.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_lptmr.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_lptmr.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_lptmr.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_lptmr.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_lptmr.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_lptmr.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_lptmr.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_lptmr.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_mpu.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_mpu.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_mpu.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_mpu.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_mpu.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_mpu.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_mpu.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_mpu.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_pdb.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_pdb.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_pdb.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_pdb.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_pdb.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_pdb.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_pdb.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_pdb.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_pit.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_pit.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_pit.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_pit.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_pit.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_pit.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_pit.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_pit.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_pmc.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_pmc.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_pmc.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_pmc.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_pmc.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_pmc.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_pmc.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_pmc.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_port.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_port.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_port.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_port.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_rcm.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_rcm.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_rcm.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_rcm.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_rcm.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_rcm.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_rcm.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_rcm.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_rnga.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_rnga.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_rnga.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_rnga.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_rnga.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_rnga.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_rnga.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_rnga.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_rtc.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_rtc.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_rtc.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_rtc.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_rtc.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_rtc.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_rtc.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_rtc.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sai.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sai.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sai.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sai.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sai.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sai.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sai.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sai.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sai_edma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sai_edma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sai_edma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sai_edma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sai_edma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sai_edma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sai_edma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sai_edma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sdhc.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sdhc.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sdhc.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sdhc.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sdhc.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sdhc.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sdhc.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sdhc.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sim.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sim.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sim.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sim.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sim.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sim.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sim.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_sim.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_smc.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_smc.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_smc.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_smc.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_smc.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_smc.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_smc.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_smc.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_uart.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_uart.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_uart.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_uart.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_uart.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_uart.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_uart.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_uart.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_uart_edma.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_uart_edma.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_uart_edma.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_uart_edma.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_uart_edma.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_uart_edma.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_uart_edma.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_uart_edma.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_vref.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_vref.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_vref.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_vref.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_vref.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_vref.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_vref.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_vref.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_wdog.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_wdog.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_wdog.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_wdog.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_wdog.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_wdog.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_wdog.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/drivers/fsl_wdog.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/peripheral_clock_defines.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/peripheral_clock_defines.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/peripheral_clock_defines.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/peripheral_clock_defines.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/pwmout_api.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/pwmout_api.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/pwmout_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/serial_api.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/serial_api.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/serial_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/spi_api.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/spi_api.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/spi_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/storage_driver.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/storage_driver.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/storage_driver.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/storage_driver.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/trng_api.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/trng_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/trng_api.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/trng_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/us_ticker.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/us_ticker.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/TARGET_MCU_K64F/us_ticker.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/PeripheralPins.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/PeripheralPins.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/PortNames.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/PortNames.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/PortNames.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/analogin_api.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/analogin_api.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/analogin_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/analogout_api.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/analogout_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/analogout_api.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/analogout_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/gpio_api.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/gpio_api.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/gpio_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/gpio_irq_api.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/gpio_irq_api.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/gpio_object.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/gpio_object.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/gpio_object.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/i2c_api.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/i2c_api.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/i2c_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/lp_ticker.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/lp_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/lp_ticker.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/lp_ticker.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/objects.h b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/objects.h similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/objects.h rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/objects.h diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/pinmap.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/pinmap.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/pinmap.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/port_api.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/port_api.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/port_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/rtc_api.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/rtc_api.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/rtc_api.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/rtc_api.c diff --git a/hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/sleep.c b/targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_Freescale/TARGET_KSDK2_MCUS/api/sleep.c rename to targets/TARGET_Freescale/TARGET_KSDK2_MCUS/api/sleep.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/PeripheralPins.c b/targets/TARGET_Maxim/TARGET_MAX32600/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/PeripheralPins.c rename to targets/TARGET_Maxim/TARGET_MAX32600/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/PeripheralPins.h b/targets/TARGET_Maxim/TARGET_MAX32600/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/PeripheralPins.h rename to targets/TARGET_Maxim/TARGET_MAX32600/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/PortNames.h b/targets/TARGET_Maxim/TARGET_MAX32600/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/PortNames.h rename to targets/TARGET_Maxim/TARGET_MAX32600/PortNames.h diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/TARGET_MAX32600MBED/PeripheralNames.h b/targets/TARGET_Maxim/TARGET_MAX32600/TARGET_MAX32600MBED/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/TARGET_MAX32600MBED/PeripheralNames.h rename to targets/TARGET_Maxim/TARGET_MAX32600/TARGET_MAX32600MBED/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/TARGET_MAX32600MBED/PinNames.h b/targets/TARGET_Maxim/TARGET_MAX32600/TARGET_MAX32600MBED/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/TARGET_MAX32600MBED/PinNames.h rename to targets/TARGET_Maxim/TARGET_MAX32600/TARGET_MAX32600MBED/PinNames.h diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/TARGET_MAX32600MBED/low_level_init.c b/targets/TARGET_Maxim/TARGET_MAX32600/TARGET_MAX32600MBED/low_level_init.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/TARGET_MAX32600MBED/low_level_init.c rename to targets/TARGET_Maxim/TARGET_MAX32600/TARGET_MAX32600MBED/low_level_init.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/analogin_api.c b/targets/TARGET_Maxim/TARGET_MAX32600/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/analogin_api.c rename to targets/TARGET_Maxim/TARGET_MAX32600/analogin_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/analogout_api.c b/targets/TARGET_Maxim/TARGET_MAX32600/analogout_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/analogout_api.c rename to targets/TARGET_Maxim/TARGET_MAX32600/analogout_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/device.h b/targets/TARGET_Maxim/TARGET_MAX32600/device.h similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/device.h rename to targets/TARGET_Maxim/TARGET_MAX32600/device.h diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/gpio_api.c b/targets/TARGET_Maxim/TARGET_MAX32600/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/gpio_api.c rename to targets/TARGET_Maxim/TARGET_MAX32600/gpio_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/gpio_irq_api.c b/targets/TARGET_Maxim/TARGET_MAX32600/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/gpio_irq_api.c rename to targets/TARGET_Maxim/TARGET_MAX32600/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/gpio_object.h b/targets/TARGET_Maxim/TARGET_MAX32600/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/gpio_object.h rename to targets/TARGET_Maxim/TARGET_MAX32600/gpio_object.h diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/i2c_api.c b/targets/TARGET_Maxim/TARGET_MAX32600/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/i2c_api.c rename to targets/TARGET_Maxim/TARGET_MAX32600/i2c_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/objects.h b/targets/TARGET_Maxim/TARGET_MAX32600/objects.h similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/objects.h rename to targets/TARGET_Maxim/TARGET_MAX32600/objects.h diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/pinmap.c b/targets/TARGET_Maxim/TARGET_MAX32600/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/pinmap.c rename to targets/TARGET_Maxim/TARGET_MAX32600/pinmap.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/port_api.c b/targets/TARGET_Maxim/TARGET_MAX32600/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/port_api.c rename to targets/TARGET_Maxim/TARGET_MAX32600/port_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/pwmout_api.c b/targets/TARGET_Maxim/TARGET_MAX32600/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/pwmout_api.c rename to targets/TARGET_Maxim/TARGET_MAX32600/pwmout_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/rtc_api.c b/targets/TARGET_Maxim/TARGET_MAX32600/rtc_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/rtc_api.c rename to targets/TARGET_Maxim/TARGET_MAX32600/rtc_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/serial_api.c b/targets/TARGET_Maxim/TARGET_MAX32600/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/serial_api.c rename to targets/TARGET_Maxim/TARGET_MAX32600/serial_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/sleep.c b/targets/TARGET_Maxim/TARGET_MAX32600/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/sleep.c rename to targets/TARGET_Maxim/TARGET_MAX32600/sleep.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/spi_api.c b/targets/TARGET_Maxim/TARGET_MAX32600/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/spi_api.c rename to targets/TARGET_Maxim/TARGET_MAX32600/spi_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/us_ticker.c b/targets/TARGET_Maxim/TARGET_MAX32600/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32600/us_ticker.c rename to targets/TARGET_Maxim/TARGET_MAX32600/us_ticker.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/PeripheralPins.c b/targets/TARGET_Maxim/TARGET_MAX32610/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/PeripheralPins.c rename to targets/TARGET_Maxim/TARGET_MAX32610/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/PeripheralPins.h b/targets/TARGET_Maxim/TARGET_MAX32610/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/PeripheralPins.h rename to targets/TARGET_Maxim/TARGET_MAX32610/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/PortNames.h b/targets/TARGET_Maxim/TARGET_MAX32610/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/PortNames.h rename to targets/TARGET_Maxim/TARGET_MAX32610/PortNames.h diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/TARGET_MAXWSNENV/PeripheralNames.h b/targets/TARGET_Maxim/TARGET_MAX32610/TARGET_MAXWSNENV/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/TARGET_MAXWSNENV/PeripheralNames.h rename to targets/TARGET_Maxim/TARGET_MAX32610/TARGET_MAXWSNENV/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/TARGET_MAXWSNENV/PinNames.h b/targets/TARGET_Maxim/TARGET_MAX32610/TARGET_MAXWSNENV/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/TARGET_MAXWSNENV/PinNames.h rename to targets/TARGET_Maxim/TARGET_MAX32610/TARGET_MAXWSNENV/PinNames.h diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/TARGET_MAXWSNENV/low_level_init.c b/targets/TARGET_Maxim/TARGET_MAX32610/TARGET_MAXWSNENV/low_level_init.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/TARGET_MAXWSNENV/low_level_init.c rename to targets/TARGET_Maxim/TARGET_MAX32610/TARGET_MAXWSNENV/low_level_init.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_ARM_STD/exactLE.ar b/targets/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_ARM_STD/exactLE.ar similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_ARM_STD/exactLE.ar rename to targets/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_ARM_STD/exactLE.ar diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_GCC_ARM/libexactLE.a b/targets/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_GCC_ARM/libexactLE.a similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_GCC_ARM/libexactLE.a rename to targets/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_GCC_ARM/libexactLE.a diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_IAR/exactLE.a b/targets/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_IAR/exactLE.a similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_IAR/exactLE.a rename to targets/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_IAR/exactLE.a diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/analogin_api.c b/targets/TARGET_Maxim/TARGET_MAX32610/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/analogin_api.c rename to targets/TARGET_Maxim/TARGET_MAX32610/analogin_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/analogout_api.c b/targets/TARGET_Maxim/TARGET_MAX32610/analogout_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/analogout_api.c rename to targets/TARGET_Maxim/TARGET_MAX32610/analogout_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/device.h b/targets/TARGET_Maxim/TARGET_MAX32610/device.h similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/device.h rename to targets/TARGET_Maxim/TARGET_MAX32610/device.h diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/gpio_api.c b/targets/TARGET_Maxim/TARGET_MAX32610/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/gpio_api.c rename to targets/TARGET_Maxim/TARGET_MAX32610/gpio_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/gpio_irq_api.c b/targets/TARGET_Maxim/TARGET_MAX32610/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/gpio_irq_api.c rename to targets/TARGET_Maxim/TARGET_MAX32610/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/gpio_object.h b/targets/TARGET_Maxim/TARGET_MAX32610/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/gpio_object.h rename to targets/TARGET_Maxim/TARGET_MAX32610/gpio_object.h diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/i2c_api.c b/targets/TARGET_Maxim/TARGET_MAX32610/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/i2c_api.c rename to targets/TARGET_Maxim/TARGET_MAX32610/i2c_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/objects.h b/targets/TARGET_Maxim/TARGET_MAX32610/objects.h similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/objects.h rename to targets/TARGET_Maxim/TARGET_MAX32610/objects.h diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/pinmap.c b/targets/TARGET_Maxim/TARGET_MAX32610/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/pinmap.c rename to targets/TARGET_Maxim/TARGET_MAX32610/pinmap.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/port_api.c b/targets/TARGET_Maxim/TARGET_MAX32610/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/port_api.c rename to targets/TARGET_Maxim/TARGET_MAX32610/port_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/pwmout_api.c b/targets/TARGET_Maxim/TARGET_MAX32610/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/pwmout_api.c rename to targets/TARGET_Maxim/TARGET_MAX32610/pwmout_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/rtc_api.c b/targets/TARGET_Maxim/TARGET_MAX32610/rtc_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/rtc_api.c rename to targets/TARGET_Maxim/TARGET_MAX32610/rtc_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/serial_api.c b/targets/TARGET_Maxim/TARGET_MAX32610/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/serial_api.c rename to targets/TARGET_Maxim/TARGET_MAX32610/serial_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/sleep.c b/targets/TARGET_Maxim/TARGET_MAX32610/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/sleep.c rename to targets/TARGET_Maxim/TARGET_MAX32610/sleep.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/spi_api.c b/targets/TARGET_Maxim/TARGET_MAX32610/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/spi_api.c rename to targets/TARGET_Maxim/TARGET_MAX32610/spi_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/us_ticker.c b/targets/TARGET_Maxim/TARGET_MAX32610/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32610/us_ticker.c rename to targets/TARGET_Maxim/TARGET_MAX32610/us_ticker.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/PeripheralPins.c b/targets/TARGET_Maxim/TARGET_MAX32620/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/PeripheralPins.c rename to targets/TARGET_Maxim/TARGET_MAX32620/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/PeripheralPins.h b/targets/TARGET_Maxim/TARGET_MAX32620/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/PeripheralPins.h rename to targets/TARGET_Maxim/TARGET_MAX32620/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/PortNames.h b/targets/TARGET_Maxim/TARGET_MAX32620/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/PortNames.h rename to targets/TARGET_Maxim/TARGET_MAX32620/PortNames.h diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/TARGET_MAX32620HSP/PeripheralNames.h b/targets/TARGET_Maxim/TARGET_MAX32620/TARGET_MAX32620HSP/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/TARGET_MAX32620HSP/PeripheralNames.h rename to targets/TARGET_Maxim/TARGET_MAX32620/TARGET_MAX32620HSP/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/TARGET_MAX32620HSP/PinNames.h b/targets/TARGET_Maxim/TARGET_MAX32620/TARGET_MAX32620HSP/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/TARGET_MAX32620HSP/PinNames.h rename to targets/TARGET_Maxim/TARGET_MAX32620/TARGET_MAX32620HSP/PinNames.h diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/TARGET_MAX32620HSP/low_level_init.c b/targets/TARGET_Maxim/TARGET_MAX32620/TARGET_MAX32620HSP/low_level_init.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/TARGET_MAX32620HSP/low_level_init.c rename to targets/TARGET_Maxim/TARGET_MAX32620/TARGET_MAX32620HSP/low_level_init.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_GCC_ARM/libexactLE.a b/targets/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_GCC_ARM/libexactLE.a similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_GCC_ARM/libexactLE.a rename to targets/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_GCC_ARM/libexactLE.a diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/analogin_api.c b/targets/TARGET_Maxim/TARGET_MAX32620/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/analogin_api.c rename to targets/TARGET_Maxim/TARGET_MAX32620/analogin_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/device.h b/targets/TARGET_Maxim/TARGET_MAX32620/device.h similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/device.h rename to targets/TARGET_Maxim/TARGET_MAX32620/device.h diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/gpio_api.c b/targets/TARGET_Maxim/TARGET_MAX32620/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/gpio_api.c rename to targets/TARGET_Maxim/TARGET_MAX32620/gpio_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/gpio_irq_api.c b/targets/TARGET_Maxim/TARGET_MAX32620/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/gpio_irq_api.c rename to targets/TARGET_Maxim/TARGET_MAX32620/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/gpio_object.h b/targets/TARGET_Maxim/TARGET_MAX32620/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/gpio_object.h rename to targets/TARGET_Maxim/TARGET_MAX32620/gpio_object.h diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/i2c_api.c b/targets/TARGET_Maxim/TARGET_MAX32620/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/i2c_api.c rename to targets/TARGET_Maxim/TARGET_MAX32620/i2c_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/objects.h b/targets/TARGET_Maxim/TARGET_MAX32620/objects.h similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/objects.h rename to targets/TARGET_Maxim/TARGET_MAX32620/objects.h diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/pinmap.c b/targets/TARGET_Maxim/TARGET_MAX32620/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/pinmap.c rename to targets/TARGET_Maxim/TARGET_MAX32620/pinmap.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/port_api.c b/targets/TARGET_Maxim/TARGET_MAX32620/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/port_api.c rename to targets/TARGET_Maxim/TARGET_MAX32620/port_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/pwmout_api.c b/targets/TARGET_Maxim/TARGET_MAX32620/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/pwmout_api.c rename to targets/TARGET_Maxim/TARGET_MAX32620/pwmout_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/rtc_api.c b/targets/TARGET_Maxim/TARGET_MAX32620/rtc_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/rtc_api.c rename to targets/TARGET_Maxim/TARGET_MAX32620/rtc_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/serial_api.c b/targets/TARGET_Maxim/TARGET_MAX32620/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/serial_api.c rename to targets/TARGET_Maxim/TARGET_MAX32620/serial_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/sleep.c b/targets/TARGET_Maxim/TARGET_MAX32620/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/sleep.c rename to targets/TARGET_Maxim/TARGET_MAX32620/sleep.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/spi_api.c b/targets/TARGET_Maxim/TARGET_MAX32620/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/spi_api.c rename to targets/TARGET_Maxim/TARGET_MAX32620/spi_api.c diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/spi_multi_api.h b/targets/TARGET_Maxim/TARGET_MAX32620/spi_multi_api.h similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/spi_multi_api.h rename to targets/TARGET_Maxim/TARGET_MAX32620/spi_multi_api.h diff --git a/hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/us_ticker.c b/targets/TARGET_Maxim/TARGET_MAX32620/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_Maxim/TARGET_MAX32620/us_ticker.c rename to targets/TARGET_Maxim/TARGET_MAX32620/us_ticker.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/crc16/crc16.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/crc16/crc16.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/crc16/crc16.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/crc16/crc16.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/scheduler/app_scheduler.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/scheduler/app_scheduler.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/scheduler/app_scheduler.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/scheduler/app_scheduler.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/util/app_error.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/util/app_error.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/util/app_error.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/util/app_error.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/util/app_util.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/util/app_util.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/util/app_util.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/nordic_sdk/components/libraries/util/app_util.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_8_0_0/s110_nrf51822_8.0.0_licence_agreement.txt b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_8_0_0/s110_nrf51822_8.0.0_licence_agreement.txt similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_8_0_0/s110_nrf51822_8.0.0_licence_agreement.txt rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_8_0_0/s110_nrf51822_8.0.0_licence_agreement.txt diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_8_0_0/s110_nrf51822_8.0.0_softdevice.hex b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_8_0_0/s110_nrf51822_8.0.0_softdevice.hex similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_8_0_0/s110_nrf51822_8.0.0_softdevice.hex rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s110_nrf51822_8_0_0/s110_nrf51822_8.0.0_softdevice.hex diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s130_nrf51822_1_0_0/s130_nrf51_1.0.0_licence_agreement.txt b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s130_nrf51822_1_0_0/s130_nrf51_1.0.0_licence_agreement.txt similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s130_nrf51822_1_0_0/s130_nrf51_1.0.0_licence_agreement.txt rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s130_nrf51822_1_0_0/s130_nrf51_1.0.0_licence_agreement.txt diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s130_nrf51822_1_0_0/s130_nrf51_1.0.0_softdevice.hex b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s130_nrf51822_1_0_0/s130_nrf51_1.0.0_softdevice.hex similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s130_nrf51822_1_0_0/s130_nrf51_1.0.0_softdevice.hex rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/Lib/s130_nrf51822_1_0_0/s130_nrf51_1.0.0_softdevice.hex diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/PeripheralNames.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/PeripheralNames.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/PortNames.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/PortNames.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/PortNames.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_ARCH_BLE/PinNames.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_ARCH_BLE/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_ARCH_BLE/PinNames.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_ARCH_BLE/PinNames.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_ARCH_BLE/device.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_ARCH_BLE/device.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_ARCH_BLE/device.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_ARCH_BLE/device.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_DELTA_DFCM_NNN40/PinNames.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_DELTA_DFCM_NNN40/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_DELTA_DFCM_NNN40/PinNames.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_DELTA_DFCM_NNN40/PinNames.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_DELTA_DFCM_NNN40/device.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_DELTA_DFCM_NNN40/device.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_DELTA_DFCM_NNN40/device.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_DELTA_DFCM_NNN40/device.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_DELTA_DFCM_NNN40/mbed_overrides.c b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_DELTA_DFCM_NNN40/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_DELTA_DFCM_NNN40/mbed_overrides.c rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_DELTA_DFCM_NNN40/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_DELTA_DFCM_NNN40/rtc_api.c b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_DELTA_DFCM_NNN40/rtc_api.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_DELTA_DFCM_NNN40/rtc_api.c rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_DELTA_DFCM_NNN40/rtc_api.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_HRM1017/PinNames.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_HRM1017/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_HRM1017/PinNames.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_HRM1017/PinNames.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_HRM1017/device.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_HRM1017/device.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_HRM1017/device.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_HRM1017/device.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_MTM_MTCONNECT04S/PinNames.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_MTM_MTCONNECT04S/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_MTM_MTCONNECT04S/PinNames.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_MTM_MTCONNECT04S/PinNames.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_MTM_MTCONNECT04S/device.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_MTM_MTCONNECT04S/device.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_MTM_MTCONNECT04S/device.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_MTM_MTCONNECT04S/device.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_MKIT/PinNames.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_MKIT/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_MKIT/PinNames.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_MKIT/PinNames.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_MKIT/device.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_MKIT/device.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_MKIT/device.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_MKIT/device.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_SBKIT/PinNames.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_SBKIT/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_SBKIT/PinNames.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_SBKIT/PinNames.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_SBKIT/device.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_SBKIT/device.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_SBKIT/device.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_SBKIT/device.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_Y5_MBUG/PinNames.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_Y5_MBUG/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_Y5_MBUG/PinNames.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_Y5_MBUG/PinNames.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_Y5_MBUG/device.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_Y5_MBUG/device.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_Y5_MBUG/device.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51822_Y5_MBUG/device.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_DK/PinNames.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_DK/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_DK/PinNames.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_DK/PinNames.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_DK/device.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_DK/device.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_DK/device.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_DK/device.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_DONGLE/PinNames.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_DONGLE/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_DONGLE/PinNames.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_DONGLE/PinNames.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_DONGLE/device.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_DONGLE/device.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_DONGLE/device.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_DONGLE/device.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_MICROBIT/PinNames.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_MICROBIT/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_MICROBIT/PinNames.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_MICROBIT/PinNames.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_MICROBIT/device.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_MICROBIT/device.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_MICROBIT/device.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_NRF51_MICROBIT/device.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_BLENANO/PinNames.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_BLENANO/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_BLENANO/PinNames.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_BLENANO/PinNames.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_BLENANO/device.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_BLENANO/device.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_BLENANO/device.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_BLENANO/device.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_NRF51822/PinNames.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_NRF51822/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_NRF51822/PinNames.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_NRF51822/PinNames.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_NRF51822/device.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_NRF51822/device.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_NRF51822/device.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_RBLAB_NRF51822/device.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_SEEED_TINY_BLE/PinNames.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_SEEED_TINY_BLE/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_SEEED_TINY_BLE/PinNames.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_SEEED_TINY_BLE/PinNames.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_SEEED_TINY_BLE/device.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_SEEED_TINY_BLE/device.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_SEEED_TINY_BLE/device.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_SEEED_TINY_BLE/device.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_TY51822R3/PinNames.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_TY51822R3/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_TY51822R3/PinNames.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_TY51822R3/PinNames.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_TY51822R3/device.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_TY51822R3/device.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_TY51822R3/device.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_TY51822R3/device.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_WALLBOT_BLE/PinNames.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_WALLBOT_BLE/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_WALLBOT_BLE/PinNames.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_WALLBOT_BLE/PinNames.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_WALLBOT_BLE/device.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_WALLBOT_BLE/device.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_WALLBOT_BLE/device.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/TARGET_WALLBOT_BLE/device.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/analogin_api.c b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/analogin_api.c rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/analogin_api.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/gpio_api.c b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/gpio_api.c rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/gpio_api.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/gpio_irq_api.c b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/gpio_irq_api.c rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/gpio_object.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/gpio_object.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/gpio_object.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/i2c_api.c b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/i2c_api.c rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/i2c_api.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/objects.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/objects.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/objects.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/objects.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/pinmap.c b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/pinmap.c rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/pinmap.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/port_api.c b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/port_api.c rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/port_api.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/pwmout_api.c b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/pwmout_api.c rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/pwmout_api.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/serial_api.c b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/serial_api.c rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/serial_api.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/sleep.c b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/sleep.c rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/sleep.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/spi_api.c b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/spi_api.c rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/spi_api.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/twi_config.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/twi_config.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/twi_config.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/twi_config.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/twi_master.c b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/twi_master.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/twi_master.c rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/twi_master.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/twi_master.h b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/twi_master.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/twi_master.h rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/twi_master.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/us_ticker.c b/targets/TARGET_NORDIC/TARGET_MCU_NRF51822/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_MCU_NRF51822/us_ticker.c rename to targets/TARGET_NORDIC/TARGET_MCU_NRF51822/us_ticker.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/LF_Clock_config.md b/targets/TARGET_NORDIC/TARGET_NRF5/LF_Clock_config.md similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/LF_Clock_config.md rename to targets/TARGET_NORDIC/TARGET_NRF5/LF_Clock_config.md diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/PeripheralNames.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/PeripheralNames.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/PortNames.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/PortNames.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/PortNames.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TARGET_NRF51_DK/PinNames.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TARGET_NRF51_DK/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TARGET_NRF51_DK/PinNames.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TARGET_NRF51_DK/PinNames.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TARGET_NRF51_DK/device.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TARGET_NRF51_DK/device.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TARGET_NRF51_DK/device.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TARGET_NRF51_DK/device.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TARGET_NRF51_DONGLE/PinNames.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TARGET_NRF51_DONGLE/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TARGET_NRF51_DONGLE/PinNames.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TARGET_NRF51_DONGLE/PinNames.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TARGET_NRF51_DONGLE/device.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TARGET_NRF51_DONGLE/device.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TARGET_NRF51_DONGLE/device.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TARGET_NRF51_DONGLE/device.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TARGET_TY51822R3/PinNames.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TARGET_TY51822R3/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TARGET_TY51822R3/PinNames.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TARGET_TY51822R3/PinNames.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TARGET_TY51822R3/device.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TARGET_TY51822R3/device.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TARGET_TY51822R3/device.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TARGET_TY51822R3/device.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/analogin_api.c b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/analogin_api.c rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/analogin_api.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/pwmout_api.c b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/pwmout_api.c rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/pwmout_api.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/drivers_nrf/adc/nrf_drv_adc.c b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/drivers_nrf/adc/nrf_drv_adc.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/drivers_nrf/adc/nrf_drv_adc.c rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/drivers_nrf/adc/nrf_drv_adc.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/drivers_nrf/adc/nrf_drv_adc.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/drivers_nrf/adc/nrf_drv_adc.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/drivers_nrf/adc/nrf_drv_adc.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/drivers_nrf/adc/nrf_drv_adc.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/nrf_drv_config.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/nrf_drv_config.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/nrf_drv_config.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/nrf_drv_config.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf51/nrf_mbr.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf51/nrf_mbr.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf51/nrf_mbr.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf51/nrf_mbr.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_err.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_err.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_err.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_err.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_gap.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_gap.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_gap.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_gap.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_gatt.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_gatt.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_gatt.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_gatt.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_gattc.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_gattc.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_gattc.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_gattc.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_gatts.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_gatts.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_gatts.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_gatts.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_hci.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_hci.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_hci.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_hci.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_l2cap.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_l2cap.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_l2cap.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_l2cap.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_ranges.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_ranges.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_ranges.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_ranges.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_types.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_types.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_types.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_ble_types.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_error.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_error.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_error.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_error.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_error_sdm.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_error_sdm.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_error_sdm.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_error_sdm.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_error_soc.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_error_soc.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_error_soc.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_error_soc.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_nvic.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_nvic.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_nvic.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_nvic.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_sd_def.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_sd_def.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_sd_def.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_sd_def.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_sdm.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_sdm.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_sdm.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_sdm.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_soc.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_soc.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_soc.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_soc.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_svc.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_svc.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_svc.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/headers/nrf_svc.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/hex/s130_nrf51_2.0.0_softdevice.hex b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/hex/s130_nrf51_2.0.0_softdevice.hex similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/hex/s130_nrf51_2.0.0_softdevice.hex rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/sdk/softdevice/s130/hex/s130_nrf51_2.0.0_softdevice.hex diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/PeripheralNames.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/PeripheralNames.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/PortNames.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/PortNames.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/PortNames.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TARGET_DELTA_DFBM_NQ620/PinNames.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TARGET_DELTA_DFBM_NQ620/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TARGET_DELTA_DFBM_NQ620/PinNames.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TARGET_DELTA_DFBM_NQ620/PinNames.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TARGET_DELTA_DFBM_NQ620/device.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TARGET_DELTA_DFBM_NQ620/device.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TARGET_DELTA_DFBM_NQ620/device.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TARGET_DELTA_DFBM_NQ620/device.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TARGET_NRF52_DK/PinNames.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TARGET_NRF52_DK/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TARGET_NRF52_DK/PinNames.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TARGET_NRF52_DK/PinNames.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TARGET_NRF52_DK/device.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TARGET_NRF52_DK/device.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TARGET_NRF52_DK/device.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TARGET_NRF52_DK/device.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/analogin_api.c b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/analogin_api.c rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/analogin_api.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/pwmout_api.c b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/pwmout_api.c rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/pwmout_api.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/driver_nrf/pwm/nrf_drv_pwm.c b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/driver_nrf/pwm/nrf_drv_pwm.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/driver_nrf/pwm/nrf_drv_pwm.c rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/driver_nrf/pwm/nrf_drv_pwm.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/driver_nrf/pwm/nrf_drv_pwm.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/driver_nrf/pwm/nrf_drv_pwm.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/driver_nrf/pwm/nrf_drv_pwm.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/driver_nrf/pwm/nrf_drv_pwm.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/driver_nrf/saadc/nrf_drv_saadc.c b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/driver_nrf/saadc/nrf_drv_saadc.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/driver_nrf/saadc/nrf_drv_saadc.c rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/driver_nrf/saadc/nrf_drv_saadc.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/driver_nrf/saadc/nrf_drv_saadc.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/driver_nrf/saadc/nrf_drv_saadc.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/driver_nrf/saadc/nrf_drv_saadc.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/driver_nrf/saadc/nrf_drv_saadc.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/nrf_drv_config.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/nrf_drv_config.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/nrf_drv_config.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/nrf_drv_config.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf52/nrf_mbr.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf52/nrf_mbr.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf52/nrf_mbr.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf52/nrf_mbr.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_err.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_err.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_err.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_err.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_gap.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_gap.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_gap.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_gap.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_gatt.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_gatt.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_gatt.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_gatt.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_gattc.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_gattc.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_gattc.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_gattc.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_gatts.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_gatts.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_gatts.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_gatts.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_hci.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_hci.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_hci.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_hci.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_l2cap.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_l2cap.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_l2cap.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_l2cap.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_ranges.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_ranges.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_ranges.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_ranges.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_types.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_types.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_types.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_ble_types.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_error.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_error.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_error.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_error.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_error_sdm.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_error_sdm.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_error_sdm.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_error_sdm.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_error_soc.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_error_soc.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_error_soc.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_error_soc.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_nvic.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_nvic.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_nvic.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_nvic.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_sd_def.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_sd_def.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_sd_def.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_sd_def.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_sdm.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_sdm.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_sdm.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_sdm.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_soc.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_soc.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_soc.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_soc.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_svc.h b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_svc.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_svc.h rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/headers/nrf_svc.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/hex/s132_nrf52_2.0.0_softdevice.hex b/targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/hex/s132_nrf52_2.0.0_softdevice.hex similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/hex/s132_nrf52_2.0.0_softdevice.hex rename to targets/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/sdk/softdevice/s132/hex/s132_nrf52_2.0.0_softdevice.hex diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/common_rtc.h b/targets/TARGET_NORDIC/TARGET_NRF5/common_rtc.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/common_rtc.h rename to targets/TARGET_NORDIC/TARGET_NRF5/common_rtc.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/gpio_api.c b/targets/TARGET_NORDIC/TARGET_NRF5/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/gpio_api.c rename to targets/TARGET_NORDIC/TARGET_NRF5/gpio_api.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/gpio_object.h b/targets/TARGET_NORDIC/TARGET_NRF5/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/gpio_object.h rename to targets/TARGET_NORDIC/TARGET_NRF5/gpio_object.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/i2c_api.c b/targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/i2c_api.c rename to targets/TARGET_NORDIC/TARGET_NRF5/i2c_api.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/lp_ticker.c b/targets/TARGET_NORDIC/TARGET_NRF5/lp_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/lp_ticker.c rename to targets/TARGET_NORDIC/TARGET_NRF5/lp_ticker.c diff --git a/targets/TARGET_NORDIC/TARGET_NRF5/nordic_critical.c b/targets/TARGET_NORDIC/TARGET_NRF5/nordic_critical.c new file mode 100644 index 0000000000..4f94263196 --- /dev/null +++ b/targets/TARGET_NORDIC/TARGET_NRF5/nordic_critical.c @@ -0,0 +1,57 @@ +/* + * Copyright (c) 2015-2016, ARM Limited, All Rights Reserved + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include // uint32_t, UINT32_MAX +#include // uint32_t, UINT32_MAX +#include "cmsis.h" +#include "nrf_soc.h" +#include "nrf_sdm.h" +#include "nrf_nvic.h" + +static uint8_t _sd_state = 0; +static volatile uint32_t _entry_count = 0; + +void core_util_critical_section_enter() +{ + // if a critical section has already been entered, just update the counter + if (_entry_count) { + ++_entry_count; + return; + } + + // in this path, a critical section has never been entered + // routine of SD V11 work even if the softdevice is not active + sd_nvic_critical_region_enter(&_sd_state); + + assert(_entry_count == 0); // entry count should always be equal to 0 at this point + ++_entry_count; +} + +void core_util_critical_section_exit() +{ + assert(_entry_count > 0); + --_entry_count; + + // If their is other segments which have entered the critical section, just leave + if (_entry_count) { + return; + } + + // This is the last segment of the critical section, state should be restored as before entering + // the critical section + sd_nvic_critical_region_exit(_sd_state); +} diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/objects.h b/targets/TARGET_NORDIC/TARGET_NRF5/objects.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/objects.h rename to targets/TARGET_NORDIC/TARGET_NRF5/objects.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/pinmap.c b/targets/TARGET_NORDIC/TARGET_NRF5/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/pinmap.c rename to targets/TARGET_NORDIC/TARGET_NRF5/pinmap.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/port_api.c b/targets/TARGET_NORDIC/TARGET_NRF5/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/port_api.c rename to targets/TARGET_NORDIC/TARGET_NRF5/port_api.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/rtc_api.c b/targets/TARGET_NORDIC/TARGET_NRF5/rtc_api.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/rtc_api.c rename to targets/TARGET_NORDIC/TARGET_NRF5/rtc_api.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_advertising/ble_advertising.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_advertising/ble_advertising.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_advertising/ble_advertising.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_advertising/ble_advertising.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_advertising/ble_advertising.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_advertising/ble_advertising.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_advertising/ble_advertising.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_advertising/ble_advertising.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_db_discovery/ble_db_discovery.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_db_discovery/ble_db_discovery.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_db_discovery/ble_db_discovery.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_db_discovery/ble_db_discovery.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_db_discovery/ble_db_discovery.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_db_discovery/ble_db_discovery.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_db_discovery/ble_db_discovery.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_db_discovery/ble_db_discovery.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_debug_assert_handler/ble_debug_assert_handler.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_debug_assert_handler/ble_debug_assert_handler.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_debug_assert_handler/ble_debug_assert_handler.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_debug_assert_handler/ble_debug_assert_handler.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_debug_assert_handler/ble_debug_assert_handler.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_debug_assert_handler/ble_debug_assert_handler.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_debug_assert_handler/ble_debug_assert_handler.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_debug_assert_handler/ble_debug_assert_handler.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_dtm/ble_dtm.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_dtm/ble_dtm.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_dtm/ble_dtm.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_dtm/ble_dtm.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_dtm/ble_dtm.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_dtm/ble_dtm.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_dtm/ble_dtm.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_dtm/ble_dtm.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_error_log/ble_error_log.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_error_log/ble_error_log.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_error_log/ble_error_log.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_error_log/ble_error_log.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_racp/ble_racp.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_racp/ble_racp.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_racp/ble_racp.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_racp/ble_racp.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_racp/ble_racp.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_racp/ble_racp.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_racp/ble_racp.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_racp/ble_racp.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_radio_notification/ble_radio_notification.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_radio_notification/ble_radio_notification.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_radio_notification/ble_radio_notification.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_radio_notification/ble_radio_notification.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_radio_notification/ble_radio_notification.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_radio_notification/ble_radio_notification.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_radio_notification/ble_radio_notification.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_radio_notification/ble_radio_notification.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_services/ble_dfu/ble_dfu.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_services/ble_dfu/ble_dfu.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_services/ble_dfu/ble_dfu.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_services/ble_dfu/ble_dfu.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_services/ble_dfu/ble_dfu.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_services/ble_dfu/ble_dfu.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_services/ble_dfu/ble_dfu.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/ble_services/ble_dfu/ble_dfu.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_advdata.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_advdata.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_advdata.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_advdata.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_advdata.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_advdata.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_advdata.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_advdata.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_conn_params.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_conn_params.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_conn_params.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_conn_params.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_conn_state.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_conn_state.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_conn_state.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_conn_state.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_conn_state.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_conn_state.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_conn_state.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_conn_state.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_date_time.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_date_time.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_date_time.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_date_time.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_gatt_db.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_gatt_db.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_gatt_db.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_gatt_db.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_sensor_location.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_sensor_location.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_sensor_location.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_sensor_location.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_srv_common.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_srv_common.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_srv_common.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_srv_common.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_srv_common.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_srv_common.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_srv_common.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/common/ble_srv_common.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/device_manager/config/device_manager_cnfg.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/device_manager/config/device_manager_cnfg.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/device_manager/config/device_manager_cnfg.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/device_manager/config/device_manager_cnfg.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/device_manager/device_manager.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/device_manager/device_manager.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/device_manager/device_manager.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/device_manager/device_manager.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/device_manager/device_manager_peripheral.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/device_manager/device_manager_peripheral.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/device_manager/device_manager_peripheral.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/device_manager/device_manager_peripheral.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/gatt_cache_manager.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/gatt_cache_manager.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/gatt_cache_manager.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/gatt_cache_manager.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/gatt_cache_manager.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/gatt_cache_manager.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/gatt_cache_manager.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/gatt_cache_manager.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/gattc_cache_manager.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/gattc_cache_manager.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/gattc_cache_manager.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/gattc_cache_manager.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/gattc_cache_manager.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/gattc_cache_manager.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/gattc_cache_manager.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/gattc_cache_manager.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/gatts_cache_manager.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/gatts_cache_manager.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/gatts_cache_manager.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/gatts_cache_manager.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/gatts_cache_manager.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/gatts_cache_manager.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/gatts_cache_manager.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/gatts_cache_manager.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/id_manager.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/id_manager.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/id_manager.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/id_manager.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/id_manager.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/id_manager.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/id_manager.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/id_manager.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_data.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_data.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_data.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_data.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_data.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_data.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_data.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_data.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_data_storage.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_data_storage.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_data_storage.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_data_storage.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_data_storage.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_data_storage.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_data_storage.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_data_storage.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_database.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_database.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_database.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_database.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_database.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_database.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_database.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_database.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_id.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_id.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_id.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_id.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_id.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_id.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_id.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_id.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_manager.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_manager.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_manager.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_manager.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_manager.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_manager.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_manager.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_manager.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_manager_internal.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_manager_internal.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_manager_internal.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_manager_internal.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_manager_types.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_manager_types.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_manager_types.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/peer_manager_types.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/pm_buffer.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/pm_buffer.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/pm_buffer.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/pm_buffer.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/pm_buffer.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/pm_buffer.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/pm_buffer.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/pm_buffer.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/pm_mutex.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/pm_mutex.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/pm_mutex.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/pm_mutex.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/pm_mutex.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/pm_mutex.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/pm_mutex.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/pm_mutex.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/security_dispatcher.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/security_dispatcher.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/security_dispatcher.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/security_dispatcher.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/security_dispatcher.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/security_dispatcher.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/security_dispatcher.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/security_dispatcher.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/security_manager.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/security_manager.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/security_manager.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/security_manager.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/security_manager.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/security_manager.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/security_manager.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/ble/peer_manager/security_manager.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/ble_flash/ble_flash.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/ble_flash/ble_flash.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/ble_flash/ble_flash.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/ble_flash/ble_flash.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/ble_flash/ble_flash.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/ble_flash/ble_flash.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/ble_flash/ble_flash.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/ble_flash/ble_flash.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/clock/nrf_drv_clock.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/clock/nrf_drv_clock.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/clock/nrf_drv_clock.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/clock/nrf_drv_clock.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/clock/nrf_drv_clock.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/clock/nrf_drv_clock.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/clock/nrf_drv_clock.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/clock/nrf_drv_clock.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/common/nrf_drv_common.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/common/nrf_drv_common.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/common/nrf_drv_common.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/common/nrf_drv_common.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/common/nrf_drv_common.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/common/nrf_drv_common.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/common/nrf_drv_common.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/common/nrf_drv_common.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/config/nrf_drv_config_validation.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/config/nrf_drv_config_validation.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/config/nrf_drv_config_validation.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/config/nrf_drv_config_validation.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/delay/nrf_delay.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/delay/nrf_delay.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/delay/nrf_delay.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/delay/nrf_delay.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/delay/nrf_delay.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/delay/nrf_delay.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/delay/nrf_delay.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/delay/nrf_delay.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/gpiote/nrf_drv_gpiote.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/gpiote/nrf_drv_gpiote.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/gpiote/nrf_drv_gpiote.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/gpiote/nrf_drv_gpiote.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/gpiote/nrf_drv_gpiote.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/gpiote/nrf_drv_gpiote.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/gpiote/nrf_drv_gpiote.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/gpiote/nrf_drv_gpiote.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_adc.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_adc.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_adc.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_adc.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_adc.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_adc.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_adc.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_adc.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_clock.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_clock.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_clock.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_clock.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_ecb.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_ecb.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_ecb.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_ecb.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_ecb.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_ecb.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_ecb.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_ecb.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_gpio.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_gpio.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_gpio.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_gpio.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_gpiote.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_gpiote.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_gpiote.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_gpiote.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_nvmc.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_nvmc.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_nvmc.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_nvmc.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_nvmc.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_nvmc.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_nvmc.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_nvmc.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_pdm.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_pdm.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_pdm.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_pdm.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_ppi.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_ppi.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_ppi.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_ppi.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_pwm.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_pwm.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_pwm.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_pwm.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_rtc.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_rtc.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_rtc.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_rtc.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_saadc.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_saadc.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_saadc.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_saadc.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_saadc.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_saadc.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_saadc.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_saadc.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_spi.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_spi.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_spi.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_spi.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_spim.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_spim.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_spim.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_spim.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_spis.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_spis.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_spis.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_spis.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_temp.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_temp.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_temp.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_temp.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_timer.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_timer.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_timer.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_timer.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_twi.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_twi.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_twi.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_twi.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_uart.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_uart.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_uart.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_uart.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_wdt.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_wdt.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_wdt.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/hal/nrf_wdt.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/ppi/nrf_drv_ppi.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/ppi/nrf_drv_ppi.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/ppi/nrf_drv_ppi.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/ppi/nrf_drv_ppi.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/ppi/nrf_drv_ppi.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/ppi/nrf_drv_ppi.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/ppi/nrf_drv_ppi.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/ppi/nrf_drv_ppi.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/pstorage/config/pstorage_platform.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/pstorage/config/pstorage_platform.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/pstorage/config/pstorage_platform.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/pstorage/config/pstorage_platform.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/pstorage/pstorage.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/pstorage/pstorage.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/pstorage/pstorage.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/pstorage/pstorage.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/pstorage/pstorage.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/pstorage/pstorage.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/pstorage/pstorage.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/pstorage/pstorage.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/spi_master/nrf_drv_spi.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/spi_master/nrf_drv_spi.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/spi_master/nrf_drv_spi.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/spi_master/nrf_drv_spi.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/spi_master/nrf_drv_spi.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/spi_master/nrf_drv_spi.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/spi_master/nrf_drv_spi.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/spi_master/nrf_drv_spi.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/spi_slave/nrf_drv_spis.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/spi_slave/nrf_drv_spis.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/spi_slave/nrf_drv_spis.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/spi_slave/nrf_drv_spis.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/spi_slave/nrf_drv_spis.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/spi_slave/nrf_drv_spis.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/spi_slave/nrf_drv_spis.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/spi_slave/nrf_drv_spis.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/timer/nrf_drv_timer.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/timer/nrf_drv_timer.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/timer/nrf_drv_timer.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/timer/nrf_drv_timer.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/timer/nrf_drv_timer.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/timer/nrf_drv_timer.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/timer/nrf_drv_timer.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/timer/nrf_drv_timer.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/twi_master/nrf_drv_twi.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/twi_master/nrf_drv_twi.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/twi_master/nrf_drv_twi.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/twi_master/nrf_drv_twi.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/twi_master/nrf_drv_twi.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/twi_master/nrf_drv_twi.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/twi_master/nrf_drv_twi.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/drivers_nrf/twi_master/nrf_drv_twi.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/bootloader.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/bootloader.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/bootloader.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/bootloader.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/bootloader_settings.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/bootloader_settings.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/bootloader_settings.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/bootloader_settings.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/bootloader_types.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/bootloader_types.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/bootloader_types.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/bootloader_types.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/bootloader_util.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/bootloader_util.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/bootloader_util.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/bootloader_util.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/bootloader_util.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/bootloader_util.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/bootloader_util.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/bootloader_util.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_app_handler.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_app_handler.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_app_handler.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_app_handler.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_app_handler.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_app_handler.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_app_handler.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_app_handler.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_bank_internal.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_bank_internal.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_bank_internal.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_bank_internal.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_ble_svc.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_ble_svc.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_ble_svc.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_ble_svc.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_ble_svc_internal.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_ble_svc_internal.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_ble_svc_internal.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_ble_svc_internal.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_init.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_init.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_init.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_init.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_init_template.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_init_template.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_init_template.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_init_template.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_transport.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_transport.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_transport.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_transport.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_types.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_types.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_types.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/dfu_types.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/hci_transport/hci_mem_pool_internal.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/hci_transport/hci_mem_pool_internal.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/hci_transport/hci_mem_pool_internal.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/hci_transport/hci_mem_pool_internal.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/hci_transport/hci_transport_config.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/hci_transport/hci_transport_config.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/hci_transport/hci_transport_config.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/bootloader_dfu/hci_transport/hci_transport_config.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/crc16/crc16.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/crc16/crc16.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/crc16/crc16.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/crc16/crc16.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/crc16/crc16.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/crc16/crc16.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/crc16/crc16.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/crc16/crc16.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/experimental_section_vars/section_vars.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/experimental_section_vars/section_vars.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/experimental_section_vars/section_vars.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/experimental_section_vars/section_vars.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fds/config/fds_config.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fds/config/fds_config.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fds/config/fds_config.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fds/config/fds_config.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fds/fds.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fds/fds.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fds/fds.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fds/fds.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fds/fds.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fds/fds.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fds/fds.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fds/fds.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fds/fds_internal_defs.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fds/fds_internal_defs.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fds/fds_internal_defs.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fds/fds_internal_defs.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fstorage/config/fstorage_config.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fstorage/config/fstorage_config.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fstorage/config/fstorage_config.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fstorage/config/fstorage_config.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fstorage/fstorage.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fstorage/fstorage.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fstorage/fstorage.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fstorage/fstorage.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fstorage/fstorage.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fstorage/fstorage.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fstorage/fstorage.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fstorage/fstorage.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fstorage/fstorage_internal_defs.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fstorage/fstorage_internal_defs.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fstorage/fstorage_internal_defs.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fstorage/fstorage_internal_defs.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fstorage/fstorage_nosd.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fstorage/fstorage_nosd.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fstorage/fstorage_nosd.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/fstorage/fstorage_nosd.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/hci/config/hci_mem_pool_internal.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/hci/config/hci_mem_pool_internal.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/hci/config/hci_mem_pool_internal.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/hci/config/hci_mem_pool_internal.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/hci/config/hci_transport_config.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/hci/config/hci_transport_config.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/hci/config/hci_transport_config.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/hci/config/hci_transport_config.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/hci/hci_mem_pool.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/hci/hci_mem_pool.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/hci/hci_mem_pool.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/hci/hci_mem_pool.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/hci/hci_mem_pool.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/hci/hci_mem_pool.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/hci/hci_mem_pool.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/hci/hci_mem_pool.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/pwm/app_pwm.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/pwm/app_pwm.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/pwm/app_pwm.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/pwm/app_pwm.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/pwm/app_pwm.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/pwm/app_pwm.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/pwm/app_pwm.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/pwm/app_pwm.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/scheduler/app_scheduler.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/scheduler/app_scheduler.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/scheduler/app_scheduler.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/scheduler/app_scheduler.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/scheduler/app_scheduler.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/scheduler/app_scheduler.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/scheduler/app_scheduler.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/scheduler/app_scheduler.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/trace/app_trace.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/trace/app_trace.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/trace/app_trace.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/trace/app_trace.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/trace/app_trace.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/trace/app_trace.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/trace/app_trace.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/trace/app_trace.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_error.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_error.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_error.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_error.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_error.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_error.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_error.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_error.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_error_weak.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_error_weak.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_error_weak.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_error_weak.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_error_weak.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_error_weak.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_error_weak.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_error_weak.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_util.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_util.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_util.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_util.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_util_bds.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_util_bds.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_util_bds.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_util_bds.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_util_platform.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_util_platform.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_util_platform.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_util_platform.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_util_platform.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_util_platform.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_util_platform.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/app_util_platform.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/common.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/common.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/common.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/common.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/nordic_common.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/nordic_common.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/nordic_common.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/nordic_common.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/nrf_assert.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/nrf_assert.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/nrf_assert.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/nrf_assert.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/nrf_assert.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/nrf_assert.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/nrf_assert.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/nrf_assert.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/nrf_log.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/nrf_log.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/nrf_log.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/nrf_log.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/nrf_log.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/nrf_log.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/nrf_log.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/nrf_log.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_common.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_common.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_common.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_common.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_errors.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_errors.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_errors.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_errors.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_macros.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_macros.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_macros.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_macros.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_mapped_flags.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_mapped_flags.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_mapped_flags.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_mapped_flags.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_mapped_flags.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_mapped_flags.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_mapped_flags.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_mapped_flags.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_os.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_os.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_os.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_os.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_resources.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_resources.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_resources.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/libraries/util/sdk_resources.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/ant_stack_handler_types.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/ant_stack_handler_types.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/ant_stack_handler_types.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/ant_stack_handler_types.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/app_ram_base.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/app_ram_base.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/app_ram_base.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/app_ram_base.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/ble_stack_handler_types.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/ble_stack_handler_types.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/ble_stack_handler_types.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/ble_stack_handler_types.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/softdevice_handler.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/softdevice_handler.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/softdevice_handler.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/softdevice_handler.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/softdevice_handler.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/softdevice_handler.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/softdevice_handler.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/softdevice_handler.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/softdevice_handler_appsh.c b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/softdevice_handler_appsh.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/softdevice_handler_appsh.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/softdevice_handler_appsh.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/softdevice_handler_appsh.h b/targets/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/softdevice_handler_appsh.h similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/softdevice_handler_appsh.h rename to targets/TARGET_NORDIC/TARGET_NRF5/sdk/softdevice/common/softdevice_handler/softdevice_handler_appsh.h diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/serial_api.c b/targets/TARGET_NORDIC/TARGET_NRF5/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/serial_api.c rename to targets/TARGET_NORDIC/TARGET_NRF5/serial_api.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sleep.c b/targets/TARGET_NORDIC/TARGET_NRF5/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/sleep.c rename to targets/TARGET_NORDIC/TARGET_NRF5/sleep.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/spi_api.c b/targets/TARGET_NORDIC/TARGET_NRF5/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/spi_api.c rename to targets/TARGET_NORDIC/TARGET_NRF5/spi_api.c diff --git a/hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/us_ticker.c b/targets/TARGET_NORDIC/TARGET_NRF5/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_NORDIC/TARGET_NRF5/us_ticker.c rename to targets/TARGET_NORDIC/TARGET_NRF5/us_ticker.c diff --git a/hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/PeripheralNames.h b/targets/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/PeripheralNames.h rename to targets/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/PeripheralPins.c b/targets/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/PeripheralPins.c rename to targets/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/PeripheralPins.h b/targets/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/PeripheralPins.h rename to targets/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/PinNames.h b/targets/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/PinNames.h rename to targets/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/PinNames.h diff --git a/hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/PortNames.h b/targets/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/PortNames.h rename to targets/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/PortNames.h diff --git a/hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/device.h b/targets/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/device.h similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/device.h rename to targets/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/device.h diff --git a/hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/mbed_overrides.c b/targets/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/mbed_overrides.c rename to targets/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/objects.h b/targets/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/objects.h similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/objects.h rename to targets/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/objects.h diff --git a/hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/analogin_api.c b/targets/TARGET_NUVOTON/TARGET_NUC472/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/analogin_api.c rename to targets/TARGET_NUVOTON/TARGET_NUC472/analogin_api.c diff --git a/hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/dma.h b/targets/TARGET_NUVOTON/TARGET_NUC472/dma.h similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/dma.h rename to targets/TARGET_NUVOTON/TARGET_NUC472/dma.h diff --git a/hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/dma_api.c b/targets/TARGET_NUVOTON/TARGET_NUC472/dma_api.c similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/dma_api.c rename to targets/TARGET_NUVOTON/TARGET_NUC472/dma_api.c diff --git a/hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/gpio_api.c b/targets/TARGET_NUVOTON/TARGET_NUC472/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/gpio_api.c rename to targets/TARGET_NUVOTON/TARGET_NUC472/gpio_api.c diff --git a/hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/gpio_irq_api.c b/targets/TARGET_NUVOTON/TARGET_NUC472/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/gpio_irq_api.c rename to targets/TARGET_NUVOTON/TARGET_NUC472/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/gpio_object.h b/targets/TARGET_NUVOTON/TARGET_NUC472/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/gpio_object.h rename to targets/TARGET_NUVOTON/TARGET_NUC472/gpio_object.h diff --git a/hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/i2c_api.c b/targets/TARGET_NUVOTON/TARGET_NUC472/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/i2c_api.c rename to targets/TARGET_NUVOTON/TARGET_NUC472/i2c_api.c diff --git a/hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/lp_ticker.c b/targets/TARGET_NUVOTON/TARGET_NUC472/lp_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/lp_ticker.c rename to targets/TARGET_NUVOTON/TARGET_NUC472/lp_ticker.c diff --git a/hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/pinmap.c b/targets/TARGET_NUVOTON/TARGET_NUC472/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/pinmap.c rename to targets/TARGET_NUVOTON/TARGET_NUC472/pinmap.c diff --git a/hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/port_api.c b/targets/TARGET_NUVOTON/TARGET_NUC472/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/port_api.c rename to targets/TARGET_NUVOTON/TARGET_NUC472/port_api.c diff --git a/hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/pwmout_api.c b/targets/TARGET_NUVOTON/TARGET_NUC472/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/pwmout_api.c rename to targets/TARGET_NUVOTON/TARGET_NUC472/pwmout_api.c diff --git a/hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/rtc_api.c b/targets/TARGET_NUVOTON/TARGET_NUC472/rtc_api.c similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/rtc_api.c rename to targets/TARGET_NUVOTON/TARGET_NUC472/rtc_api.c diff --git a/hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/serial_api.c b/targets/TARGET_NUVOTON/TARGET_NUC472/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/serial_api.c rename to targets/TARGET_NUVOTON/TARGET_NUC472/serial_api.c diff --git a/hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/sleep.c b/targets/TARGET_NUVOTON/TARGET_NUC472/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/sleep.c rename to targets/TARGET_NUVOTON/TARGET_NUC472/sleep.c diff --git a/hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/spi_api.c b/targets/TARGET_NUVOTON/TARGET_NUC472/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/spi_api.c rename to targets/TARGET_NUVOTON/TARGET_NUC472/spi_api.c diff --git a/hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/trng_api.c b/targets/TARGET_NUVOTON/TARGET_NUC472/trng_api.c similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/trng_api.c rename to targets/TARGET_NUVOTON/TARGET_NUC472/trng_api.c diff --git a/hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/us_ticker.c b/targets/TARGET_NUVOTON/TARGET_NUC472/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/TARGET_NUC472/us_ticker.c rename to targets/TARGET_NUVOTON/TARGET_NUC472/us_ticker.c diff --git a/hal/targets/hal/TARGET_NUVOTON/nu_bitutil.h b/targets/TARGET_NUVOTON/nu_bitutil.h similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/nu_bitutil.h rename to targets/TARGET_NUVOTON/nu_bitutil.h diff --git a/hal/targets/hal/TARGET_NUVOTON/nu_miscutil.c b/targets/TARGET_NUVOTON/nu_miscutil.c similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/nu_miscutil.c rename to targets/TARGET_NUVOTON/nu_miscutil.c diff --git a/hal/targets/hal/TARGET_NUVOTON/nu_miscutil.h b/targets/TARGET_NUVOTON/nu_miscutil.h similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/nu_miscutil.h rename to targets/TARGET_NUVOTON/nu_miscutil.h diff --git a/hal/targets/hal/TARGET_NUVOTON/nu_modutil.c b/targets/TARGET_NUVOTON/nu_modutil.c similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/nu_modutil.c rename to targets/TARGET_NUVOTON/nu_modutil.c diff --git a/hal/targets/hal/TARGET_NUVOTON/nu_modutil.h b/targets/TARGET_NUVOTON/nu_modutil.h similarity index 100% rename from hal/targets/hal/TARGET_NUVOTON/nu_modutil.h rename to targets/TARGET_NUVOTON/nu_modutil.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/PeripheralNames.h b/targets/TARGET_NXP/TARGET_LPC11U6X/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/PeripheralNames.h rename to targets/TARGET_NXP/TARGET_LPC11U6X/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/PinNames.h b/targets/TARGET_NXP/TARGET_LPC11U6X/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC11U6X/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/PortNames.h b/targets/TARGET_NXP/TARGET_LPC11U6X/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/PortNames.h rename to targets/TARGET_NXP/TARGET_LPC11U6X/PortNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/analogin_api.c b/targets/TARGET_NXP/TARGET_LPC11U6X/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/analogin_api.c rename to targets/TARGET_NXP/TARGET_LPC11U6X/analogin_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/device.h b/targets/TARGET_NXP/TARGET_LPC11U6X/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/device.h rename to targets/TARGET_NXP/TARGET_LPC11U6X/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/gpio_api.c b/targets/TARGET_NXP/TARGET_LPC11U6X/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/gpio_api.c rename to targets/TARGET_NXP/TARGET_LPC11U6X/gpio_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/gpio_irq_api.c b/targets/TARGET_NXP/TARGET_LPC11U6X/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/gpio_irq_api.c rename to targets/TARGET_NXP/TARGET_LPC11U6X/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/gpio_object.h b/targets/TARGET_NXP/TARGET_LPC11U6X/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/gpio_object.h rename to targets/TARGET_NXP/TARGET_LPC11U6X/gpio_object.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/i2c_api.c b/targets/TARGET_NXP/TARGET_LPC11U6X/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/i2c_api.c rename to targets/TARGET_NXP/TARGET_LPC11U6X/i2c_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/objects.h b/targets/TARGET_NXP/TARGET_LPC11U6X/objects.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/objects.h rename to targets/TARGET_NXP/TARGET_LPC11U6X/objects.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/pinmap.c b/targets/TARGET_NXP/TARGET_LPC11U6X/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/pinmap.c rename to targets/TARGET_NXP/TARGET_LPC11U6X/pinmap.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/pwmout_api.c b/targets/TARGET_NXP/TARGET_LPC11U6X/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/pwmout_api.c rename to targets/TARGET_NXP/TARGET_LPC11U6X/pwmout_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/rtc_api.c b/targets/TARGET_NXP/TARGET_LPC11U6X/rtc_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/rtc_api.c rename to targets/TARGET_NXP/TARGET_LPC11U6X/rtc_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/serial_api.c b/targets/TARGET_NXP/TARGET_LPC11U6X/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/serial_api.c rename to targets/TARGET_NXP/TARGET_LPC11U6X/serial_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/sleep.c b/targets/TARGET_NXP/TARGET_LPC11U6X/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/sleep.c rename to targets/TARGET_NXP/TARGET_LPC11U6X/sleep.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/spi_api.c b/targets/TARGET_NXP/TARGET_LPC11U6X/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/spi_api.c rename to targets/TARGET_NXP/TARGET_LPC11U6X/spi_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/us_ticker.c b/targets/TARGET_NXP/TARGET_LPC11U6X/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11U6X/us_ticker.c rename to targets/TARGET_NXP/TARGET_LPC11U6X/us_ticker.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/PeripheralPins.h b/targets/TARGET_NXP/TARGET_LPC11UXX/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/PeripheralPins.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/PortNames.h b/targets/TARGET_NXP/TARGET_LPC11UXX/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/PortNames.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/PortNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_APPNEARME_MICRONFCBOARD/PeripheralNames.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_APPNEARME_MICRONFCBOARD/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_APPNEARME_MICRONFCBOARD/PeripheralNames.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_APPNEARME_MICRONFCBOARD/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_APPNEARME_MICRONFCBOARD/PeripheralPins.c b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_APPNEARME_MICRONFCBOARD/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_APPNEARME_MICRONFCBOARD/PeripheralPins.c rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_APPNEARME_MICRONFCBOARD/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_APPNEARME_MICRONFCBOARD/PinNames.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_APPNEARME_MICRONFCBOARD/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_APPNEARME_MICRONFCBOARD/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_APPNEARME_MICRONFCBOARD/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_APPNEARME_MICRONFCBOARD/device.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_APPNEARME_MICRONFCBOARD/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_APPNEARME_MICRONFCBOARD/device.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_APPNEARME_MICRONFCBOARD/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_ARCH_GPRS/PeripheralNames.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_ARCH_GPRS/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_ARCH_GPRS/PeripheralNames.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_ARCH_GPRS/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_ARCH_GPRS/PeripheralPins.c b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_ARCH_GPRS/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_ARCH_GPRS/PeripheralPins.c rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_ARCH_GPRS/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_ARCH_GPRS/PinNames.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_ARCH_GPRS/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_ARCH_GPRS/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_ARCH_GPRS/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_ARCH_GPRS/device.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_ARCH_GPRS/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_ARCH_GPRS/device.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_ARCH_GPRS/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_301/PeripheralNames.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_301/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_301/PeripheralNames.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_301/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_301/PeripheralPins.c b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_301/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_301/PeripheralPins.c rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_301/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_301/PinNames.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_301/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_301/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_301/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_301/device.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_301/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_301/device.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_301/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_401/PeripheralNames.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_401/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_401/PeripheralNames.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_401/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_401/PeripheralPins.c b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_401/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_401/PeripheralPins.c rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_401/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_401/PinNames.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_401/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_401/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_401/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_401/device.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_401/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_401/device.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U24_401/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U34_421/PeripheralNames.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U34_421/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U34_421/PeripheralNames.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U34_421/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U34_421/PeripheralPins.c b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U34_421/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U34_421/PeripheralPins.c rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U34_421/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U34_421/PinNames.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U34_421/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U34_421/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U34_421/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U34_421/device.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U34_421/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U34_421/device.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U34_421/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U35_401/PeripheralNames.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U35_401/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U35_401/PeripheralNames.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U35_401/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U35_401/PeripheralPins.c b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U35_401/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U35_401/PeripheralPins.c rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U35_401/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U35_401/PinNames.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U35_401/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U35_401/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U35_401/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U35_401/device.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U35_401/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U35_401/device.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U35_401/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U37H_401/PeripheralNames.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U37H_401/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U37H_401/PeripheralNames.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U37H_401/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U37H_401/PeripheralPins.c b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U37H_401/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U37H_401/PeripheralPins.c rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U37H_401/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U37H_401/PinNames.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U37H_401/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U37H_401/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U37H_401/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U37H_401/device.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U37H_401/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U37H_401/device.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPC11U37H_401/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPCCAPPUCCINO/PeripheralNames.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPCCAPPUCCINO/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPCCAPPUCCINO/PeripheralNames.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPCCAPPUCCINO/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPCCAPPUCCINO/PeripheralPins.c b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPCCAPPUCCINO/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPCCAPPUCCINO/PeripheralPins.c rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPCCAPPUCCINO/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPCCAPPUCCINO/PinNames.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPCCAPPUCCINO/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPCCAPPUCCINO/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPCCAPPUCCINO/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPCCAPPUCCINO/device.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPCCAPPUCCINO/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPCCAPPUCCINO/device.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_LPCCAPPUCCINO/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/PeripheralNames.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/PeripheralNames.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/PeripheralPins.c b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/PeripheralPins.c rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501/PinNames.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501/device.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501/device.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501_IBDAP/PinNames.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501_IBDAP/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501_IBDAP/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501_IBDAP/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501_IBDAP/device.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501_IBDAP/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501_IBDAP/device.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_501_IBDAP/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_Y5_MBUG/PinNames.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_Y5_MBUG/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_Y5_MBUG/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_Y5_MBUG/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_Y5_MBUG/device.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_Y5_MBUG/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_Y5_MBUG/device.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_LPC11U35_Y5_MBUG/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_XADOW_M0/PinNames.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_XADOW_M0/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_XADOW_M0/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_XADOW_M0/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_XADOW_M0/device.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_XADOW_M0/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_XADOW_M0/device.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_MCU_LPC11U35_501/TARGET_XADOW_M0/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_OC_MBUINO/PeripheralNames.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_OC_MBUINO/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_OC_MBUINO/PeripheralNames.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_OC_MBUINO/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_OC_MBUINO/PeripheralPins.c b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_OC_MBUINO/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_OC_MBUINO/PeripheralPins.c rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_OC_MBUINO/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_OC_MBUINO/PinNames.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_OC_MBUINO/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_OC_MBUINO/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_OC_MBUINO/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_OC_MBUINO/device.h b/targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_OC_MBUINO/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/TARGET_OC_MBUINO/device.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/TARGET_OC_MBUINO/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/analogin_api.c b/targets/TARGET_NXP/TARGET_LPC11UXX/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/analogin_api.c rename to targets/TARGET_NXP/TARGET_LPC11UXX/analogin_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/gpio_api.c b/targets/TARGET_NXP/TARGET_LPC11UXX/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/gpio_api.c rename to targets/TARGET_NXP/TARGET_LPC11UXX/gpio_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/gpio_irq_api.c b/targets/TARGET_NXP/TARGET_LPC11UXX/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/gpio_irq_api.c rename to targets/TARGET_NXP/TARGET_LPC11UXX/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/gpio_object.h b/targets/TARGET_NXP/TARGET_LPC11UXX/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/gpio_object.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/gpio_object.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/i2c_api.c b/targets/TARGET_NXP/TARGET_LPC11UXX/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/i2c_api.c rename to targets/TARGET_NXP/TARGET_LPC11UXX/i2c_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/objects.h b/targets/TARGET_NXP/TARGET_LPC11UXX/objects.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/objects.h rename to targets/TARGET_NXP/TARGET_LPC11UXX/objects.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/pinmap.c b/targets/TARGET_NXP/TARGET_LPC11UXX/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/pinmap.c rename to targets/TARGET_NXP/TARGET_LPC11UXX/pinmap.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/port_api.c b/targets/TARGET_NXP/TARGET_LPC11UXX/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/port_api.c rename to targets/TARGET_NXP/TARGET_LPC11UXX/port_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/pwmout_api.c b/targets/TARGET_NXP/TARGET_LPC11UXX/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/pwmout_api.c rename to targets/TARGET_NXP/TARGET_LPC11UXX/pwmout_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/serial_api.c b/targets/TARGET_NXP/TARGET_LPC11UXX/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/serial_api.c rename to targets/TARGET_NXP/TARGET_LPC11UXX/serial_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/sleep.c b/targets/TARGET_NXP/TARGET_LPC11UXX/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/sleep.c rename to targets/TARGET_NXP/TARGET_LPC11UXX/sleep.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/spi_api.c b/targets/TARGET_NXP/TARGET_LPC11UXX/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/spi_api.c rename to targets/TARGET_NXP/TARGET_LPC11UXX/spi_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/us_ticker.c b/targets/TARGET_NXP/TARGET_LPC11UXX/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11UXX/us_ticker.c rename to targets/TARGET_NXP/TARGET_LPC11UXX/us_ticker.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/PeripheralNames.h b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/PeripheralNames.h rename to targets/TARGET_NXP/TARGET_LPC11XX_11CXX/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/PortNames.h b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/PortNames.h rename to targets/TARGET_NXP/TARGET_LPC11XX_11CXX/PortNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/README.md b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/README.md similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/README.md rename to targets/TARGET_NXP/TARGET_LPC11XX_11CXX/README.md diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11CXX/PinNames.h b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11CXX/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11CXX/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11CXX/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11CXX/can_api.c b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11CXX/can_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11CXX/can_api.c rename to targets/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11CXX/can_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11CXX/device.h b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11CXX/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11CXX/device.h rename to targets/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11CXX/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11CXX/reserved_pins.h b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11CXX/reserved_pins.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11CXX/reserved_pins.h rename to targets/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11CXX/reserved_pins.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11XX/PinNames.h b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11XX/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11XX/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11XX/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11XX/device.h b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11XX/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11XX/device.h rename to targets/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11XX/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11XX/reserved_pins.h b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11XX/reserved_pins.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11XX/reserved_pins.h rename to targets/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11XX/reserved_pins.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/analogin_api.c b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/analogin_api.c rename to targets/TARGET_NXP/TARGET_LPC11XX_11CXX/analogin_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/gpio_api.c b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/gpio_api.c rename to targets/TARGET_NXP/TARGET_LPC11XX_11CXX/gpio_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/gpio_irq_api.c b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/gpio_irq_api.c rename to targets/TARGET_NXP/TARGET_LPC11XX_11CXX/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/gpio_object.h b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/gpio_object.h rename to targets/TARGET_NXP/TARGET_LPC11XX_11CXX/gpio_object.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/i2c_api.c b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/i2c_api.c rename to targets/TARGET_NXP/TARGET_LPC11XX_11CXX/i2c_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/objects.h b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/objects.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/objects.h rename to targets/TARGET_NXP/TARGET_LPC11XX_11CXX/objects.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/pinmap.c b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/pinmap.c rename to targets/TARGET_NXP/TARGET_LPC11XX_11CXX/pinmap.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/port_api.c b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/port_api.c rename to targets/TARGET_NXP/TARGET_LPC11XX_11CXX/port_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/pwmout_api.c b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/pwmout_api.c rename to targets/TARGET_NXP/TARGET_LPC11XX_11CXX/pwmout_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/serial_api.c b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/serial_api.c rename to targets/TARGET_NXP/TARGET_LPC11XX_11CXX/serial_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/sleep.c b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/sleep.c rename to targets/TARGET_NXP/TARGET_LPC11XX_11CXX/sleep.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/spi_api.c b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/spi_api.c rename to targets/TARGET_NXP/TARGET_LPC11XX_11CXX/spi_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/us_ticker.c b/targets/TARGET_NXP/TARGET_LPC11XX_11CXX/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC11XX_11CXX/us_ticker.c rename to targets/TARGET_NXP/TARGET_LPC11XX_11CXX/us_ticker.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/PeripheralNames.h b/targets/TARGET_NXP/TARGET_LPC13XX/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/PeripheralNames.h rename to targets/TARGET_NXP/TARGET_LPC13XX/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/PinNames.h b/targets/TARGET_NXP/TARGET_LPC13XX/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC13XX/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/PortNames.h b/targets/TARGET_NXP/TARGET_LPC13XX/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/PortNames.h rename to targets/TARGET_NXP/TARGET_LPC13XX/PortNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/analogin_api.c b/targets/TARGET_NXP/TARGET_LPC13XX/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/analogin_api.c rename to targets/TARGET_NXP/TARGET_LPC13XX/analogin_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/device.h b/targets/TARGET_NXP/TARGET_LPC13XX/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/device.h rename to targets/TARGET_NXP/TARGET_LPC13XX/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/gpio_api.c b/targets/TARGET_NXP/TARGET_LPC13XX/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/gpio_api.c rename to targets/TARGET_NXP/TARGET_LPC13XX/gpio_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/gpio_irq_api.c b/targets/TARGET_NXP/TARGET_LPC13XX/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/gpio_irq_api.c rename to targets/TARGET_NXP/TARGET_LPC13XX/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/gpio_object.h b/targets/TARGET_NXP/TARGET_LPC13XX/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/gpio_object.h rename to targets/TARGET_NXP/TARGET_LPC13XX/gpio_object.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/i2c_api.c b/targets/TARGET_NXP/TARGET_LPC13XX/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/i2c_api.c rename to targets/TARGET_NXP/TARGET_LPC13XX/i2c_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/objects.h b/targets/TARGET_NXP/TARGET_LPC13XX/objects.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/objects.h rename to targets/TARGET_NXP/TARGET_LPC13XX/objects.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/pinmap.c b/targets/TARGET_NXP/TARGET_LPC13XX/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/pinmap.c rename to targets/TARGET_NXP/TARGET_LPC13XX/pinmap.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/port_api.c b/targets/TARGET_NXP/TARGET_LPC13XX/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/port_api.c rename to targets/TARGET_NXP/TARGET_LPC13XX/port_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/pwmout_api.c b/targets/TARGET_NXP/TARGET_LPC13XX/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/pwmout_api.c rename to targets/TARGET_NXP/TARGET_LPC13XX/pwmout_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/serial_api.c b/targets/TARGET_NXP/TARGET_LPC13XX/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/serial_api.c rename to targets/TARGET_NXP/TARGET_LPC13XX/serial_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/sleep.c b/targets/TARGET_NXP/TARGET_LPC13XX/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/sleep.c rename to targets/TARGET_NXP/TARGET_LPC13XX/sleep.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/spi_api.c b/targets/TARGET_NXP/TARGET_LPC13XX/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/spi_api.c rename to targets/TARGET_NXP/TARGET_LPC13XX/spi_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/us_ticker.c b/targets/TARGET_NXP/TARGET_LPC13XX/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC13XX/us_ticker.c rename to targets/TARGET_NXP/TARGET_LPC13XX/us_ticker.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/PeripheralNames.h b/targets/TARGET_NXP/TARGET_LPC15XX/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/PeripheralNames.h rename to targets/TARGET_NXP/TARGET_LPC15XX/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/PinNames.h b/targets/TARGET_NXP/TARGET_LPC15XX/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC15XX/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/PortNames.h b/targets/TARGET_NXP/TARGET_LPC15XX/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/PortNames.h rename to targets/TARGET_NXP/TARGET_LPC15XX/PortNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/analogin_api.c b/targets/TARGET_NXP/TARGET_LPC15XX/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/analogin_api.c rename to targets/TARGET_NXP/TARGET_LPC15XX/analogin_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/analogout_api.c b/targets/TARGET_NXP/TARGET_LPC15XX/analogout_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/analogout_api.c rename to targets/TARGET_NXP/TARGET_LPC15XX/analogout_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/can_api.c b/targets/TARGET_NXP/TARGET_LPC15XX/can_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/can_api.c rename to targets/TARGET_NXP/TARGET_LPC15XX/can_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/device.h b/targets/TARGET_NXP/TARGET_LPC15XX/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/device.h rename to targets/TARGET_NXP/TARGET_LPC15XX/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/gpio_api.c b/targets/TARGET_NXP/TARGET_LPC15XX/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/gpio_api.c rename to targets/TARGET_NXP/TARGET_LPC15XX/gpio_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/gpio_irq_api.c b/targets/TARGET_NXP/TARGET_LPC15XX/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/gpio_irq_api.c rename to targets/TARGET_NXP/TARGET_LPC15XX/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/gpio_object.h b/targets/TARGET_NXP/TARGET_LPC15XX/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/gpio_object.h rename to targets/TARGET_NXP/TARGET_LPC15XX/gpio_object.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/i2c_api.c b/targets/TARGET_NXP/TARGET_LPC15XX/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/i2c_api.c rename to targets/TARGET_NXP/TARGET_LPC15XX/i2c_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/objects.h b/targets/TARGET_NXP/TARGET_LPC15XX/objects.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/objects.h rename to targets/TARGET_NXP/TARGET_LPC15XX/objects.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/pinmap.c b/targets/TARGET_NXP/TARGET_LPC15XX/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/pinmap.c rename to targets/TARGET_NXP/TARGET_LPC15XX/pinmap.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/pwmout_api.c b/targets/TARGET_NXP/TARGET_LPC15XX/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/pwmout_api.c rename to targets/TARGET_NXP/TARGET_LPC15XX/pwmout_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/rtc_api.c b/targets/TARGET_NXP/TARGET_LPC15XX/rtc_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/rtc_api.c rename to targets/TARGET_NXP/TARGET_LPC15XX/rtc_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/serial_api.c b/targets/TARGET_NXP/TARGET_LPC15XX/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/serial_api.c rename to targets/TARGET_NXP/TARGET_LPC15XX/serial_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/spi_api.c b/targets/TARGET_NXP/TARGET_LPC15XX/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/spi_api.c rename to targets/TARGET_NXP/TARGET_LPC15XX/spi_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/us_ticker.c b/targets/TARGET_NXP/TARGET_LPC15XX/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC15XX/us_ticker.c rename to targets/TARGET_NXP/TARGET_LPC15XX/us_ticker.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/PeripheralNames.h b/targets/TARGET_NXP/TARGET_LPC176X/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/PeripheralNames.h rename to targets/TARGET_NXP/TARGET_LPC176X/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/PortNames.h b/targets/TARGET_NXP/TARGET_LPC176X/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/PortNames.h rename to targets/TARGET_NXP/TARGET_LPC176X/PortNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_ARCH_PRO/PinNames.h b/targets/TARGET_NXP/TARGET_LPC176X/TARGET_ARCH_PRO/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_ARCH_PRO/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC176X/TARGET_ARCH_PRO/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_ARCH_PRO/device.h b/targets/TARGET_NXP/TARGET_LPC176X/TARGET_ARCH_PRO/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_ARCH_PRO/device.h rename to targets/TARGET_NXP/TARGET_LPC176X/TARGET_ARCH_PRO/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_ARCH_PRO/reserved_pins.h b/targets/TARGET_NXP/TARGET_LPC176X/TARGET_ARCH_PRO/reserved_pins.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_ARCH_PRO/reserved_pins.h rename to targets/TARGET_NXP/TARGET_LPC176X/TARGET_ARCH_PRO/reserved_pins.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768/PinNames.h b/targets/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768/device.h b/targets/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768/device.h rename to targets/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768/reserved_pins.h b/targets/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768/reserved_pins.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768/reserved_pins.h rename to targets/TARGET_NXP/TARGET_LPC176X/TARGET_MBED_LPC1768/reserved_pins.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/C027_api.c b/targets/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/C027_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/C027_api.c rename to targets/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/C027_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/C027_api.h b/targets/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/C027_api.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/C027_api.h rename to targets/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/C027_api.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/PinNames.h b/targets/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/device.h b/targets/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/device.h rename to targets/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/mbed_overrides.c b/targets/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/mbed_overrides.c rename to targets/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/reserved_pins.h b/targets/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/reserved_pins.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/reserved_pins.h rename to targets/TARGET_NXP/TARGET_LPC176X/TARGET_UBLOX_C027/reserved_pins.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_XBED_LPC1768/PinNames.h b/targets/TARGET_NXP/TARGET_LPC176X/TARGET_XBED_LPC1768/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_XBED_LPC1768/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC176X/TARGET_XBED_LPC1768/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_XBED_LPC1768/device.h b/targets/TARGET_NXP/TARGET_LPC176X/TARGET_XBED_LPC1768/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_XBED_LPC1768/device.h rename to targets/TARGET_NXP/TARGET_LPC176X/TARGET_XBED_LPC1768/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_XBED_LPC1768/reserved_pins.h b/targets/TARGET_NXP/TARGET_LPC176X/TARGET_XBED_LPC1768/reserved_pins.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/TARGET_XBED_LPC1768/reserved_pins.h rename to targets/TARGET_NXP/TARGET_LPC176X/TARGET_XBED_LPC1768/reserved_pins.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/analogin_api.c b/targets/TARGET_NXP/TARGET_LPC176X/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/analogin_api.c rename to targets/TARGET_NXP/TARGET_LPC176X/analogin_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/analogout_api.c b/targets/TARGET_NXP/TARGET_LPC176X/analogout_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/analogout_api.c rename to targets/TARGET_NXP/TARGET_LPC176X/analogout_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/can_api.c b/targets/TARGET_NXP/TARGET_LPC176X/can_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/can_api.c rename to targets/TARGET_NXP/TARGET_LPC176X/can_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/ethernet_api.c b/targets/TARGET_NXP/TARGET_LPC176X/ethernet_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/ethernet_api.c rename to targets/TARGET_NXP/TARGET_LPC176X/ethernet_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/gpio_api.c b/targets/TARGET_NXP/TARGET_LPC176X/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/gpio_api.c rename to targets/TARGET_NXP/TARGET_LPC176X/gpio_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/gpio_irq_api.c b/targets/TARGET_NXP/TARGET_LPC176X/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/gpio_irq_api.c rename to targets/TARGET_NXP/TARGET_LPC176X/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/gpio_object.h b/targets/TARGET_NXP/TARGET_LPC176X/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/gpio_object.h rename to targets/TARGET_NXP/TARGET_LPC176X/gpio_object.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/i2c_api.c b/targets/TARGET_NXP/TARGET_LPC176X/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/i2c_api.c rename to targets/TARGET_NXP/TARGET_LPC176X/i2c_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/objects.h b/targets/TARGET_NXP/TARGET_LPC176X/objects.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/objects.h rename to targets/TARGET_NXP/TARGET_LPC176X/objects.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/pinmap.c b/targets/TARGET_NXP/TARGET_LPC176X/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/pinmap.c rename to targets/TARGET_NXP/TARGET_LPC176X/pinmap.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/port_api.c b/targets/TARGET_NXP/TARGET_LPC176X/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/port_api.c rename to targets/TARGET_NXP/TARGET_LPC176X/port_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/pwmout_api.c b/targets/TARGET_NXP/TARGET_LPC176X/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/pwmout_api.c rename to targets/TARGET_NXP/TARGET_LPC176X/pwmout_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/rtc_api.c b/targets/TARGET_NXP/TARGET_LPC176X/rtc_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/rtc_api.c rename to targets/TARGET_NXP/TARGET_LPC176X/rtc_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/serial_api.c b/targets/TARGET_NXP/TARGET_LPC176X/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/serial_api.c rename to targets/TARGET_NXP/TARGET_LPC176X/serial_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/sleep.c b/targets/TARGET_NXP/TARGET_LPC176X/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/sleep.c rename to targets/TARGET_NXP/TARGET_LPC176X/sleep.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/spi_api.c b/targets/TARGET_NXP/TARGET_LPC176X/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/spi_api.c rename to targets/TARGET_NXP/TARGET_LPC176X/spi_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC176X/us_ticker.c b/targets/TARGET_NXP/TARGET_LPC176X/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC176X/us_ticker.c rename to targets/TARGET_NXP/TARGET_LPC176X/us_ticker.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/PeripheralNames.h b/targets/TARGET_NXP/TARGET_LPC23XX/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/PeripheralNames.h rename to targets/TARGET_NXP/TARGET_LPC23XX/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/PinNames.h b/targets/TARGET_NXP/TARGET_LPC23XX/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC23XX/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/PortNames.h b/targets/TARGET_NXP/TARGET_LPC23XX/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/PortNames.h rename to targets/TARGET_NXP/TARGET_LPC23XX/PortNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/analogin_api.c b/targets/TARGET_NXP/TARGET_LPC23XX/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/analogin_api.c rename to targets/TARGET_NXP/TARGET_LPC23XX/analogin_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/analogout_api.c b/targets/TARGET_NXP/TARGET_LPC23XX/analogout_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/analogout_api.c rename to targets/TARGET_NXP/TARGET_LPC23XX/analogout_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/can_api.c b/targets/TARGET_NXP/TARGET_LPC23XX/can_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/can_api.c rename to targets/TARGET_NXP/TARGET_LPC23XX/can_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/device.h b/targets/TARGET_NXP/TARGET_LPC23XX/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/device.h rename to targets/TARGET_NXP/TARGET_LPC23XX/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/ethernet_api.c b/targets/TARGET_NXP/TARGET_LPC23XX/ethernet_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/ethernet_api.c rename to targets/TARGET_NXP/TARGET_LPC23XX/ethernet_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/gpio_api.c b/targets/TARGET_NXP/TARGET_LPC23XX/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/gpio_api.c rename to targets/TARGET_NXP/TARGET_LPC23XX/gpio_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/gpio_irq_api.c b/targets/TARGET_NXP/TARGET_LPC23XX/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/gpio_irq_api.c rename to targets/TARGET_NXP/TARGET_LPC23XX/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/gpio_object.h b/targets/TARGET_NXP/TARGET_LPC23XX/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/gpio_object.h rename to targets/TARGET_NXP/TARGET_LPC23XX/gpio_object.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/i2c_api.c b/targets/TARGET_NXP/TARGET_LPC23XX/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/i2c_api.c rename to targets/TARGET_NXP/TARGET_LPC23XX/i2c_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/objects.h b/targets/TARGET_NXP/TARGET_LPC23XX/objects.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/objects.h rename to targets/TARGET_NXP/TARGET_LPC23XX/objects.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/pinmap.c b/targets/TARGET_NXP/TARGET_LPC23XX/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/pinmap.c rename to targets/TARGET_NXP/TARGET_LPC23XX/pinmap.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/port_api.c b/targets/TARGET_NXP/TARGET_LPC23XX/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/port_api.c rename to targets/TARGET_NXP/TARGET_LPC23XX/port_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/pwmout_api.c b/targets/TARGET_NXP/TARGET_LPC23XX/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/pwmout_api.c rename to targets/TARGET_NXP/TARGET_LPC23XX/pwmout_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/rtc_api.c b/targets/TARGET_NXP/TARGET_LPC23XX/rtc_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/rtc_api.c rename to targets/TARGET_NXP/TARGET_LPC23XX/rtc_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/serial_api.c b/targets/TARGET_NXP/TARGET_LPC23XX/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/serial_api.c rename to targets/TARGET_NXP/TARGET_LPC23XX/serial_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/spi_api.c b/targets/TARGET_NXP/TARGET_LPC23XX/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/spi_api.c rename to targets/TARGET_NXP/TARGET_LPC23XX/spi_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/us_ticker.c b/targets/TARGET_NXP/TARGET_LPC23XX/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC23XX/us_ticker.c rename to targets/TARGET_NXP/TARGET_LPC23XX/us_ticker.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC2460/PeripheralNames.h b/targets/TARGET_NXP/TARGET_LPC2460/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC2460/PeripheralNames.h rename to targets/TARGET_NXP/TARGET_LPC2460/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC2460/PinNames.h b/targets/TARGET_NXP/TARGET_LPC2460/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC2460/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC2460/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC2460/PortNames.h b/targets/TARGET_NXP/TARGET_LPC2460/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC2460/PortNames.h rename to targets/TARGET_NXP/TARGET_LPC2460/PortNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC2460/analogin_api.c b/targets/TARGET_NXP/TARGET_LPC2460/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC2460/analogin_api.c rename to targets/TARGET_NXP/TARGET_LPC2460/analogin_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC2460/analogout_api.c b/targets/TARGET_NXP/TARGET_LPC2460/analogout_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC2460/analogout_api.c rename to targets/TARGET_NXP/TARGET_LPC2460/analogout_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC2460/can_api.c b/targets/TARGET_NXP/TARGET_LPC2460/can_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC2460/can_api.c rename to targets/TARGET_NXP/TARGET_LPC2460/can_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC2460/device.h b/targets/TARGET_NXP/TARGET_LPC2460/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC2460/device.h rename to targets/TARGET_NXP/TARGET_LPC2460/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC2460/ethernet_api.c b/targets/TARGET_NXP/TARGET_LPC2460/ethernet_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC2460/ethernet_api.c rename to targets/TARGET_NXP/TARGET_LPC2460/ethernet_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC2460/gpio_api.c b/targets/TARGET_NXP/TARGET_LPC2460/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC2460/gpio_api.c rename to targets/TARGET_NXP/TARGET_LPC2460/gpio_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC2460/gpio_irq_api.c b/targets/TARGET_NXP/TARGET_LPC2460/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC2460/gpio_irq_api.c rename to targets/TARGET_NXP/TARGET_LPC2460/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC2460/gpio_object.h b/targets/TARGET_NXP/TARGET_LPC2460/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC2460/gpio_object.h rename to targets/TARGET_NXP/TARGET_LPC2460/gpio_object.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC2460/i2c_api.c b/targets/TARGET_NXP/TARGET_LPC2460/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC2460/i2c_api.c rename to targets/TARGET_NXP/TARGET_LPC2460/i2c_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC2460/objects.h b/targets/TARGET_NXP/TARGET_LPC2460/objects.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC2460/objects.h rename to targets/TARGET_NXP/TARGET_LPC2460/objects.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC2460/pinmap.c b/targets/TARGET_NXP/TARGET_LPC2460/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC2460/pinmap.c rename to targets/TARGET_NXP/TARGET_LPC2460/pinmap.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC2460/port_api.c b/targets/TARGET_NXP/TARGET_LPC2460/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC2460/port_api.c rename to targets/TARGET_NXP/TARGET_LPC2460/port_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC2460/pwmout_api.c b/targets/TARGET_NXP/TARGET_LPC2460/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC2460/pwmout_api.c rename to targets/TARGET_NXP/TARGET_LPC2460/pwmout_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC2460/rtc_api.c b/targets/TARGET_NXP/TARGET_LPC2460/rtc_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC2460/rtc_api.c rename to targets/TARGET_NXP/TARGET_LPC2460/rtc_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC2460/serial_api.c b/targets/TARGET_NXP/TARGET_LPC2460/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC2460/serial_api.c rename to targets/TARGET_NXP/TARGET_LPC2460/serial_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC2460/spi_api.c b/targets/TARGET_NXP/TARGET_LPC2460/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC2460/spi_api.c rename to targets/TARGET_NXP/TARGET_LPC2460/spi_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC2460/us_ticker.c b/targets/TARGET_NXP/TARGET_LPC2460/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC2460/us_ticker.c rename to targets/TARGET_NXP/TARGET_LPC2460/us_ticker.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/PortNames.h b/targets/TARGET_NXP/TARGET_LPC408X/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/PortNames.h rename to targets/TARGET_NXP/TARGET_LPC408X/PortNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/PeripheralNames.h b/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/PeripheralNames.h rename to targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/PinNames.h b/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/analogin_api.c b/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/analogin_api.c rename to targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/analogin_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/can_api.c b/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/can_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/can_api.c rename to targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/can_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/ethernet_api.c b/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/ethernet_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/ethernet_api.c rename to targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/ethernet_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/i2c_api.c b/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/i2c_api.c rename to targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/i2c_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/pwmout_api.c b/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/pwmout_api.c rename to targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/pwmout_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/serial_api.c b/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/serial_api.c rename to targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/serial_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/spi_api.c b/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/spi_api.c rename to targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088/spi_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/PeripheralNames.h b/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/PeripheralNames.h rename to targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/PinNames.h b/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/analogin_api.c b/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/analogin_api.c rename to targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/analogin_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/can_api.c b/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/can_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/can_api.c rename to targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/can_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/ethernet_api.c b/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/ethernet_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/ethernet_api.c rename to targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/ethernet_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/i2c_api.c b/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/i2c_api.c rename to targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/i2c_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/pwmout_api.c b/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/pwmout_api.c rename to targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/pwmout_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/serial_api.c b/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/serial_api.c rename to targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/serial_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/spi_api.c b/targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/spi_api.c rename to targets/TARGET_NXP/TARGET_LPC408X/TARGET_LPC4088_DM/spi_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/analogout_api.c b/targets/TARGET_NXP/TARGET_LPC408X/analogout_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/analogout_api.c rename to targets/TARGET_NXP/TARGET_LPC408X/analogout_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/device.h b/targets/TARGET_NXP/TARGET_LPC408X/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/device.h rename to targets/TARGET_NXP/TARGET_LPC408X/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/gpio_api.c b/targets/TARGET_NXP/TARGET_LPC408X/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/gpio_api.c rename to targets/TARGET_NXP/TARGET_LPC408X/gpio_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/gpio_irq_api.c b/targets/TARGET_NXP/TARGET_LPC408X/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/gpio_irq_api.c rename to targets/TARGET_NXP/TARGET_LPC408X/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/gpio_object.h b/targets/TARGET_NXP/TARGET_LPC408X/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/gpio_object.h rename to targets/TARGET_NXP/TARGET_LPC408X/gpio_object.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/objects.h b/targets/TARGET_NXP/TARGET_LPC408X/objects.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/objects.h rename to targets/TARGET_NXP/TARGET_LPC408X/objects.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/pinmap.c b/targets/TARGET_NXP/TARGET_LPC408X/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/pinmap.c rename to targets/TARGET_NXP/TARGET_LPC408X/pinmap.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/port_api.c b/targets/TARGET_NXP/TARGET_LPC408X/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/port_api.c rename to targets/TARGET_NXP/TARGET_LPC408X/port_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/rtc_api.c b/targets/TARGET_NXP/TARGET_LPC408X/rtc_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/rtc_api.c rename to targets/TARGET_NXP/TARGET_LPC408X/rtc_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/sleep.c b/targets/TARGET_NXP/TARGET_LPC408X/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/sleep.c rename to targets/TARGET_NXP/TARGET_LPC408X/sleep.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC408X/us_ticker.c b/targets/TARGET_NXP/TARGET_LPC408X/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC408X/us_ticker.c rename to targets/TARGET_NXP/TARGET_LPC408X/us_ticker.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/PortNames.h b/targets/TARGET_NXP/TARGET_LPC43XX/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/PortNames.h rename to targets/TARGET_NXP/TARGET_LPC43XX/PortNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/README.txt b/targets/TARGET_NXP/TARGET_LPC43XX/README.txt similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/README.txt rename to targets/TARGET_NXP/TARGET_LPC43XX/README.txt diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4330/PeripheralNames.h b/targets/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4330/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4330/PeripheralNames.h rename to targets/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4330/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4330/PinNames.h b/targets/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4330/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4330/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4330/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4330/device.h b/targets/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4330/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4330/device.h rename to targets/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4330/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4337/PeripheralNames.h b/targets/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4337/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4337/PeripheralNames.h rename to targets/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4337/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4337/PinNames.h b/targets/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4337/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4337/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4337/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4337/device.h b/targets/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4337/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4337/device.h rename to targets/TARGET_NXP/TARGET_LPC43XX/TARGET_LPC4337/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/analogin_api.c b/targets/TARGET_NXP/TARGET_LPC43XX/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/analogin_api.c rename to targets/TARGET_NXP/TARGET_LPC43XX/analogin_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/analogout_api.c b/targets/TARGET_NXP/TARGET_LPC43XX/analogout_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/analogout_api.c rename to targets/TARGET_NXP/TARGET_LPC43XX/analogout_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/ethernet_api.c b/targets/TARGET_NXP/TARGET_LPC43XX/ethernet_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/ethernet_api.c rename to targets/TARGET_NXP/TARGET_LPC43XX/ethernet_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/gpio_api.c b/targets/TARGET_NXP/TARGET_LPC43XX/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/gpio_api.c rename to targets/TARGET_NXP/TARGET_LPC43XX/gpio_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/gpio_irq_api.c b/targets/TARGET_NXP/TARGET_LPC43XX/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/gpio_irq_api.c rename to targets/TARGET_NXP/TARGET_LPC43XX/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/gpio_object.h b/targets/TARGET_NXP/TARGET_LPC43XX/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/gpio_object.h rename to targets/TARGET_NXP/TARGET_LPC43XX/gpio_object.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/i2c_api.c b/targets/TARGET_NXP/TARGET_LPC43XX/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/i2c_api.c rename to targets/TARGET_NXP/TARGET_LPC43XX/i2c_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/objects.h b/targets/TARGET_NXP/TARGET_LPC43XX/objects.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/objects.h rename to targets/TARGET_NXP/TARGET_LPC43XX/objects.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/pinmap.c b/targets/TARGET_NXP/TARGET_LPC43XX/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/pinmap.c rename to targets/TARGET_NXP/TARGET_LPC43XX/pinmap.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/port_api.c b/targets/TARGET_NXP/TARGET_LPC43XX/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/port_api.c rename to targets/TARGET_NXP/TARGET_LPC43XX/port_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/pwmout_api.c b/targets/TARGET_NXP/TARGET_LPC43XX/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/pwmout_api.c rename to targets/TARGET_NXP/TARGET_LPC43XX/pwmout_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/rtc_api.c b/targets/TARGET_NXP/TARGET_LPC43XX/rtc_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/rtc_api.c rename to targets/TARGET_NXP/TARGET_LPC43XX/rtc_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/serial_api.c b/targets/TARGET_NXP/TARGET_LPC43XX/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/serial_api.c rename to targets/TARGET_NXP/TARGET_LPC43XX/serial_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/sleep.c b/targets/TARGET_NXP/TARGET_LPC43XX/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/sleep.c rename to targets/TARGET_NXP/TARGET_LPC43XX/sleep.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/spi_api.c b/targets/TARGET_NXP/TARGET_LPC43XX/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/spi_api.c rename to targets/TARGET_NXP/TARGET_LPC43XX/spi_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/us_ticker.c b/targets/TARGET_NXP/TARGET_LPC43XX/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC43XX/us_ticker.c rename to targets/TARGET_NXP/TARGET_LPC43XX/us_ticker.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC81X/PortNames.h b/targets/TARGET_NXP/TARGET_LPC81X/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC81X/PortNames.h rename to targets/TARGET_NXP/TARGET_LPC81X/PortNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/PeripheralNames.h b/targets/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/PeripheralNames.h rename to targets/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/PinNames.h b/targets/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/PeripheralNames.h b/targets/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/PeripheralNames.h rename to targets/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/PinNames.h b/targets/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/PeripheralNames.h b/targets/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/PeripheralNames.h rename to targets/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/PinNames.h b/targets/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC81X/device.h b/targets/TARGET_NXP/TARGET_LPC81X/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC81X/device.h rename to targets/TARGET_NXP/TARGET_LPC81X/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC81X/gpio_api.c b/targets/TARGET_NXP/TARGET_LPC81X/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC81X/gpio_api.c rename to targets/TARGET_NXP/TARGET_LPC81X/gpio_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC81X/gpio_irq_api.c b/targets/TARGET_NXP/TARGET_LPC81X/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC81X/gpio_irq_api.c rename to targets/TARGET_NXP/TARGET_LPC81X/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC81X/gpio_object.h b/targets/TARGET_NXP/TARGET_LPC81X/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC81X/gpio_object.h rename to targets/TARGET_NXP/TARGET_LPC81X/gpio_object.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC81X/i2c_api.c b/targets/TARGET_NXP/TARGET_LPC81X/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC81X/i2c_api.c rename to targets/TARGET_NXP/TARGET_LPC81X/i2c_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC81X/objects.h b/targets/TARGET_NXP/TARGET_LPC81X/objects.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC81X/objects.h rename to targets/TARGET_NXP/TARGET_LPC81X/objects.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC81X/pinmap.c b/targets/TARGET_NXP/TARGET_LPC81X/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC81X/pinmap.c rename to targets/TARGET_NXP/TARGET_LPC81X/pinmap.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC81X/pwmout_api.c b/targets/TARGET_NXP/TARGET_LPC81X/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC81X/pwmout_api.c rename to targets/TARGET_NXP/TARGET_LPC81X/pwmout_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC81X/serial_api.c b/targets/TARGET_NXP/TARGET_LPC81X/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC81X/serial_api.c rename to targets/TARGET_NXP/TARGET_LPC81X/serial_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC81X/sleep.c b/targets/TARGET_NXP/TARGET_LPC81X/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC81X/sleep.c rename to targets/TARGET_NXP/TARGET_LPC81X/sleep.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC81X/spi_api.c b/targets/TARGET_NXP/TARGET_LPC81X/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC81X/spi_api.c rename to targets/TARGET_NXP/TARGET_LPC81X/spi_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC81X/us_ticker.c b/targets/TARGET_NXP/TARGET_LPC81X/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC81X/us_ticker.c rename to targets/TARGET_NXP/TARGET_LPC81X/us_ticker.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/PortNames.h b/targets/TARGET_NXP/TARGET_LPC82X/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC82X/PortNames.h rename to targets/TARGET_NXP/TARGET_LPC82X/PortNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/PeripheralNames.h b/targets/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/PeripheralNames.h rename to targets/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/PinNames.h b/targets/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/device.h b/targets/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/device.h rename to targets/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/PeripheralNames.h b/targets/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/PeripheralNames.h rename to targets/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/PinNames.h b/targets/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/PinNames.h rename to targets/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/PinNames.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/device.h b/targets/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/device.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/device.h rename to targets/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/device.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/analogin_api.c b/targets/TARGET_NXP/TARGET_LPC82X/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC82X/analogin_api.c rename to targets/TARGET_NXP/TARGET_LPC82X/analogin_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/gpio_api.c b/targets/TARGET_NXP/TARGET_LPC82X/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC82X/gpio_api.c rename to targets/TARGET_NXP/TARGET_LPC82X/gpio_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/gpio_irq_api.c b/targets/TARGET_NXP/TARGET_LPC82X/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC82X/gpio_irq_api.c rename to targets/TARGET_NXP/TARGET_LPC82X/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/gpio_object.h b/targets/TARGET_NXP/TARGET_LPC82X/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC82X/gpio_object.h rename to targets/TARGET_NXP/TARGET_LPC82X/gpio_object.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/i2c_api.c b/targets/TARGET_NXP/TARGET_LPC82X/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC82X/i2c_api.c rename to targets/TARGET_NXP/TARGET_LPC82X/i2c_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/objects.h b/targets/TARGET_NXP/TARGET_LPC82X/objects.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC82X/objects.h rename to targets/TARGET_NXP/TARGET_LPC82X/objects.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/pinmap.c b/targets/TARGET_NXP/TARGET_LPC82X/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC82X/pinmap.c rename to targets/TARGET_NXP/TARGET_LPC82X/pinmap.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/pwmout_api.c b/targets/TARGET_NXP/TARGET_LPC82X/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC82X/pwmout_api.c rename to targets/TARGET_NXP/TARGET_LPC82X/pwmout_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/rom_i2c_8xx.h b/targets/TARGET_NXP/TARGET_LPC82X/rom_i2c_8xx.h similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC82X/rom_i2c_8xx.h rename to targets/TARGET_NXP/TARGET_LPC82X/rom_i2c_8xx.h diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/serial_api.c b/targets/TARGET_NXP/TARGET_LPC82X/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC82X/serial_api.c rename to targets/TARGET_NXP/TARGET_LPC82X/serial_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/sleep.c b/targets/TARGET_NXP/TARGET_LPC82X/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC82X/sleep.c rename to targets/TARGET_NXP/TARGET_LPC82X/sleep.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/spi_api.c b/targets/TARGET_NXP/TARGET_LPC82X/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC82X/spi_api.c rename to targets/TARGET_NXP/TARGET_LPC82X/spi_api.c diff --git a/hal/targets/hal/TARGET_NXP/TARGET_LPC82X/us_ticker.c b/targets/TARGET_NXP/TARGET_LPC82X/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_NXP/TARGET_LPC82X/us_ticker.c rename to targets/TARGET_NXP/TARGET_LPC82X/us_ticker.c diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/Pad.c b/targets/TARGET_ONSEMI/TARGET_NCS36510/Pad.c similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/Pad.c rename to targets/TARGET_ONSEMI/TARGET_NCS36510/Pad.c diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/PeripheralNames.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/PeripheralNames.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/PeripheralPins.c b/targets/TARGET_ONSEMI/TARGET_NCS36510/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/PeripheralPins.c rename to targets/TARGET_ONSEMI/TARGET_NCS36510/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/PeripheralPins.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/PeripheralPins.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/PinNames.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/PinNames.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/PinNames.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/PortNames.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/PortNames.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/PortNames.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/adc_sar.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/adc_sar.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/adc_sar.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/adc_sar.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/adc_sar_map.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/adc_sar_map.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/adc_sar_map.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/adc_sar_map.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/aes_map.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/aes_map.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/aes_map.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/aes_map.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/analogin_api.c b/targets/TARGET_ONSEMI/TARGET_NCS36510/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/analogin_api.c rename to targets/TARGET_ONSEMI/TARGET_NCS36510/analogin_api.c diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/architecture.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/architecture.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/architecture.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/architecture.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/assert_onsemi.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/assert_onsemi.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/assert_onsemi.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/assert_onsemi.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/char_driver.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/char_driver.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/char_driver.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/char_driver.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/clock.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/clock.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/clock.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/clock.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/clock_map.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/clock_map.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/clock_map.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/clock_map.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/crossbar.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/crossbar.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/crossbar.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/crossbar.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/crossbar_map.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/crossbar_map.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/crossbar_map.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/crossbar_map.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/device.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/device.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/device.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/device.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/dma_map.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/dma_map.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/dma_map.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/dma_map.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/error.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/error.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/error.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/error.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/exceptions.c b/targets/TARGET_ONSEMI/TARGET_NCS36510/exceptions.c similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/exceptions.c rename to targets/TARGET_ONSEMI/TARGET_NCS36510/exceptions.c diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/fib.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/fib.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/fib.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/fib.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/flash_map.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/flash_map.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/flash_map.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/flash_map.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/gpio.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/gpio.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/gpio.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/gpio.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/gpio_api.c b/targets/TARGET_ONSEMI/TARGET_NCS36510/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/gpio_api.c rename to targets/TARGET_ONSEMI/TARGET_NCS36510/gpio_api.c diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/gpio_irq_api.c b/targets/TARGET_ONSEMI/TARGET_NCS36510/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/gpio_irq_api.c rename to targets/TARGET_ONSEMI/TARGET_NCS36510/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/gpio_map.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/gpio_map.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/gpio_map.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/gpio_map.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/i2c.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/i2c.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/i2c.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/i2c.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/i2c_api.c b/targets/TARGET_ONSEMI/TARGET_NCS36510/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/i2c_api.c rename to targets/TARGET_ONSEMI/TARGET_NCS36510/i2c_api.c diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/i2c_ipc7208_map.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/i2c_ipc7208_map.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/i2c_ipc7208_map.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/i2c_ipc7208_map.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/macHw_map.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/macHw_map.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/macHw_map.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/macHw_map.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/macros.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/macros.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/macros.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/macros.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/memory_map.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/memory_map.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/memory_map.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/memory_map.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/mib.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/mib.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/mib.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/mib.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/ncs36510Init.c b/targets/TARGET_ONSEMI/TARGET_NCS36510/ncs36510Init.c similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/ncs36510Init.c rename to targets/TARGET_ONSEMI/TARGET_NCS36510/ncs36510Init.c diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/ncs36510Init.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/ncs36510Init.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/ncs36510Init.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/ncs36510Init.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/ncs36510_i2c.c b/targets/TARGET_ONSEMI/TARGET_NCS36510/ncs36510_i2c.c similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/ncs36510_i2c.c rename to targets/TARGET_ONSEMI/TARGET_NCS36510/ncs36510_i2c.c diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/ncs36510_lp_ticker_api.c b/targets/TARGET_ONSEMI/TARGET_NCS36510/ncs36510_lp_ticker_api.c similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/ncs36510_lp_ticker_api.c rename to targets/TARGET_ONSEMI/TARGET_NCS36510/ncs36510_lp_ticker_api.c diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/ncs36510_spi.c b/targets/TARGET_ONSEMI/TARGET_NCS36510/ncs36510_spi.c similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/ncs36510_spi.c rename to targets/TARGET_ONSEMI/TARGET_NCS36510/ncs36510_spi.c diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/ncs36510_us_ticker_api.c b/targets/TARGET_ONSEMI/TARGET_NCS36510/ncs36510_us_ticker_api.c similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/ncs36510_us_ticker_api.c rename to targets/TARGET_ONSEMI/TARGET_NCS36510/ncs36510_us_ticker_api.c diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/objects.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/objects.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/objects.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/objects.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/pad.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/pad.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/pad.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/pad.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/pad_map.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/pad_map.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/pad_map.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/pad_map.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/pinmap.c b/targets/TARGET_ONSEMI/TARGET_NCS36510/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/pinmap.c rename to targets/TARGET_ONSEMI/TARGET_NCS36510/pinmap.c diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/pmu_map.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/pmu_map.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/pmu_map.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/pmu_map.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/port_api.c b/targets/TARGET_ONSEMI/TARGET_NCS36510/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/port_api.c rename to targets/TARGET_ONSEMI/TARGET_NCS36510/port_api.c diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/pwm_map.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/pwm_map.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/pwm_map.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/pwm_map.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/pwmout_api.c b/targets/TARGET_ONSEMI/TARGET_NCS36510/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/pwmout_api.c rename to targets/TARGET_ONSEMI/TARGET_NCS36510/pwmout_api.c diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/random_map.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/random_map.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/random_map.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/random_map.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/reset_map.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/reset_map.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/reset_map.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/reset_map.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/rfAna.c b/targets/TARGET_ONSEMI/TARGET_NCS36510/rfAna.c similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/rfAna.c rename to targets/TARGET_ONSEMI/TARGET_NCS36510/rfAna.c diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/rfAna.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/rfAna.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/rfAna.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/rfAna.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/rfAna_map.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/rfAna_map.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/rfAna_map.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/rfAna_map.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/rtc.c b/targets/TARGET_ONSEMI/TARGET_NCS36510/rtc.c similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/rtc.c rename to targets/TARGET_ONSEMI/TARGET_NCS36510/rtc.c diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/rtc.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/rtc.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/rtc.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/rtc.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/rtc_api.c b/targets/TARGET_ONSEMI/TARGET_NCS36510/rtc_api.c similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/rtc_api.c rename to targets/TARGET_ONSEMI/TARGET_NCS36510/rtc_api.c diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/rtc_map.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/rtc_map.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/rtc_map.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/rtc_map.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/serial_api.c b/targets/TARGET_ONSEMI/TARGET_NCS36510/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/serial_api.c rename to targets/TARGET_ONSEMI/TARGET_NCS36510/serial_api.c diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/sleep.c b/targets/TARGET_ONSEMI/TARGET_NCS36510/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/sleep.c rename to targets/TARGET_ONSEMI/TARGET_NCS36510/sleep.c diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/sleep.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/sleep.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/sleep.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/sleep.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/sleep_api.c b/targets/TARGET_ONSEMI/TARGET_NCS36510/sleep_api.c similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/sleep_api.c rename to targets/TARGET_ONSEMI/TARGET_NCS36510/sleep_api.c diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/spi.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/spi.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/spi.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/spi.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/spi_api.c b/targets/TARGET_ONSEMI/TARGET_NCS36510/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/spi_api.c rename to targets/TARGET_ONSEMI/TARGET_NCS36510/spi_api.c diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/spi_ipc7207_map.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/spi_ipc7207_map.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/spi_ipc7207_map.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/spi_ipc7207_map.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/swversion.c b/targets/TARGET_ONSEMI/TARGET_NCS36510/swversion.c similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/swversion.c rename to targets/TARGET_ONSEMI/TARGET_NCS36510/swversion.c diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/sys.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/sys.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/sys.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/sys.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/target_config.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/target_config.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/target_config.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/target_config.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/test_map.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/test_map.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/test_map.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/test_map.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/ticker.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/ticker.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/ticker.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/ticker.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/timer.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/timer.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/timer.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/timer.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/timer_map.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/timer_map.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/timer_map.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/timer_map.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/trim_map.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/trim_map.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/trim_map.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/trim_map.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/types.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/types.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/types.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/types.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/uart.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/uart.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/uart.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/uart.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/uart_16c550.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/uart_16c550.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/uart_16c550.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/uart_16c550.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/uart_16c550_map.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/uart_16c550_map.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/uart_16c550_map.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/uart_16c550_map.h diff --git a/hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/wdt_map.h b/targets/TARGET_ONSEMI/TARGET_NCS36510/wdt_map.h similarity index 100% rename from hal/targets/hal/TARGET_ONSEMI/TARGET_NCS36510/wdt_map.h rename to targets/TARGET_ONSEMI/TARGET_NCS36510/wdt_map.h diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/PeripheralNames.h b/targets/TARGET_RENESAS/TARGET_RZ_A1H/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/PeripheralNames.h rename to targets/TARGET_RENESAS/TARGET_RZ_A1H/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/PinNames.h b/targets/TARGET_RENESAS/TARGET_RZ_A1H/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/PinNames.h rename to targets/TARGET_RENESAS/TARGET_RZ_A1H/PinNames.h diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/PortNames.h b/targets/TARGET_RENESAS/TARGET_RZ_A1H/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/PortNames.h rename to targets/TARGET_RENESAS/TARGET_RZ_A1H/PortNames.h diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/TARGET_MBED_MBRZA1H/reserved_pins.h b/targets/TARGET_RENESAS/TARGET_RZ_A1H/TARGET_MBED_MBRZA1H/reserved_pins.h similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/TARGET_MBED_MBRZA1H/reserved_pins.h rename to targets/TARGET_RENESAS/TARGET_RZ_A1H/TARGET_MBED_MBRZA1H/reserved_pins.h diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/analogin_api.c b/targets/TARGET_RENESAS/TARGET_RZ_A1H/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/analogin_api.c rename to targets/TARGET_RENESAS/TARGET_RZ_A1H/analogin_api.c diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/can_api.c b/targets/TARGET_RENESAS/TARGET_RZ_A1H/can_api.c similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/can_api.c rename to targets/TARGET_RENESAS/TARGET_RZ_A1H/can_api.c diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/device.h b/targets/TARGET_RENESAS/TARGET_RZ_A1H/device.h similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/device.h rename to targets/TARGET_RENESAS/TARGET_RZ_A1H/device.h diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/ethernet_api.c b/targets/TARGET_RENESAS/TARGET_RZ_A1H/ethernet_api.c similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/ethernet_api.c rename to targets/TARGET_RENESAS/TARGET_RZ_A1H/ethernet_api.c diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/ethernetext_api.h b/targets/TARGET_RENESAS/TARGET_RZ_A1H/ethernetext_api.h similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/ethernetext_api.h rename to targets/TARGET_RENESAS/TARGET_RZ_A1H/ethernetext_api.h diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/gpio_addrdefine.h b/targets/TARGET_RENESAS/TARGET_RZ_A1H/gpio_addrdefine.h similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/gpio_addrdefine.h rename to targets/TARGET_RENESAS/TARGET_RZ_A1H/gpio_addrdefine.h diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/gpio_api.c b/targets/TARGET_RENESAS/TARGET_RZ_A1H/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/gpio_api.c rename to targets/TARGET_RENESAS/TARGET_RZ_A1H/gpio_api.c diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/gpio_irq_api.c b/targets/TARGET_RENESAS/TARGET_RZ_A1H/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/gpio_irq_api.c rename to targets/TARGET_RENESAS/TARGET_RZ_A1H/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/gpio_object.h b/targets/TARGET_RENESAS/TARGET_RZ_A1H/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/gpio_object.h rename to targets/TARGET_RENESAS/TARGET_RZ_A1H/gpio_object.h diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/i2c_api.c b/targets/TARGET_RENESAS/TARGET_RZ_A1H/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/i2c_api.c rename to targets/TARGET_RENESAS/TARGET_RZ_A1H/i2c_api.c diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/objects.h b/targets/TARGET_RENESAS/TARGET_RZ_A1H/objects.h similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/objects.h rename to targets/TARGET_RENESAS/TARGET_RZ_A1H/objects.h diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/pinmap.c b/targets/TARGET_RENESAS/TARGET_RZ_A1H/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/pinmap.c rename to targets/TARGET_RENESAS/TARGET_RZ_A1H/pinmap.c diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/port_api.c b/targets/TARGET_RENESAS/TARGET_RZ_A1H/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/port_api.c rename to targets/TARGET_RENESAS/TARGET_RZ_A1H/port_api.c diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/pwmout_api.c b/targets/TARGET_RENESAS/TARGET_RZ_A1H/pwmout_api.c similarity index 98% rename from hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/pwmout_api.c rename to targets/TARGET_RENESAS/TARGET_RZ_A1H/pwmout_api.c index 2b7fc61e1a..6bcd519042 100644 --- a/hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/pwmout_api.c +++ b/targets/TARGET_RENESAS/TARGET_RZ_A1H/pwmout_api.c @@ -207,17 +207,11 @@ static int MAX_PERIOD[] = { 2000000, }; -typedef enum { - MODE_PWM = 0, - MODE_MTU2 -} PWMmode; - typedef enum { MTU2_PULSE = 0, MTU2_PERIOD } MTU2Signal; -static int pwm_mode = MODE_PWM; static uint16_t init_period_ch1 = 0; static uint16_t init_period_ch2 = 0; static uint16_t init_mtu2_period_ch[5] = {0}; @@ -234,7 +228,6 @@ void pwmout_init(pwmout_t* obj, PinName pin) { /* PWM by MTU2 */ int tmp_pwm; - pwm_mode = MODE_MTU2; // power on CPGSTBCR3 &= ~(CPG_STBCR3_BIT_MSTP33); @@ -269,7 +262,6 @@ void pwmout_init(pwmout_t* obj, PinName pin) { } } else { /* PWM */ - pwm_mode = MODE_PWM; // power on CPGSTBCR3 &= ~(CPG_STBCR3_BIT_MSTP30); @@ -306,7 +298,7 @@ void pwmout_write(pwmout_t* obj, float value) { uint32_t wk_cycle; uint16_t v; - if (pwm_mode == MODE_MTU2) { + if (obj->pwm >= MTU2_PWM_OFFSET) { /* PWM by MTU2 */ int tmp_pwm; @@ -347,7 +339,7 @@ float pwmout_read(pwmout_t* obj) { uint32_t wk_cycle; float value; - if (pwm_mode == MODE_MTU2) { + if (obj->pwm >= MTU2_PWM_OFFSET) { /* PWM by MTU2 */ uint32_t wk_pulse; int tmp_pwm; @@ -406,7 +398,7 @@ void pwmout_period_us(pwmout_t* obj, int us) { uint16_t wk_last_cycle; int max_us = 0; - if (pwm_mode == MODE_MTU2) { + if (obj->pwm >= MTU2_PWM_OFFSET) { /* PWM by MTU2 */ int tmp_pwm; uint16_t tmp_tgra; @@ -550,7 +542,7 @@ void pwmout_pulsewidth_ms(pwmout_t* obj, int ms) { void pwmout_pulsewidth_us(pwmout_t* obj, int us) { float value = 0; - if (pwm_mode == MODE_MTU2) { + if (obj->pwm >= MTU2_PWM_OFFSET) { /* PWM by MTU2 */ if (mtu2_period_ch[obj->ch] != 0) { value = (float)us / (float)mtu2_period_ch[obj->ch]; diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/rtc_api.c b/targets/TARGET_RENESAS/TARGET_RZ_A1H/rtc_api.c similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/rtc_api.c rename to targets/TARGET_RENESAS/TARGET_RZ_A1H/rtc_api.c diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/serial_api.c b/targets/TARGET_RENESAS/TARGET_RZ_A1H/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/serial_api.c rename to targets/TARGET_RENESAS/TARGET_RZ_A1H/serial_api.c diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/spi_api.c b/targets/TARGET_RENESAS/TARGET_RZ_A1H/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/spi_api.c rename to targets/TARGET_RENESAS/TARGET_RZ_A1H/spi_api.c diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/us_ticker.c b/targets/TARGET_RENESAS/TARGET_RZ_A1H/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/us_ticker.c rename to targets/TARGET_RENESAS/TARGET_RZ_A1H/us_ticker.c diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/PeripheralNames.h b/targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/PeripheralNames.h rename to targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/PinNames.h b/targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/PinNames.h rename to targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/PinNames.h diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/PortNames.h b/targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/PortNames.h rename to targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/PortNames.h diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/TARGET_MBED_VKRZA1H/reserved_pins.h b/targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/TARGET_MBED_VKRZA1H/reserved_pins.h similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/TARGET_MBED_VKRZA1H/reserved_pins.h rename to targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/TARGET_MBED_VKRZA1H/reserved_pins.h diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/analogin_api.c b/targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/analogin_api.c rename to targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/analogin_api.c diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/can_api.c b/targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/can_api.c similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/can_api.c rename to targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/can_api.c diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/device.h b/targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/device.h similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/device.h rename to targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/device.h diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/ethernet_api.c b/targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/ethernet_api.c similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/ethernet_api.c rename to targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/ethernet_api.c diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/ethernetext_api.h b/targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/ethernetext_api.h similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/ethernetext_api.h rename to targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/ethernetext_api.h diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/gpio_addrdefine.h b/targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/gpio_addrdefine.h similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/gpio_addrdefine.h rename to targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/gpio_addrdefine.h diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/gpio_api.c b/targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/gpio_api.c rename to targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/gpio_api.c diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/gpio_irq_api.c b/targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/gpio_irq_api.c rename to targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/gpio_object.h b/targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/gpio_object.h rename to targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/gpio_object.h diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/i2c_api.c b/targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/i2c_api.c rename to targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/i2c_api.c diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/objects.h b/targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/objects.h similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/objects.h rename to targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/objects.h diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/pinmap.c b/targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/pinmap.c rename to targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/pinmap.c diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/port_api.c b/targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/port_api.c rename to targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/port_api.c diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/pwmout_api.c b/targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/pwmout_api.c rename to targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/pwmout_api.c diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/rtc_api.c b/targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/rtc_api.c similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/rtc_api.c rename to targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/rtc_api.c diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/serial_api.c b/targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/serial_api.c rename to targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/serial_api.c diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/spi_api.c b/targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/spi_api.c rename to targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/spi_api.c diff --git a/hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/us_ticker.c b/targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_RENESAS/TARGET_VK_RZ_A1H/us_ticker.c rename to targets/TARGET_RENESAS/TARGET_VK_RZ_A1H/us_ticker.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/PeripheralPins.h b/targets/TARGET_STM/TARGET_STM32F0/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/PeripheralPins.h rename to targets/TARGET_STM/TARGET_STM32F0/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/PinNames.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/PortNames.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/objects.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/objects.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/PinNames.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/PortNames.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/objects.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/objects.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/PinNames.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/PortNames.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/objects.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/objects.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/PinNames.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/PortNames.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/objects.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/objects.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/PinNames.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/PortNames.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/objects.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/objects.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/PinNames.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/PortNames.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/objects.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/objects.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/PinNames.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/PortNames.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/objects.h b/targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/objects.h rename to targets/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/analogin_api.c b/targets/TARGET_STM/TARGET_STM32F0/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/analogin_api.c rename to targets/TARGET_STM/TARGET_STM32F0/analogin_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/analogout_api.c b/targets/TARGET_STM/TARGET_STM32F0/analogout_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/analogout_api.c rename to targets/TARGET_STM/TARGET_STM32F0/analogout_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/can_api.c b/targets/TARGET_STM/TARGET_STM32F0/can_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/can_api.c rename to targets/TARGET_STM/TARGET_STM32F0/can_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/common_objects.h b/targets/TARGET_STM/TARGET_STM32F0/common_objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/common_objects.h rename to targets/TARGET_STM/TARGET_STM32F0/common_objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/device.h b/targets/TARGET_STM/TARGET_STM32F0/device.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/device.h rename to targets/TARGET_STM/TARGET_STM32F0/device.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/gpio_api.c b/targets/TARGET_STM/TARGET_STM32F0/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/gpio_api.c rename to targets/TARGET_STM/TARGET_STM32F0/gpio_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/gpio_irq_api.c b/targets/TARGET_STM/TARGET_STM32F0/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/gpio_irq_api.c rename to targets/TARGET_STM/TARGET_STM32F0/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/gpio_object.h b/targets/TARGET_STM/TARGET_STM32F0/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/gpio_object.h rename to targets/TARGET_STM/TARGET_STM32F0/gpio_object.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/i2c_api.c b/targets/TARGET_STM/TARGET_STM32F0/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/i2c_api.c rename to targets/TARGET_STM/TARGET_STM32F0/i2c_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/lp_ticker.c b/targets/TARGET_STM/TARGET_STM32F0/lp_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/lp_ticker.c rename to targets/TARGET_STM/TARGET_STM32F0/lp_ticker.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/mbed_overrides.c b/targets/TARGET_STM/TARGET_STM32F0/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/mbed_overrides.c rename to targets/TARGET_STM/TARGET_STM32F0/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/pinmap.c b/targets/TARGET_STM/TARGET_STM32F0/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/pinmap.c rename to targets/TARGET_STM/TARGET_STM32F0/pinmap.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/port_api.c b/targets/TARGET_STM/TARGET_STM32F0/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/port_api.c rename to targets/TARGET_STM/TARGET_STM32F0/port_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/pwmout_api.c b/targets/TARGET_STM/TARGET_STM32F0/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/pwmout_api.c rename to targets/TARGET_STM/TARGET_STM32F0/pwmout_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/rtc_api.c b/targets/TARGET_STM/TARGET_STM32F0/rtc_api.c similarity index 98% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/rtc_api.c rename to targets/TARGET_STM/TARGET_STM32F0/rtc_api.c index bf0a38fca2..bf6724c297 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/rtc_api.c +++ b/targets/TARGET_STM/TARGET_STM32F0/rtc_api.c @@ -34,13 +34,13 @@ #include "mbed_error.h" -#if DEVICE_RTC_LSI +#if RTC_LSI static int rtc_inited = 0; #endif static RTC_HandleTypeDef RtcHandle; -#if DEVICE_RTC_LSI +#if RTC_LSI #define RTC_CLOCK LSI_VALUE #else #define RTC_CLOCK LSE_VALUE @@ -62,14 +62,14 @@ static RTC_HandleTypeDef RtcHandle; void rtc_init(void) { RCC_OscInitTypeDef RCC_OscInitStruct; -#if DEVICE_RTC_LSI +#if RTC_LSI if (rtc_inited) return; rtc_inited = 1; #endif RtcHandle.Instance = RTC; -#if !DEVICE_RTC_LSI +#if !RTC_LSI // Enable LSE Oscillator RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSE; RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; // Mandatory, otherwise the PLL is reconfigured! @@ -119,7 +119,7 @@ void rtc_init(void) { } #if DEVICE_LOWPOWERTIMER -#if DEVICE_RTC_LSI +#if RTC_LSI rtc_write(0); #else if (!rtc_isenabled()) { @@ -134,7 +134,7 @@ void rtc_init(void) { } void rtc_free(void) { -#if DEVICE_RTC_LSI +#if RTC_LSI // Enable Power clock __PWR_CLK_ENABLE(); @@ -157,13 +157,13 @@ void rtc_free(void) { RCC_OscInitStruct.LSEState = RCC_LSE_OFF; HAL_RCC_OscConfig(&RCC_OscInitStruct); -#if DEVICE_RTC_LSI +#if RTC_LSI rtc_inited = 0; #endif } int rtc_isenabled(void) { -#if DEVICE_RTC_LSI +#if RTC_LSI return rtc_inited; #else if ((RTC->ISR & RTC_ISR_INITS) == RTC_ISR_INITS) { diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/rtc_api_hal.h b/targets/TARGET_STM/TARGET_STM32F0/rtc_api_hal.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/rtc_api_hal.h rename to targets/TARGET_STM/TARGET_STM32F0/rtc_api_hal.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/serial_api.c b/targets/TARGET_STM/TARGET_STM32F0/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/serial_api.c rename to targets/TARGET_STM/TARGET_STM32F0/serial_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/sleep.c b/targets/TARGET_STM/TARGET_STM32F0/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/sleep.c rename to targets/TARGET_STM/TARGET_STM32F0/sleep.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/spi_api.c b/targets/TARGET_STM/TARGET_STM32F0/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/spi_api.c rename to targets/TARGET_STM/TARGET_STM32F0/spi_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F0/us_ticker.c b/targets/TARGET_STM/TARGET_STM32F0/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F0/us_ticker.c rename to targets/TARGET_STM/TARGET_STM32F0/us_ticker.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/PeripheralPins.h b/targets/TARGET_STM/TARGET_STM32F1/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/PeripheralPins.h rename to targets/TARGET_STM/TARGET_STM32F1/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/PinNames.h b/targets/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/PortNames.h b/targets/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/objects.h b/targets/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/objects.h rename to targets/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/PinNames.h b/targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/PortNames.h b/targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/objects.h b/targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/objects.h rename to targets/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/PinNames.h b/targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/PortNames.h b/targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/objects.h b/targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/objects.h rename to targets/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/analogin_api.c b/targets/TARGET_STM/TARGET_STM32F1/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/analogin_api.c rename to targets/TARGET_STM/TARGET_STM32F1/analogin_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/can_api.c b/targets/TARGET_STM/TARGET_STM32F1/can_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/can_api.c rename to targets/TARGET_STM/TARGET_STM32F1/can_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/common_objects.h b/targets/TARGET_STM/TARGET_STM32F1/common_objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/common_objects.h rename to targets/TARGET_STM/TARGET_STM32F1/common_objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/device.h b/targets/TARGET_STM/TARGET_STM32F1/device.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/device.h rename to targets/TARGET_STM/TARGET_STM32F1/device.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/gpio_api.c b/targets/TARGET_STM/TARGET_STM32F1/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/gpio_api.c rename to targets/TARGET_STM/TARGET_STM32F1/gpio_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/gpio_irq_api.c b/targets/TARGET_STM/TARGET_STM32F1/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/gpio_irq_api.c rename to targets/TARGET_STM/TARGET_STM32F1/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/gpio_object.h b/targets/TARGET_STM/TARGET_STM32F1/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/gpio_object.h rename to targets/TARGET_STM/TARGET_STM32F1/gpio_object.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/i2c_api.c b/targets/TARGET_STM/TARGET_STM32F1/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/i2c_api.c rename to targets/TARGET_STM/TARGET_STM32F1/i2c_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/mbed_overrides.c b/targets/TARGET_STM/TARGET_STM32F1/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/mbed_overrides.c rename to targets/TARGET_STM/TARGET_STM32F1/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/pinmap.c b/targets/TARGET_STM/TARGET_STM32F1/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/pinmap.c rename to targets/TARGET_STM/TARGET_STM32F1/pinmap.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/port_api.c b/targets/TARGET_STM/TARGET_STM32F1/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/port_api.c rename to targets/TARGET_STM/TARGET_STM32F1/port_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/pwmout_api.c b/targets/TARGET_STM/TARGET_STM32F1/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/pwmout_api.c rename to targets/TARGET_STM/TARGET_STM32F1/pwmout_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/rtc_api.c b/targets/TARGET_STM/TARGET_STM32F1/rtc_api.c similarity index 99% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/rtc_api.c rename to targets/TARGET_STM/TARGET_STM32F1/rtc_api.c index b5594504b6..82c527a058 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/rtc_api.c +++ b/targets/TARGET_STM/TARGET_STM32F1/rtc_api.c @@ -46,7 +46,7 @@ void rtc_init(void) RtcHandle.Instance = RTC; -#if !DEVICE_RTC_LSI +#if !RTC_LSI // Enable LSE Oscillator RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSE; RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; // Mandatory, otherwise the PLL is reconfigured! @@ -94,7 +94,7 @@ void rtc_init(void) void rtc_free(void) { -#if DEVICE_RTC_LSI +#if RTC_LSI // Enable Power clock __PWR_CLK_ENABLE(); diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/serial_api.c b/targets/TARGET_STM/TARGET_STM32F1/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/serial_api.c rename to targets/TARGET_STM/TARGET_STM32F1/serial_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/sleep.c b/targets/TARGET_STM/TARGET_STM32F1/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/sleep.c rename to targets/TARGET_STM/TARGET_STM32F1/sleep.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/spi_api.c b/targets/TARGET_STM/TARGET_STM32F1/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/spi_api.c rename to targets/TARGET_STM/TARGET_STM32F1/spi_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F1/us_ticker.c b/targets/TARGET_STM/TARGET_STM32F1/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F1/us_ticker.c rename to targets/TARGET_STM/TARGET_STM32F1/us_ticker.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F2/PeripheralPins.h b/targets/TARGET_STM/TARGET_STM32F2/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F2/PeripheralPins.h rename to targets/TARGET_STM/TARGET_STM32F2/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F2/PortNames.h b/targets/TARGET_STM/TARGET_STM32F2/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F2/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F2/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/PinNames.h b/targets/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F2/analogin_api.c b/targets/TARGET_STM/TARGET_STM32F2/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F2/analogin_api.c rename to targets/TARGET_STM/TARGET_STM32F2/analogin_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F2/analogout_api.c b/targets/TARGET_STM/TARGET_STM32F2/analogout_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F2/analogout_api.c rename to targets/TARGET_STM/TARGET_STM32F2/analogout_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F2/can_api.c b/targets/TARGET_STM/TARGET_STM32F2/can_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F2/can_api.c rename to targets/TARGET_STM/TARGET_STM32F2/can_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F2/device.h b/targets/TARGET_STM/TARGET_STM32F2/device.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F2/device.h rename to targets/TARGET_STM/TARGET_STM32F2/device.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F2/gpio_api.c b/targets/TARGET_STM/TARGET_STM32F2/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F2/gpio_api.c rename to targets/TARGET_STM/TARGET_STM32F2/gpio_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F2/gpio_irq_api.c b/targets/TARGET_STM/TARGET_STM32F2/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F2/gpio_irq_api.c rename to targets/TARGET_STM/TARGET_STM32F2/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F2/gpio_object.h b/targets/TARGET_STM/TARGET_STM32F2/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F2/gpio_object.h rename to targets/TARGET_STM/TARGET_STM32F2/gpio_object.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F2/i2c_api.c b/targets/TARGET_STM/TARGET_STM32F2/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F2/i2c_api.c rename to targets/TARGET_STM/TARGET_STM32F2/i2c_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F2/mbed_overrides.c b/targets/TARGET_STM/TARGET_STM32F2/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F2/mbed_overrides.c rename to targets/TARGET_STM/TARGET_STM32F2/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F2/objects.h b/targets/TARGET_STM/TARGET_STM32F2/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F2/objects.h rename to targets/TARGET_STM/TARGET_STM32F2/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F2/pinmap.c b/targets/TARGET_STM/TARGET_STM32F2/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F2/pinmap.c rename to targets/TARGET_STM/TARGET_STM32F2/pinmap.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F2/port_api.c b/targets/TARGET_STM/TARGET_STM32F2/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F2/port_api.c rename to targets/TARGET_STM/TARGET_STM32F2/port_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F2/pwmout_api.c b/targets/TARGET_STM/TARGET_STM32F2/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F2/pwmout_api.c rename to targets/TARGET_STM/TARGET_STM32F2/pwmout_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F2/rtc_api.c b/targets/TARGET_STM/TARGET_STM32F2/rtc_api.c similarity index 98% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F2/rtc_api.c rename to targets/TARGET_STM/TARGET_STM32F2/rtc_api.c index fadcfd89c7..563d5391e8 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F2/rtc_api.c +++ b/targets/TARGET_STM/TARGET_STM32F2/rtc_api.c @@ -33,7 +33,7 @@ #include "mbed_error.h" -#if DEVICE_RTC_LSI +#if RTC_LSI static int rtc_inited = 0; #endif @@ -44,13 +44,13 @@ void rtc_init(void) RCC_OscInitTypeDef RCC_OscInitStruct; uint32_t rtc_freq = 0; -#if DEVICE_RTC_LSI +#if RTC_LSI rtc_inited = 1; #endif RtcHandle.Instance = RTC; -#if !DEVICE_RTC_LSI +#if !RTC_LSI // Enable LSE Oscillator RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSE; RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; /* Mandatory, otherwise the PLL is reconfigured! */ @@ -106,7 +106,7 @@ void rtc_init(void) void rtc_free(void) { -#if DEVICE_RTC_LSI +#if RTC_LSI // Enable Power clock __PWR_CLK_ENABLE(); @@ -128,14 +128,14 @@ void rtc_free(void) RCC_OscInitStruct.LSIState = RCC_LSI_OFF; RCC_OscInitStruct.LSEState = RCC_LSE_OFF; HAL_RCC_OscConfig(&RCC_OscInitStruct); -#if DEVICE_RTC_LSI +#if RTC_LSI rtc_inited = 0; #endif } int rtc_isenabled(void) { -#if DEVICE_RTC_LSI +#if RTC_LSI return rtc_inited; #else if ((RTC->ISR & RTC_ISR_INITS) == RTC_ISR_INITS) { diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F2/serial_api.c b/targets/TARGET_STM/TARGET_STM32F2/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F2/serial_api.c rename to targets/TARGET_STM/TARGET_STM32F2/serial_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F2/sleep.c b/targets/TARGET_STM/TARGET_STM32F2/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F2/sleep.c rename to targets/TARGET_STM/TARGET_STM32F2/sleep.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F2/spi_api.c b/targets/TARGET_STM/TARGET_STM32F2/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F2/spi_api.c rename to targets/TARGET_STM/TARGET_STM32F2/spi_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F2/us_ticker.c b/targets/TARGET_STM/TARGET_STM32F2/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F2/us_ticker.c rename to targets/TARGET_STM/TARGET_STM32F2/us_ticker.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/PeripheralPins.h b/targets/TARGET_STM/TARGET_STM32F3/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/PeripheralPins.h rename to targets/TARGET_STM/TARGET_STM32F3/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/PinNames.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/PortNames.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/objects.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/objects.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/PinNames.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/PortNames.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/objects.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/objects.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/PinNames.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/PortNames.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/objects.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/objects.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/PinNames.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/PortNames.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/objects.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/objects.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/PinNames.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/PortNames.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/objects.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/objects.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/PinNames.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/PortNames.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/device.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/device.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/device.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/device.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/objects.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/objects.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/PinNames.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/PortNames.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/objects.h b/targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/objects.h rename to targets/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/analogin_api.c b/targets/TARGET_STM/TARGET_STM32F3/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/analogin_api.c rename to targets/TARGET_STM/TARGET_STM32F3/analogin_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/analogout_api.c b/targets/TARGET_STM/TARGET_STM32F3/analogout_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/analogout_api.c rename to targets/TARGET_STM/TARGET_STM32F3/analogout_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/can_api.c b/targets/TARGET_STM/TARGET_STM32F3/can_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/can_api.c rename to targets/TARGET_STM/TARGET_STM32F3/can_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/common_objects.h b/targets/TARGET_STM/TARGET_STM32F3/common_objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/common_objects.h rename to targets/TARGET_STM/TARGET_STM32F3/common_objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/device.h b/targets/TARGET_STM/TARGET_STM32F3/device.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/device.h rename to targets/TARGET_STM/TARGET_STM32F3/device.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/gpio_api.c b/targets/TARGET_STM/TARGET_STM32F3/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/gpio_api.c rename to targets/TARGET_STM/TARGET_STM32F3/gpio_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/gpio_irq_api.c b/targets/TARGET_STM/TARGET_STM32F3/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/gpio_irq_api.c rename to targets/TARGET_STM/TARGET_STM32F3/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/gpio_object.h b/targets/TARGET_STM/TARGET_STM32F3/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/gpio_object.h rename to targets/TARGET_STM/TARGET_STM32F3/gpio_object.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/i2c_api.c b/targets/TARGET_STM/TARGET_STM32F3/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/i2c_api.c rename to targets/TARGET_STM/TARGET_STM32F3/i2c_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/lp_ticker.c b/targets/TARGET_STM/TARGET_STM32F3/lp_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/lp_ticker.c rename to targets/TARGET_STM/TARGET_STM32F3/lp_ticker.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/mbed_overrides.c b/targets/TARGET_STM/TARGET_STM32F3/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/mbed_overrides.c rename to targets/TARGET_STM/TARGET_STM32F3/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/pinmap.c b/targets/TARGET_STM/TARGET_STM32F3/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/pinmap.c rename to targets/TARGET_STM/TARGET_STM32F3/pinmap.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/port_api.c b/targets/TARGET_STM/TARGET_STM32F3/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/port_api.c rename to targets/TARGET_STM/TARGET_STM32F3/port_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/pwmout_api.c b/targets/TARGET_STM/TARGET_STM32F3/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/pwmout_api.c rename to targets/TARGET_STM/TARGET_STM32F3/pwmout_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/rtc_api.c b/targets/TARGET_STM/TARGET_STM32F3/rtc_api.c similarity index 98% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/rtc_api.c rename to targets/TARGET_STM/TARGET_STM32F3/rtc_api.c index 08f51f7a57..c82d6f1ec0 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/rtc_api.c +++ b/targets/TARGET_STM/TARGET_STM32F3/rtc_api.c @@ -34,13 +34,13 @@ #include "mbed_error.h" -#if DEVICE_RTC_LSI +#if RTC_LSI static int rtc_inited = 0; #endif static RTC_HandleTypeDef RtcHandle; -#if DEVICE_RTC_LSI +#if RTC_LSI #define RTC_CLOCK LSI_VALUE #else #define RTC_CLOCK LSE_VALUE @@ -63,14 +63,14 @@ void rtc_init(void) { RCC_OscInitTypeDef RCC_OscInitStruct; -#if DEVICE_RTC_LSI +#if RTC_LSI if (rtc_inited) return; rtc_inited = 1; #endif RtcHandle.Instance = RTC; -#if !DEVICE_RTC_LSI +#if !RTC_LSI // Enable LSE Oscillator RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSE; RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; /* Mandatory, otherwise the PLL is reconfigured! */ @@ -119,7 +119,7 @@ void rtc_init(void) } #if DEVICE_LOWPOWERTIMER -#if DEVICE_RTC_LSI +#if RTC_LSI rtc_write(0); #else if (!rtc_isenabled()) { @@ -135,7 +135,7 @@ void rtc_init(void) void rtc_free(void) { -#if DEVICE_RTC_LSI +#if RTC_LSI // Enable Power clock __PWR_CLK_ENABLE(); @@ -158,14 +158,14 @@ void rtc_free(void) RCC_OscInitStruct.LSEState = RCC_LSE_OFF; HAL_RCC_OscConfig(&RCC_OscInitStruct); -#if DEVICE_RTC_LSI +#if RTC_LSI rtc_inited = 0; #endif } int rtc_isenabled(void) { -#if DEVICE_RTC_LSI +#if RTC_LSI return rtc_inited; #else if ((RTC->ISR & RTC_ISR_INITS) == RTC_ISR_INITS) return 1; diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/rtc_api_hal.h b/targets/TARGET_STM/TARGET_STM32F3/rtc_api_hal.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/rtc_api_hal.h rename to targets/TARGET_STM/TARGET_STM32F3/rtc_api_hal.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/serial_api.c b/targets/TARGET_STM/TARGET_STM32F3/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/serial_api.c rename to targets/TARGET_STM/TARGET_STM32F3/serial_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/sleep.c b/targets/TARGET_STM/TARGET_STM32F3/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/sleep.c rename to targets/TARGET_STM/TARGET_STM32F3/sleep.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/spi_api.c b/targets/TARGET_STM/TARGET_STM32F3/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/spi_api.c rename to targets/TARGET_STM/TARGET_STM32F3/spi_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F3/us_ticker.c b/targets/TARGET_STM/TARGET_STM32F3/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F3/us_ticker.c rename to targets/TARGET_STM/TARGET_STM32F3/us_ticker.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/PeripheralPins.h b/targets/TARGET_STM/TARGET_STM32F4/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/PeripheralPins.h rename to targets/TARGET_STM/TARGET_STM32F4/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/PinNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/PortNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/objects.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/objects.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_ARCH_MAX/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/PinNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/PortNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/objects.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/objects.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/PinNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/PortNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/objects.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/objects.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F407VG/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F407VG/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F407VG/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F407VG/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F407VG/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F407VG/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F407VG/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F407VG/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F407VG/PinNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F407VG/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F407VG/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F407VG/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F407VG/PortNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F407VG/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F407VG/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F407VG/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F407VG/objects.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F407VG/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F407VG/objects.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F407VG/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/PinNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/PortNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/objects.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/objects.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/PinNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/PortNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/objects.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/objects.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/PinNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/PortNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/objects.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/objects.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/PinNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/PortNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/objects.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/objects.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/PinNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/PortNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/objects.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/objects.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/PinNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/PortNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/objects.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/objects.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/PinNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/PortNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/objects.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/objects.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/PinNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/PortNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/objects.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/objects.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/PinNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/PortNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/objects.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/objects.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/PinNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/PortNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/objects.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/objects.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/PinNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/PortNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/objects.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/objects.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/PinNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/PortNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/objects.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/objects.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/PinNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/PortNames.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/objects.h b/targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/objects.h rename to targets/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/analogin_api.c b/targets/TARGET_STM/TARGET_STM32F4/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/analogin_api.c rename to targets/TARGET_STM/TARGET_STM32F4/analogin_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/analogout_api.c b/targets/TARGET_STM/TARGET_STM32F4/analogout_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/analogout_api.c rename to targets/TARGET_STM/TARGET_STM32F4/analogout_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/can_api.c b/targets/TARGET_STM/TARGET_STM32F4/can_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/can_api.c rename to targets/TARGET_STM/TARGET_STM32F4/can_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/common_objects.h b/targets/TARGET_STM/TARGET_STM32F4/common_objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/common_objects.h rename to targets/TARGET_STM/TARGET_STM32F4/common_objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/device.h b/targets/TARGET_STM/TARGET_STM32F4/device.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/device.h rename to targets/TARGET_STM/TARGET_STM32F4/device.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/gpio_api.c b/targets/TARGET_STM/TARGET_STM32F4/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/gpio_api.c rename to targets/TARGET_STM/TARGET_STM32F4/gpio_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/gpio_irq_api.c b/targets/TARGET_STM/TARGET_STM32F4/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/gpio_irq_api.c rename to targets/TARGET_STM/TARGET_STM32F4/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/gpio_object.h b/targets/TARGET_STM/TARGET_STM32F4/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/gpio_object.h rename to targets/TARGET_STM/TARGET_STM32F4/gpio_object.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/i2c_api.c b/targets/TARGET_STM/TARGET_STM32F4/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/i2c_api.c rename to targets/TARGET_STM/TARGET_STM32F4/i2c_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/lp_ticker.c b/targets/TARGET_STM/TARGET_STM32F4/lp_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/lp_ticker.c rename to targets/TARGET_STM/TARGET_STM32F4/lp_ticker.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/mbed_overrides.c b/targets/TARGET_STM/TARGET_STM32F4/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/mbed_overrides.c rename to targets/TARGET_STM/TARGET_STM32F4/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/pinmap.c b/targets/TARGET_STM/TARGET_STM32F4/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/pinmap.c rename to targets/TARGET_STM/TARGET_STM32F4/pinmap.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/port_api.c b/targets/TARGET_STM/TARGET_STM32F4/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/port_api.c rename to targets/TARGET_STM/TARGET_STM32F4/port_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/pwmout_api.c b/targets/TARGET_STM/TARGET_STM32F4/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/pwmout_api.c rename to targets/TARGET_STM/TARGET_STM32F4/pwmout_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/rtc_api.c b/targets/TARGET_STM/TARGET_STM32F4/rtc_api.c similarity index 98% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/rtc_api.c rename to targets/TARGET_STM/TARGET_STM32F4/rtc_api.c index 6770b78767..6e126d0ce2 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/rtc_api.c +++ b/targets/TARGET_STM/TARGET_STM32F4/rtc_api.c @@ -34,13 +34,13 @@ #include "mbed_error.h" -#if DEVICE_RTC_LSI +#if RTC_LSI static int rtc_inited = 0; #endif static RTC_HandleTypeDef RtcHandle; -#if DEVICE_RTC_LSI +#if RTC_LSI #define RTC_CLOCK LSI_VALUE #else #define RTC_CLOCK LSE_VALUE @@ -63,14 +63,14 @@ void rtc_init(void) { RCC_OscInitTypeDef RCC_OscInitStruct; -#if DEVICE_RTC_LSI +#if RTC_LSI if (rtc_inited) return; rtc_inited = 1; #endif RtcHandle.Instance = RTC; -#if !DEVICE_RTC_LSI +#if !RTC_LSI // Enable LSE Oscillator RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSE; RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; /* Mandatory, otherwise the PLL is reconfigured! */ @@ -121,7 +121,7 @@ void rtc_init(void) } #if DEVICE_LOWPOWERTIMER -#if DEVICE_RTC_LSI +#if RTC_LSI rtc_write(0); #else if (!rtc_isenabled()) { @@ -137,7 +137,7 @@ void rtc_init(void) void rtc_free(void) { -#if DEVICE_RTC_LSI +#if RTC_LSI // Enable Power clock __PWR_CLK_ENABLE(); @@ -160,14 +160,14 @@ void rtc_free(void) RCC_OscInitStruct.LSEState = RCC_LSE_OFF; HAL_RCC_OscConfig(&RCC_OscInitStruct); -#if DEVICE_RTC_LSI +#if RTC_LSI rtc_inited = 0; #endif } int rtc_isenabled(void) { -#if DEVICE_RTC_LSI +#if RTC_LSI return rtc_inited; #else if ((RTC->ISR & RTC_ISR_INITS) == RTC_ISR_INITS) return 1; diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/rtc_api_hal.h b/targets/TARGET_STM/TARGET_STM32F4/rtc_api_hal.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/rtc_api_hal.h rename to targets/TARGET_STM/TARGET_STM32F4/rtc_api_hal.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/serial_api.c b/targets/TARGET_STM/TARGET_STM32F4/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/serial_api.c rename to targets/TARGET_STM/TARGET_STM32F4/serial_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/sleep.c b/targets/TARGET_STM/TARGET_STM32F4/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/sleep.c rename to targets/TARGET_STM/TARGET_STM32F4/sleep.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/spi_api.c b/targets/TARGET_STM/TARGET_STM32F4/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/spi_api.c rename to targets/TARGET_STM/TARGET_STM32F4/spi_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/trng_api.c b/targets/TARGET_STM/TARGET_STM32F4/trng_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/trng_api.c rename to targets/TARGET_STM/TARGET_STM32F4/trng_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F4/us_ticker.c b/targets/TARGET_STM/TARGET_STM32F4/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F4/us_ticker.c rename to targets/TARGET_STM/TARGET_STM32F4/us_ticker.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/PeripheralPins.h b/targets/TARGET_STM/TARGET_STM32F7/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/PeripheralPins.h rename to targets/TARGET_STM/TARGET_STM32F7/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/PinNames.h b/targets/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/PortNames.h b/targets/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/objects.h b/targets/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/objects.h rename to targets/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/PinNames.h b/targets/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/PortNames.h b/targets/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/device.h b/targets/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/device.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/device.h rename to targets/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/device.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/objects.h b/targets/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/objects.h rename to targets/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/PinNames.h b/targets/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/PortNames.h b/targets/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/objects.h b/targets/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/objects.h rename to targets/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/PinNames.h b/targets/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/PinNames.h rename to targets/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/PortNames.h b/targets/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/PortNames.h rename to targets/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/objects.h b/targets/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/objects.h rename to targets/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/analogin_api.c b/targets/TARGET_STM/TARGET_STM32F7/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/analogin_api.c rename to targets/TARGET_STM/TARGET_STM32F7/analogin_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/analogout_api.c b/targets/TARGET_STM/TARGET_STM32F7/analogout_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/analogout_api.c rename to targets/TARGET_STM/TARGET_STM32F7/analogout_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/can_api.c b/targets/TARGET_STM/TARGET_STM32F7/can_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/can_api.c rename to targets/TARGET_STM/TARGET_STM32F7/can_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/common_objects.h b/targets/TARGET_STM/TARGET_STM32F7/common_objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/common_objects.h rename to targets/TARGET_STM/TARGET_STM32F7/common_objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/device.h b/targets/TARGET_STM/TARGET_STM32F7/device.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/device.h rename to targets/TARGET_STM/TARGET_STM32F7/device.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/gpio_api.c b/targets/TARGET_STM/TARGET_STM32F7/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/gpio_api.c rename to targets/TARGET_STM/TARGET_STM32F7/gpio_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/gpio_irq_api.c b/targets/TARGET_STM/TARGET_STM32F7/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/gpio_irq_api.c rename to targets/TARGET_STM/TARGET_STM32F7/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/gpio_object.h b/targets/TARGET_STM/TARGET_STM32F7/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/gpio_object.h rename to targets/TARGET_STM/TARGET_STM32F7/gpio_object.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/i2c_api.c b/targets/TARGET_STM/TARGET_STM32F7/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/i2c_api.c rename to targets/TARGET_STM/TARGET_STM32F7/i2c_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/lp_ticker.c b/targets/TARGET_STM/TARGET_STM32F7/lp_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/lp_ticker.c rename to targets/TARGET_STM/TARGET_STM32F7/lp_ticker.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/mbed_overrides.c b/targets/TARGET_STM/TARGET_STM32F7/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/mbed_overrides.c rename to targets/TARGET_STM/TARGET_STM32F7/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/pinmap.c b/targets/TARGET_STM/TARGET_STM32F7/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/pinmap.c rename to targets/TARGET_STM/TARGET_STM32F7/pinmap.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/port_api.c b/targets/TARGET_STM/TARGET_STM32F7/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/port_api.c rename to targets/TARGET_STM/TARGET_STM32F7/port_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/pwmout_api.c b/targets/TARGET_STM/TARGET_STM32F7/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/pwmout_api.c rename to targets/TARGET_STM/TARGET_STM32F7/pwmout_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/rtc_api.c b/targets/TARGET_STM/TARGET_STM32F7/rtc_api.c similarity index 98% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/rtc_api.c rename to targets/TARGET_STM/TARGET_STM32F7/rtc_api.c index d4783aa750..40e7ede75f 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/rtc_api.c +++ b/targets/TARGET_STM/TARGET_STM32F7/rtc_api.c @@ -34,13 +34,13 @@ #include "mbed_error.h" -#if DEVICE_RTC_LSI +#if RTC_LSI static int rtc_inited = 0; #endif static RTC_HandleTypeDef RtcHandle; -#if DEVICE_RTC_LSI +#if RTC_LSI #define RTC_CLOCK LSI_VALUE #else #define RTC_CLOCK LSE_VALUE @@ -63,14 +63,14 @@ void rtc_init(void) { RCC_OscInitTypeDef RCC_OscInitStruct; -#if DEVICE_RTC_LSI +#if RTC_LSI if (rtc_inited) return; rtc_inited = 1; #endif RtcHandle.Instance = RTC; -#if !DEVICE_RTC_LSI +#if !RTC_LSI // Enable LSE Oscillator RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSE; RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; // Mandatory, otherwise the PLL is reconfigured! @@ -122,7 +122,7 @@ void rtc_init(void) } #if DEVICE_LOWPOWERTIMER -#if DEVICE_RTC_LSI +#if RTC_LSI rtc_write(0); #else if (!rtc_isenabled()) { @@ -138,7 +138,7 @@ void rtc_init(void) void rtc_free(void) { -#if DEVICE_RTC_LSI +#if RTC_LSI // Enable Power clock __PWR_CLK_ENABLE(); @@ -161,14 +161,14 @@ void rtc_free(void) RCC_OscInitStruct.LSEState = RCC_LSE_OFF; HAL_RCC_OscConfig(&RCC_OscInitStruct); -#if DEVICE_RTC_LSI +#if RTC_LSI rtc_inited = 0; #endif } int rtc_isenabled(void) { -#if DEVICE_RTC_LSI +#if RTC_LSI return rtc_inited; #else if ((RTC->ISR & RTC_ISR_INITS) == RTC_ISR_INITS) { diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/rtc_api_hal.h b/targets/TARGET_STM/TARGET_STM32F7/rtc_api_hal.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/rtc_api_hal.h rename to targets/TARGET_STM/TARGET_STM32F7/rtc_api_hal.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/serial_api.c b/targets/TARGET_STM/TARGET_STM32F7/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/serial_api.c rename to targets/TARGET_STM/TARGET_STM32F7/serial_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/sleep.c b/targets/TARGET_STM/TARGET_STM32F7/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/sleep.c rename to targets/TARGET_STM/TARGET_STM32F7/sleep.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/spi_api.c b/targets/TARGET_STM/TARGET_STM32F7/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/spi_api.c rename to targets/TARGET_STM/TARGET_STM32F7/spi_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/trng_api.c b/targets/TARGET_STM/TARGET_STM32F7/trng_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/trng_api.c rename to targets/TARGET_STM/TARGET_STM32F7/trng_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32F7/us_ticker.c b/targets/TARGET_STM/TARGET_STM32F7/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32F7/us_ticker.c rename to targets/TARGET_STM/TARGET_STM32F7/us_ticker.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/PeripheralPins.h b/targets/TARGET_STM/TARGET_STM32L0/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/PeripheralPins.h rename to targets/TARGET_STM/TARGET_STM32L0/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/PinNames.h b/targets/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/PinNames.h rename to targets/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/PortNames.h b/targets/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/PortNames.h rename to targets/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/objects.h b/targets/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/objects.h rename to targets/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/PinNames.h b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/PinNames.h rename to targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/PortNames.h b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/PortNames.h rename to targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/objects.h b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/objects.h rename to targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/PinNames.h b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/PinNames.h rename to targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/PortNames.h b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/PortNames.h rename to targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/objects.h b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/objects.h rename to targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/PinNames.h b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/PinNames.h rename to targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/PortNames.h b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/PortNames.h rename to targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/objects.h b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/objects.h rename to targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/PinNames.h b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/PinNames.h rename to targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/PortNames.h b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/PortNames.h rename to targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/objects.h b/targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/objects.h rename to targets/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/analogin_api.c b/targets/TARGET_STM/TARGET_STM32L0/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/analogin_api.c rename to targets/TARGET_STM/TARGET_STM32L0/analogin_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/analogout_api.c b/targets/TARGET_STM/TARGET_STM32L0/analogout_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/analogout_api.c rename to targets/TARGET_STM/TARGET_STM32L0/analogout_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/common_objects.h b/targets/TARGET_STM/TARGET_STM32L0/common_objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/common_objects.h rename to targets/TARGET_STM/TARGET_STM32L0/common_objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/device.h b/targets/TARGET_STM/TARGET_STM32L0/device.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/device.h rename to targets/TARGET_STM/TARGET_STM32L0/device.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/gpio_api.c b/targets/TARGET_STM/TARGET_STM32L0/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/gpio_api.c rename to targets/TARGET_STM/TARGET_STM32L0/gpio_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/gpio_irq_api.c b/targets/TARGET_STM/TARGET_STM32L0/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/gpio_irq_api.c rename to targets/TARGET_STM/TARGET_STM32L0/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/gpio_object.h b/targets/TARGET_STM/TARGET_STM32L0/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/gpio_object.h rename to targets/TARGET_STM/TARGET_STM32L0/gpio_object.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/i2c_api.c b/targets/TARGET_STM/TARGET_STM32L0/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/i2c_api.c rename to targets/TARGET_STM/TARGET_STM32L0/i2c_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/lp_ticker.c b/targets/TARGET_STM/TARGET_STM32L0/lp_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/lp_ticker.c rename to targets/TARGET_STM/TARGET_STM32L0/lp_ticker.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/mbed_overrides.c b/targets/TARGET_STM/TARGET_STM32L0/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/mbed_overrides.c rename to targets/TARGET_STM/TARGET_STM32L0/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/pinmap.c b/targets/TARGET_STM/TARGET_STM32L0/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/pinmap.c rename to targets/TARGET_STM/TARGET_STM32L0/pinmap.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/port_api.c b/targets/TARGET_STM/TARGET_STM32L0/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/port_api.c rename to targets/TARGET_STM/TARGET_STM32L0/port_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/pwmout_api.c b/targets/TARGET_STM/TARGET_STM32L0/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/pwmout_api.c rename to targets/TARGET_STM/TARGET_STM32L0/pwmout_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/rtc_api.c b/targets/TARGET_STM/TARGET_STM32L0/rtc_api.c similarity index 98% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/rtc_api.c rename to targets/TARGET_STM/TARGET_STM32L0/rtc_api.c index b8f2f445a8..82f4c055e0 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/rtc_api.c +++ b/targets/TARGET_STM/TARGET_STM32L0/rtc_api.c @@ -34,13 +34,13 @@ #include "mbed_error.h" -#if DEVICE_RTC_LSI +#if RTC_LSI static int rtc_inited = 0; #endif static RTC_HandleTypeDef RtcHandle; -#if DEVICE_RTC_LSI +#if RTC_LSI #define RTC_CLOCK LSI_VALUE #else #define RTC_CLOCK LSE_VALUE @@ -64,7 +64,7 @@ void rtc_init(void) RCC_OscInitTypeDef RCC_OscInitStruct; RCC_PeriphCLKInitTypeDef PeriphClkInitStruct; -#if DEVICE_RTC_LSI +#if RTC_LSI if (rtc_inited) return; rtc_inited = 1; #endif @@ -79,7 +79,7 @@ void rtc_init(void) // Enable access to Backup domain HAL_PWR_EnableBkUpAccess(); -#if !DEVICE_RTC_LSI +#if !RTC_LSI // Enable LSE Oscillator RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSE; RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; // Mandatory, otherwise the PLL is reconfigured! @@ -129,7 +129,7 @@ void rtc_init(void) } #if DEVICE_LOWPOWERTIMER -#if DEVICE_RTC_LSI +#if RTC_LSI rtc_write(0); #else if (!rtc_isenabled()) { @@ -145,7 +145,7 @@ void rtc_init(void) void rtc_free(void) { -#if DEVICE_RTC_LSI +#if RTC_LSI // Enable Power clock __PWR_CLK_ENABLE(); @@ -168,14 +168,14 @@ void rtc_free(void) RCC_OscInitStruct.LSEState = RCC_LSE_OFF; HAL_RCC_OscConfig(&RCC_OscInitStruct); -#if DEVICE_RTC_LSI +#if RTC_LSI rtc_inited = 0; #endif } int rtc_isenabled(void) { -#if DEVICE_RTC_LSI +#if RTC_LSI return rtc_inited; #else if ((RTC->ISR & RTC_ISR_INITS) == RTC_ISR_INITS) { diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/rtc_api_hal.h b/targets/TARGET_STM/TARGET_STM32L0/rtc_api_hal.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/rtc_api_hal.h rename to targets/TARGET_STM/TARGET_STM32L0/rtc_api_hal.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/serial_api.c b/targets/TARGET_STM/TARGET_STM32L0/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/serial_api.c rename to targets/TARGET_STM/TARGET_STM32L0/serial_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/sleep.c b/targets/TARGET_STM/TARGET_STM32L0/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/sleep.c rename to targets/TARGET_STM/TARGET_STM32L0/sleep.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/spi_api.c b/targets/TARGET_STM/TARGET_STM32L0/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/spi_api.c rename to targets/TARGET_STM/TARGET_STM32L0/spi_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L0/us_ticker.c b/targets/TARGET_STM/TARGET_STM32L0/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L0/us_ticker.c rename to targets/TARGET_STM/TARGET_STM32L0/us_ticker.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/PeripheralPins.h b/targets/TARGET_STM/TARGET_STM32L1/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/PeripheralPins.h rename to targets/TARGET_STM/TARGET_STM32L1/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/PinNames.h b/targets/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/PinNames.h rename to targets/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/PortNames.h b/targets/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/PortNames.h rename to targets/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/objects.h b/targets/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/objects.h rename to targets/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/PinNames.h b/targets/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/PinNames.h rename to targets/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/PortNames.h b/targets/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/PortNames.h rename to targets/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/objects.h b/targets/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/objects.h rename to targets/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/PinNames.h b/targets/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/PinNames.h rename to targets/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/PortNames.h b/targets/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/PortNames.h rename to targets/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/objects.h b/targets/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/objects.h rename to targets/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/PinNames.h b/targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/PinNames.h rename to targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/PortNames.h b/targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/PortNames.h rename to targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/device.h b/targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/device.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/device.h rename to targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/device.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/objects.h b/targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/objects.h rename to targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/xdot_eeprom.c b/targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/xdot_eeprom.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/xdot_eeprom.c rename to targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/xdot_eeprom.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/xdot_eeprom.h b/targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/xdot_eeprom.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/xdot_eeprom.h rename to targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/xdot_eeprom.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/xdot_low_power.c b/targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/xdot_low_power.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/xdot_low_power.c rename to targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/xdot_low_power.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/xdot_low_power.h b/targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/xdot_low_power.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/xdot_low_power.h rename to targets/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/xdot_low_power.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/analogin_api.c b/targets/TARGET_STM/TARGET_STM32L1/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/analogin_api.c rename to targets/TARGET_STM/TARGET_STM32L1/analogin_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/analogout_api.c b/targets/TARGET_STM/TARGET_STM32L1/analogout_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/analogout_api.c rename to targets/TARGET_STM/TARGET_STM32L1/analogout_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/common_objects.h b/targets/TARGET_STM/TARGET_STM32L1/common_objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/common_objects.h rename to targets/TARGET_STM/TARGET_STM32L1/common_objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/device.h b/targets/TARGET_STM/TARGET_STM32L1/device.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/device.h rename to targets/TARGET_STM/TARGET_STM32L1/device.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/gpio_api.c b/targets/TARGET_STM/TARGET_STM32L1/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/gpio_api.c rename to targets/TARGET_STM/TARGET_STM32L1/gpio_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/gpio_irq_api.c b/targets/TARGET_STM/TARGET_STM32L1/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/gpio_irq_api.c rename to targets/TARGET_STM/TARGET_STM32L1/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/gpio_object.h b/targets/TARGET_STM/TARGET_STM32L1/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/gpio_object.h rename to targets/TARGET_STM/TARGET_STM32L1/gpio_object.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/i2c_api.c b/targets/TARGET_STM/TARGET_STM32L1/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/i2c_api.c rename to targets/TARGET_STM/TARGET_STM32L1/i2c_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/lp_ticker.c b/targets/TARGET_STM/TARGET_STM32L1/lp_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/lp_ticker.c rename to targets/TARGET_STM/TARGET_STM32L1/lp_ticker.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/mbed_overrides.c b/targets/TARGET_STM/TARGET_STM32L1/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/mbed_overrides.c rename to targets/TARGET_STM/TARGET_STM32L1/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/pinmap.c b/targets/TARGET_STM/TARGET_STM32L1/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/pinmap.c rename to targets/TARGET_STM/TARGET_STM32L1/pinmap.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/port_api.c b/targets/TARGET_STM/TARGET_STM32L1/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/port_api.c rename to targets/TARGET_STM/TARGET_STM32L1/port_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/pwmout_api.c b/targets/TARGET_STM/TARGET_STM32L1/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/pwmout_api.c rename to targets/TARGET_STM/TARGET_STM32L1/pwmout_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/rtc_api.c b/targets/TARGET_STM/TARGET_STM32L1/rtc_api.c similarity index 98% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/rtc_api.c rename to targets/TARGET_STM/TARGET_STM32L1/rtc_api.c index 3bcde9b584..612ff04c73 100755 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/rtc_api.c +++ b/targets/TARGET_STM/TARGET_STM32L1/rtc_api.c @@ -34,13 +34,13 @@ #include "mbed_error.h" -#if DEVICE_RTC_LSI +#if RTC_LSI static int rtc_inited = 0; #endif static RTC_HandleTypeDef RtcHandle; -#if DEVICE_RTC_LSI +#if RTC_LSI #define RTC_CLOCK LSI_VALUE #else #define RTC_CLOCK LSE_VALUE @@ -63,14 +63,14 @@ void rtc_init(void) { RCC_OscInitTypeDef RCC_OscInitStruct; -#if DEVICE_RTC_LSI +#if RTC_LSI if (rtc_inited) return; rtc_inited = 1; #endif RtcHandle.Instance = RTC; -#if !DEVICE_RTC_LSI +#if !RTC_LSI // Enable LSE Oscillator RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSI | RCC_OSCILLATORTYPE_LSE; RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; // Mandatory, otherwise the PLL is reconfigured! @@ -128,7 +128,7 @@ void rtc_init(void) } #if DEVICE_LOWPOWERTIMER -#if DEVICE_RTC_LSI +#if RTC_LSI rtc_write(0); #else if (!rtc_isenabled()) { @@ -144,7 +144,7 @@ void rtc_init(void) void rtc_free(void) { -#if DEVICE_RTC_LSI +#if RTC_LSI // Enable Power clock __PWR_CLK_ENABLE(); @@ -167,14 +167,14 @@ void rtc_free(void) RCC_OscInitStruct.LSEState = RCC_LSE_OFF; HAL_RCC_OscConfig(&RCC_OscInitStruct); -#if DEVICE_RTC_LSI +#if RTC_LSI rtc_inited = 0; #endif } int rtc_isenabled(void) { -#if DEVICE_RTC_LSI +#if RTC_LSI return rtc_inited; #else if ((RTC->ISR & RTC_ISR_INITS) == RTC_ISR_INITS) { diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/rtc_api_hal.h b/targets/TARGET_STM/TARGET_STM32L1/rtc_api_hal.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/rtc_api_hal.h rename to targets/TARGET_STM/TARGET_STM32L1/rtc_api_hal.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/serial_api.c b/targets/TARGET_STM/TARGET_STM32L1/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/serial_api.c rename to targets/TARGET_STM/TARGET_STM32L1/serial_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/sleep.c b/targets/TARGET_STM/TARGET_STM32L1/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/sleep.c rename to targets/TARGET_STM/TARGET_STM32L1/sleep.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/spi_api.c b/targets/TARGET_STM/TARGET_STM32L1/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/spi_api.c rename to targets/TARGET_STM/TARGET_STM32L1/spi_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L1/us_ticker.c b/targets/TARGET_STM/TARGET_STM32L1/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L1/us_ticker.c rename to targets/TARGET_STM/TARGET_STM32L1/us_ticker.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/PeripheralPins.h b/targets/TARGET_STM/TARGET_STM32L4/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/PeripheralPins.h rename to targets/TARGET_STM/TARGET_STM32L4/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/PinNames.h b/targets/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/PinNames.h rename to targets/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/PortNames.h b/targets/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/PortNames.h rename to targets/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/objects.h b/targets/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/objects.h rename to targets/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/PinNames.h b/targets/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/PinNames.h rename to targets/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/PortNames.h b/targets/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/PortNames.h rename to targets/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/objects.h b/targets/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/objects.h rename to targets/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/PeripheralNames.h b/targets/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/PeripheralNames.h rename to targets/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/PeripheralPins.c b/targets/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/PeripheralPins.c rename to targets/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/PinNames.h b/targets/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/PinNames.h rename to targets/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/PinNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/PortNames.h b/targets/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/PortNames.h rename to targets/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/PortNames.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/objects.h b/targets/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/objects.h rename to targets/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/analogin_api.c b/targets/TARGET_STM/TARGET_STM32L4/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/analogin_api.c rename to targets/TARGET_STM/TARGET_STM32L4/analogin_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/analogout_api.c b/targets/TARGET_STM/TARGET_STM32L4/analogout_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/analogout_api.c rename to targets/TARGET_STM/TARGET_STM32L4/analogout_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/can_api.c b/targets/TARGET_STM/TARGET_STM32L4/can_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/can_api.c rename to targets/TARGET_STM/TARGET_STM32L4/can_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/common_objects.h b/targets/TARGET_STM/TARGET_STM32L4/common_objects.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/common_objects.h rename to targets/TARGET_STM/TARGET_STM32L4/common_objects.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/device.h b/targets/TARGET_STM/TARGET_STM32L4/device.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/device.h rename to targets/TARGET_STM/TARGET_STM32L4/device.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/gpio_api.c b/targets/TARGET_STM/TARGET_STM32L4/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/gpio_api.c rename to targets/TARGET_STM/TARGET_STM32L4/gpio_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/gpio_irq_api.c b/targets/TARGET_STM/TARGET_STM32L4/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/gpio_irq_api.c rename to targets/TARGET_STM/TARGET_STM32L4/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/gpio_object.h b/targets/TARGET_STM/TARGET_STM32L4/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/gpio_object.h rename to targets/TARGET_STM/TARGET_STM32L4/gpio_object.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/i2c_api.c b/targets/TARGET_STM/TARGET_STM32L4/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/i2c_api.c rename to targets/TARGET_STM/TARGET_STM32L4/i2c_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/lp_ticker.c b/targets/TARGET_STM/TARGET_STM32L4/lp_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/lp_ticker.c rename to targets/TARGET_STM/TARGET_STM32L4/lp_ticker.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/mbed_overrides.c b/targets/TARGET_STM/TARGET_STM32L4/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/mbed_overrides.c rename to targets/TARGET_STM/TARGET_STM32L4/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/pinmap.c b/targets/TARGET_STM/TARGET_STM32L4/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/pinmap.c rename to targets/TARGET_STM/TARGET_STM32L4/pinmap.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/port_api.c b/targets/TARGET_STM/TARGET_STM32L4/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/port_api.c rename to targets/TARGET_STM/TARGET_STM32L4/port_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/pwmout_api.c b/targets/TARGET_STM/TARGET_STM32L4/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/pwmout_api.c rename to targets/TARGET_STM/TARGET_STM32L4/pwmout_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/rtc_api.c b/targets/TARGET_STM/TARGET_STM32L4/rtc_api.c similarity index 98% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/rtc_api.c rename to targets/TARGET_STM/TARGET_STM32L4/rtc_api.c index 2581c236cd..c34d806f71 100644 --- a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/rtc_api.c +++ b/targets/TARGET_STM/TARGET_STM32L4/rtc_api.c @@ -34,13 +34,13 @@ #include "mbed_error.h" -#if DEVICE_RTC_LSI +#if RTC_LSI static int rtc_inited = 0; #endif static RTC_HandleTypeDef RtcHandle; -#if DEVICE_RTC_LSI +#if RTC_LSI #define RTC_CLOCK LSI_VALUE #else #define RTC_CLOCK LSE_VALUE @@ -64,14 +64,14 @@ void rtc_init(void) RCC_OscInitTypeDef RCC_OscInitStruct = {0}; RCC_PeriphCLKInitTypeDef PeriphClkInitStruct = {0}; -#if DEVICE_RTC_LSI +#if RTC_LSI if (rtc_inited) return; rtc_inited = 1; #endif RtcHandle.Instance = RTC; -#if !DEVICE_RTC_LSI +#if !RTC_LSI // Enable LSE Oscillator RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_LSI | RCC_OSCILLATORTYPE_LSE; RCC_OscInitStruct.PLL.PLLState = RCC_PLL_NONE; // Mandatory, otherwise the PLL is reconfigured! @@ -130,7 +130,7 @@ void rtc_init(void) } #if DEVICE_LOWPOWERTIMER -#if DEVICE_RTC_LSI +#if RTC_LSI rtc_write(0); #else if (!rtc_isenabled()) { @@ -146,7 +146,7 @@ void rtc_init(void) void rtc_free(void) { -#if DEVICE_RTC_LSI +#if RTC_LSI // Enable Power clock __HAL_RCC_PWR_CLK_ENABLE(); @@ -169,14 +169,14 @@ void rtc_free(void) RCC_OscInitStruct.LSEState = RCC_LSE_OFF; HAL_RCC_OscConfig(&RCC_OscInitStruct); -#if DEVICE_RTC_LSI +#if RTC_LSI rtc_inited = 0; #endif } int rtc_isenabled(void) { -#if DEVICE_RTC_LSI +#if RTC_LSI return rtc_inited; #else if ((RTC->ISR & RTC_ISR_INITS) == RTC_ISR_INITS) { diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/rtc_api_hal.h b/targets/TARGET_STM/TARGET_STM32L4/rtc_api_hal.h similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/rtc_api_hal.h rename to targets/TARGET_STM/TARGET_STM32L4/rtc_api_hal.h diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/serial_api.c b/targets/TARGET_STM/TARGET_STM32L4/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/serial_api.c rename to targets/TARGET_STM/TARGET_STM32L4/serial_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/sleep.c b/targets/TARGET_STM/TARGET_STM32L4/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/sleep.c rename to targets/TARGET_STM/TARGET_STM32L4/sleep.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/spi_api.c b/targets/TARGET_STM/TARGET_STM32L4/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/spi_api.c rename to targets/TARGET_STM/TARGET_STM32L4/spi_api.c diff --git a/hal/targets/hal/TARGET_STM/TARGET_STM32L4/us_ticker.c b/targets/TARGET_STM/TARGET_STM32L4/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_STM/TARGET_STM32L4/us_ticker.c rename to targets/TARGET_STM/TARGET_STM32L4/us_ticker.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/Modules.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/Modules.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/Modules.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/Modules.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/PeripheralNames.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/PeripheralNames.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/PeripheralPins.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/PeripheralPins.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/PeripheralPins.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/PeripheralPins.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/PinNames.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/PinNames.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/PinNames.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/PortNames.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/PortNames.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/PortNames.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/device.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/device.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/device.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/device.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/device_peripherals.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/device_peripherals.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/device_peripherals.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/device_peripherals.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/Modules.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/Modules.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/Modules.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/Modules.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/PeripheralNames.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/PeripheralNames.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/PeripheralPins.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/PeripheralPins.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/PeripheralPins.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/PeripheralPins.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/PinNames.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/PinNames.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/PinNames.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/PortNames.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/PortNames.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/PortNames.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/device.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/device.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/device.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/device.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/device_peripherals.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/device_peripherals.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/device_peripherals.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/device_peripherals.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/Modules.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/Modules.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/Modules.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/Modules.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/PeripheralNames.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/PeripheralNames.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/PeripheralPins.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/PeripheralPins.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/PeripheralPins.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/PeripheralPins.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/PinNames.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/PinNames.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/PinNames.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/PortNames.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/PortNames.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/PortNames.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/device.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/device.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/device.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/device.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/device_peripherals.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/device_peripherals.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/device_peripherals.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/device_peripherals.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/Modules.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/Modules.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/Modules.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/Modules.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/PeripheralNames.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/PeripheralNames.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/PeripheralPins.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/PeripheralPins.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/PeripheralPins.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/PeripheralPins.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/PinNames.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/PinNames.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/PinNames.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/PortNames.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/PortNames.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/PortNames.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/device.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/device.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/device.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/device.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/device_peripherals.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/device_peripherals.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/device_peripherals.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/device_peripherals.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/Modules.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/Modules.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/Modules.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/Modules.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/PeripheralNames.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/PeripheralNames.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/PeripheralPins.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/PeripheralPins.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/PeripheralPins.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/PeripheralPins.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/PinNames.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/PinNames.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/PinNames.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/PortNames.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/PortNames.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/PortNames.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/device.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/device.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/device.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/device.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/device_peripherals.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/device_peripherals.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/device_peripherals.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/device_peripherals.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/Modules.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/Modules.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/Modules.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/Modules.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/PeripheralNames.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/PeripheralNames.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/PeripheralPins.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/PeripheralPins.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/PeripheralPins.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/PeripheralPins.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/PinNames.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/PinNames.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/PinNames.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/PortNames.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/PortNames.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/PortNames.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/device.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/device.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/device.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/device.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/device_peripherals.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/device_peripherals.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/device_peripherals.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/device_peripherals.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TESTS/.mbedignore b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TESTS/.mbedignore similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TESTS/.mbedignore rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TESTS/.mbedignore diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TESTS/spi/basic-spi/main.cpp b/targets/TARGET_Silicon_Labs/TARGET_EFM32/TESTS/spi/basic-spi/main.cpp similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/TESTS/spi/basic-spi/main.cpp rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/TESTS/spi/basic-spi/main.cpp diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/analogin_api.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/analogin_api.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/analogin_api.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/analogout_api.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/analogout_api.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/analogout_api.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/analogout_api.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/clocking.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/clocking.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/clocking.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/clocking.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/dma_api.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/dma_api.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/dma_api.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/dma_api.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/dma_api_HAL.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/dma_api_HAL.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/dma_api_HAL.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/dma_api_HAL.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/Changes_emlib.txt b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/Changes_emlib.txt similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/Changes_emlib.txt rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/Changes_emlib.txt diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/ReadMe_emlib.txt b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/ReadMe_emlib.txt similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/ReadMe_emlib.txt rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/ReadMe_emlib.txt diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_acmp.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_acmp.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_acmp.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_acmp.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_adc.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_adc.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_adc.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_adc.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_aes.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_aes.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_aes.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_aes.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_assert.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_assert.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_assert.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_assert.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_bitband.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_bitband.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_bitband.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_bitband.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_burtc.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_burtc.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_burtc.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_burtc.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_bus.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_bus.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_bus.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_bus.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_chip.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_chip.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_chip.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_chip.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_cmu.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_cmu.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_cmu.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_cmu.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_common.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_common.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_common.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_common.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_crc.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_crc.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_crc.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_crc.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_cryotimer.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_cryotimer.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_cryotimer.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_cryotimer.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_crypto.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_crypto.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_crypto.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_crypto.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_dac.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_dac.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_dac.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_dac.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_dbg.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_dbg.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_dbg.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_dbg.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_dma.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_dma.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_dma.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_dma.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_ebi.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_ebi.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_ebi.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_ebi.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_emu.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_emu.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_emu.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_emu.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_gpio.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_gpio.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_gpio.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_gpio.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_i2c.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_i2c.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_i2c.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_i2c.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_idac.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_idac.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_idac.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_idac.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_int.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_int.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_int.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_int.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_lcd.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_lcd.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_lcd.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_lcd.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_ldma.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_ldma.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_ldma.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_ldma.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_lesense.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_lesense.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_lesense.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_lesense.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_letimer.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_letimer.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_letimer.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_letimer.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_leuart.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_leuart.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_leuart.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_leuart.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_mpu.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_mpu.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_mpu.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_mpu.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_msc.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_msc.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_msc.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_msc.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_opamp.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_opamp.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_opamp.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_opamp.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_part.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_part.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_part.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_part.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_pcnt.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_pcnt.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_pcnt.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_pcnt.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_prs.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_prs.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_prs.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_prs.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_rmu.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_rmu.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_rmu.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_rmu.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_rtc.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_rtc.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_rtc.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_rtc.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_rtcc.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_rtcc.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_rtcc.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_rtcc.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_system.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_system.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_system.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_system.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_timer.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_timer.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_timer.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_timer.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_usart.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_usart.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_usart.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_usart.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_vcmp.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_vcmp.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_vcmp.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_vcmp.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_version.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_version.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_version.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_version.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_wdog.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_wdog.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_wdog.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/inc/em_wdog.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_acmp.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_acmp.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_acmp.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_acmp.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_adc.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_adc.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_adc.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_adc.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_aes.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_aes.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_aes.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_aes.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_assert.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_assert.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_assert.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_assert.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_burtc.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_burtc.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_burtc.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_burtc.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_cmu.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_cmu.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_cmu.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_cmu.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_crc.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_crc.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_crc.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_crc.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_cryotimer.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_cryotimer.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_cryotimer.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_cryotimer.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_crypto.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_crypto.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_crypto.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_crypto.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_dac.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_dac.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_dac.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_dac.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_dbg.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_dbg.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_dbg.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_dbg.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_dma.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_dma.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_dma.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_dma.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_ebi.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_ebi.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_ebi.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_ebi.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_emu.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_emu.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_emu.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_emu.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_gpio.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_gpio.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_gpio.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_gpio.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_i2c.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_i2c.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_i2c.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_i2c.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_idac.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_idac.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_idac.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_idac.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_int.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_int.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_int.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_int.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_lcd.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_lcd.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_lcd.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_lcd.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_ldma.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_ldma.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_ldma.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_ldma.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_lesense.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_lesense.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_lesense.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_lesense.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_letimer.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_letimer.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_letimer.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_letimer.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_leuart.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_leuart.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_leuart.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_leuart.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_mpu.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_mpu.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_mpu.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_mpu.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_msc.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_msc.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_msc.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_msc.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_opamp.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_opamp.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_opamp.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_opamp.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_pcnt.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_pcnt.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_pcnt.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_pcnt.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_prs.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_prs.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_prs.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_prs.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_rmu.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_rmu.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_rmu.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_rmu.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_rtc.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_rtc.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_rtc.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_rtc.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_rtcc.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_rtcc.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_rtcc.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_rtcc.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_system.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_system.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_system.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_system.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_timer.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_timer.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_timer.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_timer.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_usart.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_usart.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_usart.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_usart.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_vcmp.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_vcmp.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_vcmp.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_vcmp.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_wdog.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_wdog.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_wdog.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/emlib/src/em_wdog.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/error.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/error.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/error.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/error.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/gpio_api.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/gpio_api.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/gpio_api.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/gpio_irq_api.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/gpio_irq_api.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/i2c_api.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/i2c_api.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/i2c_api.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/lp_ticker.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/lp_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/lp_ticker.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/lp_ticker.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/mbed_overrides.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/mbed_overrides.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/objects.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/objects.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/objects.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/objects.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/pinmap.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/pinmap.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/pinmap.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/pinmap_function.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/pinmap_function.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/pinmap_function.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/pinmap_function.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/pinmap_function.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/pinmap_function.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/pinmap_function.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/pinmap_function.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/port_api.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/port_api.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/port_api.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/pwmout_api.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/pwmout_api.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/pwmout_api.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/rtc_api.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/rtc_api.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/rtc_api.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/rtc_api.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/rtc_api_HAL.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/rtc_api_HAL.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/rtc_api_HAL.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/rtc_api_HAL.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/serial_api.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/serial_api.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/serial_api.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/serial_api_HAL.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/serial_api_HAL.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/serial_api_HAL.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/serial_api_HAL.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/sleep.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/sleep.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/sleep.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/sleepmodes.h b/targets/TARGET_Silicon_Labs/TARGET_EFM32/sleepmodes.h similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/sleepmodes.h rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/sleepmodes.h diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/spi_api.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/spi_api.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/spi_api.c diff --git a/hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/us_ticker.c b/targets/TARGET_Silicon_Labs/TARGET_EFM32/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_Silicon_Labs/TARGET_EFM32/us_ticker.c rename to targets/TARGET_Silicon_Labs/TARGET_EFM32/us_ticker.c diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/PeripheralNames.h b/targets/TARGET_WIZNET/TARGET_W7500x/PeripheralNames.h similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/PeripheralNames.h rename to targets/TARGET_WIZNET/TARGET_W7500x/PeripheralNames.h diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/PeripheralPins.h b/targets/TARGET_WIZNET/TARGET_W7500x/PeripheralPins.h similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/PeripheralPins.h rename to targets/TARGET_WIZNET/TARGET_W7500x/PeripheralPins.h diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/PortNames.h b/targets/TARGET_WIZNET/TARGET_W7500x/PortNames.h similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/PortNames.h rename to targets/TARGET_WIZNET/TARGET_W7500x/PortNames.h diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/PeripheralPins.c b/targets/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/PeripheralPins.c rename to targets/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/PinNames.h b/targets/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/PinNames.h rename to targets/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/PinNames.h diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/device.h b/targets/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/device.h similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/device.h rename to targets/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/device.h diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/PeripheralPins.c b/targets/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/PeripheralPins.c rename to targets/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/PinNames.h b/targets/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/PinNames.h rename to targets/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/PinNames.h diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/device.h b/targets/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/device.h similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/device.h rename to targets/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/device.h diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/PeripheralPins.c b/targets/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/PeripheralPins.c similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/PeripheralPins.c rename to targets/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/PeripheralPins.c diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/PinNames.h b/targets/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/PinNames.h similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/PinNames.h rename to targets/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/PinNames.h diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/device.h b/targets/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/device.h similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/device.h rename to targets/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/device.h diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_adc.c b/targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_adc.c similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_adc.c rename to targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_adc.c diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_adc.h b/targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_adc.h similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_adc.h rename to targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_adc.h diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_conf.h b/targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_conf.h similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_conf.h rename to targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_conf.h diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_crg.c b/targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_crg.c similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_crg.c rename to targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_crg.c diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_crg.h b/targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_crg.h similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_crg.h rename to targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_crg.h diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_dualtimer.c b/targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_dualtimer.c similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_dualtimer.c rename to targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_dualtimer.c diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_dualtimer.h b/targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_dualtimer.h similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_dualtimer.h rename to targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_dualtimer.h diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_exti.c b/targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_exti.c similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_exti.c rename to targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_exti.c diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_exti.h b/targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_exti.h similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_exti.h rename to targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_exti.h diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_gpio.c b/targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_gpio.c similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_gpio.c rename to targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_gpio.c diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_gpio.h b/targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_gpio.h similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_gpio.h rename to targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_gpio.h diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_i2c.c b/targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_i2c.c similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_i2c.c rename to targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_i2c.c diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_i2c.h b/targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_i2c.h similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_i2c.h rename to targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_i2c.h diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_pwm.c b/targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_pwm.c similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_pwm.c rename to targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_pwm.c diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_pwm.h b/targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_pwm.h similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_pwm.h rename to targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_pwm.h diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_uart.c b/targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_uart.c similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_uart.c rename to targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_uart.c diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_uart.h b/targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_uart.h similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_uart.h rename to targets/TARGET_WIZNET/TARGET_W7500x/W7500x_Peripheral_Library/W7500x_uart.h diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/analogin_api.c b/targets/TARGET_WIZNET/TARGET_W7500x/analogin_api.c similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/analogin_api.c rename to targets/TARGET_WIZNET/TARGET_W7500x/analogin_api.c diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/gpio_api.c b/targets/TARGET_WIZNET/TARGET_W7500x/gpio_api.c similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/gpio_api.c rename to targets/TARGET_WIZNET/TARGET_W7500x/gpio_api.c diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/gpio_irq_api.c b/targets/TARGET_WIZNET/TARGET_W7500x/gpio_irq_api.c similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/gpio_irq_api.c rename to targets/TARGET_WIZNET/TARGET_W7500x/gpio_irq_api.c diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/gpio_object.h b/targets/TARGET_WIZNET/TARGET_W7500x/gpio_object.h similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/gpio_object.h rename to targets/TARGET_WIZNET/TARGET_W7500x/gpio_object.h diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/i2c_api.c b/targets/TARGET_WIZNET/TARGET_W7500x/i2c_api.c similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/i2c_api.c rename to targets/TARGET_WIZNET/TARGET_W7500x/i2c_api.c diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/mbed_overrides.c b/targets/TARGET_WIZNET/TARGET_W7500x/mbed_overrides.c similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/mbed_overrides.c rename to targets/TARGET_WIZNET/TARGET_W7500x/mbed_overrides.c diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/objects.h b/targets/TARGET_WIZNET/TARGET_W7500x/objects.h similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/objects.h rename to targets/TARGET_WIZNET/TARGET_W7500x/objects.h diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/pinmap.c b/targets/TARGET_WIZNET/TARGET_W7500x/pinmap.c similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/pinmap.c rename to targets/TARGET_WIZNET/TARGET_W7500x/pinmap.c diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/port_api.c b/targets/TARGET_WIZNET/TARGET_W7500x/port_api.c similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/port_api.c rename to targets/TARGET_WIZNET/TARGET_W7500x/port_api.c diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/pwmout_api.c b/targets/TARGET_WIZNET/TARGET_W7500x/pwmout_api.c similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/pwmout_api.c rename to targets/TARGET_WIZNET/TARGET_W7500x/pwmout_api.c diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/rtc_api.c b/targets/TARGET_WIZNET/TARGET_W7500x/rtc_api.c similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/rtc_api.c rename to targets/TARGET_WIZNET/TARGET_W7500x/rtc_api.c diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/serial_api.c b/targets/TARGET_WIZNET/TARGET_W7500x/serial_api.c similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/serial_api.c rename to targets/TARGET_WIZNET/TARGET_W7500x/serial_api.c diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/sleep.c b/targets/TARGET_WIZNET/TARGET_W7500x/sleep.c similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/sleep.c rename to targets/TARGET_WIZNET/TARGET_W7500x/sleep.c diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/spi_api.c b/targets/TARGET_WIZNET/TARGET_W7500x/spi_api.c similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/spi_api.c rename to targets/TARGET_WIZNET/TARGET_W7500x/spi_api.c diff --git a/hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/us_ticker.c b/targets/TARGET_WIZNET/TARGET_W7500x/us_ticker.c similarity index 100% rename from hal/targets/hal/TARGET_WIZNET/TARGET_W7500x/us_ticker.c rename to targets/TARGET_WIZNET/TARGET_W7500x/us_ticker.c diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/CMSDK_BEETLE.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/CMSDK_BEETLE.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/CMSDK_BEETLE.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/CMSDK_BEETLE.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/BEETLE.sct b/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/BEETLE.sct similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/BEETLE.sct rename to targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/BEETLE.sct diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/startup_BEETLE.s b/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/startup_BEETLE.s similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/startup_BEETLE.s rename to targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/startup_BEETLE.s diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/BEETLE.ld b/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/BEETLE.ld similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/BEETLE.ld rename to targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/BEETLE.ld diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/startup_BEETLE.S b/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/startup_BEETLE.S similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/startup_BEETLE.S rename to targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_GCC_ARM/startup_BEETLE.S diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/BEETLE.icf b/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/BEETLE.icf similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/BEETLE.icf rename to targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/BEETLE.icf diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/startup_BEETLE.s b/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/startup_BEETLE.s similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/startup_BEETLE.s rename to targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/TOOLCHAIN_IAR/startup_BEETLE.s diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/apb_dualtimer.c b/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/apb_dualtimer.c similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/apb_dualtimer.c rename to targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/apb_dualtimer.c diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/apb_dualtimer.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/apb_dualtimer.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/apb_dualtimer.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/apb_dualtimer.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/apb_timer.c b/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/apb_timer.c similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/apb_timer.c rename to targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/apb_timer.c diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/apb_timer.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/apb_timer.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/apb_timer.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/apb_timer.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/cmsis.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/cmsis.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/cmsis.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/cmsis_nvic.c b/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/cmsis_nvic.c rename to targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/cmsis_nvic.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/cmsis_nvic.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/eflash_api.c b/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/eflash_api.c similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/eflash_api.c rename to targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/eflash_api.c diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/eflash_api.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/eflash_api.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/eflash_api.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/eflash_api.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/fcache_api.c b/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/fcache_api.c similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/fcache_api.c rename to targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/fcache_api.c diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/fcache_api.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/fcache_api.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/fcache_api.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/fcache_api.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/system_CMSDK_BEETLE.c b/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/system_CMSDK_BEETLE.c similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/system_CMSDK_BEETLE.c rename to targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/system_CMSDK_BEETLE.c diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/system_CMSDK_BEETLE.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/system_CMSDK_BEETLE.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/system_CMSDK_BEETLE.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/system_CMSDK_BEETLE.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/system_core_beetle.c b/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/system_core_beetle.c similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/system_core_beetle.c rename to targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/system_core_beetle.c diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/system_core_beetle.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/system_core_beetle.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/system_core_beetle.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/system_core_beetle.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/system_core_version.c b/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/system_core_version.c similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/system_core_version.c rename to targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/system_core_version.c diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/system_core_version.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/system_core_version.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/system_core_version.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/system_core_version.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/systick_timer.c b/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/systick_timer.c similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/systick_timer.c rename to targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/systick_timer.c diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/systick_timer.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/systick_timer.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/systick_timer.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_BEETLE/systick_timer.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/CMSDK_BEID.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/CMSDK_BEID.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/CMSDK_BEID.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/CMSDK_BEID.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/SMM_MPS2.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/SMM_MPS2.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/SMM_MPS2.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/SMM_MPS2.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/TOOLCHAIN_ARM_STD/MPS2.sct b/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/TOOLCHAIN_ARM_STD/MPS2.sct similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/TOOLCHAIN_ARM_STD/MPS2.sct rename to targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/TOOLCHAIN_ARM_STD/MPS2.sct diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/TOOLCHAIN_ARM_STD/startup_MPS2.s b/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/TOOLCHAIN_ARM_STD/startup_MPS2.s similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/TOOLCHAIN_ARM_STD/startup_MPS2.s rename to targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/TOOLCHAIN_ARM_STD/startup_MPS2.s diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/cmsis.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/cmsis.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/cmsis.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/cmsis_nvic.c b/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/cmsis_nvic.c rename to targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/cmsis_nvic.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/cmsis_nvic.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/peripherallink.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/peripherallink.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/peripherallink.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/peripherallink.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/system_CMSDK_BEID.c b/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/system_CMSDK_BEID.c similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/system_CMSDK_BEID.c rename to targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/system_CMSDK_BEID.c diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/system_CMSDK_BEID.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/system_CMSDK_BEID.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/system_CMSDK_BEID.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_IOTSS_BEID/system_CMSDK_BEID.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/CMSDK_CM0.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/CMSDK_CM0.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/CMSDK_CM0.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/CMSDK_CM0.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/SMM_MPS2.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/SMM_MPS2.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/SMM_MPS2.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/SMM_MPS2.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/TOOLCHAIN_ARM_STD/MPS2.sct b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/TOOLCHAIN_ARM_STD/MPS2.sct similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/TOOLCHAIN_ARM_STD/MPS2.sct rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/TOOLCHAIN_ARM_STD/MPS2.sct diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/TOOLCHAIN_ARM_STD/startup_MPS2.s b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/TOOLCHAIN_ARM_STD/startup_MPS2.s similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/TOOLCHAIN_ARM_STD/startup_MPS2.s rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/TOOLCHAIN_ARM_STD/startup_MPS2.s diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/cmsis.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/cmsis.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/cmsis.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/cmsis_nvic.c b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/cmsis_nvic.c rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/cmsis_nvic.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/cmsis_nvic.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/peripherallink.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/peripherallink.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/peripherallink.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/peripherallink.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/system_CMSDK_CM0.c b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/system_CMSDK_CM0.c similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/system_CMSDK_CM0.c rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/system_CMSDK_CM0.c diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/system_CMSDK_CM0.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/system_CMSDK_CM0.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/system_CMSDK_CM0.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0/system_CMSDK_CM0.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/CMSDK_CM0plus.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/CMSDK_CM0plus.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/CMSDK_CM0plus.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/CMSDK_CM0plus.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/SMM_MPS2.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/SMM_MPS2.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/SMM_MPS2.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/SMM_MPS2.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/TOOLCHAIN_ARM_STD/MPS2.sct b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/TOOLCHAIN_ARM_STD/MPS2.sct similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/TOOLCHAIN_ARM_STD/MPS2.sct rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/TOOLCHAIN_ARM_STD/MPS2.sct diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/TOOLCHAIN_ARM_STD/startup_MPS2.s b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/TOOLCHAIN_ARM_STD/startup_MPS2.s similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/TOOLCHAIN_ARM_STD/startup_MPS2.s rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/TOOLCHAIN_ARM_STD/startup_MPS2.s diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/cmsis.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/cmsis.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/cmsis.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/cmsis_nvic.c b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/cmsis_nvic.c rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/cmsis_nvic.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/cmsis_nvic.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/peripherallink.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/peripherallink.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/peripherallink.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/peripherallink.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/system_CMSDK_CM0plus.c b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/system_CMSDK_CM0plus.c similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/system_CMSDK_CM0plus.c rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/system_CMSDK_CM0plus.c diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/system_CMSDK_CM0plus.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/system_CMSDK_CM0plus.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/system_CMSDK_CM0plus.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M0P/system_CMSDK_CM0plus.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/CMSDK_CM3.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/CMSDK_CM3.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/CMSDK_CM3.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/CMSDK_CM3.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/SMM_MPS2.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/SMM_MPS2.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/SMM_MPS2.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/SMM_MPS2.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/TOOLCHAIN_ARM_STD/MPS2.sct b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/TOOLCHAIN_ARM_STD/MPS2.sct similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/TOOLCHAIN_ARM_STD/MPS2.sct rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/TOOLCHAIN_ARM_STD/MPS2.sct diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/TOOLCHAIN_ARM_STD/startup_MPS2.s b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/TOOLCHAIN_ARM_STD/startup_MPS2.s similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/TOOLCHAIN_ARM_STD/startup_MPS2.s rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/TOOLCHAIN_ARM_STD/startup_MPS2.s diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/cmsis.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/cmsis.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/cmsis.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/cmsis_nvic.c b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/cmsis_nvic.c rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/cmsis_nvic.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/cmsis_nvic.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/peripherallink.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/peripherallink.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/peripherallink.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/peripherallink.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/system_CMSDK_CM3.c b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/system_CMSDK_CM3.c similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/system_CMSDK_CM3.c rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/system_CMSDK_CM3.c diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/system_CMSDK_CM3.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/system_CMSDK_CM3.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/system_CMSDK_CM3.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M3/system_CMSDK_CM3.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/CMSDK_CM4.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/CMSDK_CM4.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/CMSDK_CM4.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/CMSDK_CM4.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/SMM_MPS2.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/SMM_MPS2.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/SMM_MPS2.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/SMM_MPS2.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/TOOLCHAIN_ARM_STD/MPS2.sct b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/TOOLCHAIN_ARM_STD/MPS2.sct similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/TOOLCHAIN_ARM_STD/MPS2.sct rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/TOOLCHAIN_ARM_STD/MPS2.sct diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/TOOLCHAIN_ARM_STD/startup_MPS2.s b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/TOOLCHAIN_ARM_STD/startup_MPS2.s similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/TOOLCHAIN_ARM_STD/startup_MPS2.s rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/TOOLCHAIN_ARM_STD/startup_MPS2.s diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/cmsis.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/cmsis.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/cmsis.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/cmsis_nvic.c b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/cmsis_nvic.c rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/cmsis_nvic.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/cmsis_nvic.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/peripherallink.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/peripherallink.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/peripherallink.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/peripherallink.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/system_CMSDK_CM4.c b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/system_CMSDK_CM4.c similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/system_CMSDK_CM4.c rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/system_CMSDK_CM4.c diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/system_CMSDK_CM4.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/system_CMSDK_CM4.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/system_CMSDK_CM4.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M4/system_CMSDK_CM4.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/CMSDK_CM7.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/CMSDK_CM7.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/CMSDK_CM7.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/CMSDK_CM7.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/SMM_MPS2.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/SMM_MPS2.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/SMM_MPS2.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/SMM_MPS2.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/TOOLCHAIN_ARM_STD/MPS2.sct b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/TOOLCHAIN_ARM_STD/MPS2.sct similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/TOOLCHAIN_ARM_STD/MPS2.sct rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/TOOLCHAIN_ARM_STD/MPS2.sct diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/TOOLCHAIN_ARM_STD/startup_CMSDK_CM7.s b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/TOOLCHAIN_ARM_STD/startup_CMSDK_CM7.s similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/TOOLCHAIN_ARM_STD/startup_CMSDK_CM7.s rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/TOOLCHAIN_ARM_STD/startup_CMSDK_CM7.s diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/cmsis.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/cmsis.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/cmsis.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/cmsis_nvic.c b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/cmsis_nvic.c rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/cmsis_nvic.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/cmsis_nvic.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/peripherallink.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/peripherallink.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/peripherallink.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/peripherallink.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/system_CMSDK_CM7.c b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/system_CMSDK_CM7.c similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/system_CMSDK_CM7.c rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/system_CMSDK_CM7.c diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/system_CMSDK_CM7.h b/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/system_CMSDK_CM7.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/system_CMSDK_CM7.h rename to targets/cmsis/TARGET_ARM_SSG/TARGET_MPS2_M7/system_CMSDK_CM7.h diff --git a/hal/targets/cmsis/TARGET_ARM_SSG/mbed_rtx.h b/targets/cmsis/TARGET_ARM_SSG/mbed_rtx.h similarity index 100% rename from hal/targets/cmsis/TARGET_ARM_SSG/mbed_rtx.h rename to targets/cmsis/TARGET_ARM_SSG/mbed_rtx.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_ARM_MICRO/SAMD21G18A.sct b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_ARM_MICRO/SAMD21G18A.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_ARM_MICRO/SAMD21G18A.sct rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_ARM_MICRO/SAMD21G18A.sct diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_ARM_MICRO/startup_SAMD21.s b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_ARM_MICRO/startup_SAMD21.s similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_ARM_MICRO/startup_SAMD21.s rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_ARM_MICRO/startup_SAMD21.s diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_ARM_MICRO/sys.cpp b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_ARM_MICRO/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_ARM_MICRO/sys.cpp rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_ARM_MICRO/sys.cpp diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_ARM_STD/SAMD21G18A.sct b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_ARM_STD/SAMD21G18A.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_ARM_STD/SAMD21G18A.sct rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_ARM_STD/SAMD21G18A.sct diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_ARM_STD/startup_SAMD21.s b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_ARM_STD/startup_SAMD21.s similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_ARM_STD/startup_SAMD21.s rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_ARM_STD/startup_SAMD21.s diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_GCC_ARM/samd21g18a.ld b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_GCC_ARM/samd21g18a.ld similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_GCC_ARM/samd21g18a.ld rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_GCC_ARM/samd21g18a.ld diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_GCC_ARM/startup_samd21.c b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_GCC_ARM/startup_samd21.c similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_GCC_ARM/startup_samd21.c rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_GCC_ARM/startup_samd21.c diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_IAR/startup_samd21.c b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_IAR/startup_samd21.c similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_IAR/startup_samd21.c rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21G18A/TOOLCHAIN_IAR/startup_samd21.c diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_ARM_MICRO/SAMD21J18A.sct b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_ARM_MICRO/SAMD21J18A.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_ARM_MICRO/SAMD21J18A.sct rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_ARM_MICRO/SAMD21J18A.sct diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_ARM_MICRO/startup_SAMD21.s b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_ARM_MICRO/startup_SAMD21.s similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_ARM_MICRO/startup_SAMD21.s rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_ARM_MICRO/startup_SAMD21.s diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_ARM_MICRO/sys.cpp b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_ARM_MICRO/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_ARM_MICRO/sys.cpp rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_ARM_MICRO/sys.cpp diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_ARM_STD/SAMD21J18A.sct b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_ARM_STD/SAMD21J18A.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_ARM_STD/SAMD21J18A.sct rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_ARM_STD/SAMD21J18A.sct diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_ARM_STD/startup_SAMD21.s b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_ARM_STD/startup_SAMD21.s similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_ARM_STD/startup_SAMD21.s rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_ARM_STD/startup_SAMD21.s diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_GCC_ARM/samd21j18a.ld b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_GCC_ARM/samd21j18a.ld similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_GCC_ARM/samd21j18a.ld rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_GCC_ARM/samd21j18a.ld diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_GCC_ARM/startup_samd21.c b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_GCC_ARM/startup_samd21.c similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_GCC_ARM/startup_samd21.c rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_GCC_ARM/startup_samd21.c diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_IAR/startup_samd21.c b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_IAR/startup_samd21.c similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_IAR/startup_samd21.c rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/TARGET_SAMD21J18A/TOOLCHAIN_IAR/startup_samd21.c diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/cmsis.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/cmsis.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/cmsis.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/cmsis_nvic.c b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/cmsis_nvic.c rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/cmsis_nvic.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/cmsis_nvic.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMD21/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_ARM_MICRO/SAML21J18A.sct b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_ARM_MICRO/SAML21J18A.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_ARM_MICRO/SAML21J18A.sct rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_ARM_MICRO/SAML21J18A.sct diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_ARM_MICRO/startup_SAML21.s b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_ARM_MICRO/startup_SAML21.s similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_ARM_MICRO/startup_SAML21.s rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_ARM_MICRO/startup_SAML21.s diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_ARM_MICRO/sys.cpp b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_ARM_MICRO/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_ARM_MICRO/sys.cpp rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_ARM_MICRO/sys.cpp diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_ARM_STD/SAML21J18A.sct b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_ARM_STD/SAML21J18A.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_ARM_STD/SAML21J18A.sct rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_ARM_STD/SAML21J18A.sct diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_ARM_STD/startup_SAML21.s b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_ARM_STD/startup_SAML21.s similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_ARM_STD/startup_SAML21.s rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_ARM_STD/startup_SAML21.s diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_GCC_ARM/saml21j18a.ld b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_GCC_ARM/saml21j18a.ld similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_GCC_ARM/saml21j18a.ld rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_GCC_ARM/saml21j18a.ld diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_GCC_ARM/startup_saml21.c b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_GCC_ARM/startup_saml21.c similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_GCC_ARM/startup_saml21.c rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_GCC_ARM/startup_saml21.c diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_IAR/startup_saml21.c b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_IAR/startup_saml21.c similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_IAR/startup_saml21.c rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/TARGET_SAML21J18A/TOOLCHAIN_IAR/startup_saml21.c diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/cmsis.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/cmsis.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/cmsis.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/cmsis_nvic.c b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/cmsis_nvic.c rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/cmsis_nvic.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/cmsis_nvic.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAML21/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_ARM_MICRO/SAMR21G18A.sct b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_ARM_MICRO/SAMR21G18A.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_ARM_MICRO/SAMR21G18A.sct rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_ARM_MICRO/SAMR21G18A.sct diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_ARM_MICRO/startup_SAMR21.s b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_ARM_MICRO/startup_SAMR21.s similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_ARM_MICRO/startup_SAMR21.s rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_ARM_MICRO/startup_SAMR21.s diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_ARM_MICRO/sys.cpp b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_ARM_MICRO/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_ARM_MICRO/sys.cpp rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_ARM_MICRO/sys.cpp diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_ARM_STD/SAMR21G18A.sct b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_ARM_STD/SAMR21G18A.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_ARM_STD/SAMR21G18A.sct rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_ARM_STD/SAMR21G18A.sct diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_ARM_STD/startup_SAMR21.s b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_ARM_STD/startup_SAMR21.s similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_ARM_STD/startup_SAMR21.s rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_ARM_STD/startup_SAMR21.s diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_GCC_ARM/samr21g18a.ld b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_GCC_ARM/samr21g18a.ld similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_GCC_ARM/samr21g18a.ld rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_GCC_ARM/samr21g18a.ld diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_GCC_ARM/startup_samr21.c b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_GCC_ARM/startup_samr21.c similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_GCC_ARM/startup_samr21.c rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_GCC_ARM/startup_samr21.c diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_IAR/startup_samr21.c b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_IAR/startup_samr21.c similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_IAR/startup_samr21.c rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/TARGET_SAMR21G18A/TOOLCHAIN_IAR/startup_samr21.c diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/cmsis.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/cmsis.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/cmsis.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/cmsis_nvic.c b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/cmsis_nvic.c rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/cmsis_nvic.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/cmsis_nvic.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/TARGET_SAMR21/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_ac.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_ac.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_ac.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_ac.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_adc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_adc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_adc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_adc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_dac.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_dac.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_dac.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_dac.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_dmac.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_dmac.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_dmac.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_dmac.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_dsu.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_dsu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_dsu.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_dsu.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_eic.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_eic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_eic.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_eic.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_evsys.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_evsys.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_evsys.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_evsys.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_gclk.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_gclk.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_gclk.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_gclk.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_hmatrixb.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_hmatrixb.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_hmatrixb.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_hmatrixb.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_i2s.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_i2s.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_i2s.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_i2s.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_mtb.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_mtb.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_mtb.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_mtb.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_nvmctrl.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_nvmctrl.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_nvmctrl.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_nvmctrl.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_pac.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_pac.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_pac.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_pac.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_pm.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_pm.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_pm.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_pm.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_port.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_port.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_port.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_port.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_rtc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_rtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_rtc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_rtc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_sercom.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_sercom.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_sercom.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_sercom.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_sysctrl.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_sysctrl.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_sysctrl.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_sysctrl.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_tc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_tc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_tc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_tc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_tcc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_tcc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_tcc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_tcc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_tcc_lighting.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_tcc_lighting.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_tcc_lighting.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_tcc_lighting.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_usb.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_usb.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_usb.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_usb.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_wdt.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_wdt.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_wdt.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/component/comp_wdt.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_ac.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_ac.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_ac.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_ac.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_ac1.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_ac1.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_ac1.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_ac1.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_adc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_adc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_adc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_adc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_dac.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_dac.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_dac.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_dac.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_dmac.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_dmac.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_dmac.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_dmac.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_dsu.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_dsu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_dsu.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_dsu.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_eic.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_eic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_eic.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_eic.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_evsys.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_evsys.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_evsys.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_evsys.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_gclk.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_gclk.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_gclk.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_gclk.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_i2s.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_i2s.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_i2s.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_i2s.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_mtb.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_mtb.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_mtb.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_mtb.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_nvmctrl.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_nvmctrl.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_nvmctrl.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_nvmctrl.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_pac0.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_pac0.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_pac0.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_pac0.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_pac1.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_pac1.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_pac1.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_pac1.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_pac2.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_pac2.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_pac2.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_pac2.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_pm.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_pm.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_pm.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_pm.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_port.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_port.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_port.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_port.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_rtc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_rtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_rtc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_rtc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sbmatrix.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sbmatrix.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sbmatrix.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sbmatrix.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sercom0.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sercom0.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sercom0.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sercom0.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sercom1.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sercom1.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sercom1.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sercom1.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sercom2.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sercom2.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sercom2.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sercom2.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sercom3.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sercom3.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sercom3.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sercom3.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sercom4.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sercom4.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sercom4.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sercom4.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sercom5.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sercom5.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sercom5.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sercom5.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sysctrl.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sysctrl.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sysctrl.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_sysctrl.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tc3.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tc3.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tc3.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tc3.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tc4.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tc4.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tc4.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tc4.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tc5.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tc5.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tc5.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tc5.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tc6.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tc6.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tc6.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tc6.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tc7.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tc7.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tc7.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tc7.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tcc0.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tcc0.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tcc0.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tcc0.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tcc1.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tcc1.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tcc1.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tcc1.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tcc2.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tcc2.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tcc2.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_tcc2.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_usb.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_usb.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_usb.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_usb.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_wdt.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_wdt.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_wdt.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/instance/ins_wdt.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e15a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e15a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e15a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e15a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e15b.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e15b.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e15b.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e15b.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e15bu.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e15bu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e15bu.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e15bu.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e15l.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e15l.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e15l.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e15l.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e16a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e16a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e16a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e16a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e16b.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e16b.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e16b.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e16b.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e16bu.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e16bu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e16bu.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e16bu.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e16l.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e16l.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e16l.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e16l.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e17a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e17a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e17a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e17a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e18a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e18a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e18a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21e18a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g15a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g15a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g15a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g15a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g15b.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g15b.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g15b.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g15b.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g16a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g16a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g16a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g16a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g16b.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g16b.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g16b.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g16b.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g17a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g17a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g17a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g17a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g17au.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g17au.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g17au.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g17au.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g18a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g18a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g18a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g18a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g18au.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g18au.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g18au.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21g18au.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21j15a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21j15a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21j15a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21j15a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21j15b.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21j15b.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21j15b.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21j15b.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21j16a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21j16a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21j16a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21j16a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21j16b.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21j16b.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21j16b.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21j16b.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21j17a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21j17a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21j17a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21j17a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21j18a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21j18a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21j18a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/pio/pio_samd21j18a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e15a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e15a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e15a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e15a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e15b.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e15b.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e15b.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e15b.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e15bu.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e15bu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e15bu.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e15bu.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e15l.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e15l.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e15l.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e15l.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e16a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e16a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e16a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e16a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e16b.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e16b.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e16b.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e16b.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e16bu.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e16bu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e16bu.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e16bu.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e16l.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e16l.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e16l.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e16l.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e17a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e17a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e17a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e17a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e18a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e18a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e18a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21e18a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g15a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g15a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g15a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g15a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g15b.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g15b.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g15b.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g15b.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g16a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g16a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g16a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g16a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g16b.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g16b.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g16b.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g16b.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g17a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g17a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g17a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g17a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g17au.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g17au.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g17au.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g17au.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g18a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g18a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g18a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g18a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g18au.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g18au.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g18au.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21g18au.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21j15a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21j15a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21j15a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21j15a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21j15b.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21j15b.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21j15b.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21j15b.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21j16a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21j16a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21j16a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21j16a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21j16b.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21j16b.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21j16b.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21j16b.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21j17a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21j17a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21j17a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21j17a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21j18a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21j18a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21j18a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/include/samd21j18a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/source/system_samd21.c b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/source/system_samd21.c similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/source/system_samd21.c rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/source/system_samd21.c diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/source/system_samd21.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/source/system_samd21.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/source/system_samd21.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMD21/source/system_samd21.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_ac.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_ac.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_ac.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_ac.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_adc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_adc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_adc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_adc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_aes.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_aes.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_aes.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_aes.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_ccl.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_ccl.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_ccl.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_ccl.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_dac.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_dac.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_dac.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_dac.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_dmac.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_dmac.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_dmac.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_dmac.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_dsu.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_dsu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_dsu.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_dsu.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_eic.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_eic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_eic.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_eic.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_evsys.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_evsys.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_evsys.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_evsys.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_gclk.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_gclk.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_gclk.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_gclk.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_mclk.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_mclk.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_mclk.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_mclk.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_mtb.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_mtb.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_mtb.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_mtb.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_nvmctrl.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_nvmctrl.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_nvmctrl.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_nvmctrl.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_opamp.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_opamp.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_opamp.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_opamp.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_osc32kctrl.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_osc32kctrl.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_osc32kctrl.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_osc32kctrl.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_oscctrl.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_oscctrl.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_oscctrl.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_oscctrl.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_pac.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_pac.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_pac.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_pac.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_pm.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_pm.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_pm.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_pm.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_port.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_port.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_port.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_port.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_rstc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_rstc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_rstc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_rstc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_rtc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_rtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_rtc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_rtc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_sercom.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_sercom.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_sercom.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_sercom.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_supc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_supc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_supc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_supc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_tal.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_tal.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_tal.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_tal.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_tc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_tc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_tc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_tc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_tcc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_tcc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_tcc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_tcc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_trng.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_trng.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_trng.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_trng.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_usb.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_usb.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_usb.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_usb.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_wdt.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_wdt.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_wdt.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/component/comp_wdt.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_ac.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_ac.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_ac.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_ac.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_adc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_adc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_adc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_adc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_aes.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_aes.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_aes.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_aes.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_ccl.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_ccl.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_ccl.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_ccl.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_dac.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_dac.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_dac.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_dac.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_dmac.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_dmac.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_dmac.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_dmac.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_dsu.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_dsu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_dsu.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_dsu.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_eic.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_eic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_eic.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_eic.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_evsys.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_evsys.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_evsys.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_evsys.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_gclk.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_gclk.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_gclk.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_gclk.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_mclk.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_mclk.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_mclk.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_mclk.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_mtb.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_mtb.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_mtb.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_mtb.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_nvmctrl.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_nvmctrl.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_nvmctrl.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_nvmctrl.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_opamp.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_opamp.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_opamp.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_opamp.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_osc32kctrl.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_osc32kctrl.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_osc32kctrl.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_osc32kctrl.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_oscctrl.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_oscctrl.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_oscctrl.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_oscctrl.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_pac.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_pac.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_pac.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_pac.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_pm.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_pm.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_pm.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_pm.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_port.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_port.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_port.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_port.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_rstc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_rstc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_rstc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_rstc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_rtc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_rtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_rtc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_rtc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_sercom0.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_sercom0.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_sercom0.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_sercom0.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_sercom1.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_sercom1.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_sercom1.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_sercom1.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_sercom2.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_sercom2.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_sercom2.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_sercom2.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_sercom3.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_sercom3.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_sercom3.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_sercom3.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_sercom4.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_sercom4.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_sercom4.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_sercom4.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_sercom5.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_sercom5.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_sercom5.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_sercom5.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_supc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_supc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_supc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_supc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tal.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tal.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tal.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tal.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tc0.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tc0.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tc0.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tc0.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tc1.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tc1.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tc1.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tc1.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tc2.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tc2.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tc2.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tc2.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tc3.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tc3.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tc3.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tc3.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tc4.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tc4.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tc4.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tc4.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tcc0.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tcc0.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tcc0.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tcc0.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tcc1.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tcc1.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tcc1.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tcc1.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tcc2.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tcc2.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tcc2.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_tcc2.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_trng.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_trng.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_trng.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_trng.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_usb.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_usb.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_usb.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_usb.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_wdt.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_wdt.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_wdt.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/instance/ins_wdt.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21e15a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21e15a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21e15a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21e15a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21e16a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21e16a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21e16a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21e16a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21e17a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21e17a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21e17a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21e17a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21g16a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21g16a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21g16a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21g16a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21g17a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21g17a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21g17a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21g17a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21g18a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21g18a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21g18a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21g18a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21j16a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21j16a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21j16a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21j16a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21j17a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21j17a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21j17a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21j17a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21j18a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21j18a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21j18a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/pio/pio_saml21j18a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21e15a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21e15a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21e15a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21e15a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21e16a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21e16a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21e16a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21e16a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21e17a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21e17a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21e17a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21e17a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21g16a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21g16a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21g16a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21g16a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21g17a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21g17a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21g17a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21g17a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21g18a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21g18a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21g18a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21g18a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21j16a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21j16a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21j16a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21j16a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21j17a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21j17a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21j17a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21j17a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21j18a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21j18a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21j18a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/include/saml21j18a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/source/system_saml21.c b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/source/system_saml21.c similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/source/system_saml21.c rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/source/system_saml21.c diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/source/system_saml21.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/source/system_saml21.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/source/system_saml21.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAML21/source/system_saml21.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_ac.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_ac.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_ac.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_ac.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_adc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_adc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_adc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_adc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_dmac.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_dmac.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_dmac.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_dmac.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_dsu.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_dsu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_dsu.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_dsu.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_eic.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_eic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_eic.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_eic.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_evsys.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_evsys.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_evsys.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_evsys.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_gclk.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_gclk.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_gclk.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_gclk.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_hmatrixb.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_hmatrixb.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_hmatrixb.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_hmatrixb.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_mtb.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_mtb.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_mtb.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_mtb.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_nvmctrl.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_nvmctrl.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_nvmctrl.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_nvmctrl.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_pac.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_pac.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_pac.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_pac.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_pm.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_pm.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_pm.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_pm.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_port.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_port.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_port.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_port.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_rfctrl.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_rfctrl.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_rfctrl.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_rfctrl.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_rtc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_rtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_rtc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_rtc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_sercom.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_sercom.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_sercom.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_sercom.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_sysctrl.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_sysctrl.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_sysctrl.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_sysctrl.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_tc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_tc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_tc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_tc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_tcc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_tcc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_tcc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_tcc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_usb.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_usb.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_usb.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_usb.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_wdt.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_wdt.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_wdt.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/component/comp_wdt.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_ac.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_ac.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_ac.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_ac.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_adc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_adc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_adc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_adc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_dmac.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_dmac.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_dmac.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_dmac.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_dsu.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_dsu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_dsu.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_dsu.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_eic.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_eic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_eic.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_eic.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_evsys.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_evsys.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_evsys.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_evsys.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_gclk.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_gclk.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_gclk.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_gclk.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_mtb.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_mtb.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_mtb.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_mtb.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_nvmctrl.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_nvmctrl.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_nvmctrl.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_nvmctrl.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_pac0.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_pac0.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_pac0.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_pac0.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_pac1.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_pac1.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_pac1.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_pac1.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_pac2.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_pac2.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_pac2.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_pac2.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_pm.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_pm.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_pm.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_pm.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_port.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_port.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_port.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_port.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_rfctrl.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_rfctrl.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_rfctrl.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_rfctrl.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_rtc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_rtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_rtc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_rtc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sbmatrix.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sbmatrix.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sbmatrix.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sbmatrix.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sercom0.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sercom0.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sercom0.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sercom0.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sercom1.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sercom1.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sercom1.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sercom1.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sercom2.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sercom2.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sercom2.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sercom2.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sercom3.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sercom3.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sercom3.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sercom3.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sercom4.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sercom4.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sercom4.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sercom4.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sercom5.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sercom5.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sercom5.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sercom5.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sysctrl.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sysctrl.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sysctrl.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_sysctrl.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_tc3.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_tc3.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_tc3.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_tc3.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_tc4.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_tc4.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_tc4.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_tc4.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_tc5.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_tc5.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_tc5.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_tc5.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_tcc0.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_tcc0.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_tcc0.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_tcc0.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_tcc1.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_tcc1.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_tcc1.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_tcc1.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_tcc2.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_tcc2.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_tcc2.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_tcc2.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_usb.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_usb.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_usb.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_usb.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_wdt.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_wdt.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_wdt.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/instance/ins_wdt.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/pio/pio_samr21e16a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/pio/pio_samr21e16a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/pio/pio_samr21e16a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/pio/pio_samr21e16a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/pio/pio_samr21e17a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/pio/pio_samr21e17a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/pio/pio_samr21e17a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/pio/pio_samr21e17a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/pio/pio_samr21e18a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/pio/pio_samr21e18a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/pio/pio_samr21e18a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/pio/pio_samr21e18a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/pio/pio_samr21g16a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/pio/pio_samr21g16a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/pio/pio_samr21g16a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/pio/pio_samr21g16a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/pio/pio_samr21g17a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/pio/pio_samr21g17a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/pio/pio_samr21g17a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/pio/pio_samr21g17a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/pio/pio_samr21g18a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/pio/pio_samr21g18a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/pio/pio_samr21g18a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/pio/pio_samr21g18a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21e16a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21e16a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21e16a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21e16a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21e17a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21e17a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21e17a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21e17a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21e18a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21e18a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21e18a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21e18a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21g16a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21g16a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21g16a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21g16a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21g17a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21g17a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21g17a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21g17a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21g18a.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21g18a.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21g18a.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/include/samr21g18a.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/source/system_samr21.c b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/source/system_samr21.c similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/source/system_samr21.c rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/source/system_samr21.c diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/source/system_samr21.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/source/system_samr21.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/source/system_samr21.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/cmsis/TARGET_SAMR21/source/system_samr21.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/compiler.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/compiler.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/compiler.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/compiler.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/header_files/io.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/header_files/io.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/header_files/io.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/header_files/io.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/preprocessor/mrecursion.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/preprocessor/mrecursion.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/preprocessor/mrecursion.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/preprocessor/mrecursion.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/preprocessor/mrepeat.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/preprocessor/mrepeat.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/preprocessor/mrepeat.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/preprocessor/mrepeat.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/preprocessor/preprocessor.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/preprocessor/preprocessor.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/preprocessor/preprocessor.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/preprocessor/preprocessor.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/preprocessor/stringz.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/preprocessor/stringz.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/preprocessor/stringz.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/preprocessor/stringz.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/preprocessor/tpaste.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/preprocessor/tpaste.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/preprocessor/tpaste.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/preprocessor/tpaste.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/status_codes.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/status_codes.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/status_codes.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM0P/utils/status_codes.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55/TARGET_SAMG55J19/TOOLCHAIN_GCC_ARM/samg55j19.ld b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55/TARGET_SAMG55J19/TOOLCHAIN_GCC_ARM/samg55j19.ld similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55/TARGET_SAMG55J19/TOOLCHAIN_GCC_ARM/samg55j19.ld rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55/TARGET_SAMG55J19/TOOLCHAIN_GCC_ARM/samg55j19.ld diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55/TARGET_SAMG55J19/TOOLCHAIN_GCC_ARM/startup_samg55.c b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55/TARGET_SAMG55J19/TOOLCHAIN_GCC_ARM/startup_samg55.c similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55/TARGET_SAMG55J19/TOOLCHAIN_GCC_ARM/startup_samg55.c rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55/TARGET_SAMG55J19/TOOLCHAIN_GCC_ARM/startup_samg55.c diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55/cmsis.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55/cmsis.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55/cmsis.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55/cmsis_nvic.c b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55/cmsis_nvic.c rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55/cmsis_nvic.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55/cmsis_nvic.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/TARGET_SAMG55/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_adc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_adc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_adc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_adc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_chipid.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_chipid.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_chipid.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_chipid.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_cmcc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_cmcc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_cmcc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_cmcc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_crccu.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_crccu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_crccu.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_crccu.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_efc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_efc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_efc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_efc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_flexcom.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_flexcom.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_flexcom.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_flexcom.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_gpbr.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_gpbr.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_gpbr.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_gpbr.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_i2sc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_i2sc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_i2sc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_i2sc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_matrix.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_matrix.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_matrix.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_matrix.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_mem2mem.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_mem2mem.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_mem2mem.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_mem2mem.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_pdc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_pdc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_pdc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_pdc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_pdmic.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_pdmic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_pdmic.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_pdmic.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_pio.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_pio.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_pio.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_pio.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_pmc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_pmc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_pmc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_pmc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_rstc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_rstc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_rstc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_rstc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_rtc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_rtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_rtc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_rtc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_rtt.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_rtt.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_rtt.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_rtt.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_spi.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_spi.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_spi.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_spi.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_supc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_supc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_supc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_supc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_tc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_tc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_tc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_tc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_twi.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_twi.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_twi.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_twi.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_udp.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_udp.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_udp.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_udp.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_uhp.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_uhp.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_uhp.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_uhp.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_usart.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_usart.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_usart.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_usart.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_wdt.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_wdt.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_wdt.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/component/comp_wdt.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_adc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_adc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_adc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_adc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_chipid.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_chipid.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_chipid.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_chipid.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_cmcc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_cmcc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_cmcc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_cmcc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_crccu.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_crccu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_crccu.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_crccu.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_efc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_efc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_efc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_efc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom0.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom0.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom0.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom0.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom1.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom1.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom1.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom1.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom2.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom2.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom2.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom2.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom3.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom3.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom3.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom3.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom4.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom4.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom4.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom4.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom5.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom5.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom5.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom5.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom6.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom6.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom6.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom6.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom7.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom7.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom7.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_flexcom7.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_gpbr.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_gpbr.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_gpbr.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_gpbr.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_i2sc0.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_i2sc0.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_i2sc0.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_i2sc0.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_i2sc1.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_i2sc1.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_i2sc1.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_i2sc1.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_matrix.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_matrix.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_matrix.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_matrix.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_mem2mem.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_mem2mem.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_mem2mem.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_mem2mem.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_pdmic0.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_pdmic0.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_pdmic0.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_pdmic0.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_pdmic1.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_pdmic1.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_pdmic1.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_pdmic1.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_pioa.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_pioa.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_pioa.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_pioa.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_piob.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_piob.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_piob.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_piob.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_pmc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_pmc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_pmc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_pmc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_rstc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_rstc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_rstc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_rstc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_rtc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_rtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_rtc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_rtc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_rtt.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_rtt.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_rtt.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_rtt.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi0.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi0.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi0.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi0.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi1.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi1.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi1.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi1.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi2.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi2.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi2.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi2.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi3.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi3.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi3.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi3.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi4.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi4.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi4.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi4.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi5.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi5.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi5.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi5.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi6.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi6.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi6.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi6.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi7.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi7.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi7.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_spi7.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_supc.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_supc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_supc.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_supc.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_tc0.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_tc0.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_tc0.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_tc0.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_tc1.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_tc1.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_tc1.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_tc1.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi0.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi0.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi0.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi0.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi1.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi1.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi1.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi1.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi2.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi2.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi2.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi2.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi3.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi3.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi3.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi3.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi4.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi4.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi4.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi4.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi5.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi5.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi5.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi5.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi6.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi6.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi6.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi6.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi7.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi7.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi7.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_twi7.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_udp.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_udp.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_udp.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_udp.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_uhp.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_uhp.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_uhp.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_uhp.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart0.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart0.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart0.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart0.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart1.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart1.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart1.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart1.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart2.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart2.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart2.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart2.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart3.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart3.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart3.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart3.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart4.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart4.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart4.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart4.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart5.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart5.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart5.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart5.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart6.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart6.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart6.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart6.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart7.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart7.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart7.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_usart7.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_wdt.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_wdt.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_wdt.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/instance/ins_wdt.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/pio/pio_samg55g18.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/pio/pio_samg55g18.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/pio/pio_samg55g18.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/pio/pio_samg55g18.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/pio/pio_samg55g19.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/pio/pio_samg55g19.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/pio/pio_samg55g19.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/pio/pio_samg55g19.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/pio/pio_samg55j18.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/pio/pio_samg55j18.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/pio/pio_samg55j18.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/pio/pio_samg55j18.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/pio/pio_samg55j19.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/pio/pio_samg55j19.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/pio/pio_samg55j19.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/pio/pio_samg55j19.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/pio/pio_samg55n19.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/pio/pio_samg55n19.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/pio/pio_samg55n19.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/pio/pio_samg55n19.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/samg55.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/samg55.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/samg55.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/samg55.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/samg55g18.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/samg55g18.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/samg55g18.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/samg55g18.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/samg55g19.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/samg55g19.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/samg55g19.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/samg55g19.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/samg55j18.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/samg55j18.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/samg55j18.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/samg55j18.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/samg55j19.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/samg55j19.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/samg55j19.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/samg55j19.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/samg55n19.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/samg55n19.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/samg55n19.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/include/samg55n19.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/source/system_samg55.c b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/source/system_samg55.c similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/source/system_samg55.c rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/source/system_samg55.c diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/source/system_samg55.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/source/system_samg55.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/source/system_samg55.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/cmsis/TARGET_SAMG55/source/system_samg55.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/compiler.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/compiler.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/compiler.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/compiler.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/header_files/io.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/header_files/io.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/header_files/io.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/header_files/io.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/preprocessor/mrepeat.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/preprocessor/mrepeat.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/preprocessor/mrepeat.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/preprocessor/mrepeat.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/preprocessor/preprocessor.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/preprocessor/preprocessor.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/preprocessor/preprocessor.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/preprocessor/preprocessor.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/preprocessor/stringz.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/preprocessor/stringz.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/preprocessor/stringz.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/preprocessor/stringz.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/preprocessor/tpaste.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/preprocessor/tpaste.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/preprocessor/tpaste.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/preprocessor/tpaste.h diff --git a/hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/status_codes.h b/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/status_codes.h similarity index 100% rename from hal/targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/status_codes.h rename to targets/cmsis/TARGET_Atmel/TARGET_SAM_CortexM4/utils/status_codes.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/MK20D5.h b/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/MK20D5.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/MK20D5.h rename to targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/MK20D5.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_ARM_STD/MK20D5.sct b/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_ARM_STD/MK20D5.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_ARM_STD/MK20D5.sct rename to targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_ARM_STD/MK20D5.sct diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_ARM_STD/startup_MK20D5.S b/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_ARM_STD/startup_MK20D5.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_ARM_STD/startup_MK20D5.S rename to targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_ARM_STD/startup_MK20D5.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_GCC_ARM/MK20D5.ld b/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_GCC_ARM/MK20D5.ld similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_GCC_ARM/MK20D5.ld rename to targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_GCC_ARM/MK20D5.ld diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_GCC_ARM/startup_MK20D5.S b/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_GCC_ARM/startup_MK20D5.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_GCC_ARM/startup_MK20D5.S rename to targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_GCC_ARM/startup_MK20D5.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_IAR/MK20D5.icf b/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_IAR/MK20D5.icf similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_IAR/MK20D5.icf rename to targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_IAR/MK20D5.icf diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_IAR/startup_MK20D5.S b/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_IAR/startup_MK20D5.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_IAR/startup_MK20D5.S rename to targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_IAR/startup_MK20D5.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/cmsis.h b/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/cmsis.h rename to targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/cmsis.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/cmsis_nvic.c b/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/cmsis_nvic.c rename to targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/cmsis_nvic.h b/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/cmsis_nvic.h rename to targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/system_MK20D5.c b/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/system_MK20D5.c similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/system_MK20D5.c rename to targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/system_MK20D5.c diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/system_MK20D5.h b/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/system_MK20D5.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/system_MK20D5.h rename to targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/system_MK20D5.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/MK20DX256.h b/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/MK20DX256.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/MK20DX256.h rename to targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/MK20DX256.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/TOOLCHAIN_ARM_STD/MK20DX256.sct b/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/TOOLCHAIN_ARM_STD/MK20DX256.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/TOOLCHAIN_ARM_STD/MK20DX256.sct rename to targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/TOOLCHAIN_ARM_STD/MK20DX256.sct diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/TOOLCHAIN_ARM_STD/startup_MK20DX256.S b/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/TOOLCHAIN_ARM_STD/startup_MK20DX256.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/TOOLCHAIN_ARM_STD/startup_MK20DX256.S rename to targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/TOOLCHAIN_ARM_STD/startup_MK20DX256.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/TOOLCHAIN_GCC_ARM/MK20DX256.ld b/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/TOOLCHAIN_GCC_ARM/MK20DX256.ld similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/TOOLCHAIN_GCC_ARM/MK20DX256.ld rename to targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/TOOLCHAIN_GCC_ARM/MK20DX256.ld diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/TOOLCHAIN_GCC_ARM/startup_MK20DX256.S b/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/TOOLCHAIN_GCC_ARM/startup_MK20DX256.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/TOOLCHAIN_GCC_ARM/startup_MK20DX256.S rename to targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/TOOLCHAIN_GCC_ARM/startup_MK20DX256.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/cmsis.h b/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/cmsis.h rename to targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/cmsis.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/cmsis_nvic.c b/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/cmsis_nvic.c rename to targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/cmsis_nvic.h b/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/cmsis_nvic.h rename to targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/system_MK20DX256.c b/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/system_MK20DX256.c similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/system_MK20DX256.c rename to targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/system_MK20DX256.c diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/system_MK20DX256.h b/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/system_MK20DX256.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/system_MK20DX256.h rename to targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_TEENSY3_1/system_MK20DX256.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/MK22F51212.h b/targets/cmsis/TARGET_Freescale/TARGET_K22F/MK22F51212.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/MK22F51212.h rename to targets/cmsis/TARGET_Freescale/TARGET_K22F/MK22F51212.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/MK22F51212_features.h b/targets/cmsis/TARGET_Freescale/TARGET_K22F/MK22F51212_features.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/MK22F51212_features.h rename to targets/cmsis/TARGET_Freescale/TARGET_K22F/MK22F51212_features.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_ARM_STD/MK22FN512xxx12.sct b/targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_ARM_STD/MK22FN512xxx12.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_ARM_STD/MK22FN512xxx12.sct rename to targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_ARM_STD/MK22FN512xxx12.sct diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_ARM_STD/startup_MK22F51212.S b/targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_ARM_STD/startup_MK22F51212.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_ARM_STD/startup_MK22F51212.S rename to targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_ARM_STD/startup_MK22F51212.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_GCC_ARM/MK22FN512xxx12.ld b/targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_GCC_ARM/MK22FN512xxx12.ld similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_GCC_ARM/MK22FN512xxx12.ld rename to targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_GCC_ARM/MK22FN512xxx12.ld diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_GCC_ARM/startup_MK22F51212.S b/targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_GCC_ARM/startup_MK22F51212.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_GCC_ARM/startup_MK22F51212.S rename to targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_GCC_ARM/startup_MK22F51212.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_IAR/MK22F51212.icf b/targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_IAR/MK22F51212.icf similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_IAR/MK22F51212.icf rename to targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_IAR/MK22F51212.icf diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_IAR/startup_MK22F12.S b/targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_IAR/startup_MK22F12.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_IAR/startup_MK22F12.S rename to targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_IAR/startup_MK22F12.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/cmsis.h b/targets/cmsis/TARGET_Freescale/TARGET_K22F/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/cmsis.h rename to targets/cmsis/TARGET_Freescale/TARGET_K22F/cmsis.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/cmsis_nvic.c b/targets/cmsis/TARGET_Freescale/TARGET_K22F/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/cmsis_nvic.c rename to targets/cmsis/TARGET_Freescale/TARGET_K22F/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/cmsis_nvic.h b/targets/cmsis/TARGET_Freescale/TARGET_K22F/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/cmsis_nvic.h rename to targets/cmsis/TARGET_Freescale/TARGET_K22F/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/fsl_device_registers.h b/targets/cmsis/TARGET_Freescale/TARGET_K22F/fsl_device_registers.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/fsl_device_registers.h rename to targets/cmsis/TARGET_Freescale/TARGET_K22F/fsl_device_registers.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/system_MK22F51212.c b/targets/cmsis/TARGET_Freescale/TARGET_K22F/system_MK22F51212.c similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/system_MK22F51212.c rename to targets/cmsis/TARGET_Freescale/TARGET_K22F/system_MK22F51212.c diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/system_MK22F51212.h b/targets/cmsis/TARGET_Freescale/TARGET_K22F/system_MK22F51212.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K22F/system_MK22F51212.h rename to targets/cmsis/TARGET_Freescale/TARGET_K22F/system_MK22F51212.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/MK66F18.h b/targets/cmsis/TARGET_Freescale/TARGET_K66F/MK66F18.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/MK66F18.h rename to targets/cmsis/TARGET_Freescale/TARGET_K66F/MK66F18.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/MK66F18_features.h b/targets/cmsis/TARGET_Freescale/TARGET_K66F/MK66F18_features.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/MK66F18_features.h rename to targets/cmsis/TARGET_Freescale/TARGET_K66F/MK66F18_features.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_ARM_STD/MK66FN2M0xxx18.sct b/targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_ARM_STD/MK66FN2M0xxx18.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_ARM_STD/MK66FN2M0xxx18.sct rename to targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_ARM_STD/MK66FN2M0xxx18.sct diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_ARM_STD/startup_MK66F18.S b/targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_ARM_STD/startup_MK66F18.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_ARM_STD/startup_MK66F18.S rename to targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_ARM_STD/startup_MK66F18.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_GCC_ARM/MK66FN2M0xxx18.ld b/targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_GCC_ARM/MK66FN2M0xxx18.ld similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_GCC_ARM/MK66FN2M0xxx18.ld rename to targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_GCC_ARM/MK66FN2M0xxx18.ld diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_GCC_ARM/startup_MK66F18.S b/targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_GCC_ARM/startup_MK66F18.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_GCC_ARM/startup_MK66F18.S rename to targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_GCC_ARM/startup_MK66F18.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_IAR/MK66FN2M0xxx18.icf b/targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_IAR/MK66FN2M0xxx18.icf similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_IAR/MK66FN2M0xxx18.icf rename to targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_IAR/MK66FN2M0xxx18.icf diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_IAR/startup_MK66F18.S b/targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_IAR/startup_MK66F18.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_IAR/startup_MK66F18.S rename to targets/cmsis/TARGET_Freescale/TARGET_K66F/TOOLCHAIN_IAR/startup_MK66F18.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/cmsis.h b/targets/cmsis/TARGET_Freescale/TARGET_K66F/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/cmsis.h rename to targets/cmsis/TARGET_Freescale/TARGET_K66F/cmsis.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/cmsis_nvic.c b/targets/cmsis/TARGET_Freescale/TARGET_K66F/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/cmsis_nvic.c rename to targets/cmsis/TARGET_Freescale/TARGET_K66F/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/cmsis_nvic.h b/targets/cmsis/TARGET_Freescale/TARGET_K66F/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/cmsis_nvic.h rename to targets/cmsis/TARGET_Freescale/TARGET_K66F/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/fsl_device_registers.h b/targets/cmsis/TARGET_Freescale/TARGET_K66F/fsl_device_registers.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/fsl_device_registers.h rename to targets/cmsis/TARGET_Freescale/TARGET_K66F/fsl_device_registers.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/system_MK66F18.c b/targets/cmsis/TARGET_Freescale/TARGET_K66F/system_MK66F18.c similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/system_MK66F18.c rename to targets/cmsis/TARGET_Freescale/TARGET_K66F/system_MK66F18.c diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/system_MK66F18.h b/targets/cmsis/TARGET_Freescale/TARGET_K66F/system_MK66F18.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_K66F/system_MK66F18.h rename to targets/cmsis/TARGET_Freescale/TARGET_K66F/system_MK66F18.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/MKL27Z644.h b/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/MKL27Z644.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/MKL27Z644.h rename to targets/cmsis/TARGET_Freescale/TARGET_KL27Z/MKL27Z644.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/MKL27Z644_features.h b/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/MKL27Z644_features.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/MKL27Z644_features.h rename to targets/cmsis/TARGET_Freescale/TARGET_KL27Z/MKL27Z644_features.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_ARM_STD/MKL27Z64xxx4.sct b/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_ARM_STD/MKL27Z64xxx4.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_ARM_STD/MKL27Z64xxx4.sct rename to targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_ARM_STD/MKL27Z64xxx4.sct diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_ARM_STD/startup_MKL27Z644.S b/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_ARM_STD/startup_MKL27Z644.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_ARM_STD/startup_MKL27Z644.S rename to targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_ARM_STD/startup_MKL27Z644.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_GCC_ARM/MKL27Z64xxx4.ld b/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_GCC_ARM/MKL27Z64xxx4.ld similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_GCC_ARM/MKL27Z64xxx4.ld rename to targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_GCC_ARM/MKL27Z64xxx4.ld diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_GCC_ARM/startup_MKL27Z644.S b/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_GCC_ARM/startup_MKL27Z644.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_GCC_ARM/startup_MKL27Z644.S rename to targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_GCC_ARM/startup_MKL27Z644.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_IAR/MKL27Z64xxx4.icf b/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_IAR/MKL27Z64xxx4.icf similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_IAR/MKL27Z64xxx4.icf rename to targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_IAR/MKL27Z64xxx4.icf diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_IAR/startup_MKL27Z644.S b/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_IAR/startup_MKL27Z644.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_IAR/startup_MKL27Z644.S rename to targets/cmsis/TARGET_Freescale/TARGET_KL27Z/TOOLCHAIN_IAR/startup_MKL27Z644.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/cmsis.h b/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/cmsis.h rename to targets/cmsis/TARGET_Freescale/TARGET_KL27Z/cmsis.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/cmsis_nvic.c b/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/cmsis_nvic.c rename to targets/cmsis/TARGET_Freescale/TARGET_KL27Z/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/cmsis_nvic.h b/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/cmsis_nvic.h rename to targets/cmsis/TARGET_Freescale/TARGET_KL27Z/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/fsl_device_registers.h b/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/fsl_device_registers.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/fsl_device_registers.h rename to targets/cmsis/TARGET_Freescale/TARGET_KL27Z/fsl_device_registers.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/system_MKL27Z644.c b/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/system_MKL27Z644.c similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/system_MKL27Z644.c rename to targets/cmsis/TARGET_Freescale/TARGET_KL27Z/system_MKL27Z644.c diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/system_MKL27Z644.h b/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/system_MKL27Z644.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL27Z/system_MKL27Z644.h rename to targets/cmsis/TARGET_Freescale/TARGET_KL27Z/system_MKL27Z644.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/MKL43Z4.h b/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/MKL43Z4.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/MKL43Z4.h rename to targets/cmsis/TARGET_Freescale/TARGET_KL43Z/MKL43Z4.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/MKL43Z4_features.h b/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/MKL43Z4_features.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/MKL43Z4_features.h rename to targets/cmsis/TARGET_Freescale/TARGET_KL43Z/MKL43Z4_features.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_ARM_STD/MKL43Z256xxx4.sct b/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_ARM_STD/MKL43Z256xxx4.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_ARM_STD/MKL43Z256xxx4.sct rename to targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_ARM_STD/MKL43Z256xxx4.sct diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_ARM_STD/startup_MKL43Z4.s b/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_ARM_STD/startup_MKL43Z4.s similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_ARM_STD/startup_MKL43Z4.s rename to targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_ARM_STD/startup_MKL43Z4.s diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_GCC_ARM/MKL43Z256xxx4.ld b/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_GCC_ARM/MKL43Z256xxx4.ld similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_GCC_ARM/MKL43Z256xxx4.ld rename to targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_GCC_ARM/MKL43Z256xxx4.ld diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_GCC_ARM/startup_MKL43Z4.S b/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_GCC_ARM/startup_MKL43Z4.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_GCC_ARM/startup_MKL43Z4.S rename to targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_GCC_ARM/startup_MKL43Z4.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_IAR/MKL43Z256xxx4.icf b/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_IAR/MKL43Z256xxx4.icf similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_IAR/MKL43Z256xxx4.icf rename to targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_IAR/MKL43Z256xxx4.icf diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_IAR/startup_MKL43Z4.s b/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_IAR/startup_MKL43Z4.s similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_IAR/startup_MKL43Z4.s rename to targets/cmsis/TARGET_Freescale/TARGET_KL43Z/TOOLCHAIN_IAR/startup_MKL43Z4.s diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/cmsis.h b/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/cmsis.h rename to targets/cmsis/TARGET_Freescale/TARGET_KL43Z/cmsis.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/cmsis_nvic.c b/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/cmsis_nvic.c rename to targets/cmsis/TARGET_Freescale/TARGET_KL43Z/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/cmsis_nvic.h b/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/cmsis_nvic.h rename to targets/cmsis/TARGET_Freescale/TARGET_KL43Z/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/fsl_device_registers.h b/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/fsl_device_registers.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/fsl_device_registers.h rename to targets/cmsis/TARGET_Freescale/TARGET_KL43Z/fsl_device_registers.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/system_MKL43Z4.c b/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/system_MKL43Z4.c similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/system_MKL43Z4.c rename to targets/cmsis/TARGET_Freescale/TARGET_KL43Z/system_MKL43Z4.c diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/system_MKL43Z4.h b/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/system_MKL43Z4.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KL43Z/system_MKL43Z4.h rename to targets/cmsis/TARGET_Freescale/TARGET_KL43Z/system_MKL43Z4.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/MKL05Z4.h b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/MKL05Z4.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/MKL05Z4.h rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/MKL05Z4.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_ARM_MICRO/MKL05Z4.sct b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_ARM_MICRO/MKL05Z4.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_ARM_MICRO/MKL05Z4.sct rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_ARM_MICRO/MKL05Z4.sct diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_ARM_MICRO/startup_MKL05Z4.S b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_ARM_MICRO/startup_MKL05Z4.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_ARM_MICRO/startup_MKL05Z4.S rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_ARM_MICRO/startup_MKL05Z4.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_ARM_MICRO/sys.cpp b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_ARM_MICRO/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_ARM_MICRO/sys.cpp rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_ARM_MICRO/sys.cpp diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_ARM_STD/MKL05Z4.sct b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_ARM_STD/MKL05Z4.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_ARM_STD/MKL05Z4.sct rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_ARM_STD/MKL05Z4.sct diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_ARM_STD/startup_MKL05Z4.S b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_ARM_STD/startup_MKL05Z4.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_ARM_STD/startup_MKL05Z4.S rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_ARM_STD/startup_MKL05Z4.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_GCC_ARM/MKL05Z4.ld b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_GCC_ARM/MKL05Z4.ld similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_GCC_ARM/MKL05Z4.ld rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_GCC_ARM/MKL05Z4.ld diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_GCC_ARM/startup_MKL05Z4.S b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_GCC_ARM/startup_MKL05Z4.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_GCC_ARM/startup_MKL05Z4.S rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_GCC_ARM/startup_MKL05Z4.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_IAR/MKL05Z4.icf b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_IAR/MKL05Z4.icf similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_IAR/MKL05Z4.icf rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_IAR/MKL05Z4.icf diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_IAR/startup_MKL05Z4.S b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_IAR/startup_MKL05Z4.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_IAR/startup_MKL05Z4.S rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/TOOLCHAIN_IAR/startup_MKL05Z4.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/cmsis.h b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/cmsis.h rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/cmsis.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/cmsis_nvic.c b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/cmsis_nvic.c rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/cmsis_nvic.h b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/cmsis_nvic.h rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/system_MKL05Z4.c b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/system_MKL05Z4.c similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/system_MKL05Z4.c rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/system_MKL05Z4.c diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/system_MKL05Z4.h b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/system_MKL05Z4.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/system_MKL05Z4.h rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL05Z/system_MKL05Z4.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/MKL25Z4.h b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/MKL25Z4.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/MKL25Z4.h rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/MKL25Z4.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_ARM_MICRO/MKL25Z4.sct b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_ARM_MICRO/MKL25Z4.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_ARM_MICRO/MKL25Z4.sct rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_ARM_MICRO/MKL25Z4.sct diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_ARM_MICRO/startup_MKL25Z4.S b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_ARM_MICRO/startup_MKL25Z4.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_ARM_MICRO/startup_MKL25Z4.S rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_ARM_MICRO/startup_MKL25Z4.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_ARM_MICRO/sys.cpp b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_ARM_MICRO/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_ARM_MICRO/sys.cpp rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_ARM_MICRO/sys.cpp diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_ARM_STD/MKL25Z4.sct b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_ARM_STD/MKL25Z4.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_ARM_STD/MKL25Z4.sct rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_ARM_STD/MKL25Z4.sct diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_ARM_STD/startup_MKL25Z4.S b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_ARM_STD/startup_MKL25Z4.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_ARM_STD/startup_MKL25Z4.S rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_ARM_STD/startup_MKL25Z4.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_GCC_ARM/MKL25Z4.ld b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_GCC_ARM/MKL25Z4.ld similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_GCC_ARM/MKL25Z4.ld rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_GCC_ARM/MKL25Z4.ld diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_GCC_ARM/startup_MKL25Z4.S b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_GCC_ARM/startup_MKL25Z4.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_GCC_ARM/startup_MKL25Z4.S rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_GCC_ARM/startup_MKL25Z4.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_GCC_CW_EWL/MKL25Z4.ld b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_GCC_CW_EWL/MKL25Z4.ld similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_GCC_CW_EWL/MKL25Z4.ld rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_GCC_CW_EWL/MKL25Z4.ld diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_GCC_CW_EWL/startup_MKL25Z4.c b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_GCC_CW_EWL/startup_MKL25Z4.c similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_GCC_CW_EWL/startup_MKL25Z4.c rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_GCC_CW_EWL/startup_MKL25Z4.c diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_GCC_CW_NEWLIB/MKL25Z4.ld b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_GCC_CW_NEWLIB/MKL25Z4.ld similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_GCC_CW_NEWLIB/MKL25Z4.ld rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_GCC_CW_NEWLIB/MKL25Z4.ld diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_GCC_CW_NEWLIB/startup_MKL25Z4.S b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_GCC_CW_NEWLIB/startup_MKL25Z4.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_GCC_CW_NEWLIB/startup_MKL25Z4.S rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_GCC_CW_NEWLIB/startup_MKL25Z4.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_IAR/MKL25Z4.icf b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_IAR/MKL25Z4.icf similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_IAR/MKL25Z4.icf rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_IAR/MKL25Z4.icf diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_IAR/startup_MKL25Z4.S b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_IAR/startup_MKL25Z4.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_IAR/startup_MKL25Z4.S rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/TOOLCHAIN_IAR/startup_MKL25Z4.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/cmsis.h b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/cmsis.h rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/cmsis.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/cmsis_nvic.c b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/cmsis_nvic.c rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/cmsis_nvic.h b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/cmsis_nvic.h rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/system_MKL25Z4.c b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/system_MKL25Z4.c similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/system_MKL25Z4.c rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/system_MKL25Z4.c diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/system_MKL25Z4.h b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/system_MKL25Z4.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/system_MKL25Z4.h rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL25Z/system_MKL25Z4.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/MKL26Z4.h b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/MKL26Z4.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/MKL26Z4.h rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/MKL26Z4.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_ARM_MICRO/MKL26Z4.sct b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_ARM_MICRO/MKL26Z4.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_ARM_MICRO/MKL26Z4.sct rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_ARM_MICRO/MKL26Z4.sct diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_ARM_MICRO/startup_MKL26Z4.s b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_ARM_MICRO/startup_MKL26Z4.s similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_ARM_MICRO/startup_MKL26Z4.s rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_ARM_MICRO/startup_MKL26Z4.s diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_ARM_MICRO/sys.cpp b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_ARM_MICRO/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_ARM_MICRO/sys.cpp rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_ARM_MICRO/sys.cpp diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_GCC_ARM/MKL26Z4.ld b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_GCC_ARM/MKL26Z4.ld similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_GCC_ARM/MKL26Z4.ld rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_GCC_ARM/MKL26Z4.ld diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_GCC_ARM/startup_MKL26Z4.S b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_GCC_ARM/startup_MKL26Z4.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_GCC_ARM/startup_MKL26Z4.S rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_GCC_ARM/startup_MKL26Z4.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_IAR/MKL26Z4.icf b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_IAR/MKL26Z4.icf similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_IAR/MKL26Z4.icf rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_IAR/MKL26Z4.icf diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_IAR/startup_MKL26Z4.s b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_IAR/startup_MKL26Z4.s similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_IAR/startup_MKL26Z4.s rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/TOOLCHAIN_IAR/startup_MKL26Z4.s diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/cmsis.h b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/cmsis.h rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/cmsis.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/cmsis_nvic.c b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/cmsis_nvic.c rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/cmsis_nvic.h b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/cmsis_nvic.h rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/system_MKL26Z4.c b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/system_MKL26Z4.c similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/system_MKL26Z4.c rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/system_MKL26Z4.c diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/system_MKL26Z4.h b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/system_MKL26Z4.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/system_MKL26Z4.h rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL26Z/system_MKL26Z4.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/MKL46Z4.h b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/MKL46Z4.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/MKL46Z4.h rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/MKL46Z4.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_ARM_STD/MKL46Z4.sct b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_ARM_STD/MKL46Z4.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_ARM_STD/MKL46Z4.sct rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_ARM_STD/MKL46Z4.sct diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_ARM_STD/startup_MKL46Z4.S b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_ARM_STD/startup_MKL46Z4.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_ARM_STD/startup_MKL46Z4.S rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_ARM_STD/startup_MKL46Z4.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_GCC_ARM/MKL46Z4.ld b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_GCC_ARM/MKL46Z4.ld similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_GCC_ARM/MKL46Z4.ld rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_GCC_ARM/MKL46Z4.ld diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_GCC_ARM/startup_MKL46Z4.S b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_GCC_ARM/startup_MKL46Z4.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_GCC_ARM/startup_MKL46Z4.S rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_GCC_ARM/startup_MKL46Z4.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_IAR/MKL46Z4.icf b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_IAR/MKL46Z4.icf similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_IAR/MKL46Z4.icf rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_IAR/MKL46Z4.icf diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_IAR/startup_MKL46Z4.S b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_IAR/startup_MKL46Z4.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_IAR/startup_MKL46Z4.S rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/TOOLCHAIN_IAR/startup_MKL46Z4.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/cmsis.h b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/cmsis.h rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/cmsis.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/cmsis_nvic.c b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/cmsis_nvic.c rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/cmsis_nvic.h b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/cmsis_nvic.h rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/system_MKL46Z4.c b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/system_MKL46Z4.c similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/system_MKL46Z4.c rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/system_MKL46Z4.c diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/system_MKL46Z4.h b/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/system_MKL46Z4.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/system_MKL46Z4.h rename to targets/cmsis/TARGET_Freescale/TARGET_KLXX/TARGET_KL46Z/system_MKL46Z4.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/MK64F12.h b/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/MK64F12.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/MK64F12.h rename to targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/MK64F12.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/MK64F12_features.h b/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/MK64F12_features.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/MK64F12_features.h rename to targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/MK64F12_features.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_ARM_STD/MK64FN1M0xxx12.sct b/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_ARM_STD/MK64FN1M0xxx12.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_ARM_STD/MK64FN1M0xxx12.sct rename to targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_ARM_STD/MK64FN1M0xxx12.sct diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_ARM_STD/startup_MK64F12.S b/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_ARM_STD/startup_MK64F12.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_ARM_STD/startup_MK64F12.S rename to targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_ARM_STD/startup_MK64F12.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_GCC_ARM/MK64FN1M0xxx12.ld b/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_GCC_ARM/MK64FN1M0xxx12.ld similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_GCC_ARM/MK64FN1M0xxx12.ld rename to targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_GCC_ARM/MK64FN1M0xxx12.ld diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_GCC_ARM/startup_MK64F12.S b/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_GCC_ARM/startup_MK64F12.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_GCC_ARM/startup_MK64F12.S rename to targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_GCC_ARM/startup_MK64F12.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_IAR/MK64FN1M0xxx12.icf b/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_IAR/MK64FN1M0xxx12.icf similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_IAR/MK64FN1M0xxx12.icf rename to targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_IAR/MK64FN1M0xxx12.icf diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_IAR/startup_MK64F12.S b/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_IAR/startup_MK64F12.S similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_IAR/startup_MK64F12.S rename to targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/TOOLCHAIN_IAR/startup_MK64F12.S diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/cmsis.h b/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/cmsis.h rename to targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/cmsis.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/cmsis_nvic.c b/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/cmsis_nvic.c rename to targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/cmsis_nvic.h b/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/cmsis_nvic.h rename to targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/fsl_device_registers.h b/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/fsl_device_registers.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/fsl_device_registers.h rename to targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/fsl_device_registers.h diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/system_MK64F12.c b/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/system_MK64F12.c similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/system_MK64F12.c rename to targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/system_MK64F12.c diff --git a/hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/system_MK64F12.h b/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/system_MK64F12.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/system_MK64F12.h rename to targets/cmsis/TARGET_Freescale/TARGET_MCU_K64F/system_MK64F12.h diff --git a/hal/targets/cmsis/TARGET_Freescale/mbed_rtx.h b/targets/cmsis/TARGET_Freescale/mbed_rtx.h similarity index 100% rename from hal/targets/cmsis/TARGET_Freescale/mbed_rtx.h rename to targets/cmsis/TARGET_Freescale/mbed_rtx.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_ARM_STD/MAX32600.sct b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_ARM_STD/MAX32600.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_ARM_STD/MAX32600.sct rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_ARM_STD/MAX32600.sct diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_ARM_STD/startup_MAX32600.S b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_ARM_STD/startup_MAX32600.S similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_ARM_STD/startup_MAX32600.S rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_ARM_STD/startup_MAX32600.S diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_GCC_ARM/max32600.ld b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_GCC_ARM/max32600.ld similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_GCC_ARM/max32600.ld rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_GCC_ARM/max32600.ld diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_GCC_ARM/startup_max32600.S b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_GCC_ARM/startup_max32600.S similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_GCC_ARM/startup_max32600.S rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_GCC_ARM/startup_max32600.S diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_IAR/MAX32600.icf b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_IAR/MAX32600.icf similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_IAR/MAX32600.icf rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_IAR/MAX32600.icf diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_IAR/startup_MAX32600.S b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_IAR/startup_MAX32600.S similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_IAR/startup_MAX32600.S rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/TOOLCHAIN_IAR/startup_MAX32600.S diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/adc_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/adc_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/adc_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/adc_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/aes_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/aes_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/aes_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/aes_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/afe_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/afe_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/afe_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/afe_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/clkman_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/clkman_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/clkman_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/clkman_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/cmsis.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/cmsis.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/cmsis.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/cmsis_nvic.c b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/cmsis_nvic.c rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/cmsis_nvic.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/cmsis_nvic.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/crc_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/crc_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/crc_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/crc_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/dac_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/dac_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/dac_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/dac_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/flc_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/flc_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/flc_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/flc_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/gpio_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/gpio_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/gpio_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/gpio_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/i2cm_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/i2cm_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/i2cm_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/i2cm_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/icc_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/icc_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/icc_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/icc_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/ioman_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/ioman_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/ioman_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/ioman_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/lcd_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/lcd_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/lcd_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/lcd_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/maa_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/maa_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/maa_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/maa_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/max32600.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/max32600.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/max32600.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/max32600.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/pmu_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/pmu_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/pmu_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/pmu_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/pt_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/pt_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/pt_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/pt_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/pwrman_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/pwrman_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/pwrman_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/pwrman_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/pwrseq_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/pwrseq_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/pwrseq_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/pwrseq_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/rtc_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/rtc_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/rtc_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/rtc_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/spi_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/spi_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/spi_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/spi_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/system_max32600.c b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/system_max32600.c similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/system_max32600.c rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/system_max32600.c diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/system_max32600.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/system_max32600.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/system_max32600.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/system_max32600.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/tmr_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/tmr_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/tmr_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/tmr_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/tpu_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/tpu_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/tpu_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/tpu_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/trim_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/trim_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/trim_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/trim_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/uart_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/uart_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/uart_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/uart_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/usb_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/usb_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/usb_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/usb_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/wdt_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/wdt_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32600/wdt_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32600/wdt_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_ARM_STD/MAX32610.sct b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_ARM_STD/MAX32610.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_ARM_STD/MAX32610.sct rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_ARM_STD/MAX32610.sct diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_ARM_STD/startup_MAX32610.S b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_ARM_STD/startup_MAX32610.S similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_ARM_STD/startup_MAX32610.S rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_ARM_STD/startup_MAX32610.S diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_GCC_ARM/max32610.ld b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_GCC_ARM/max32610.ld similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_GCC_ARM/max32610.ld rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_GCC_ARM/max32610.ld diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_GCC_ARM/startup_max32610.S b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_GCC_ARM/startup_max32610.S similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_GCC_ARM/startup_max32610.S rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_GCC_ARM/startup_max32610.S diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_IAR/MAX32610.icf b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_IAR/MAX32610.icf similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_IAR/MAX32610.icf rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_IAR/MAX32610.icf diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_IAR/startup_MAX32610.S b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_IAR/startup_MAX32610.S similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_IAR/startup_MAX32610.S rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/TOOLCHAIN_IAR/startup_MAX32610.S diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/adc_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/adc_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/adc_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/adc_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/aes_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/aes_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/aes_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/aes_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/afe_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/afe_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/afe_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/afe_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/clkman_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/clkman_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/clkman_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/clkman_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/cmsis.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/cmsis.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/cmsis.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/cmsis_nvic.c b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/cmsis_nvic.c rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/cmsis_nvic.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/cmsis_nvic.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/crc_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/crc_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/crc_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/crc_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/dac_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/dac_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/dac_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/dac_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/flc_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/flc_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/flc_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/flc_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/gpio_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/gpio_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/gpio_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/gpio_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/i2cm_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/i2cm_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/i2cm_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/i2cm_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/icc_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/icc_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/icc_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/icc_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/ioman_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/ioman_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/ioman_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/ioman_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/maa_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/maa_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/maa_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/maa_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/max32610.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/max32610.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/max32610.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/max32610.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/pmu_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/pmu_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/pmu_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/pmu_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/pt_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/pt_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/pt_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/pt_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/pwrman_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/pwrman_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/pwrman_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/pwrman_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/pwrseq_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/pwrseq_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/pwrseq_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/pwrseq_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/rtc_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/rtc_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/rtc_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/rtc_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/spi_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/spi_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/spi_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/spi_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/system_max32610.c b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/system_max32610.c similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/system_max32610.c rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/system_max32610.c diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/system_max32610.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/system_max32610.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/system_max32610.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/system_max32610.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/tmr_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/tmr_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/tmr_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/tmr_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/tpu_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/tpu_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/tpu_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/tpu_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/trim_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/trim_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/trim_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/trim_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/uart_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/uart_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/uart_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/uart_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/usb_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/usb_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/usb_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/usb_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/wdt_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/wdt_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32610/wdt_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32610/wdt_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_ARM_STD/MAX32620.sct b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_ARM_STD/MAX32620.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_ARM_STD/MAX32620.sct rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_ARM_STD/MAX32620.sct diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_ARM_STD/startup_MAX32620.S b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_ARM_STD/startup_MAX32620.S similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_ARM_STD/startup_MAX32620.S rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_ARM_STD/startup_MAX32620.S diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_GCC_ARM/max32620.ld b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_GCC_ARM/max32620.ld similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_GCC_ARM/max32620.ld rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_GCC_ARM/max32620.ld diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_GCC_ARM/startup_max32620.S b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_GCC_ARM/startup_max32620.S similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_GCC_ARM/startup_max32620.S rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_GCC_ARM/startup_max32620.S diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_IAR/MAX32620.icf b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_IAR/MAX32620.icf similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_IAR/MAX32620.icf rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_IAR/MAX32620.icf diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_IAR/startup_MAX32620.S b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_IAR/startup_MAX32620.S similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_IAR/startup_MAX32620.S rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/TOOLCHAIN_IAR/startup_MAX32620.S diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/adc_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/adc_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/adc_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/adc_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/aes_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/aes_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/aes_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/aes_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/clkman_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/clkman_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/clkman_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/clkman_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/cmsis.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/cmsis.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/cmsis.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/cmsis_nvic.c b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/cmsis_nvic.c rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/cmsis_nvic.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/cmsis_nvic.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/crc_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/crc_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/crc_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/crc_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/flc_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/flc_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/flc_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/flc_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/gpio_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/gpio_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/gpio_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/gpio_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/i2cm_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/i2cm_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/i2cm_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/i2cm_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/i2cs_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/i2cs_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/i2cs_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/i2cs_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/icc_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/icc_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/icc_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/icc_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/ioman_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/ioman_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/ioman_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/ioman_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/maa_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/maa_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/maa_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/maa_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/max32620.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/max32620.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/max32620.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/max32620.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/owm_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/owm_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/owm_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/owm_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/pmu_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/pmu_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/pmu_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/pmu_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/pt_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/pt_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/pt_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/pt_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/pwrman_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/pwrman_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/pwrman_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/pwrman_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/pwrseq_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/pwrseq_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/pwrseq_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/pwrseq_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/rtc_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/rtc_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/rtc_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/rtc_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/spi_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/spi_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/spi_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/spi_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/spib_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/spib_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/spib_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/spib_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/spix_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/spix_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/spix_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/spix_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/system_max32620.c b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/system_max32620.c similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/system_max32620.c rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/system_max32620.c diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/system_max32620.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/system_max32620.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/system_max32620.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/system_max32620.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/tmr_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/tmr_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/tmr_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/tmr_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/tpu_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/tpu_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/tpu_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/tpu_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/trim_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/trim_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/trim_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/trim_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/uart_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/uart_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/uart_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/uart_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/usb_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/usb_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/usb_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/usb_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/wdt_regs.h b/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/wdt_regs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/TARGET_MAX32620/wdt_regs.h rename to targets/cmsis/TARGET_Maxim/TARGET_MAX32620/wdt_regs.h diff --git a/hal/targets/cmsis/TARGET_Maxim/mbed_rtx.h b/targets/cmsis/TARGET_Maxim/mbed_rtx.h similarity index 100% rename from hal/targets/cmsis/TARGET_Maxim/mbed_rtx.h rename to targets/cmsis/TARGET_Maxim/mbed_rtx.h diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_ARM_STD/TARGET_MCU_NORDIC_16K/startup_nRF51822.S b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_ARM_STD/TARGET_MCU_NORDIC_16K/startup_nRF51822.S similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_ARM_STD/TARGET_MCU_NORDIC_16K/startup_nRF51822.S rename to targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_ARM_STD/TARGET_MCU_NORDIC_16K/startup_nRF51822.S diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_ARM_STD/TARGET_MCU_NORDIC_32K/nRF51822.sct b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_ARM_STD/TARGET_MCU_NORDIC_32K/nRF51822.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_ARM_STD/TARGET_MCU_NORDIC_32K/nRF51822.sct rename to targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_ARM_STD/TARGET_MCU_NORDIC_32K/nRF51822.sct diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_ARM_STD/TARGET_MCU_NORDIC_32K/startup_nRF51822.S b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_ARM_STD/TARGET_MCU_NORDIC_32K/startup_nRF51822.S similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_ARM_STD/TARGET_MCU_NORDIC_32K/startup_nRF51822.S rename to targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_ARM_STD/TARGET_MCU_NORDIC_32K/startup_nRF51822.S diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_ARM_STD/TARGET_MCU_NRF51_16K_S110/nRF51822.sct b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_ARM_STD/TARGET_MCU_NRF51_16K_S110/nRF51822.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_ARM_STD/TARGET_MCU_NRF51_16K_S110/nRF51822.sct rename to targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_ARM_STD/TARGET_MCU_NRF51_16K_S110/nRF51822.sct diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_ARM_STD/TARGET_MCU_NRF51_16K_S130/nRF51822.sct b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_ARM_STD/TARGET_MCU_NRF51_16K_S130/nRF51822.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_ARM_STD/TARGET_MCU_NRF51_16K_S130/nRF51822.sct rename to targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_ARM_STD/TARGET_MCU_NRF51_16K_S130/nRF51822.sct diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/TARGET_MCU_NORDIC_32K/NRF51822.ld b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/TARGET_MCU_NORDIC_32K/NRF51822.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/TARGET_MCU_NORDIC_32K/NRF51822.ld rename to targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/TARGET_MCU_NORDIC_32K/NRF51822.ld diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/TARGET_MCU_NRF51_16K_S110/NRF51822.ld b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/TARGET_MCU_NRF51_16K_S110/NRF51822.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/TARGET_MCU_NRF51_16K_S110/NRF51822.ld rename to targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/TARGET_MCU_NRF51_16K_S110/NRF51822.ld diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/TARGET_MCU_NRF51_16K_S130/NRF51822.ld b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/TARGET_MCU_NRF51_16K_S130/NRF51822.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/TARGET_MCU_NRF51_16K_S130/NRF51822.ld rename to targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/TARGET_MCU_NRF51_16K_S130/NRF51822.ld diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/startup_NRF51822.S b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/startup_NRF51822.S similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/startup_NRF51822.S rename to targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_GCC_ARM/startup_NRF51822.S diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_16K/nRF51822_QFAA.icf b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_16K/nRF51822_QFAA.icf similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_16K/nRF51822_QFAA.icf rename to targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_16K/nRF51822_QFAA.icf diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_16K/startup_NRF51822_IAR.S b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_16K/startup_NRF51822_IAR.S similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_16K/startup_NRF51822_IAR.S rename to targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_16K/startup_NRF51822_IAR.S diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_32K/nRF51822_QFAA.icf b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_32K/nRF51822_QFAA.icf similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_32K/nRF51822_QFAA.icf rename to targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_32K/nRF51822_QFAA.icf diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_32K/startup_NRF51822_IAR.S b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_32K/startup_NRF51822_IAR.S similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_32K/startup_NRF51822_IAR.S rename to targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_32K/startup_NRF51822_IAR.S diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_IAR/s110_nrf51822_7.1.0_softdevice.bin b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_IAR/s110_nrf51822_7.1.0_softdevice.bin similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_IAR/s110_nrf51822_7.1.0_softdevice.bin rename to targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/TOOLCHAIN_IAR/s110_nrf51822_7.1.0_softdevice.bin diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/cmsis.h b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/cmsis.h rename to targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/cmsis.h diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/cmsis_nvic.c b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/cmsis_nvic.c rename to targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/cmsis_nvic.h b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/cmsis_nvic.h rename to targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/compiler_abstraction.h b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/compiler_abstraction.h similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/compiler_abstraction.h rename to targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/compiler_abstraction.h diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/nrf.h b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/nrf.h similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/nrf.h rename to targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/nrf.h diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/nrf51.h b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/nrf51.h similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/nrf51.h rename to targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/nrf51.h diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/nrf51_bitfields.h b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/nrf51_bitfields.h similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/nrf51_bitfields.h rename to targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/nrf51_bitfields.h diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/nrf51_deprecated.h b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/nrf51_deprecated.h similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/nrf51_deprecated.h rename to targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/nrf51_deprecated.h diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/nrf_delay.h b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/nrf_delay.h similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/nrf_delay.h rename to targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/nrf_delay.h diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/system_nrf51.c b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/system_nrf51.c similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/system_nrf51.c rename to targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/system_nrf51.c diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/system_nrf51.h b/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/system_nrf51.h similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/system_nrf51.h rename to targets/cmsis/TARGET_NORDIC/TARGET_MCU_NRF51822/system_nrf51.h diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_ARM_STD/TARGET_MCU_NORDIC_16K/startup_nRF51822.S b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_ARM_STD/TARGET_MCU_NORDIC_16K/startup_nRF51822.S similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_ARM_STD/TARGET_MCU_NORDIC_16K/startup_nRF51822.S rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_ARM_STD/TARGET_MCU_NORDIC_16K/startup_nRF51822.S diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_ARM_STD/TARGET_MCU_NORDIC_32K/nRF51822.sct b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_ARM_STD/TARGET_MCU_NORDIC_32K/nRF51822.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_ARM_STD/TARGET_MCU_NORDIC_32K/nRF51822.sct rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_ARM_STD/TARGET_MCU_NORDIC_32K/nRF51822.sct diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_ARM_STD/TARGET_MCU_NORDIC_32K/startup_nRF51822.S b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_ARM_STD/TARGET_MCU_NORDIC_32K/startup_nRF51822.S similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_ARM_STD/TARGET_MCU_NORDIC_32K/startup_nRF51822.S rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_ARM_STD/TARGET_MCU_NORDIC_32K/startup_nRF51822.S diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_ARM_STD/TARGET_MCU_NRF51_16K_S110/nRF51822.sct b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_ARM_STD/TARGET_MCU_NRF51_16K_S110/nRF51822.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_ARM_STD/TARGET_MCU_NRF51_16K_S110/nRF51822.sct rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_ARM_STD/TARGET_MCU_NRF51_16K_S110/nRF51822.sct diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_ARM_STD/TARGET_MCU_NRF51_16K_S130/nRF51822.sct b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_ARM_STD/TARGET_MCU_NRF51_16K_S130/nRF51822.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_ARM_STD/TARGET_MCU_NRF51_16K_S130/nRF51822.sct rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_ARM_STD/TARGET_MCU_NRF51_16K_S130/nRF51822.sct diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_GCC_ARM/TARGET_MCU_NORDIC_32K/NRF51822.ld b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_GCC_ARM/TARGET_MCU_NORDIC_32K/NRF51822.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_GCC_ARM/TARGET_MCU_NORDIC_32K/NRF51822.ld rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_GCC_ARM/TARGET_MCU_NORDIC_32K/NRF51822.ld diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_GCC_ARM/TARGET_MCU_NRF51_16K_S110/NRF51822.ld b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_GCC_ARM/TARGET_MCU_NRF51_16K_S110/NRF51822.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_GCC_ARM/TARGET_MCU_NRF51_16K_S110/NRF51822.ld rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_GCC_ARM/TARGET_MCU_NRF51_16K_S110/NRF51822.ld diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_GCC_ARM/TARGET_MCU_NRF51_16K_S130/NRF51822.ld b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_GCC_ARM/TARGET_MCU_NRF51_16K_S130/NRF51822.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_GCC_ARM/TARGET_MCU_NRF51_16K_S130/NRF51822.ld rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_GCC_ARM/TARGET_MCU_NRF51_16K_S130/NRF51822.ld diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_GCC_ARM/startup_NRF51822.S b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_GCC_ARM/startup_NRF51822.S similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_GCC_ARM/startup_NRF51822.S rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_GCC_ARM/startup_NRF51822.S diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_16K/nRF51822_QFAA.icf b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_16K/nRF51822_QFAA.icf similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_16K/nRF51822_QFAA.icf rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_16K/nRF51822_QFAA.icf diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_16K/startup_NRF51822_IAR.S b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_16K/startup_NRF51822_IAR.S similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_16K/startup_NRF51822_IAR.S rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_16K/startup_NRF51822_IAR.S diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_32K/nRF51822_QFAA.icf b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_32K/nRF51822_QFAA.icf similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_32K/nRF51822_QFAA.icf rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_32K/nRF51822_QFAA.icf diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_32K/startup_NRF51822_IAR.S b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_32K/startup_NRF51822_IAR.S similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_32K/startup_NRF51822_IAR.S rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/TOOLCHAIN_IAR/TARGET_MCU_NORDIC_32K/startup_NRF51822_IAR.S diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/cmsis.h b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/cmsis.h rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/cmsis.h diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/cmsis_nvic.c b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/cmsis_nvic.c rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/cmsis_nvic.h b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/cmsis_nvic.h rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/system_nrf51.c b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/system_nrf51.c similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/system_nrf51.c rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/system_nrf51.c diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/system_nrf51.h b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/system_nrf51.h similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/system_nrf51.h rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822_UNIFIED/system_nrf51.h diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_ARM_STD/nRF52832.sct b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_ARM_STD/nRF52832.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_ARM_STD/nRF52832.sct rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_ARM_STD/nRF52832.sct diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_ARM_STD/startup_nrf52832.s b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_ARM_STD/startup_nrf52832.s similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_ARM_STD/startup_nrf52832.s rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_ARM_STD/startup_nrf52832.s diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_GCC_ARM/NRF52832.ld b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_GCC_ARM/NRF52832.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_GCC_ARM/NRF52832.ld rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_GCC_ARM/NRF52832.ld diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_GCC_ARM/startup_NRF52832.S b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_GCC_ARM/startup_NRF52832.S similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_GCC_ARM/startup_NRF52832.S rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_GCC_ARM/startup_NRF52832.S diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_IAR/nRF52832.icf b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_IAR/nRF52832.icf similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_IAR/nRF52832.icf rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_IAR/nRF52832.icf diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_IAR/startup_NRF52832_IAR.s b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_IAR/startup_NRF52832_IAR.s similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_IAR/startup_NRF52832_IAR.s rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/TOOLCHAIN_IAR/startup_NRF52832_IAR.s diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/cmsis.h b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/cmsis.h rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/cmsis.h diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/cmsis_nvic.c b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/cmsis_nvic.c rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/cmsis_nvic.h b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/cmsis_nvic.h rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/system_nrf52.c b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/system_nrf52.c similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/system_nrf52.c rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/system_nrf52.c diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/system_nrf52.h b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/system_nrf52.h similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/system_nrf52.h rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832/system_nrf52.h diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/nrf5x_lf_clk_helper.h b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/nrf5x_lf_clk_helper.h similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/nrf5x_lf_clk_helper.h rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/nrf5x_lf_clk_helper.h diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/compiler_abstraction.h b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/compiler_abstraction.h similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/compiler_abstraction.h rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/compiler_abstraction.h diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf.h b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf.h similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf.h rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf.h diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf51.h b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf51.h similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf51.h rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf51.h diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf51_bitfields.h b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf51_bitfields.h similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf51_bitfields.h rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf51_bitfields.h diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf51_deprecated.h b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf51_deprecated.h similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf51_deprecated.h rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf51_deprecated.h diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf51_to_nrf52.h b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf51_to_nrf52.h similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf51_to_nrf52.h rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf51_to_nrf52.h diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf52.h b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf52.h similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf52.h rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf52.h diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf52_bitfields.h b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf52_bitfields.h similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf52_bitfields.h rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf52_bitfields.h diff --git a/hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf52_name_change.h b/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf52_name_change.h similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf52_name_change.h rename to targets/cmsis/TARGET_NORDIC/TARGET_NRF5/sdk/device/nrf52_name_change.h diff --git a/hal/targets/cmsis/TARGET_NORDIC/mbed_rtx.h b/targets/cmsis/TARGET_NORDIC/mbed_rtx.h similarity index 100% rename from hal/targets/cmsis/TARGET_NORDIC/mbed_rtx.h rename to targets/cmsis/TARGET_NORDIC/mbed_rtx.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/NUC472_442.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/NUC472_442.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/NUC472_442.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/NUC472_442.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_acmp.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_acmp.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_acmp.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_acmp.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_acmp.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_acmp.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_acmp.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_acmp.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_adc.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_adc.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_adc.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_adc.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_adc.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_adc.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_adc.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_adc.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_can.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_can.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_can.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_can.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_can.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_can.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_can.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_can.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_cap.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_cap.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_cap.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_cap.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_cap.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_cap.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_cap.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_cap.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_clk.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_clk.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_clk.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_clk.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_clk.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_clk.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_clk.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_clk.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_crypto.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_crypto.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_crypto.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_crypto.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_crypto.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_crypto.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_crypto.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_crypto.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_eadc.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_eadc.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_eadc.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_eadc.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_eadc.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_eadc.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_eadc.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_eadc.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_ebi.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_ebi.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_ebi.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_ebi.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_ebi.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_ebi.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_ebi.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_ebi.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_emac.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_emac.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_emac.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_emac.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_emac.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_emac.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_emac.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_emac.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_fmc.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_fmc.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_fmc.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_fmc.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_fmc.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_fmc.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_fmc.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_fmc.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_gpio.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_gpio.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_gpio.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_gpio.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_gpio.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_gpio.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_gpio.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_gpio.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_i2c.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_i2c.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_i2c.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_i2c.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_i2c.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_i2c.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_i2c.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_i2c.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_i2s.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_i2s.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_i2s.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_i2s.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_i2s.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_i2s.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_i2s.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_i2s.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_pdma.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_pdma.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_pdma.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_pdma.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_pdma.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_pdma.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_pdma.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_pdma.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_ps2.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_ps2.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_ps2.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_ps2.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_ps2.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_ps2.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_ps2.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_ps2.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_pwm.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_pwm.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_pwm.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_pwm.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_pwm.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_pwm.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_pwm.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_pwm.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_rtc.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_rtc.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_rtc.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_rtc.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_rtc.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_rtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_rtc.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_rtc.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_sc.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_sc.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_sc.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_sc.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_sc.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_sc.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_sc.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_sc.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_scuart.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_scuart.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_scuart.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_scuart.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_scuart.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_scuart.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_scuart.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_scuart.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_sd.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_sd.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_sd.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_sd.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_sd.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_sd.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_sd.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_sd.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_spi.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_spi.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_spi.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_spi.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_spi.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_spi.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_spi.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_spi.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_sys.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_sys.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_sys.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_sys.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_sys.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_sys.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_sys.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_sys.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_timer.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_timer.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_timer.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_timer.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_timer.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_timer.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_timer.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_timer.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_uart.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_uart.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_uart.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_uart.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_uart.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_uart.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_uart.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_uart.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_usbd.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_usbd.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_usbd.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_usbd.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_usbd.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_usbd.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_usbd.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_usbd.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_wdt.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_wdt.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_wdt.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_wdt.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_wdt.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_wdt.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_wdt.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_wdt.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_wwdt.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_wwdt.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_wwdt.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_wwdt.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_wwdt.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_wwdt.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_wwdt.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/StdDriver/nuc472_wwdt.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_ARM_MICRO/NUC472.sct b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_ARM_MICRO/NUC472.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_ARM_MICRO/NUC472.sct rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_ARM_MICRO/NUC472.sct diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_ARM_MICRO/sys.cpp b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_ARM_MICRO/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_ARM_MICRO/sys.cpp rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_ARM_MICRO/sys.cpp diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_ARM_STD/NUC472.sct b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_ARM_STD/NUC472.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_ARM_STD/NUC472.sct rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_ARM_STD/NUC472.sct diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_GCC_ARM/NUC472.ld b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_GCC_ARM/NUC472.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_GCC_ARM/NUC472.ld rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_GCC_ARM/NUC472.ld diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_GCC_ARM/retarget.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_GCC_ARM/retarget.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_GCC_ARM/retarget.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_GCC_ARM/retarget.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_IAR/NUC472_442.icf b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_IAR/NUC472_442.icf similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_IAR/NUC472_442.icf rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/TOOLCHAIN_IAR/NUC472_442.icf diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/startup_NUC472_442.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/startup_NUC472_442.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/startup_NUC472_442.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/startup_NUC472_442.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/cmsis.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/cmsis.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/cmsis.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/cmsis_nvic.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/cmsis_nvic.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/cmsis_nvic.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/cmsis_nvic.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/system_NUC472_442.c b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/system_NUC472_442.c similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/system_NUC472_442.c rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/system_NUC472_442.c diff --git a/hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/system_NUC472_442.h b/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/system_NUC472_442.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/system_NUC472_442.h rename to targets/cmsis/TARGET_NUVOTON/TARGET_NUC472/system_NUC472_442.h diff --git a/hal/targets/cmsis/TARGET_NUVOTON/mbed_rtx.h b/targets/cmsis/TARGET_NUVOTON/mbed_rtx.h similarity index 100% rename from hal/targets/cmsis/TARGET_NUVOTON/mbed_rtx.h rename to targets/cmsis/TARGET_NUVOTON/mbed_rtx.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/LPC11U6x.h b/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/LPC11U6x.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/LPC11U6x.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/LPC11U6x.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U68/LPC11U68.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U68/LPC11U68.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U68/LPC11U68.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U68/LPC11U68.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U68/startup_LPC11U6x.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U68/startup_LPC11U6x.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U68/startup_LPC11U6x.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U68/startup_LPC11U6x.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_MICRO/sys.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_MICRO/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_MICRO/sys.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_MICRO/sys.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_STD/TARGET_LPC11U68/LPC11U68.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_STD/TARGET_LPC11U68/LPC11U68.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_STD/TARGET_LPC11U68/LPC11U68.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_STD/TARGET_LPC11U68/LPC11U68.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_STD/TARGET_LPC11U68/startup_LPC11U6x.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_STD/TARGET_LPC11U68/startup_LPC11U6x.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_STD/TARGET_LPC11U68/startup_LPC11U6x.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_STD/TARGET_LPC11U68/startup_LPC11U6x.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_ARM/TARGET_LPC11U68/LPC11U68.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_ARM/TARGET_LPC11U68/LPC11U68.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_ARM/TARGET_LPC11U68/LPC11U68.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_ARM/TARGET_LPC11U68/LPC11U68.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_ARM/TARGET_LPC11U68/startup_LPC11U68.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_ARM/TARGET_LPC11U68/startup_LPC11U68.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_ARM/TARGET_LPC11U68/startup_LPC11U68.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_ARM/TARGET_LPC11U68/startup_LPC11U68.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_CR/TARGET_LPC11U68/LPC11U68.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_CR/TARGET_LPC11U68/LPC11U68.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_CR/TARGET_LPC11U68/LPC11U68.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_CR/TARGET_LPC11U68/LPC11U68.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_CR/TARGET_LPC11U68/aeabi_romdiv_patch.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_CR/TARGET_LPC11U68/aeabi_romdiv_patch.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_CR/TARGET_LPC11U68/aeabi_romdiv_patch.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_CR/TARGET_LPC11U68/aeabi_romdiv_patch.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_CR/TARGET_LPC11U68/mtb.c b/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_CR/TARGET_LPC11U68/mtb.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_CR/TARGET_LPC11U68/mtb.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_CR/TARGET_LPC11U68/mtb.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_CR/TARGET_LPC11U68/startup_LPC11U68.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_CR/TARGET_LPC11U68/startup_LPC11U68.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_CR/TARGET_LPC11U68/startup_LPC11U68.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_GCC_CR/TARGET_LPC11U68/startup_LPC11U68.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_IAR/TARGET_LPC11U68/LPC11U68.icf b/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_IAR/TARGET_LPC11U68/LPC11U68.icf similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_IAR/TARGET_LPC11U68/LPC11U68.icf rename to targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_IAR/TARGET_LPC11U68/LPC11U68.icf diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_IAR/TARGET_LPC11U68/startup_LPC11U6X.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_IAR/TARGET_LPC11U68/startup_LPC11U6X.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_IAR/TARGET_LPC11U68/startup_LPC11U6X.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/TOOLCHAIN_IAR/TARGET_LPC11U68/startup_LPC11U6X.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/cmsis.h b/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/cmsis.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/cmsis.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/cmsis_nvic.c b/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/cmsis_nvic.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/cmsis_nvic.h b/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/cmsis_nvic.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/system_LPC11U6x.c b/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/system_LPC11U6x.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/system_LPC11U6x.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/system_LPC11U6x.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/system_LPC11U6x.h b/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/system_LPC11U6x.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/system_LPC11U6x.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC11U6X/system_LPC11U6x.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/LPC11Uxx.h b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/LPC11Uxx.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/LPC11Uxx.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/LPC11Uxx.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_APPNEARME_MICRONFCBOARD/LPC11U34.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_APPNEARME_MICRONFCBOARD/LPC11U34.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_APPNEARME_MICRONFCBOARD/LPC11U34.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_APPNEARME_MICRONFCBOARD/LPC11U34.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_APPNEARME_MICRONFCBOARD/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_APPNEARME_MICRONFCBOARD/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_APPNEARME_MICRONFCBOARD/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_APPNEARME_MICRONFCBOARD/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U24_301/LPC11U24.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U24_301/LPC11U24.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U24_301/LPC11U24.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U24_301/LPC11U24.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U24_301/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U24_301/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U24_301/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U24_301/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U24_401/LPC11U24.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U24_401/LPC11U24.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U24_401/LPC11U24.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U24_401/LPC11U24.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U24_401/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U24_401/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U24_401/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U24_401/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U34_421/LPC11U34.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U34_421/LPC11U34.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U34_421/LPC11U34.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U34_421/LPC11U34.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U34_421/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U34_421/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U34_421/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U34_421/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U35_401/LPC11U35.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U35_401/LPC11U35.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U35_401/LPC11U35.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U35_401/LPC11U35.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U35_401/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U35_401/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U35_401/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U35_401/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U37H_401/LPC11U37.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U37H_401/LPC11U37.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U37H_401/LPC11U37.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U37H_401/LPC11U37.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U37H_401/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U37H_401/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U37H_401/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U37H_401/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U37_501/LPC11U37.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U37_501/LPC11U37.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U37_501/LPC11U37.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U37_501/LPC11U37.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U37_501/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U37_501/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U37_501/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11U37_501/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_MCU_LPC11U35_501/LPC11U35.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_MCU_LPC11U35_501/LPC11U35.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_MCU_LPC11U35_501/LPC11U35.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_MCU_LPC11U35_501/LPC11U35.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_MCU_LPC11U35_501/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_MCU_LPC11U35_501/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_MCU_LPC11U35_501/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_MCU_LPC11U35_501/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_OC_MBUINO/LPC11U24.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_OC_MBUINO/LPC11U24.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_OC_MBUINO/LPC11U24.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_OC_MBUINO/LPC11U24.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_OC_MBUINO/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_OC_MBUINO/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_OC_MBUINO/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/TARGET_OC_MBUINO/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/sys.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/sys.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_MICRO/sys.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_APPNEARME_MICRONFCBOARD/LPC11U34.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_APPNEARME_MICRONFCBOARD/LPC11U34.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_APPNEARME_MICRONFCBOARD/LPC11U34.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_APPNEARME_MICRONFCBOARD/LPC11U34.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_APPNEARME_MICRONFCBOARD/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_APPNEARME_MICRONFCBOARD/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_APPNEARME_MICRONFCBOARD/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_APPNEARME_MICRONFCBOARD/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U24_301/LPC11U24.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U24_301/LPC11U24.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U24_301/LPC11U24.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U24_301/LPC11U24.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U24_301/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U24_301/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U24_301/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U24_301/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U24_401/LPC11U24.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U24_401/LPC11U24.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U24_401/LPC11U24.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U24_401/LPC11U24.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U24_401/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U24_401/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U24_401/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U24_401/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U34_421/LPC11U34.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U34_421/LPC11U34.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U34_421/LPC11U34.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U34_421/LPC11U34.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U34_421/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U34_421/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U34_421/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U34_421/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U35_401/LPC11U35.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U35_401/LPC11U35.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U35_401/LPC11U35.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U35_401/LPC11U35.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U35_401/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U35_401/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U35_401/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U35_401/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U35_501/LPC11U35.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U35_501/LPC11U35.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U35_501/LPC11U35.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U35_501/LPC11U35.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U35_501/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U35_501/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U35_501/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U35_501/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U37H_401/LPC11U37.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U37H_401/LPC11U37.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U37H_401/LPC11U37.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U37H_401/LPC11U37.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U37H_401/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U37H_401/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U37H_401/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U37H_401/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U37_501/LPC11U37.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U37_501/LPC11U37.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U37_501/LPC11U37.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U37_501/LPC11U37.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U37_501/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U37_501/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U37_501/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_LPC11U37_501/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_OC_MBUINO/LPC11U24.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_OC_MBUINO/LPC11U24.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_OC_MBUINO/LPC11U24.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_OC_MBUINO/LPC11U24.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_OC_MBUINO/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_OC_MBUINO/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_OC_MBUINO/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/TARGET_OC_MBUINO/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_APPNEARME_MICRONFCBOARD/LPC11U34.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_APPNEARME_MICRONFCBOARD/LPC11U34.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_APPNEARME_MICRONFCBOARD/LPC11U34.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_APPNEARME_MICRONFCBOARD/LPC11U34.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U24_301/LPC11U24.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U24_301/LPC11U24.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U24_301/LPC11U24.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U24_301/LPC11U24.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U24_401/LPC11U24.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U24_401/LPC11U24.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U24_401/LPC11U24.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U24_401/LPC11U24.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U34_421/LPC11U34.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U34_421/LPC11U34.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U34_421/LPC11U34.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U34_421/LPC11U34.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U35_401/LPC11U35.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U35_401/LPC11U35.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U35_401/LPC11U35.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U35_401/LPC11U35.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U35_501/LPC11U35.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U35_501/LPC11U35.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U35_501/LPC11U35.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U35_501/LPC11U35.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U35_Y5_MBUG/LPC11U35.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U35_Y5_MBUG/LPC11U35.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U35_Y5_MBUG/LPC11U35.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U35_Y5_MBUG/LPC11U35.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U37H_401/LPC11U37.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U37H_401/LPC11U37.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U37H_401/LPC11U37.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U37H_401/LPC11U37.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U37_501/LPC11U37.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U37_501/LPC11U37.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U37_501/LPC11U37.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11U37_501/LPC11U37.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPCCAPPUCCINO/LPC11U37.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPCCAPPUCCINO/LPC11U37.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPCCAPPUCCINO/LPC11U37.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_LPCCAPPUCCINO/LPC11U37.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_OC_MBUINO/LPC11U24.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_OC_MBUINO/LPC11U24.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_OC_MBUINO/LPC11U24.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/TARGET_OC_MBUINO/LPC11U24.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_ARM/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CR/TARGET_LPC11U24/LPC11U24.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CR/TARGET_LPC11U24/LPC11U24.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CR/TARGET_LPC11U24/LPC11U24.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CR/TARGET_LPC11U24/LPC11U24.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CR/TARGET_LPC11U35_401/LPC11U35.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CR/TARGET_LPC11U35_401/LPC11U35.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CR/TARGET_LPC11U35_401/LPC11U35.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CR/TARGET_LPC11U35_401/LPC11U35.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CR/TARGET_LPC11U35_501/LPC11U35.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CR/TARGET_LPC11U35_501/LPC11U35.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CR/TARGET_LPC11U35_501/LPC11U35.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CR/TARGET_LPC11U35_501/LPC11U35.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CR/TARGET_LPC11U37H_401/LPC11U37.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CR/TARGET_LPC11U37H_401/LPC11U37.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CR/TARGET_LPC11U37H_401/LPC11U37.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CR/TARGET_LPC11U37H_401/LPC11U37.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CR/TARGET_LPC11U37_501/LPC11U37.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CR/TARGET_LPC11U37_501/LPC11U37.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CR/TARGET_LPC11U37_501/LPC11U37.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CR/TARGET_LPC11U37_501/LPC11U37.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CR/startup_LPC11xx.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CR/startup_LPC11xx.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CR/startup_LPC11xx.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CR/startup_LPC11xx.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CS/LPC11U24.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CS/LPC11U24.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CS/LPC11U24.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CS/LPC11U24.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CS/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CS/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CS/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CS/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CS/sys.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CS/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CS/sys.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_GCC_CS/sys.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U24_301/LPC11U24.icf b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U24_301/LPC11U24.icf similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U24_301/LPC11U24.icf rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U24_301/LPC11U24.icf diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U24_301/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U24_301/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U24_301/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U24_301/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U24_401/LPC11U24.icf b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U24_401/LPC11U24.icf similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U24_401/LPC11U24.icf rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U24_401/LPC11U24.icf diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U24_401/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U24_401/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U24_401/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U24_401/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U35_401/LPC11U35.icf b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U35_401/LPC11U35.icf similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U35_401/LPC11U35.icf rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U35_401/LPC11U35.icf diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U35_401/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U35_401/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U35_401/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U35_401/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U35_501/LPC11U35.icf b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U35_501/LPC11U35.icf similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U35_501/LPC11U35.icf rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U35_501/LPC11U35.icf diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U35_501/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U35_501/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U35_501/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U35_501/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U37_501/LPC11U37.icf b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U37_501/LPC11U37.icf similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U37_501/LPC11U37.icf rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U37_501/LPC11U37.icf diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U37_501/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U37_501/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U37_501/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_LPC11U37_501/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_OC_MBUINO/LPC11U24.icf b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_OC_MBUINO/LPC11U24.icf similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_OC_MBUINO/LPC11U24.icf rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_OC_MBUINO/LPC11U24.icf diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_OC_MBUINO/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_OC_MBUINO/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_OC_MBUINO/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/TOOLCHAIN_IAR/TARGET_OC_MBUINO/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/cmsis.h b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/cmsis.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/cmsis.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/cmsis_nvic.c b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/cmsis_nvic.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/cmsis_nvic.h b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/cmsis_nvic.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/power_api.h b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/power_api.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/power_api.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/power_api.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/system_LPC11Uxx.c b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/system_LPC11Uxx.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/system_LPC11Uxx.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/system_LPC11Uxx.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/system_LPC11Uxx.h b/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/system_LPC11Uxx.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/system_LPC11Uxx.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC11UXX/system_LPC11Uxx.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/LPC11xx.h b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/LPC11xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/LPC11xx.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/LPC11xx.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11CXX/system_LPC11xx.c b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11CXX/system_LPC11xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11CXX/system_LPC11xx.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11CXX/system_LPC11xx.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11XX/system_LPC11xx.c b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11XX/system_LPC11xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11XX/system_LPC11xx.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TARGET_LPC11XX/system_LPC11xx.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11CXX/LPC11C24.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11CXX/LPC11C24.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11CXX/LPC11C24.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11CXX/LPC11C24.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11CXX/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11CXX/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11CXX/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11CXX/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11XX/LPC1114.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11XX/LPC1114.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11XX/LPC1114.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11XX/LPC1114.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11XX/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11XX/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11XX/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_MICRO/TARGET_LPC11XX/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_MICRO/sys.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_MICRO/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_MICRO/sys.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_MICRO/sys.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_STD/TARGET_LPC11CXX/LPC11C24.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_STD/TARGET_LPC11CXX/LPC11C24.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_STD/TARGET_LPC11CXX/LPC11C24.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_STD/TARGET_LPC11CXX/LPC11C24.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_STD/TARGET_LPC11CXX/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_STD/TARGET_LPC11CXX/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_STD/TARGET_LPC11CXX/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_STD/TARGET_LPC11CXX/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_STD/TARGET_LPC11XX/LPC1114.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_STD/TARGET_LPC11XX/LPC1114.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_STD/TARGET_LPC11XX/LPC1114.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_STD/TARGET_LPC11XX/LPC1114.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_STD/TARGET_LPC11XX/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_STD/TARGET_LPC11XX/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_STD/TARGET_LPC11XX/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_STD/TARGET_LPC11XX/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11CXX/LPC11C24.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11CXX/LPC11C24.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11CXX/LPC11C24.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11CXX/LPC11C24.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11XX/LPC1114.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11XX/LPC1114.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11XX/LPC1114.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_ARM/TARGET_LPC11XX/LPC1114.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_ARM/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_ARM/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_ARM/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_ARM/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_CR/TARGET_LPC11XX/LPC1114.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_CR/TARGET_LPC11XX/LPC1114.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_CR/TARGET_LPC11XX/LPC1114.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_CR/TARGET_LPC11XX/LPC1114.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_CR/TARGET_LPC11XX/startup_LPC11xx.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_CR/TARGET_LPC11XX/startup_LPC11xx.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_CR/TARGET_LPC11XX/startup_LPC11xx.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_CR/TARGET_LPC11XX/startup_LPC11xx.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_CS/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_CS/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_CS/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_CS/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_CS/sys.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_CS/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_CS/sys.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_GCC_CS/sys.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_IAR/TARGET_LPC11CXX/LPC11C24.icf b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_IAR/TARGET_LPC11CXX/LPC11C24.icf similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_IAR/TARGET_LPC11CXX/LPC11C24.icf rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_IAR/TARGET_LPC11CXX/LPC11C24.icf diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_IAR/TARGET_LPC11CXX/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_IAR/TARGET_LPC11CXX/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_IAR/TARGET_LPC11CXX/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_IAR/TARGET_LPC11CXX/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_IAR/TARGET_LPC11XX/LPC1114.icf b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_IAR/TARGET_LPC11XX/LPC1114.icf similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_IAR/TARGET_LPC11XX/LPC1114.icf rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_IAR/TARGET_LPC11XX/LPC1114.icf diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_IAR/TARGET_LPC11XX/startup_LPC11xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_IAR/TARGET_LPC11XX/startup_LPC11xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_IAR/TARGET_LPC11XX/startup_LPC11xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/TOOLCHAIN_IAR/TARGET_LPC11XX/startup_LPC11xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/bitfields.h b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/bitfields.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/bitfields.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/bitfields.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/cmsis.h b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/cmsis.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/cmsis.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/cmsis_nvic.c b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/cmsis_nvic.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/cmsis_nvic.h b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/cmsis_nvic.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/system_LPC11xx.h b/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/system_LPC11xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/system_LPC11xx.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC11XX_11CXX/system_LPC11xx.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/LPC13Uxx.h b/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/LPC13Uxx.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/LPC13Uxx.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC13XX/LPC13Uxx.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_ARM_MICRO/LPC1347.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_ARM_MICRO/LPC1347.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_ARM_MICRO/LPC1347.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_ARM_MICRO/LPC1347.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_ARM_MICRO/startup_LPC13xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_ARM_MICRO/startup_LPC13xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_ARM_MICRO/startup_LPC13xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_ARM_MICRO/startup_LPC13xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_ARM_MICRO/sys.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_ARM_MICRO/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_ARM_MICRO/sys.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_ARM_MICRO/sys.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_ARM_STD/LPC1347.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_ARM_STD/LPC1347.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_ARM_STD/LPC1347.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_ARM_STD/LPC1347.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_ARM_STD/startup_LPC13xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_ARM_STD/startup_LPC13xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_ARM_STD/startup_LPC13xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_ARM_STD/startup_LPC13xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_GCC_ARM/LPC1347.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_GCC_ARM/LPC1347.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_GCC_ARM/LPC1347.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_GCC_ARM/LPC1347.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_GCC_ARM/startup_LPC13xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_GCC_ARM/startup_LPC13xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_GCC_ARM/startup_LPC13xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_GCC_ARM/startup_LPC13xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_IAR/LPC1347.icf b/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_IAR/LPC1347.icf similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_IAR/LPC1347.icf rename to targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_IAR/LPC1347.icf diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_IAR/startup_LPC1347.S b/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_IAR/startup_LPC1347.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_IAR/startup_LPC1347.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC13XX/TOOLCHAIN_IAR/startup_LPC1347.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/cmsis.h b/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/cmsis.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC13XX/cmsis.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/cmsis_nvic.c b/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/cmsis_nvic.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC13XX/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/cmsis_nvic.h b/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/cmsis_nvic.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC13XX/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/system_LPC13Uxx.c b/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/system_LPC13Uxx.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/system_LPC13Uxx.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC13XX/system_LPC13Uxx.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/system_LPC13Uxx.h b/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/system_LPC13Uxx.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC13XX/system_LPC13Uxx.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC13XX/system_LPC13Uxx.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/LPC15xx.h b/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/LPC15xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/LPC15xx.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC15XX/LPC15xx.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_ARM_MICRO/LPC15xx.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_ARM_MICRO/LPC15xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_ARM_MICRO/LPC15xx.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_ARM_MICRO/LPC15xx.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_ARM_MICRO/startup_LPC15xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_ARM_MICRO/startup_LPC15xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_ARM_MICRO/startup_LPC15xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_ARM_MICRO/startup_LPC15xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_ARM_MICRO/sys.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_ARM_MICRO/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_ARM_MICRO/sys.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_ARM_MICRO/sys.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_GCC_ARM/LPC1549.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_GCC_ARM/LPC1549.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_GCC_ARM/LPC1549.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_GCC_ARM/LPC1549.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_GCC_ARM/startup_LPC15xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_GCC_ARM/startup_LPC15xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_GCC_ARM/startup_LPC15xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_GCC_ARM/startup_LPC15xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_GCC_CR/LPC1549.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_GCC_CR/LPC1549.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_GCC_CR/LPC1549.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_GCC_CR/LPC1549.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_GCC_CR/startup_LPC15xx.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_GCC_CR/startup_LPC15xx.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_GCC_CR/startup_LPC15xx.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_GCC_CR/startup_LPC15xx.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_IAR/LPC15xx.icf b/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_IAR/LPC15xx.icf similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_IAR/LPC15xx.icf rename to targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_IAR/LPC15xx.icf diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_IAR/startup_LPC15xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_IAR/startup_LPC15xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_IAR/startup_LPC15xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC15XX/TOOLCHAIN_IAR/startup_LPC15xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/cmsis.h b/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/cmsis.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC15XX/cmsis.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/cmsis_nvic.c b/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/cmsis_nvic.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC15XX/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/cmsis_nvic.h b/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/cmsis_nvic.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC15XX/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/system_LPC15xx.c b/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/system_LPC15xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/system_LPC15xx.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC15XX/system_LPC15xx.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/system_LPC15xx.h b/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/system_LPC15xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC15XX/system_LPC15xx.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC15XX/system_LPC15xx.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/LPC17xx.h b/targets/cmsis/TARGET_NXP/TARGET_LPC176X/LPC17xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/LPC17xx.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC176X/LPC17xx.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_ARM_MICRO/LPC1768.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_ARM_MICRO/LPC1768.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_ARM_MICRO/LPC1768.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_ARM_MICRO/LPC1768.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_ARM_MICRO/startup_LPC17xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_ARM_MICRO/startup_LPC17xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_ARM_MICRO/startup_LPC17xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_ARM_MICRO/startup_LPC17xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_ARM_MICRO/sys.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_ARM_MICRO/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_ARM_MICRO/sys.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_ARM_MICRO/sys.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_ARM_STD/LPC1768.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_ARM_STD/LPC1768.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_ARM_STD/LPC1768.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_ARM_STD/LPC1768.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_ARM_STD/startup_LPC17xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_ARM_STD/startup_LPC17xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_ARM_STD/startup_LPC17xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_ARM_STD/startup_LPC17xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM/LPC1768.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM/LPC1768.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM/LPC1768.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM/LPC1768.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM/TARGET_XBED_LPC1768/XBED_LPC1768.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM/TARGET_XBED_LPC1768/XBED_LPC1768.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM/TARGET_XBED_LPC1768/XBED_LPC1768.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM/TARGET_XBED_LPC1768/XBED_LPC1768.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM/startup_LPC17xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM/startup_LPC17xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM/startup_LPC17xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_ARM/startup_LPC17xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_CR/LPC1768.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_CR/LPC1768.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_CR/LPC1768.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_CR/LPC1768.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_CR/startup_LPC17xx.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_CR/startup_LPC17xx.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_CR/startup_LPC17xx.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_CR/startup_LPC17xx.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_CS/LPC1768.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_CS/LPC1768.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_CS/LPC1768.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_CS/LPC1768.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_CS/startup_LPC17xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_CS/startup_LPC17xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_CS/startup_LPC17xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_CS/startup_LPC17xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_CS/sys.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_CS/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_CS/sys.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_GCC_CS/sys.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_IAR/LPC17xx.icf b/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_IAR/LPC17xx.icf similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_IAR/LPC17xx.icf rename to targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_IAR/LPC17xx.icf diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_IAR/startup_LPC17xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_IAR/startup_LPC17xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_IAR/startup_LPC17xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC176X/TOOLCHAIN_IAR/startup_LPC17xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/cmsis.h b/targets/cmsis/TARGET_NXP/TARGET_LPC176X/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/cmsis.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC176X/cmsis.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/cmsis_nvic.c b/targets/cmsis/TARGET_NXP/TARGET_LPC176X/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/cmsis_nvic.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC176X/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/cmsis_nvic.h b/targets/cmsis/TARGET_NXP/TARGET_LPC176X/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/cmsis_nvic.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC176X/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/system_LPC17xx.c b/targets/cmsis/TARGET_NXP/TARGET_LPC176X/system_LPC17xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/system_LPC17xx.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC176X/system_LPC17xx.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/system_LPC17xx.h b/targets/cmsis/TARGET_NXP/TARGET_LPC176X/system_LPC17xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC176X/system_LPC17xx.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC176X/system_LPC17xx.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/LPC23xx.h b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/LPC23xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/LPC23xx.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC23XX/LPC23xx.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_MICRO/LPC2368.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_MICRO/LPC2368.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_MICRO/LPC2368.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_MICRO/LPC2368.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_MICRO/sys.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_MICRO/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_MICRO/sys.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_MICRO/sys.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_MICRO/vector_functions.S b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_MICRO/vector_functions.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_MICRO/vector_functions.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_MICRO/vector_functions.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_MICRO/vector_table.S b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_MICRO/vector_table.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_MICRO/vector_table.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_MICRO/vector_table.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_STD/LPC2368.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_STD/LPC2368.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_STD/LPC2368.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_STD/LPC2368.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_STD/vector_functions.S b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_STD/vector_functions.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_STD/vector_functions.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_STD/vector_functions.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_STD/vector_table.S b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_STD/vector_table.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_STD/vector_table.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_ARM_STD/vector_table.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_ARM/LPC2368.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_ARM/LPC2368.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_ARM/LPC2368.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_ARM/LPC2368.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_ARM/vector_functions.S b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_ARM/vector_functions.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_ARM/vector_functions.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_ARM/vector_functions.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_ARM/vector_table.S b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_ARM/vector_table.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_ARM/vector_table.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_ARM/vector_table.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_CR/LPC2368.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_CR/LPC2368.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_CR/LPC2368.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_CR/LPC2368.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_CR/vector_functions.S b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_CR/vector_functions.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_CR/vector_functions.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_CR/vector_functions.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_CR/vector_table.S b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_CR/vector_table.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_CR/vector_table.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_CR/vector_table.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_CS/LPC2368.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_CS/LPC2368.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_CS/LPC2368.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_CS/LPC2368.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_CS/vector_functions.S b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_CS/vector_functions.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_CS/vector_functions.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_CS/vector_functions.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_CS/vector_table.S b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_CS/vector_table.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_CS/vector_table.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC23XX/TOOLCHAIN_GCC_CS/vector_table.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/cmsis.h b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/cmsis.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC23XX/cmsis.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/cmsis_nvic.c b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/cmsis_nvic.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC23XX/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/cmsis_nvic.h b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/cmsis_nvic.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC23XX/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/core_arm7.c b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/core_arm7.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/core_arm7.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC23XX/core_arm7.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/core_arm7.h b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/core_arm7.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/core_arm7.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC23XX/core_arm7.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/system_LPC23xx.c b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/system_LPC23xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/system_LPC23xx.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC23XX/system_LPC23xx.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/system_LPC23xx.h b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/system_LPC23xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/system_LPC23xx.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC23XX/system_LPC23xx.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/vector_defns.h b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/vector_defns.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/vector_defns.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC23XX/vector_defns.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/vector_realmonitor.c b/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/vector_realmonitor.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC23XX/vector_realmonitor.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC23XX/vector_realmonitor.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC2460/LPC24xx.h b/targets/cmsis/TARGET_NXP/TARGET_LPC2460/LPC24xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC2460/LPC24xx.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC2460/LPC24xx.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC2460/TOOLCHAIN_GCC_ARM/LPC2460.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC2460/TOOLCHAIN_GCC_ARM/LPC2460.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC2460/TOOLCHAIN_GCC_ARM/LPC2460.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC2460/TOOLCHAIN_GCC_ARM/LPC2460.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC2460/TOOLCHAIN_GCC_ARM/vector_functions.S b/targets/cmsis/TARGET_NXP/TARGET_LPC2460/TOOLCHAIN_GCC_ARM/vector_functions.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC2460/TOOLCHAIN_GCC_ARM/vector_functions.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC2460/TOOLCHAIN_GCC_ARM/vector_functions.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC2460/TOOLCHAIN_GCC_ARM/vector_table.S b/targets/cmsis/TARGET_NXP/TARGET_LPC2460/TOOLCHAIN_GCC_ARM/vector_table.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC2460/TOOLCHAIN_GCC_ARM/vector_table.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC2460/TOOLCHAIN_GCC_ARM/vector_table.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC2460/cmsis.h b/targets/cmsis/TARGET_NXP/TARGET_LPC2460/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC2460/cmsis.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC2460/cmsis.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC2460/cmsis_nvic.c b/targets/cmsis/TARGET_NXP/TARGET_LPC2460/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC2460/cmsis_nvic.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC2460/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC2460/cmsis_nvic.h b/targets/cmsis/TARGET_NXP/TARGET_LPC2460/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC2460/cmsis_nvic.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC2460/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC2460/core_arm7.c b/targets/cmsis/TARGET_NXP/TARGET_LPC2460/core_arm7.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC2460/core_arm7.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC2460/core_arm7.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC2460/core_arm7.h b/targets/cmsis/TARGET_NXP/TARGET_LPC2460/core_arm7.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC2460/core_arm7.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC2460/core_arm7.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC2460/system_LPC24xx.c b/targets/cmsis/TARGET_NXP/TARGET_LPC2460/system_LPC24xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC2460/system_LPC24xx.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC2460/system_LPC24xx.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC2460/system_LPC24xx.h b/targets/cmsis/TARGET_NXP/TARGET_LPC2460/system_LPC24xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC2460/system_LPC24xx.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC2460/system_LPC24xx.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC2460/vector_defns.h b/targets/cmsis/TARGET_NXP/TARGET_LPC2460/vector_defns.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC2460/vector_defns.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC2460/vector_defns.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC2460/vector_realmonitor.c b/targets/cmsis/TARGET_NXP/TARGET_LPC2460/vector_realmonitor.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC2460/vector_realmonitor.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC2460/vector_realmonitor.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/LPC407x_8x_177x_8x.h b/targets/cmsis/TARGET_NXP/TARGET_LPC408X/LPC407x_8x_177x_8x.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/LPC407x_8x_177x_8x.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC408X/LPC407x_8x_177x_8x.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/LPC407X_8X.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/LPC407X_8X.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/LPC407X_8X.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/LPC407X_8X.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/startup_LPC407x_8x_177x_8x.S b/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/startup_LPC407x_8x_177x_8x.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/startup_LPC407x_8x_177x_8x.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/startup_LPC407x_8x_177x_8x.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/sys_helper.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/sys_helper.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/sys_helper.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/sys_helper.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/sys_helper.h b/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/sys_helper.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/sys_helper.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_ARM_STD/sys_helper.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_GCC_ARM/LPC4088.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_GCC_ARM/LPC4088.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_GCC_ARM/LPC4088.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_GCC_ARM/LPC4088.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_GCC_ARM/startup_LPC408x.S b/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_GCC_ARM/startup_LPC408x.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_GCC_ARM/startup_LPC408x.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_GCC_ARM/startup_LPC408x.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_GCC_CR/LPC407x_8x.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_GCC_CR/LPC407x_8x.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_GCC_CR/LPC407x_8x.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_GCC_CR/LPC407x_8x.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_GCC_CR/startup_lpc407x_8x.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_GCC_CR/startup_lpc407x_8x.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_GCC_CR/startup_lpc407x_8x.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_GCC_CR/startup_lpc407x_8x.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_IAR/LPC4088.icf b/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_IAR/LPC4088.icf similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_IAR/LPC4088.icf rename to targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_IAR/LPC4088.icf diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_IAR/startup_LPC408x.S b/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_IAR/startup_LPC408x.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_IAR/startup_LPC408x.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC408X/TOOLCHAIN_IAR/startup_LPC408x.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/cmsis.h b/targets/cmsis/TARGET_NXP/TARGET_LPC408X/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/cmsis.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC408X/cmsis.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/cmsis_nvic.c b/targets/cmsis/TARGET_NXP/TARGET_LPC408X/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/cmsis_nvic.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC408X/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/cmsis_nvic.h b/targets/cmsis/TARGET_NXP/TARGET_LPC408X/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/cmsis_nvic.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC408X/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/system_LPC407x_8x_177x_8x.c b/targets/cmsis/TARGET_NXP/TARGET_LPC408X/system_LPC407x_8x_177x_8x.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/system_LPC407x_8x_177x_8x.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC408X/system_LPC407x_8x_177x_8x.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/system_LPC407x_8x_177x_8x.h b/targets/cmsis/TARGET_NXP/TARGET_LPC408X/system_LPC407x_8x_177x_8x.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC408X/system_LPC407x_8x_177x_8x.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC408X/system_LPC407x_8x_177x_8x.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/LPC43xx.h b/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/LPC43xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/LPC43xx.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC43XX/LPC43xx.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_ARM_STD/LPC43xx_spifi.ini b/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_ARM_STD/LPC43xx_spifi.ini similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_ARM_STD/LPC43xx_spifi.ini rename to targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_ARM_STD/LPC43xx_spifi.ini diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_ARM_STD/TARGET_LPC4330/LPC43xx.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_ARM_STD/TARGET_LPC4330/LPC43xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_ARM_STD/TARGET_LPC4330/LPC43xx.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_ARM_STD/TARGET_LPC4330/LPC43xx.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_ARM_STD/TARGET_LPC4330/startup_LPC43xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_ARM_STD/TARGET_LPC4330/startup_LPC43xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_ARM_STD/TARGET_LPC4330/startup_LPC43xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_ARM_STD/TARGET_LPC4330/startup_LPC43xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_ARM_STD/TARGET_LPC4337/LPC4337.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_ARM_STD/TARGET_LPC4337/LPC4337.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_ARM_STD/TARGET_LPC4337/LPC4337.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_ARM_STD/TARGET_LPC4337/LPC4337.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_ARM_STD/TARGET_LPC4337/startup_LPC4337.S b/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_ARM_STD/TARGET_LPC4337/startup_LPC4337.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_ARM_STD/TARGET_LPC4337/startup_LPC4337.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_ARM_STD/TARGET_LPC4337/startup_LPC4337.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_GCC_ARM/LPC4330.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_GCC_ARM/LPC4330.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_GCC_ARM/LPC4330.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_GCC_ARM/LPC4330.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_GCC_ARM/startup_LPC43xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_GCC_ARM/startup_LPC43xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_GCC_ARM/startup_LPC43xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_GCC_ARM/startup_LPC43xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_GCC_CR/LPC43xx.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_GCC_CR/LPC43xx.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_GCC_CR/LPC43xx.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_GCC_CR/LPC43xx.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_GCC_CR/startup_LPC43xx.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_GCC_CR/startup_LPC43xx.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_GCC_CR/startup_LPC43xx.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_GCC_CR/startup_LPC43xx.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_IAR/LPC43xx.icf b/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_IAR/LPC43xx.icf similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_IAR/LPC43xx.icf rename to targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_IAR/LPC43xx.icf diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_IAR/startup_LPC43xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_IAR/startup_LPC43xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_IAR/startup_LPC43xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC43XX/TOOLCHAIN_IAR/startup_LPC43xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/cmsis.h b/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/cmsis.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC43XX/cmsis.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/cmsis_nvic.c b/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/cmsis_nvic.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC43XX/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/cmsis_nvic.h b/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/cmsis_nvic.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC43XX/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/system_LPC43xx.c b/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/system_LPC43xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/system_LPC43xx.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC43XX/system_LPC43xx.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/system_LPC43xx.h b/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/system_LPC43xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC43XX/system_LPC43xx.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC43XX/system_LPC43xx.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/LPC8xx.h b/targets/cmsis/TARGET_NXP/TARGET_LPC81X/LPC8xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/LPC8xx.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC81X/LPC8xx.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/TOOLCHAIN_ARM_MICRO/LPC812.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/TOOLCHAIN_ARM_MICRO/LPC812.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/TOOLCHAIN_ARM_MICRO/LPC812.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/TOOLCHAIN_ARM_MICRO/LPC812.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/TOOLCHAIN_ARM_MICRO/startup_LPC8xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/TOOLCHAIN_ARM_MICRO/startup_LPC8xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/TOOLCHAIN_ARM_MICRO/startup_LPC8xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/TOOLCHAIN_ARM_MICRO/startup_LPC8xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/TOOLCHAIN_GCC_ARM/LPC812.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/TOOLCHAIN_GCC_ARM/LPC812.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/TOOLCHAIN_GCC_ARM/LPC812.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/TOOLCHAIN_GCC_ARM/LPC812.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/TOOLCHAIN_IAR/LPC812.icf b/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/TOOLCHAIN_IAR/LPC812.icf similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/TOOLCHAIN_IAR/LPC812.icf rename to targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/TOOLCHAIN_IAR/LPC812.icf diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/TOOLCHAIN_IAR/startup_LPC8xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/TOOLCHAIN_IAR/startup_LPC8xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/TOOLCHAIN_IAR/startup_LPC8xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/TOOLCHAIN_IAR/startup_LPC8xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/system_LPC8xx.c b/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/system_LPC8xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/system_LPC8xx.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_ELEKTOR_COCORICO/system_LPC8xx.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/TOOLCHAIN_ARM_MICRO/LPC810.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/TOOLCHAIN_ARM_MICRO/LPC810.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/TOOLCHAIN_ARM_MICRO/LPC810.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/TOOLCHAIN_ARM_MICRO/LPC810.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/TOOLCHAIN_ARM_MICRO/startup_LPC8xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/TOOLCHAIN_ARM_MICRO/startup_LPC8xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/TOOLCHAIN_ARM_MICRO/startup_LPC8xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/TOOLCHAIN_ARM_MICRO/startup_LPC8xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/TOOLCHAIN_GCC_ARM/LPC810.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/TOOLCHAIN_GCC_ARM/LPC810.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/TOOLCHAIN_GCC_ARM/LPC810.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/TOOLCHAIN_GCC_ARM/LPC810.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/TOOLCHAIN_IAR/LPC810.icf b/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/TOOLCHAIN_IAR/LPC810.icf similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/TOOLCHAIN_IAR/LPC810.icf rename to targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/TOOLCHAIN_IAR/LPC810.icf diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/TOOLCHAIN_IAR/startup_LPC8xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/TOOLCHAIN_IAR/startup_LPC8xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/TOOLCHAIN_IAR/startup_LPC8xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/TOOLCHAIN_IAR/startup_LPC8xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/system_LPC8xx.c b/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/system_LPC8xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/system_LPC8xx.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC810/system_LPC8xx.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/TOOLCHAIN_ARM_MICRO/LPC812.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/TOOLCHAIN_ARM_MICRO/LPC812.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/TOOLCHAIN_ARM_MICRO/LPC812.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/TOOLCHAIN_ARM_MICRO/LPC812.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/TOOLCHAIN_ARM_MICRO/startup_LPC8xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/TOOLCHAIN_ARM_MICRO/startup_LPC8xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/TOOLCHAIN_ARM_MICRO/startup_LPC8xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/TOOLCHAIN_ARM_MICRO/startup_LPC8xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/TOOLCHAIN_GCC_ARM/LPC812.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/TOOLCHAIN_GCC_ARM/LPC812.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/TOOLCHAIN_GCC_ARM/LPC812.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/TOOLCHAIN_GCC_ARM/LPC812.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/TOOLCHAIN_IAR/LPC812.icf b/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/TOOLCHAIN_IAR/LPC812.icf similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/TOOLCHAIN_IAR/LPC812.icf rename to targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/TOOLCHAIN_IAR/LPC812.icf diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/TOOLCHAIN_IAR/startup_LPC8xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/TOOLCHAIN_IAR/startup_LPC8xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/TOOLCHAIN_IAR/startup_LPC8xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/TOOLCHAIN_IAR/startup_LPC8xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/system_LPC8xx.c b/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/system_LPC8xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/system_LPC8xx.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC81X/TARGET_LPC812/system_LPC8xx.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TOOLCHAIN_ARM_MICRO/sys.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TOOLCHAIN_ARM_MICRO/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TOOLCHAIN_ARM_MICRO/sys.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC81X/TOOLCHAIN_ARM_MICRO/sys.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TOOLCHAIN_GCC_ARM/startup_LPC81X.S b/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TOOLCHAIN_GCC_ARM/startup_LPC81X.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/TOOLCHAIN_GCC_ARM/startup_LPC81X.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC81X/TOOLCHAIN_GCC_ARM/startup_LPC81X.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/cmsis.h b/targets/cmsis/TARGET_NXP/TARGET_LPC81X/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/cmsis.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC81X/cmsis.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/cmsis_nvic.c b/targets/cmsis/TARGET_NXP/TARGET_LPC81X/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/cmsis_nvic.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC81X/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/cmsis_nvic.h b/targets/cmsis/TARGET_NXP/TARGET_LPC81X/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/cmsis_nvic.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC81X/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/system_LPC8xx.h b/targets/cmsis/TARGET_NXP/TARGET_LPC81X/system_LPC8xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC81X/system_LPC8xx.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC81X/system_LPC8xx.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/LPC82x.h b/targets/cmsis/TARGET_NXP/TARGET_LPC82X/LPC82x.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/LPC82x.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC82X/LPC82x.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_ARM_MICRO/LPC824.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_ARM_MICRO/LPC824.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_ARM_MICRO/LPC824.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_ARM_MICRO/LPC824.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_ARM_MICRO/startup_LPC8xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_ARM_MICRO/startup_LPC8xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_ARM_MICRO/startup_LPC8xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_ARM_MICRO/startup_LPC8xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_GCC_ARM/LPC824.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_GCC_ARM/LPC824.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_GCC_ARM/LPC824.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_GCC_ARM/LPC824.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_GCC_ARM/startup_LPC824.S b/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_GCC_ARM/startup_LPC824.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_GCC_ARM/startup_LPC824.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_GCC_ARM/startup_LPC824.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_GCC_CR/LPC824.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_GCC_CR/LPC824.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_GCC_CR/LPC824.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_GCC_CR/LPC824.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_GCC_CR/startup_LPC824_CR.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_GCC_CR/startup_LPC824_CR.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_GCC_CR/startup_LPC824_CR.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_GCC_CR/startup_LPC824_CR.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_IAR/LPC824.icf b/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_IAR/LPC824.icf similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_IAR/LPC824.icf rename to targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_IAR/LPC824.icf diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_IAR/startup_LPC8xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_IAR/startup_LPC8xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_IAR/startup_LPC8xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/TOOLCHAIN_IAR/startup_LPC8xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/system_LPC8xx.c b/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/system_LPC8xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/system_LPC8xx.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_LPC824/system_LPC8xx.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/TOOLCHAIN_ARM_MICRO/LPC824.sct b/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/TOOLCHAIN_ARM_MICRO/LPC824.sct similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/TOOLCHAIN_ARM_MICRO/LPC824.sct rename to targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/TOOLCHAIN_ARM_MICRO/LPC824.sct diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/TOOLCHAIN_ARM_MICRO/startup_LPC8xx.S b/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/TOOLCHAIN_ARM_MICRO/startup_LPC8xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/TOOLCHAIN_ARM_MICRO/startup_LPC8xx.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/TOOLCHAIN_ARM_MICRO/startup_LPC8xx.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/TOOLCHAIN_GCC_ARM/LPC824.ld b/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/TOOLCHAIN_GCC_ARM/LPC824.ld similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/TOOLCHAIN_GCC_ARM/LPC824.ld rename to targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/TOOLCHAIN_GCC_ARM/LPC824.ld diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/TOOLCHAIN_GCC_ARM/startup_LPC824.S b/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/TOOLCHAIN_GCC_ARM/startup_LPC824.S similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/TOOLCHAIN_GCC_ARM/startup_LPC824.S rename to targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/TOOLCHAIN_GCC_ARM/startup_LPC824.S diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/system_LPC8xx.c b/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/system_LPC8xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/system_LPC8xx.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC82X/TARGET_SSCI824/system_LPC8xx.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TOOLCHAIN_ARM_MICRO/sys.cpp b/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TOOLCHAIN_ARM_MICRO/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/TOOLCHAIN_ARM_MICRO/sys.cpp rename to targets/cmsis/TARGET_NXP/TARGET_LPC82X/TOOLCHAIN_ARM_MICRO/sys.cpp diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/cmsis.h b/targets/cmsis/TARGET_NXP/TARGET_LPC82X/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/cmsis.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC82X/cmsis.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/cmsis_nvic.c b/targets/cmsis/TARGET_NXP/TARGET_LPC82X/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/cmsis_nvic.c rename to targets/cmsis/TARGET_NXP/TARGET_LPC82X/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/cmsis_nvic.h b/targets/cmsis/TARGET_NXP/TARGET_LPC82X/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/cmsis_nvic.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC82X/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/system_LPC82x.h b/targets/cmsis/TARGET_NXP/TARGET_LPC82X/system_LPC82x.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/TARGET_LPC82X/system_LPC82x.h rename to targets/cmsis/TARGET_NXP/TARGET_LPC82X/system_LPC82x.h diff --git a/hal/targets/cmsis/TARGET_NXP/mbed_rtx.h b/targets/cmsis/TARGET_NXP/mbed_rtx.h similarity index 100% rename from hal/targets/cmsis/TARGET_NXP/mbed_rtx.h rename to targets/cmsis/TARGET_NXP/mbed_rtx.h diff --git a/hal/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/NCS36510.h b/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/NCS36510.h similarity index 100% rename from hal/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/NCS36510.h rename to targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/NCS36510.h diff --git a/hal/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_ARM/NCS36510.sct b/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_ARM/NCS36510.sct similarity index 100% rename from hal/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_ARM/NCS36510.sct rename to targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_ARM/NCS36510.sct diff --git a/hal/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_ARM/startup_NCS36510.s b/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_ARM/startup_NCS36510.s similarity index 100% rename from hal/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_ARM/startup_NCS36510.s rename to targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_ARM/startup_NCS36510.s diff --git a/hal/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_GCC_ARM/NCS36510.ld b/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_GCC_ARM/NCS36510.ld similarity index 99% rename from hal/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_GCC_ARM/NCS36510.ld rename to targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_GCC_ARM/NCS36510.ld index 0839bd24ab..122bebd1ef 100644 --- a/hal/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_GCC_ARM/NCS36510.ld +++ b/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_GCC_ARM/NCS36510.ld @@ -205,7 +205,7 @@ SECTIONS __end__ = .; end = __end__; *(.heap*); - . += 0x4000; + . += 0x800; __HeapLimit = .; } > RAM PROVIDE(__heap_size = SIZEOF(.heap)); diff --git a/hal/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_GCC_ARM/startup_NCS36510.s b/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_GCC_ARM/startup_NCS36510.s similarity index 100% rename from hal/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_GCC_ARM/startup_NCS36510.s rename to targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_GCC_ARM/startup_NCS36510.s diff --git a/hal/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_IAR/NCS36510.icf b/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_IAR/NCS36510.icf similarity index 100% rename from hal/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_IAR/NCS36510.icf rename to targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_IAR/NCS36510.icf diff --git a/hal/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_IAR/startup_NCS36510.s b/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_IAR/startup_NCS36510.s similarity index 100% rename from hal/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_IAR/startup_NCS36510.s rename to targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/TOOLCHAIN_IAR/startup_NCS36510.s diff --git a/hal/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/cmsis.h b/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/cmsis.h rename to targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/cmsis.h diff --git a/hal/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/cmsis_nvic.c b/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/cmsis_nvic.c rename to targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/cmsis_nvic.h b/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/cmsis_nvic.h rename to targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/system_NCS36510.c b/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/system_NCS36510.c similarity index 100% rename from hal/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/system_NCS36510.c rename to targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/system_NCS36510.c diff --git a/hal/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/system_NCS36510.h b/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/system_NCS36510.h similarity index 100% rename from hal/targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/system_NCS36510.h rename to targets/cmsis/TARGET_ONSEMI/TARGET_NCS36510/system_NCS36510.h diff --git a/hal/targets/cmsis/TARGET_ONSEMI/mbed_rtx.h b/targets/cmsis/TARGET_ONSEMI/mbed_rtx.h similarity index 100% rename from hal/targets/cmsis/TARGET_ONSEMI/mbed_rtx.h rename to targets/cmsis/TARGET_ONSEMI/mbed_rtx.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/MBRZA1H.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/MBRZA1H.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/MBRZA1H.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/MBRZA1H.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/RZ_A1_Init.c b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/RZ_A1_Init.c similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/RZ_A1_Init.c rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/RZ_A1_Init.c diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/RZ_A1_Init.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/RZ_A1_Init.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/RZ_A1_Init.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/RZ_A1_Init.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/TOOLCHAIN_ARM_STD/MBRZA1H.sct b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/TOOLCHAIN_ARM_STD/MBRZA1H.sct similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/TOOLCHAIN_ARM_STD/MBRZA1H.sct rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/TOOLCHAIN_ARM_STD/MBRZA1H.sct diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/TOOLCHAIN_ARM_STD/startup_MBRZA1H.S b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/TOOLCHAIN_ARM_STD/startup_MBRZA1H.S similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/TOOLCHAIN_ARM_STD/startup_MBRZA1H.S rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/TOOLCHAIN_ARM_STD/startup_MBRZA1H.S diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/TOOLCHAIN_GCC_ARM/RZA1H.ld b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/TOOLCHAIN_GCC_ARM/RZA1H.ld similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/TOOLCHAIN_GCC_ARM/RZA1H.ld rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/TOOLCHAIN_GCC_ARM/RZA1H.ld diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/TOOLCHAIN_GCC_ARM/startup_RZ1AH.S b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/TOOLCHAIN_GCC_ARM/startup_RZ1AH.S similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/TOOLCHAIN_GCC_ARM/startup_RZ1AH.S rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/TOOLCHAIN_GCC_ARM/startup_RZ1AH.S diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/TOOLCHAIN_IAR/MBRZA1H.icf b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/TOOLCHAIN_IAR/MBRZA1H.icf similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/TOOLCHAIN_IAR/MBRZA1H.icf rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/TOOLCHAIN_IAR/MBRZA1H.icf diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/TOOLCHAIN_IAR/startup_RZA1H.s b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/TOOLCHAIN_IAR/startup_RZA1H.s similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/TOOLCHAIN_IAR/startup_RZA1H.s rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/TOOLCHAIN_IAR/startup_RZA1H.s diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/cmsis.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/cmsis.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/cmsis.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/cmsis_nvic.c b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/cmsis_nvic.c rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/cmsis_nvic.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/cmsis_nvic.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/dev_drv.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/dev_drv.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/dev_drv.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/dev_drv.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/gic.c b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/gic.c similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/gic.c rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/gic.c diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/gic.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/gic.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/gic.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/gic.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/bsc_iobitmask.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/bsc_iobitmask.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/bsc_iobitmask.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/bsc_iobitmask.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/cpg_iobitmask.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/cpg_iobitmask.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/cpg_iobitmask.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/cpg_iobitmask.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/dmac_iobitmask.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/dmac_iobitmask.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/dmac_iobitmask.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/dmac_iobitmask.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/gpio_iobitmask.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/gpio_iobitmask.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/gpio_iobitmask.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/gpio_iobitmask.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/intc_iobitmask.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/intc_iobitmask.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/intc_iobitmask.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/intc_iobitmask.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/mtu2_iobitmask.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/mtu2_iobitmask.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/mtu2_iobitmask.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/mtu2_iobitmask.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/ostm_iobitmask.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/ostm_iobitmask.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/ostm_iobitmask.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/ostm_iobitmask.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/riic_iobitmask.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/riic_iobitmask.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/riic_iobitmask.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/riic_iobitmask.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/rspi_iobitmask.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/rspi_iobitmask.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/rspi_iobitmask.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/rspi_iobitmask.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/scif_iobitmask.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/scif_iobitmask.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/scif_iobitmask.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/scif_iobitmask.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/usb_iobitmask.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/usb_iobitmask.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/usb_iobitmask.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iobitmasks/usb_iobitmask.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/adc_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/adc_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/adc_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/adc_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/bsc_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/bsc_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/bsc_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/bsc_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/ceu_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/ceu_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/ceu_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/ceu_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/cpg_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/cpg_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/cpg_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/cpg_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/disc_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/disc_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/disc_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/disc_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/dmac_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/dmac_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/dmac_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/dmac_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/dvdec_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/dvdec_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/dvdec_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/dvdec_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/ether_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/ether_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/ether_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/ether_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/flctl_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/flctl_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/flctl_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/flctl_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/gpio_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/gpio_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/gpio_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/gpio_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/ieb_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/ieb_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/ieb_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/ieb_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/inb_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/inb_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/inb_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/inb_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/intc_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/intc_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/intc_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/intc_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/irda_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/irda_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/irda_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/irda_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/jcu_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/jcu_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/jcu_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/jcu_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/l2c_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/l2c_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/l2c_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/l2c_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/lin_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/lin_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/lin_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/lin_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/lvds_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/lvds_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/lvds_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/lvds_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/mlb_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/mlb_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/mlb_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/mlb_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/mmc_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/mmc_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/mmc_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/mmc_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/mtu2_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/mtu2_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/mtu2_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/mtu2_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/ostm_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/ostm_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/ostm_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/ostm_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/pfv_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/pfv_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/pfv_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/pfv_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/pwm_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/pwm_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/pwm_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/pwm_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/riic_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/riic_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/riic_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/riic_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/romdec_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/romdec_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/romdec_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/romdec_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/rscan0_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/rscan0_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/rscan0_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/rscan0_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/rspi_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/rspi_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/rspi_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/rspi_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/rtc_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/rtc_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/rtc_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/rtc_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/scif_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/scif_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/scif_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/scif_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/scim_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/scim_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/scim_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/scim_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/scux_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/scux_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/scux_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/scux_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/sdg_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/sdg_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/sdg_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/sdg_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/spdif_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/spdif_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/spdif_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/spdif_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/spibsc_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/spibsc_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/spibsc_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/spibsc_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/ssif_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/ssif_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/ssif_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/ssif_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/usb20_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/usb20_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/usb20_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/usb20_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/vdc5_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/vdc5_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/vdc5_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/vdc5_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/wdt_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/wdt_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/wdt_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/iodefines/wdt_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/reg32_t.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/reg32_t.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/reg32_t.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/reg32_t.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/rza_io_regrw.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/rza_io_regrw.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/rza_io_regrw.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/inc/rza_io_regrw.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/mbed_sf_boot.c b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/mbed_sf_boot.c similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/mbed_sf_boot.c rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/mbed_sf_boot.c diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/mmu_Renesas_RZ_A1.c b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/mmu_Renesas_RZ_A1.c similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/mmu_Renesas_RZ_A1.c rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/mmu_Renesas_RZ_A1.c diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/nvic_wrapper.c b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/nvic_wrapper.c similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/nvic_wrapper.c rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/nvic_wrapper.c diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/nvic_wrapper.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/nvic_wrapper.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/nvic_wrapper.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/nvic_wrapper.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/pl310.c b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/pl310.c similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/pl310.c rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/pl310.c diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/pl310.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/pl310.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/pl310.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/pl310.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/r_typedefs.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/r_typedefs.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/r_typedefs.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/r_typedefs.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/rza_io_regrw.c b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/rza_io_regrw.c similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/rza_io_regrw.c rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/rza_io_regrw.c diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/system_MBRZA1H.c b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/system_MBRZA1H.c similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/system_MBRZA1H.c rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/system_MBRZA1H.c diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/system_MBRZA1H.h b/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/system_MBRZA1H.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/system_MBRZA1H.h rename to targets/cmsis/TARGET_RENESAS/TARGET_RZ_A1H/system_MBRZA1H.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/RZ_A1_Init.c b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/RZ_A1_Init.c similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/RZ_A1_Init.c rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/RZ_A1_Init.c diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/RZ_A1_Init.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/RZ_A1_Init.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/RZ_A1_Init.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/RZ_A1_Init.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/TOOLCHAIN_ARM_STD/VKRZA1H.sct b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/TOOLCHAIN_ARM_STD/VKRZA1H.sct similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/TOOLCHAIN_ARM_STD/VKRZA1H.sct rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/TOOLCHAIN_ARM_STD/VKRZA1H.sct diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/TOOLCHAIN_ARM_STD/startup_VKRZA1H.S b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/TOOLCHAIN_ARM_STD/startup_VKRZA1H.S similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/TOOLCHAIN_ARM_STD/startup_VKRZA1H.S rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/TOOLCHAIN_ARM_STD/startup_VKRZA1H.S diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/TOOLCHAIN_GCC_ARM/VKRZA1H.ld b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/TOOLCHAIN_GCC_ARM/VKRZA1H.ld similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/TOOLCHAIN_GCC_ARM/VKRZA1H.ld rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/TOOLCHAIN_GCC_ARM/VKRZA1H.ld diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/TOOLCHAIN_GCC_ARM/startup_VKRZ1AH.S b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/TOOLCHAIN_GCC_ARM/startup_VKRZ1AH.S similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/TOOLCHAIN_GCC_ARM/startup_VKRZ1AH.S rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/TOOLCHAIN_GCC_ARM/startup_VKRZ1AH.S diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/TOOLCHAIN_IAR/VKRZA1H.icf b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/TOOLCHAIN_IAR/VKRZA1H.icf similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/TOOLCHAIN_IAR/VKRZA1H.icf rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/TOOLCHAIN_IAR/VKRZA1H.icf diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/TOOLCHAIN_IAR/startup_VKRZA1H.s b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/TOOLCHAIN_IAR/startup_VKRZA1H.s similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/TOOLCHAIN_IAR/startup_VKRZA1H.s rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/TOOLCHAIN_IAR/startup_VKRZA1H.s diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/VKRZA1H.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/VKRZA1H.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/VKRZA1H.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/VKRZA1H.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/cmsis.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/cmsis.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/cmsis.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/cmsis_nvic.c b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/cmsis_nvic.c rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/cmsis_nvic.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/cmsis_nvic.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/dev_drv.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/dev_drv.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/dev_drv.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/dev_drv.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/gic.c b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/gic.c similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/gic.c rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/gic.c diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/gic.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/gic.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/gic.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/gic.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/bsc_iobitmask.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/bsc_iobitmask.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/bsc_iobitmask.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/bsc_iobitmask.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/cpg_iobitmask.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/cpg_iobitmask.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/cpg_iobitmask.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/cpg_iobitmask.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/dmac_iobitmask.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/dmac_iobitmask.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/dmac_iobitmask.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/dmac_iobitmask.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/gpio_iobitmask.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/gpio_iobitmask.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/gpio_iobitmask.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/gpio_iobitmask.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/intc_iobitmask.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/intc_iobitmask.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/intc_iobitmask.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/intc_iobitmask.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/mtu2_iobitmask.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/mtu2_iobitmask.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/mtu2_iobitmask.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/mtu2_iobitmask.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/ostm_iobitmask.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/ostm_iobitmask.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/ostm_iobitmask.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/ostm_iobitmask.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/riic_iobitmask.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/riic_iobitmask.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/riic_iobitmask.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/riic_iobitmask.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/rspi_iobitmask.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/rspi_iobitmask.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/rspi_iobitmask.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/rspi_iobitmask.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/scif_iobitmask.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/scif_iobitmask.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/scif_iobitmask.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/scif_iobitmask.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/usb_iobitmask.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/usb_iobitmask.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/usb_iobitmask.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iobitmasks/usb_iobitmask.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/adc_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/adc_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/adc_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/adc_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/bsc_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/bsc_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/bsc_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/bsc_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/ceu_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/ceu_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/ceu_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/ceu_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/cpg_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/cpg_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/cpg_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/cpg_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/disc_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/disc_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/disc_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/disc_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/dmac_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/dmac_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/dmac_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/dmac_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/dvdec_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/dvdec_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/dvdec_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/dvdec_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/ether_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/ether_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/ether_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/ether_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/flctl_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/flctl_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/flctl_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/flctl_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/gpio_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/gpio_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/gpio_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/gpio_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/ieb_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/ieb_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/ieb_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/ieb_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/inb_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/inb_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/inb_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/inb_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/intc_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/intc_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/intc_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/intc_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/irda_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/irda_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/irda_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/irda_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/jcu_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/jcu_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/jcu_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/jcu_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/l2c_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/l2c_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/l2c_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/l2c_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/lin_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/lin_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/lin_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/lin_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/lvds_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/lvds_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/lvds_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/lvds_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/mlb_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/mlb_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/mlb_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/mlb_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/mmc_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/mmc_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/mmc_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/mmc_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/mtu2_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/mtu2_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/mtu2_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/mtu2_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/ostm_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/ostm_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/ostm_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/ostm_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/pfv_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/pfv_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/pfv_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/pfv_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/pwm_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/pwm_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/pwm_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/pwm_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/riic_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/riic_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/riic_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/riic_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/romdec_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/romdec_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/romdec_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/romdec_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/rscan0_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/rscan0_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/rscan0_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/rscan0_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/rspi_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/rspi_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/rspi_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/rspi_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/rtc_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/rtc_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/rtc_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/rtc_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/scif_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/scif_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/scif_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/scif_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/scim_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/scim_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/scim_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/scim_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/scux_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/scux_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/scux_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/scux_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/sdg_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/sdg_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/sdg_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/sdg_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/spdif_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/spdif_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/spdif_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/spdif_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/spibsc_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/spibsc_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/spibsc_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/spibsc_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/ssif_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/ssif_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/ssif_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/ssif_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/usb20_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/usb20_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/usb20_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/usb20_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/vdc5_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/vdc5_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/vdc5_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/vdc5_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/wdt_iodefine.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/wdt_iodefine.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/wdt_iodefine.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/iodefines/wdt_iodefine.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/reg32_t.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/reg32_t.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/reg32_t.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/reg32_t.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/rza_io_regrw.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/rza_io_regrw.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/rza_io_regrw.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/inc/rza_io_regrw.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/mmu_Renesas_RZ_A1.c b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/mmu_Renesas_RZ_A1.c similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/mmu_Renesas_RZ_A1.c rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/mmu_Renesas_RZ_A1.c diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/nvic_wrapper.c b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/nvic_wrapper.c similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/nvic_wrapper.c rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/nvic_wrapper.c diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/nvic_wrapper.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/nvic_wrapper.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/nvic_wrapper.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/nvic_wrapper.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/pl310.c b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/pl310.c similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/pl310.c rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/pl310.c diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/pl310.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/pl310.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/pl310.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/pl310.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/r_typedefs.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/r_typedefs.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/r_typedefs.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/r_typedefs.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/rza_io_regrw.c b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/rza_io_regrw.c similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/rza_io_regrw.c rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/rza_io_regrw.c diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/system_VKRZA1H.c b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/system_VKRZA1H.c similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/system_VKRZA1H.c rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/system_VKRZA1H.c diff --git a/hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/system_VKRZA1H.h b/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/system_VKRZA1H.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/system_VKRZA1H.h rename to targets/cmsis/TARGET_RENESAS/TARGET_VK_RZ_A1H/system_VKRZA1H.h diff --git a/hal/targets/cmsis/TARGET_RENESAS/mbed_rtx.h b/targets/cmsis/TARGET_RENESAS/mbed_rtx.h similarity index 100% rename from hal/targets/cmsis/TARGET_RENESAS/mbed_rtx.h rename to targets/cmsis/TARGET_RENESAS/mbed_rtx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/Release_Notes_stm32f0xx_hal.html b/targets/cmsis/TARGET_STM/TARGET_STM32F0/Release_Notes_stm32f0xx_hal.html similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/Release_Notes_stm32f0xx_hal.html rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/Release_Notes_stm32f0xx_hal.html diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_ARM_MICRO/startup_stm32f051x8.s b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_ARM_MICRO/startup_stm32f051x8.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_ARM_MICRO/startup_stm32f051x8.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_ARM_MICRO/startup_stm32f051x8.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_ARM_MICRO/stm32f0xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_ARM_MICRO/stm32f0xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_ARM_MICRO/stm32f0xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_ARM_MICRO/stm32f0xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_ARM_STD/startup_stm32f051x8.s b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_ARM_STD/startup_stm32f051x8.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_ARM_STD/startup_stm32f051x8.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_ARM_STD/startup_stm32f051x8.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_ARM_STD/stm32f0xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_ARM_STD/stm32f0xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_ARM_STD/stm32f0xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_ARM_STD/stm32f0xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_GCC_ARM/STM32F0xx.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_GCC_ARM/STM32F0xx.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_GCC_ARM/STM32F0xx.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_GCC_ARM/STM32F0xx.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_GCC_ARM/startup_stm32f051x8.S b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_GCC_ARM/startup_stm32f051x8.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_GCC_ARM/startup_stm32f051x8.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/TOOLCHAIN_GCC_ARM/startup_stm32f051x8.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/stm32f051x8.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/stm32f051x8.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/stm32f051x8.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/stm32f051x8.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/stm32f0xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/stm32f0xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/stm32f0xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/stm32f0xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/system_stm32f0xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/system_stm32f0xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/system_stm32f0xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/system_stm32f0xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/system_stm32f0xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/system_stm32f0xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/system_stm32f0xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_DISCO_F051R8/system_stm32f0xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_ARM_MICRO/startup_stm32f030x8.S b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_ARM_MICRO/startup_stm32f030x8.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_ARM_MICRO/startup_stm32f030x8.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_ARM_MICRO/startup_stm32f030x8.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_ARM_MICRO/stm32f0xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_ARM_MICRO/stm32f0xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_ARM_MICRO/stm32f0xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_ARM_MICRO/stm32f0xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_ARM_STD/startup_stm32f030x8.S b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_ARM_STD/startup_stm32f030x8.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_ARM_STD/startup_stm32f030x8.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_ARM_STD/startup_stm32f030x8.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_ARM_STD/stm32f0xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_ARM_STD/stm32f0xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_ARM_STD/stm32f0xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_ARM_STD/stm32f0xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_GCC_ARM/STM32F030X8.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_GCC_ARM/STM32F030X8.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_GCC_ARM/STM32F030X8.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_GCC_ARM/STM32F030X8.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_GCC_ARM/startup_stm32f030x8.S b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_GCC_ARM/startup_stm32f030x8.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_GCC_ARM/startup_stm32f030x8.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_GCC_ARM/startup_stm32f030x8.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_IAR/startup_stm32f030x8.S b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_IAR/startup_stm32f030x8.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_IAR/startup_stm32f030x8.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_IAR/startup_stm32f030x8.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_IAR/stm32f030x8.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_IAR/stm32f030x8.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_IAR/stm32f030x8.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/TOOLCHAIN_IAR/stm32f030x8.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/stm32f030x8.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/stm32f030x8.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/stm32f030x8.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/stm32f030x8.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/stm32f0xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/stm32f0xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/stm32f0xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/stm32f0xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/system_stm32f0xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/system_stm32f0xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/system_stm32f0xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/system_stm32f0xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/system_stm32f0xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/system_stm32f0xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/system_stm32f0xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F030R8/system_stm32f0xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_ARM_MICRO/startup_stm32f031x6.s b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_ARM_MICRO/startup_stm32f031x6.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_ARM_MICRO/startup_stm32f031x6.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_ARM_MICRO/startup_stm32f031x6.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_ARM_MICRO/stm32f0xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_ARM_MICRO/stm32f0xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_ARM_MICRO/stm32f0xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_ARM_MICRO/stm32f0xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_ARM_STD/startup_stm32f031x6.s b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_ARM_STD/startup_stm32f031x6.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_ARM_STD/startup_stm32f031x6.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_ARM_STD/startup_stm32f031x6.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_ARM_STD/stm32f0xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_ARM_STD/stm32f0xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_ARM_STD/stm32f0xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_ARM_STD/stm32f0xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_GCC_ARM/STM32F031X6.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_GCC_ARM/STM32F031X6.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_GCC_ARM/STM32F031X6.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_GCC_ARM/STM32F031X6.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_GCC_ARM/startup_stm32f031x6.s b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_GCC_ARM/startup_stm32f031x6.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_GCC_ARM/startup_stm32f031x6.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_GCC_ARM/startup_stm32f031x6.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_IAR/startup_stm32f031x6.s b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_IAR/startup_stm32f031x6.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_IAR/startup_stm32f031x6.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_IAR/startup_stm32f031x6.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_IAR/stm32f031x6.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_IAR/stm32f031x6.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_IAR/stm32f031x6.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/TOOLCHAIN_IAR/stm32f031x6.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/stm32f031x6.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/stm32f031x6.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/stm32f031x6.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/stm32f031x6.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/stm32f0xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/stm32f0xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/stm32f0xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/stm32f0xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/system_stm32f0xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/system_stm32f0xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/system_stm32f0xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/system_stm32f0xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/system_stm32f0xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/system_stm32f0xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/system_stm32f0xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F031K6/system_stm32f0xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_ARM_MICRO/startup_stm32f042x6.s b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_ARM_MICRO/startup_stm32f042x6.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_ARM_MICRO/startup_stm32f042x6.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_ARM_MICRO/startup_stm32f042x6.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_ARM_MICRO/stm32f0xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_ARM_MICRO/stm32f0xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_ARM_MICRO/stm32f0xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_ARM_MICRO/stm32f0xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_ARM_STD/startup_stm32f042x6.s b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_ARM_STD/startup_stm32f042x6.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_ARM_STD/startup_stm32f042x6.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_ARM_STD/startup_stm32f042x6.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_ARM_STD/stm32f0xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_ARM_STD/stm32f0xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_ARM_STD/stm32f0xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_ARM_STD/stm32f0xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_GCC_ARM/STM32F042X6.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_GCC_ARM/STM32F042X6.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_GCC_ARM/STM32F042X6.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_GCC_ARM/STM32F042X6.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_GCC_ARM/startup_stm32f042x6.s b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_GCC_ARM/startup_stm32f042x6.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_GCC_ARM/startup_stm32f042x6.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_GCC_ARM/startup_stm32f042x6.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_IAR/startup_stm32f042x6.s b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_IAR/startup_stm32f042x6.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_IAR/startup_stm32f042x6.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_IAR/startup_stm32f042x6.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_IAR/stm32f042x6.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_IAR/stm32f042x6.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_IAR/stm32f042x6.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/TOOLCHAIN_IAR/stm32f042x6.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/stm32f042x6.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/stm32f042x6.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/stm32f042x6.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/stm32f042x6.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/stm32f0xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/stm32f0xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/stm32f0xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/stm32f0xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/system_stm32f0xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/system_stm32f0xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/system_stm32f0xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/system_stm32f0xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/system_stm32f0xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/system_stm32f0xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/system_stm32f0xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F042K6/system_stm32f0xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_ARM_MICRO/startup_stm32f070xb.S b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_ARM_MICRO/startup_stm32f070xb.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_ARM_MICRO/startup_stm32f070xb.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_ARM_MICRO/startup_stm32f070xb.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_ARM_MICRO/stm32f070xb.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_ARM_MICRO/stm32f070xb.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_ARM_MICRO/stm32f070xb.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_ARM_MICRO/stm32f070xb.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_ARM_STD/startup_stm32f070xb.S b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_ARM_STD/startup_stm32f070xb.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_ARM_STD/startup_stm32f070xb.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_ARM_STD/startup_stm32f070xb.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_ARM_STD/stm32f070xb.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_ARM_STD/stm32f070xb.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_ARM_STD/stm32f070xb.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_ARM_STD/stm32f070xb.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_GCC_ARM/STM32F070XB.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_GCC_ARM/STM32F070XB.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_GCC_ARM/STM32F070XB.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_GCC_ARM/STM32F070XB.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_GCC_ARM/startup_stm32f070xb.S b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_GCC_ARM/startup_stm32f070xb.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_GCC_ARM/startup_stm32f070xb.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_GCC_ARM/startup_stm32f070xb.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_IAR/startup_stm32f070xb.S b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_IAR/startup_stm32f070xb.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_IAR/startup_stm32f070xb.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_IAR/startup_stm32f070xb.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_IAR/stm32f070xb.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_IAR/stm32f070xb.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_IAR/stm32f070xb.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/TOOLCHAIN_IAR/stm32f070xb.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/stm32f070xb.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/stm32f070xb.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/stm32f070xb.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/stm32f070xb.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/stm32f0xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/stm32f0xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/stm32f0xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/stm32f0xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/system_stm32f0xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/system_stm32f0xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/system_stm32f0xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/system_stm32f0xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/system_stm32f0xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/system_stm32f0xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/system_stm32f0xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F070RB/system_stm32f0xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_ARM_MICRO/startup_stm32f072xb.S b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_ARM_MICRO/startup_stm32f072xb.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_ARM_MICRO/startup_stm32f072xb.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_ARM_MICRO/startup_stm32f072xb.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_ARM_MICRO/stm32f072rb.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_ARM_MICRO/stm32f072rb.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_ARM_MICRO/stm32f072rb.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_ARM_MICRO/stm32f072rb.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_ARM_STD/startup_stm32f072xb.S b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_ARM_STD/startup_stm32f072xb.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_ARM_STD/startup_stm32f072xb.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_ARM_STD/startup_stm32f072xb.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_ARM_STD/stm32f072rb.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_ARM_STD/stm32f072rb.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_ARM_STD/stm32f072rb.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_ARM_STD/stm32f072rb.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_GCC_ARM/STM32F072XB.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_GCC_ARM/STM32F072XB.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_GCC_ARM/STM32F072XB.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_GCC_ARM/STM32F072XB.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_GCC_ARM/startup_stm32f072xb.S b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_GCC_ARM/startup_stm32f072xb.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_GCC_ARM/startup_stm32f072xb.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_GCC_ARM/startup_stm32f072xb.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_IAR/startup_stm32f072xb.S b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_IAR/startup_stm32f072xb.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_IAR/startup_stm32f072xb.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_IAR/startup_stm32f072xb.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_IAR/stm32f072xb.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_IAR/stm32f072xb.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_IAR/stm32f072xb.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/TOOLCHAIN_IAR/stm32f072xb.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/stm32f072xb.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/stm32f072xb.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/stm32f072xb.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/stm32f072xb.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/stm32f0xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/stm32f0xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/stm32f0xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/stm32f0xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/system_stm32f0xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/system_stm32f0xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/system_stm32f0xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/system_stm32f0xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/system_stm32f0xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/system_stm32f0xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/system_stm32f0xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F072RB/system_stm32f0xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_ARM_MICRO/startup_stm32f091rc.S b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_ARM_MICRO/startup_stm32f091rc.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_ARM_MICRO/startup_stm32f091rc.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_ARM_MICRO/startup_stm32f091rc.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_ARM_MICRO/stm32f091rc.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_ARM_MICRO/stm32f091rc.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_ARM_MICRO/stm32f091rc.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_ARM_MICRO/stm32f091rc.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_ARM_STD/startup_stm32f091rc.S b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_ARM_STD/startup_stm32f091rc.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_ARM_STD/startup_stm32f091rc.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_ARM_STD/startup_stm32f091rc.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_ARM_STD/stm32f091rc.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_ARM_STD/stm32f091rc.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_ARM_STD/stm32f091rc.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_ARM_STD/stm32f091rc.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_GCC_ARM/STM32F091XC.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_GCC_ARM/STM32F091XC.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_GCC_ARM/STM32F091XC.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_GCC_ARM/STM32F091XC.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_GCC_ARM/startup_stm32f091xc.S b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_GCC_ARM/startup_stm32f091xc.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_GCC_ARM/startup_stm32f091xc.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_GCC_ARM/startup_stm32f091xc.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_IAR/startup_stm32f091xc.S b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_IAR/startup_stm32f091xc.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_IAR/startup_stm32f091xc.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_IAR/startup_stm32f091xc.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_IAR/stm32f091xc.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_IAR/stm32f091xc.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_IAR/stm32f091xc.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/TOOLCHAIN_IAR/stm32f091xc.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/stm32f091xc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/stm32f091xc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/stm32f091xc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/stm32f091xc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/stm32f0xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/stm32f0xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/stm32f0xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/stm32f0xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/system_stm32f0xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/system_stm32f0xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/system_stm32f0xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/system_stm32f0xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/system_stm32f0xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/system_stm32f0xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/system_stm32f0xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/TARGET_NUCLEO_F091RC/system_stm32f0xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32_hal_legacy.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32_hal_legacy.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32_hal_legacy.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32_hal_legacy.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_adc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_adc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_adc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_adc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_adc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_adc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_adc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_adc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_adc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_adc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_adc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_adc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_adc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_adc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_adc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_adc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_can.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_can.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_can.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_can.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_can.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_can.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_can.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_can.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_cec.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_cec.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_cec.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_cec.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_cec.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_cec.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_cec.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_cec.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_comp.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_comp.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_comp.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_comp.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_comp.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_comp.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_comp.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_comp.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_cortex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_cortex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_cortex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_cortex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_cortex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_cortex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_cortex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_cortex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_crc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_crc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_crc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_crc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_crc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_crc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_crc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_crc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_crc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_crc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_crc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_crc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_crc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_crc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_crc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_crc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dac.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dac.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dac.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dac.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dac.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dac.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dac.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dac.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dac_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dac_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dac_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dac_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dac_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dac_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dac_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dac_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_def.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_def.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_def.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_def.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dma.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dma.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dma.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dma.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dma.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dma.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dma.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dma.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dma_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dma_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dma_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_dma_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_flash.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_flash.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_flash.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_flash.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_flash.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_flash.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_flash.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_flash.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_flash_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_flash_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_flash_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_flash_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_flash_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_flash_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_flash_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_flash_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_gpio.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_gpio.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_gpio.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_gpio.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_gpio.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_gpio.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_gpio.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_gpio.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_gpio_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_gpio_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_gpio_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_gpio_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_i2c.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_i2c.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_i2c.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_i2c.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_i2c.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_i2c.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_i2c.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_i2c.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_i2c_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_i2c_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_i2c_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_i2c_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_i2c_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_i2c_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_i2c_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_i2c_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_i2s.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_i2s.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_i2s.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_i2s.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_i2s.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_i2s.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_i2s.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_i2s.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_irda.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_irda.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_irda.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_irda.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_irda.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_irda.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_irda.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_irda.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_irda_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_irda_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_irda_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_irda_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_iwdg.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_iwdg.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_iwdg.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_iwdg.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_iwdg.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_iwdg.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_iwdg.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_iwdg.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pcd.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pcd.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pcd.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pcd.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pcd.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pcd.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pcd.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pcd.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pcd_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pcd_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pcd_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pcd_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pcd_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pcd_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pcd_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pcd_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pwr.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pwr.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pwr.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pwr.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pwr.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pwr.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pwr.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pwr.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pwr_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pwr_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pwr_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pwr_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pwr_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pwr_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pwr_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_pwr_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rcc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rcc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rcc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rcc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rcc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rcc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rcc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rcc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rcc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rcc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rcc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rcc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rcc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rcc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rcc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rcc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rtc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rtc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rtc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rtc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rtc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rtc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rtc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rtc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rtc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rtc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rtc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rtc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rtc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rtc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_rtc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_smartcard.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_smartcard.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_smartcard.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_smartcard.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_smartcard.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_smartcard.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_smartcard.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_smartcard.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_smartcard_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_smartcard_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_smartcard_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_smartcard_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_smartcard_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_smartcard_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_smartcard_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_smartcard_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_smbus.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_smbus.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_smbus.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_smbus.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_smbus.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_smbus.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_smbus.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_smbus.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_spi.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_spi.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_spi.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_spi.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_spi.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_spi.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_spi.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_spi.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_spi_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_spi_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_spi_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_spi_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_spi_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_spi_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_spi_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_spi_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_tim.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_tim.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_tim.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_tim.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_tim.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_tim.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_tim.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_tim.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_tim_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_tim_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_tim_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_tim_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_tim_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_tim_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_tim_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_tim_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_tsc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_tsc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_tsc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_tsc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_tsc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_tsc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_tsc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_tsc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_uart.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_uart.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_uart.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_uart.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_uart.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_uart.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_uart.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_uart.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_uart_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_uart_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_uart_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_uart_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_uart_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_uart_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_uart_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_uart_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_usart.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_usart.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_usart.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_usart.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_usart.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_usart.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_usart.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_usart.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_usart_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_usart_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_usart_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_usart_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_wwdg.c b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_wwdg.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_wwdg.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_wwdg.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_wwdg.h b/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_wwdg.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_wwdg.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F0/stm32f0xx_hal_wwdg.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/Release_Notes_stm32f1xx_hal.html b/targets/cmsis/TARGET_STM/TARGET_STM32F1/Release_Notes_stm32f1xx_hal.html similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/Release_Notes_stm32f1xx_hal.html rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/Release_Notes_stm32f1xx_hal.html diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/TOOLCHAIN_GCC_ARM/STM32F103XB.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/TOOLCHAIN_GCC_ARM/STM32F103XB.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/TOOLCHAIN_GCC_ARM/STM32F103XB.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/TOOLCHAIN_GCC_ARM/STM32F103XB.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/TOOLCHAIN_GCC_ARM/startup_stm32f103xb.S b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/TOOLCHAIN_GCC_ARM/startup_stm32f103xb.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/TOOLCHAIN_GCC_ARM/startup_stm32f103xb.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/TOOLCHAIN_GCC_ARM/startup_stm32f103xb.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/stm32f103xb.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/stm32f103xb.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/stm32f103xb.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/stm32f103xb.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/stm32f1xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/stm32f1xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/stm32f1xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/stm32f1xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/system_stm32f1xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/system_stm32f1xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/system_stm32f1xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/system_stm32f1xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/system_stm32f1xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/system_stm32f1xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/system_stm32f1xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_BLUEPILL_F103C8/system_stm32f1xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_ARM_MICRO/startup_stm32f100xb.S b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_ARM_MICRO/startup_stm32f100xb.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_ARM_MICRO/startup_stm32f100xb.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_ARM_MICRO/startup_stm32f100xb.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_ARM_MICRO/stm32f100xb.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_ARM_MICRO/stm32f100xb.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_ARM_MICRO/stm32f100xb.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_ARM_MICRO/stm32f100xb.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_ARM_STD/startup_stm32f100xb.S b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_ARM_STD/startup_stm32f100xb.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_ARM_STD/startup_stm32f100xb.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_ARM_STD/startup_stm32f100xb.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_ARM_STD/stm32f100xb.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_ARM_STD/stm32f100xb.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_ARM_STD/stm32f100xb.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_ARM_STD/stm32f100xb.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_GCC_ARM/STM32F100.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_GCC_ARM/STM32F100.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_GCC_ARM/STM32F100.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_GCC_ARM/STM32F100.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_GCC_ARM/startup_stm32f100xb.S b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_GCC_ARM/startup_stm32f100xb.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_GCC_ARM/startup_stm32f100xb.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/TOOLCHAIN_GCC_ARM/startup_stm32f100xb.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/stm32f100xb.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/stm32f100xb.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/stm32f100xb.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/stm32f100xb.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/stm32f1xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/stm32f1xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/stm32f1xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/stm32f1xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/system_stm32f1xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/system_stm32f1xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/system_stm32f1xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/system_stm32f1xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/system_stm32f1xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/system_stm32f1xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/system_stm32f1xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_DISCO_F100RB/system_stm32f1xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_MICRO/startup_stm32f103xb.S b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_MICRO/startup_stm32f103xb.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_MICRO/startup_stm32f103xb.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_MICRO/startup_stm32f103xb.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_MICRO/stm32f103xb.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_MICRO/stm32f103xb.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_MICRO/stm32f103xb.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_MICRO/stm32f103xb.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/startup_stm32f103xb.S b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/startup_stm32f103xb.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/startup_stm32f103xb.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/startup_stm32f103xb.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f103xb.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f103xb.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f103xb.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/stm32f103xb.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_GCC_ARM/STM32F103XB.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_GCC_ARM/STM32F103XB.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_GCC_ARM/STM32F103XB.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_GCC_ARM/STM32F103XB.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_GCC_ARM/startup_stm32f103xb.S b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_GCC_ARM/startup_stm32f103xb.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_GCC_ARM/startup_stm32f103xb.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_GCC_ARM/startup_stm32f103xb.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_IAR/startup_stm32f103xb.S b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_IAR/startup_stm32f103xb.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_IAR/startup_stm32f103xb.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_IAR/startup_stm32f103xb.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_IAR/stm32f103xb.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_IAR/stm32f103xb.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_IAR/stm32f103xb.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/TOOLCHAIN_IAR/stm32f103xb.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/stm32f103xb.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/stm32f103xb.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/stm32f103xb.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/stm32f103xb.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/stm32f1xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/stm32f1xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/stm32f1xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/stm32f1xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/system_stm32f1xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/system_stm32f1xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/system_stm32f1xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/system_stm32f1xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/system_stm32f1xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/system_stm32f1xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/system_stm32f1xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/TARGET_NUCLEO_F103RB/system_stm32f1xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32_hal_legacy.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32_hal_legacy.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32_hal_legacy.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32_hal_legacy.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_adc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_adc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_adc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_adc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_adc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_adc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_adc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_adc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_adc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_adc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_adc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_adc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_adc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_adc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_adc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_adc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_can.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_can.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_can.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_can.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_can.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_can.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_can.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_can.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_can_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_can_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_can_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_can_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_cec.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_cec.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_cec.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_cec.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_cec.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_cec.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_cec.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_cec.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_cortex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_cortex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_cortex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_cortex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_cortex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_cortex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_cortex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_cortex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_crc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_crc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_crc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_crc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_crc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_crc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_crc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_crc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dac.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dac.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dac.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dac.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dac.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dac.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dac.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dac.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dac_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dac_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dac_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dac_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dac_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dac_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dac_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dac_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_def.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_def.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_def.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_def.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dma.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dma.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dma.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dma.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dma.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dma.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dma.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dma.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dma_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dma_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dma_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_dma_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_eth.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_eth.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_eth.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_eth.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_eth.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_eth.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_eth.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_eth.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_flash.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_flash.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_flash.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_flash.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_flash.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_flash.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_flash.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_flash.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_flash_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_flash_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_flash_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_flash_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_flash_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_flash_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_flash_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_flash_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_gpio.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_gpio.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_gpio.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_gpio.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_gpio.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_gpio.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_gpio.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_gpio.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_gpio_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_gpio_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_gpio_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_gpio_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_gpio_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_gpio_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_gpio_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_gpio_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_hcd.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_hcd.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_hcd.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_hcd.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_hcd.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_hcd.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_hcd.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_hcd.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_i2c.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_i2c.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_i2c.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_i2c.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_i2c.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_i2c.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_i2c.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_i2c.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_i2s.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_i2s.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_i2s.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_i2s.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_i2s.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_i2s.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_i2s.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_i2s.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_irda.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_irda.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_irda.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_irda.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_irda.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_irda.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_irda.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_irda.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_iwdg.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_iwdg.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_iwdg.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_iwdg.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_iwdg.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_iwdg.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_iwdg.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_iwdg.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_nand.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_nand.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_nand.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_nand.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_nand.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_nand.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_nand.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_nand.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_nor.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_nor.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_nor.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_nor.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_nor.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_nor.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_nor.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_nor.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pccard.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pccard.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pccard.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pccard.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pccard.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pccard.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pccard.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pccard.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pcd.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pcd.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pcd.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pcd.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pcd.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pcd.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pcd.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pcd.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pcd_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pcd_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pcd_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pcd_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pcd_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pcd_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pcd_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pcd_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pwr.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pwr.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pwr.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pwr.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pwr.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pwr.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pwr.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_pwr.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rcc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rcc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rcc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rcc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rcc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rcc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rcc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rcc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rcc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rcc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rcc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rcc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rcc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rcc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rcc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rcc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rtc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rtc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rtc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rtc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rtc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rtc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rtc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rtc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rtc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rtc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rtc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rtc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rtc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rtc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_rtc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_sd.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_sd.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_sd.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_sd.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_sd.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_sd.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_sd.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_sd.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_smartcard.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_smartcard.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_smartcard.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_smartcard.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_smartcard.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_smartcard.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_smartcard.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_smartcard.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_spi.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_spi.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_spi.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_spi.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_spi.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_spi.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_spi.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_spi.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_spi_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_spi_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_spi_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_spi_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_sram.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_sram.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_sram.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_sram.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_sram.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_sram.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_sram.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_sram.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_tim.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_tim.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_tim.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_tim.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_tim.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_tim.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_tim.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_tim.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_tim_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_tim_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_tim_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_tim_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_tim_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_tim_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_tim_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_tim_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_uart.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_uart.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_uart.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_uart.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_uart.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_uart.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_uart.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_uart.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_usart.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_usart.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_usart.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_usart.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_usart.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_usart.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_usart.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_usart.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_wwdg.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_wwdg.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_wwdg.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_wwdg.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_wwdg.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_wwdg.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_wwdg.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_hal_wwdg.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_ll_fsmc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_ll_fsmc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_ll_fsmc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_ll_fsmc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_ll_fsmc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_ll_fsmc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_ll_fsmc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_ll_fsmc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_ll_sdmmc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_ll_sdmmc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_ll_sdmmc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_ll_sdmmc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_ll_sdmmc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_ll_sdmmc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_ll_sdmmc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_ll_sdmmc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_ll_usb.c b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_ll_usb.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_ll_usb.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_ll_usb.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_ll_usb.h b/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_ll_usb.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_ll_usb.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F1/stm32f1xx_ll_usb.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/Release_Notes_stm32f2xx_hal.html b/targets/cmsis/TARGET_STM/TARGET_STM32F2/Release_Notes_stm32f2xx_hal.html similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/Release_Notes_stm32f2xx_hal.html rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/Release_Notes_stm32f2xx_hal.html diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_ARM_MICRO/startup_stm32f207xx.s b/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_ARM_MICRO/startup_stm32f207xx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_ARM_MICRO/startup_stm32f207xx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_ARM_MICRO/startup_stm32f207xx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_ARM_MICRO/stm32f207xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_ARM_MICRO/stm32f207xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_ARM_MICRO/stm32f207xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_ARM_MICRO/stm32f207xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_ARM_STD/startup_stm32f207xx.s b/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_ARM_STD/startup_stm32f207xx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_ARM_STD/startup_stm32f207xx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_ARM_STD/startup_stm32f207xx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_ARM_STD/stm32f207xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_ARM_STD/stm32f207xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_ARM_STD/stm32f207xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_ARM_STD/stm32f207xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_GCC_ARM/STM32F207ZGTx_FLASH.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_GCC_ARM/STM32F207ZGTx_FLASH.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_GCC_ARM/STM32F207ZGTx_FLASH.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_GCC_ARM/STM32F207ZGTx_FLASH.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_GCC_ARM/startup_stm32f207xx.s b/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_GCC_ARM/startup_stm32f207xx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_GCC_ARM/startup_stm32f207xx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_GCC_ARM/startup_stm32f207xx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_IAR/startup_stm32f207xx.s b/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_IAR/startup_stm32f207xx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_IAR/startup_stm32f207xx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_IAR/startup_stm32f207xx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_IAR/stm32f207xx.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_IAR/stm32f207xx.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_IAR/stm32f207xx.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/TOOLCHAIN_IAR/stm32f207xx.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/stm32f207xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/stm32f207xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/stm32f207xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/stm32f207xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/stm32f2xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/stm32f2xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/stm32f2xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/stm32f2xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/system_stm32f2xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/system_stm32f2xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/system_stm32f2xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/system_stm32f2xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/system_stm32f2xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/system_stm32f2xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/system_stm32f2xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/TARGET_NUCLEO_F207ZG/system_stm32f2xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32_hal_legacy.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32_hal_legacy.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32_hal_legacy.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32_hal_legacy.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_adc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_adc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_adc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_adc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_adc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_adc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_adc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_adc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_adc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_adc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_adc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_adc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_adc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_adc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_adc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_adc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_can.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_can.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_can.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_can.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_can.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_can.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_can.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_can.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_cortex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_cortex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_cortex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_cortex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_cortex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_cortex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_cortex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_cortex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_crc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_crc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_crc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_crc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_crc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_crc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_crc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_crc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_cryp.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_cryp.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_cryp.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_cryp.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_cryp.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_cryp.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_cryp.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_cryp.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dac.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dac.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dac.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dac.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dac.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dac.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dac.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dac.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dac_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dac_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dac_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dac_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dac_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dac_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dac_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dac_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dcmi.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dcmi.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dcmi.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dcmi.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dcmi.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dcmi.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dcmi.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dcmi.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_def.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_def.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_def.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_def.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dma.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dma.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dma.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dma.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dma.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dma.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dma.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dma.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dma_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dma_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dma_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dma_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dma_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dma_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dma_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_dma_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_eth.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_eth.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_eth.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_eth.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_eth.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_eth.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_eth.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_eth.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_flash.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_flash.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_flash.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_flash.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_flash.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_flash.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_flash.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_flash.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_flash_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_flash_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_flash_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_flash_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_flash_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_flash_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_flash_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_flash_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_gpio.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_gpio.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_gpio.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_gpio.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_gpio.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_gpio.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_gpio.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_gpio.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_gpio_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_gpio_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_gpio_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_gpio_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_hash.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_hash.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_hash.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_hash.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_hash.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_hash.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_hash.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_hash.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_hcd.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_hcd.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_hcd.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_hcd.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_hcd.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_hcd.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_hcd.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_hcd.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_i2c.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_i2c.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_i2c.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_i2c.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_i2c.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_i2c.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_i2c.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_i2c.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_i2s.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_i2s.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_i2s.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_i2s.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_i2s.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_i2s.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_i2s.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_i2s.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_irda.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_irda.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_irda.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_irda.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_irda.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_irda.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_irda.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_irda.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_iwdg.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_iwdg.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_iwdg.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_iwdg.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_iwdg.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_iwdg.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_iwdg.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_iwdg.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_nand.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_nand.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_nand.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_nand.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_nand.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_nand.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_nand.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_nand.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_nor.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_nor.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_nor.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_nor.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_nor.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_nor.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_nor.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_nor.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pccard.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pccard.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pccard.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pccard.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pccard.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pccard.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pccard.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pccard.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pcd.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pcd.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pcd.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pcd.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pcd.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pcd.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pcd.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pcd.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pcd_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pcd_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pcd_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pcd_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pcd_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pcd_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pcd_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pcd_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pwr.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pwr.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pwr.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pwr.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pwr.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pwr.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pwr.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pwr.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pwr_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pwr_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pwr_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pwr_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pwr_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pwr_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pwr_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_pwr_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rcc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rcc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rcc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rcc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rcc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rcc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rcc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rcc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rcc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rcc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rcc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rcc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rcc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rcc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rcc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rcc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rng.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rng.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rng.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rng.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rng.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rng.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rng.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rng.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rtc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rtc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rtc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rtc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rtc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rtc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rtc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rtc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rtc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rtc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rtc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rtc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rtc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rtc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_rtc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_sd.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_sd.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_sd.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_sd.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_sd.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_sd.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_sd.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_sd.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_smartcard.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_smartcard.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_smartcard.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_smartcard.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_smartcard.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_smartcard.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_smartcard.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_smartcard.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_spi.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_spi.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_spi.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_spi.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_spi.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_spi.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_spi.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_spi.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_sram.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_sram.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_sram.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_sram.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_sram.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_sram.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_sram.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_sram.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_tim.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_tim.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_tim.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_tim.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_tim.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_tim.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_tim.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_tim.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_tim_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_tim_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_tim_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_tim_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_tim_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_tim_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_tim_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_tim_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_uart.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_uart.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_uart.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_uart.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_uart.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_uart.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_uart.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_uart.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_usart.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_usart.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_usart.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_usart.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_usart.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_usart.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_usart.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_usart.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_wwdg.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_wwdg.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_wwdg.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_wwdg.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_wwdg.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_wwdg.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_wwdg.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_hal_wwdg.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_ll_fsmc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_ll_fsmc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_ll_fsmc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_ll_fsmc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_ll_fsmc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_ll_fsmc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_ll_fsmc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_ll_fsmc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_ll_sdmmc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_ll_sdmmc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_ll_sdmmc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_ll_sdmmc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_ll_sdmmc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_ll_sdmmc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_ll_sdmmc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_ll_sdmmc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_ll_usb.c b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_ll_usb.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_ll_usb.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_ll_usb.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_ll_usb.h b/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_ll_usb.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_ll_usb.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F2/stm32f2xx_ll_usb.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/Release_Notes_stm32f3xx_hal.html b/targets/cmsis/TARGET_STM/TARGET_STM32F3/Release_Notes_stm32f3xx_hal.html similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/Release_Notes_stm32f3xx_hal.html rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/Release_Notes_stm32f3xx_hal.html diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_ARM_MICRO/startup_stm32f303xc.S b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_ARM_MICRO/startup_stm32f303xc.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_ARM_MICRO/startup_stm32f303xc.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_ARM_MICRO/startup_stm32f303xc.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_ARM_MICRO/stm32f303xc.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_ARM_MICRO/stm32f303xc.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_ARM_MICRO/stm32f303xc.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_ARM_MICRO/stm32f303xc.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_ARM_STD/startup_stm32f303xc.S b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_ARM_STD/startup_stm32f303xc.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_ARM_STD/startup_stm32f303xc.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_ARM_STD/startup_stm32f303xc.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_ARM_STD/stm32f303xc.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_ARM_STD/stm32f303xc.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_ARM_STD/stm32f303xc.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_ARM_STD/stm32f303xc.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_GCC_ARM/STM32F303XC.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_GCC_ARM/STM32F303XC.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_GCC_ARM/STM32F303XC.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_GCC_ARM/STM32F303XC.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_GCC_ARM/startup_stm32f303xc.S b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_GCC_ARM/startup_stm32f303xc.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_GCC_ARM/startup_stm32f303xc.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/TOOLCHAIN_GCC_ARM/startup_stm32f303xc.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/stm32f303xc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/stm32f303xc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/stm32f303xc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/stm32f303xc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/stm32f3xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/stm32f3xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/stm32f3xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/stm32f3xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/system_stm32f3xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/system_stm32f3xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/system_stm32f3xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/system_stm32f3xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/system_stm32f3xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/system_stm32f3xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/system_stm32f3xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F303VC/system_stm32f3xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_ARM_MICRO/startup_stm32f334x8.S b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_ARM_MICRO/startup_stm32f334x8.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_ARM_MICRO/startup_stm32f334x8.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_ARM_MICRO/startup_stm32f334x8.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_ARM_MICRO/stm32f334x8.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_ARM_MICRO/stm32f334x8.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_ARM_MICRO/stm32f334x8.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_ARM_MICRO/stm32f334x8.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_ARM_STD/startup_stm32f334x8.S b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_ARM_STD/startup_stm32f334x8.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_ARM_STD/startup_stm32f334x8.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_ARM_STD/startup_stm32f334x8.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_ARM_STD/stm32f334x8.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_ARM_STD/stm32f334x8.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_ARM_STD/stm32f334x8.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_ARM_STD/stm32f334x8.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_GCC_ARM/STM32F334X8.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_GCC_ARM/STM32F334X8.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_GCC_ARM/STM32F334X8.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_GCC_ARM/STM32F334X8.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_GCC_ARM/startup_stm32f334x8.S b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_GCC_ARM/startup_stm32f334x8.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_GCC_ARM/startup_stm32f334x8.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_GCC_ARM/startup_stm32f334x8.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_IAR/startup_stm32f334x8.S b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_IAR/startup_stm32f334x8.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_IAR/startup_stm32f334x8.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_IAR/startup_stm32f334x8.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_IAR/stm32f334x8.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_IAR/stm32f334x8.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_IAR/stm32f334x8.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/TOOLCHAIN_IAR/stm32f334x8.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/stm32f334x8.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/stm32f334x8.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/stm32f334x8.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/stm32f334x8.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/stm32f3xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/stm32f3xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/stm32f3xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/stm32f3xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/system_stm32f3xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/system_stm32f3xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/system_stm32f3xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/system_stm32f3xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/system_stm32f3xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/system_stm32f3xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/system_stm32f3xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_DISCO_F334C8/system_stm32f3xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_ARM_MICRO/startup_stm32f302x8.S b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_ARM_MICRO/startup_stm32f302x8.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_ARM_MICRO/startup_stm32f302x8.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_ARM_MICRO/startup_stm32f302x8.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_ARM_MICRO/stm32f302x8.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_ARM_MICRO/stm32f302x8.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_ARM_MICRO/stm32f302x8.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_ARM_MICRO/stm32f302x8.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_ARM_STD/startup_stm32f302x8.S b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_ARM_STD/startup_stm32f302x8.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_ARM_STD/startup_stm32f302x8.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_ARM_STD/startup_stm32f302x8.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_ARM_STD/stm32f302x8.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_ARM_STD/stm32f302x8.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_ARM_STD/stm32f302x8.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_ARM_STD/stm32f302x8.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_GCC_ARM/STM32F302X8.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_GCC_ARM/STM32F302X8.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_GCC_ARM/STM32F302X8.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_GCC_ARM/STM32F302X8.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_GCC_ARM/startup_stm32f302x8.S b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_GCC_ARM/startup_stm32f302x8.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_GCC_ARM/startup_stm32f302x8.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_GCC_ARM/startup_stm32f302x8.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_IAR/startup_stm32f302x8.S b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_IAR/startup_stm32f302x8.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_IAR/startup_stm32f302x8.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_IAR/startup_stm32f302x8.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_IAR/stm32f302x8.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_IAR/stm32f302x8.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_IAR/stm32f302x8.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/TOOLCHAIN_IAR/stm32f302x8.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/stm32f302x8.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/stm32f302x8.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/stm32f302x8.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/stm32f302x8.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/stm32f3xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/stm32f3xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/stm32f3xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/stm32f3xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/system_stm32f3xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/system_stm32f3xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/system_stm32f3xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/system_stm32f3xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/system_stm32f3xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/system_stm32f3xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/system_stm32f3xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F302R8/system_stm32f3xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_ARM_MICRO/startup_stm32f303x8.S b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_ARM_MICRO/startup_stm32f303x8.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_ARM_MICRO/startup_stm32f303x8.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_ARM_MICRO/startup_stm32f303x8.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_ARM_MICRO/stm32f303x8.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_ARM_MICRO/stm32f303x8.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_ARM_MICRO/stm32f303x8.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_ARM_MICRO/stm32f303x8.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_ARM_STD/startup_stm32f303x8.S b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_ARM_STD/startup_stm32f303x8.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_ARM_STD/startup_stm32f303x8.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_ARM_STD/startup_stm32f303x8.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_ARM_STD/stm32f303x8.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_ARM_STD/stm32f303x8.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_ARM_STD/stm32f303x8.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_ARM_STD/stm32f303x8.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_GCC_ARM/STM32F303X8.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_GCC_ARM/STM32F303X8.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_GCC_ARM/STM32F303X8.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_GCC_ARM/STM32F303X8.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_GCC_ARM/startup_stm32f303x8.S b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_GCC_ARM/startup_stm32f303x8.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_GCC_ARM/startup_stm32f303x8.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_GCC_ARM/startup_stm32f303x8.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_IAR/startup_stm32f303x8.S b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_IAR/startup_stm32f303x8.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_IAR/startup_stm32f303x8.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_IAR/startup_stm32f303x8.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_IAR/stm32f303x8.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_IAR/stm32f303x8.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_IAR/stm32f303x8.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/TOOLCHAIN_IAR/stm32f303x8.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/stm32f303x8.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/stm32f303x8.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/stm32f303x8.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/stm32f303x8.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/stm32f3xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/stm32f3xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/stm32f3xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/stm32f3xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/system_stm32f3xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/system_stm32f3xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/system_stm32f3xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/system_stm32f3xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/system_stm32f3xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/system_stm32f3xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/system_stm32f3xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/system_stm32f3xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_ARM_MICRO/startup_stm32f303xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_ARM_MICRO/startup_stm32f303xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_ARM_MICRO/startup_stm32f303xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_ARM_MICRO/startup_stm32f303xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_ARM_MICRO/stm32f303xe.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_ARM_MICRO/stm32f303xe.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_ARM_MICRO/stm32f303xe.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_ARM_MICRO/stm32f303xe.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_ARM_STD/startup_stm32f303xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_ARM_STD/startup_stm32f303xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_ARM_STD/startup_stm32f303xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_ARM_STD/startup_stm32f303xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_ARM_STD/stm32f303xe.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_ARM_STD/stm32f303xe.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_ARM_STD/stm32f303xe.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_ARM_STD/stm32f303xe.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_GCC_ARM/STM32F303XE.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_GCC_ARM/STM32F303XE.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_GCC_ARM/STM32F303XE.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_GCC_ARM/STM32F303XE.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_GCC_ARM/startup_stm32f303xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_GCC_ARM/startup_stm32f303xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_GCC_ARM/startup_stm32f303xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_GCC_ARM/startup_stm32f303xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_IAR/startup_stm32f303xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_IAR/startup_stm32f303xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_IAR/startup_stm32f303xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_IAR/startup_stm32f303xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_IAR/stm32f303xe.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_IAR/stm32f303xe.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_IAR/stm32f303xe.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/TOOLCHAIN_IAR/stm32f303xe.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/stm32f303xe.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/stm32f303xe.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/stm32f303xe.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/stm32f303xe.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/stm32f3xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/stm32f3xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/stm32f3xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/stm32f3xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/system_stm32f3xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/system_stm32f3xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/system_stm32f3xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/system_stm32f3xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/system_stm32f3xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/system_stm32f3xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/system_stm32f3xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303RE/system_stm32f3xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_ARM_MICRO/startup_stm32f303xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_ARM_MICRO/startup_stm32f303xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_ARM_MICRO/startup_stm32f303xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_ARM_MICRO/startup_stm32f303xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_ARM_MICRO/stm32f303xe.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_ARM_MICRO/stm32f303xe.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_ARM_MICRO/stm32f303xe.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_ARM_MICRO/stm32f303xe.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_ARM_STD/startup_stm32f303xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_ARM_STD/startup_stm32f303xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_ARM_STD/startup_stm32f303xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_ARM_STD/startup_stm32f303xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_ARM_STD/stm32f303xe.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_ARM_STD/stm32f303xe.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_ARM_STD/stm32f303xe.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_ARM_STD/stm32f303xe.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_GCC_ARM/STM32F303XE.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_GCC_ARM/STM32F303XE.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_GCC_ARM/STM32F303XE.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_GCC_ARM/STM32F303XE.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_GCC_ARM/startup_stm32f303xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_GCC_ARM/startup_stm32f303xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_GCC_ARM/startup_stm32f303xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_GCC_ARM/startup_stm32f303xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_IAR/startup_stm32f303xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_IAR/startup_stm32f303xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_IAR/startup_stm32f303xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_IAR/startup_stm32f303xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_IAR/stm32f303xe.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_IAR/stm32f303xe.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_IAR/stm32f303xe.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/TOOLCHAIN_IAR/stm32f303xe.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/stm32f303xe.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/stm32f303xe.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/stm32f303xe.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/stm32f303xe.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/stm32f3xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/stm32f3xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/stm32f3xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/stm32f3xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/system_stm32f3xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/system_stm32f3xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/system_stm32f3xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/system_stm32f3xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/system_stm32f3xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/system_stm32f3xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/system_stm32f3xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303ZE/system_stm32f3xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_ARM_MICRO/startup_stm32f334x8.S b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_ARM_MICRO/startup_stm32f334x8.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_ARM_MICRO/startup_stm32f334x8.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_ARM_MICRO/startup_stm32f334x8.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_ARM_MICRO/stm32f334r8.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_ARM_MICRO/stm32f334r8.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_ARM_MICRO/stm32f334r8.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_ARM_MICRO/stm32f334r8.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_ARM_STD/startup_stm32f334x8.S b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_ARM_STD/startup_stm32f334x8.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_ARM_STD/startup_stm32f334x8.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_ARM_STD/startup_stm32f334x8.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_ARM_STD/stm32f334r8.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_ARM_STD/stm32f334r8.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_ARM_STD/stm32f334r8.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_ARM_STD/stm32f334r8.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_GCC_ARM/STM32F334x8.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_GCC_ARM/STM32F334x8.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_GCC_ARM/STM32F334x8.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_GCC_ARM/STM32F334x8.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_GCC_ARM/startup_stm32f334x8.S b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_GCC_ARM/startup_stm32f334x8.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_GCC_ARM/startup_stm32f334x8.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_GCC_ARM/startup_stm32f334x8.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_IAR/startup_stm32f334x8.S b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_IAR/startup_stm32f334x8.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_IAR/startup_stm32f334x8.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_IAR/startup_stm32f334x8.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_IAR/stm32f334x8.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_IAR/stm32f334x8.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_IAR/stm32f334x8.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/TOOLCHAIN_IAR/stm32f334x8.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/stm32f334x8.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/stm32f334x8.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/stm32f334x8.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/stm32f334x8.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/stm32f3xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/stm32f3xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/stm32f3xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/stm32f3xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/system_stm32f3xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/system_stm32f3xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/system_stm32f3xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/system_stm32f3xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/system_stm32f3xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/system_stm32f3xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/system_stm32f3xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F334R8/system_stm32f3xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32_hal_legacy.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32_hal_legacy.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32_hal_legacy.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32_hal_legacy.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_adc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_adc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_adc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_adc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_adc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_adc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_adc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_adc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_adc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_adc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_adc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_adc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_adc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_adc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_adc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_adc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_can.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_can.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_can.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_can.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_can.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_can.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_can.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_can.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_cec.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_cec.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_cec.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_cec.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_cec.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_cec.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_cec.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_cec.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_comp.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_comp.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_comp.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_comp.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_comp.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_comp.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_comp.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_comp.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_comp_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_comp_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_comp_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_comp_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_cortex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_cortex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_cortex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_cortex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_cortex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_cortex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_cortex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_cortex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_crc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_crc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_crc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_crc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_crc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_crc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_crc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_crc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_crc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_crc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_crc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_crc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_crc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_crc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_crc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_crc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dac.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dac.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dac.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dac.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dac.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dac.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dac.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dac.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dac_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dac_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dac_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dac_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dac_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dac_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dac_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dac_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_def.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_def.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_def.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_def.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dma.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dma.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dma.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dma.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dma.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dma.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dma.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dma.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dma_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dma_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dma_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_dma_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_flash.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_flash.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_flash.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_flash.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_flash.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_flash.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_flash.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_flash.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_flash_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_flash_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_flash_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_flash_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_flash_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_flash_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_flash_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_flash_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_gpio.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_gpio.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_gpio.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_gpio.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_gpio.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_gpio.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_gpio.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_gpio.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_gpio_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_gpio_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_gpio_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_gpio_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_hrtim.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_hrtim.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_hrtim.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_hrtim.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_hrtim.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_hrtim.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_hrtim.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_hrtim.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2c.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2c.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2c.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2c.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2c.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2c.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2c.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2c.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2c_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2c_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2c_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2c_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2c_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2c_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2c_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2c_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2s.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2s.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2s.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2s.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2s.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2s.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2s.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2s.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2s_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2s_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2s_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2s_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2s_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2s_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2s_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_i2s_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_irda.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_irda.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_irda.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_irda.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_irda.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_irda.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_irda.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_irda.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_irda_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_irda_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_irda_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_irda_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_iwdg.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_iwdg.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_iwdg.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_iwdg.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_iwdg.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_iwdg.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_iwdg.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_iwdg.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_nand.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_nand.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_nand.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_nand.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_nand.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_nand.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_nand.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_nand.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_nor.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_nor.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_nor.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_nor.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_nor.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_nor.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_nor.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_nor.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_opamp.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_opamp.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_opamp.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_opamp.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_opamp.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_opamp.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_opamp.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_opamp.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_opamp_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_opamp_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_opamp_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_opamp_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_opamp_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_opamp_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_opamp_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_opamp_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pccard.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pccard.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pccard.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pccard.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pccard.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pccard.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pccard.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pccard.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pcd.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pcd.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pcd.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pcd.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pcd.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pcd.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pcd.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pcd.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pcd_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pcd_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pcd_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pcd_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pcd_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pcd_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pcd_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pcd_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pwr.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pwr.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pwr.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pwr.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pwr.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pwr.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pwr.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pwr.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pwr_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pwr_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pwr_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pwr_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pwr_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pwr_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pwr_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_pwr_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rcc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rcc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rcc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rcc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rcc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rcc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rcc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rcc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rcc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rcc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rcc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rcc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rcc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rcc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rcc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rcc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rtc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rtc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rtc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rtc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rtc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rtc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rtc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rtc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rtc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rtc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rtc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rtc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rtc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rtc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_rtc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_sdadc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_sdadc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_sdadc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_sdadc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_sdadc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_sdadc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_sdadc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_sdadc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_smartcard.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_smartcard.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_smartcard.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_smartcard.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_smartcard.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_smartcard.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_smartcard.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_smartcard.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_smartcard_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_smartcard_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_smartcard_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_smartcard_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_smartcard_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_smartcard_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_smartcard_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_smartcard_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_smbus.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_smbus.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_smbus.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_smbus.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_smbus.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_smbus.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_smbus.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_smbus.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_spi.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_spi.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_spi.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_spi.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_spi.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_spi.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_spi.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_spi.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_spi_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_spi_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_spi_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_spi_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_spi_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_spi_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_spi_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_spi_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_sram.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_sram.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_sram.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_sram.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_sram.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_sram.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_sram.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_sram.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_tim.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_tim.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_tim.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_tim.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_tim.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_tim.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_tim.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_tim.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_tim_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_tim_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_tim_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_tim_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_tim_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_tim_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_tim_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_tim_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_tsc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_tsc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_tsc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_tsc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_tsc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_tsc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_tsc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_tsc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_uart.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_uart.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_uart.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_uart.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_uart.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_uart.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_uart.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_uart.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_uart_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_uart_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_uart_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_uart_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_uart_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_uart_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_uart_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_uart_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_usart.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_usart.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_usart.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_usart.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_usart.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_usart.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_usart.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_usart.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_usart_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_usart_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_usart_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_usart_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_wwdg.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_wwdg.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_wwdg.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_wwdg.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_wwdg.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_wwdg.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_wwdg.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_hal_wwdg.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_ll_fmc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_ll_fmc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_ll_fmc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_ll_fmc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_ll_fmc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_ll_fmc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_ll_fmc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F3/stm32f3xx_ll_fmc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/Release_Notes_stm32f4xx_hal.html b/targets/cmsis/TARGET_STM/TARGET_STM32F4/Release_Notes_stm32f4xx_hal.html similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/Release_Notes_stm32f4xx_hal.html rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/Release_Notes_stm32f4xx_hal.html diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_ARM_MICRO/startup_stm32f446xx.s b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_ARM_MICRO/startup_stm32f446xx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_ARM_MICRO/startup_stm32f446xx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_ARM_MICRO/startup_stm32f446xx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_ARM_MICRO/stm32f446xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_ARM_MICRO/stm32f446xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_ARM_MICRO/stm32f446xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_ARM_MICRO/stm32f446xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_ARM_STD/startup_stm32f446xx.s b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_ARM_STD/startup_stm32f446xx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_ARM_STD/startup_stm32f446xx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_ARM_STD/startup_stm32f446xx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_ARM_STD/stm32f446xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_ARM_STD/stm32f446xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_ARM_STD/stm32f446xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_ARM_STD/stm32f446xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_GCC_ARM/STM32F446XE.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_GCC_ARM/STM32F446XE.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_GCC_ARM/STM32F446XE.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_GCC_ARM/STM32F446XE.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_GCC_ARM/startup_stm32f446xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_GCC_ARM/startup_stm32f446xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_GCC_ARM/startup_stm32f446xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_GCC_ARM/startup_stm32f446xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_IAR/startup_stm32f446xx.s b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_IAR/startup_stm32f446xx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_IAR/startup_stm32f446xx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_IAR/startup_stm32f446xx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_IAR/stm32f446xx.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_IAR/stm32f446xx.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_IAR/stm32f446xx.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/TOOLCHAIN_IAR/stm32f446xx.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/stm32f446xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/stm32f446xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/stm32f446xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/stm32f446xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/stm32f4xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/stm32f4xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/stm32f4xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/stm32f4xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/system_stm32f4xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/system_stm32f4xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/system_stm32f4xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/system_stm32f4xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/system_stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/system_stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/system_stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_B96B_F446VE/system_stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/TOOLCHAIN_GCC_ARM/STM32F401XC.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/TOOLCHAIN_GCC_ARM/STM32F401XC.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/TOOLCHAIN_GCC_ARM/STM32F401XC.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/TOOLCHAIN_GCC_ARM/STM32F401XC.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/TOOLCHAIN_GCC_ARM/startup_stm32f401xc.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/TOOLCHAIN_GCC_ARM/startup_stm32f401xc.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/TOOLCHAIN_GCC_ARM/startup_stm32f401xc.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/TOOLCHAIN_GCC_ARM/startup_stm32f401xc.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/stm32f401xc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/stm32f401xc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/stm32f401xc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/stm32f401xc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/stm32f4xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/stm32f4xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/stm32f4xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/stm32f4xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/system_stm32f4xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/system_stm32f4xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/system_stm32f4xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/system_stm32f4xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/system_stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/system_stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/system_stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F401VC/system_stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_ARM_MICRO/startup_stm32f429xx.s b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_ARM_MICRO/startup_stm32f429xx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_ARM_MICRO/startup_stm32f429xx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_ARM_MICRO/startup_stm32f429xx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_ARM_MICRO/stm32f429xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_ARM_MICRO/stm32f429xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_ARM_MICRO/stm32f429xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_ARM_MICRO/stm32f429xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_ARM_STD/startup_stm32f429xx.s b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_ARM_STD/startup_stm32f429xx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_ARM_STD/startup_stm32f429xx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_ARM_STD/startup_stm32f429xx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_ARM_STD/stm32f429xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_ARM_STD/stm32f429xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_ARM_STD/stm32f429xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_ARM_STD/stm32f429xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_GCC_ARM/STM32F429ZI.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_GCC_ARM/STM32F429ZI.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_GCC_ARM/STM32F429ZI.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_GCC_ARM/STM32F429ZI.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_GCC_ARM/startup_stm32f429xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_GCC_ARM/startup_stm32f429xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_GCC_ARM/startup_stm32f429xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_GCC_ARM/startup_stm32f429xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_IAR/startup_stm32f429xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_IAR/startup_stm32f429xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_IAR/startup_stm32f429xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_IAR/startup_stm32f429xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_IAR/stm32f429xx_flash.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_IAR/stm32f429xx_flash.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_IAR/stm32f429xx_flash.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/TOOLCHAIN_IAR/stm32f429xx_flash.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/stm32f429xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/stm32f429xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/stm32f429xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/stm32f429xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/stm32f4xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/stm32f4xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/stm32f4xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/stm32f4xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/system_stm32f4xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/system_stm32f4xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/system_stm32f4xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/system_stm32f4xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/system_stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/system_stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/system_stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F429ZI/system_stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_ARM_MICRO/startup_stm32f469xx.s b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_ARM_MICRO/startup_stm32f469xx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_ARM_MICRO/startup_stm32f469xx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_ARM_MICRO/startup_stm32f469xx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_ARM_MICRO/stm32f469xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_ARM_MICRO/stm32f469xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_ARM_MICRO/stm32f469xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_ARM_MICRO/stm32f469xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_ARM_STD/startup_stm32f469xx.s b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_ARM_STD/startup_stm32f469xx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_ARM_STD/startup_stm32f469xx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_ARM_STD/startup_stm32f469xx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_ARM_STD/stm32f469xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_ARM_STD/stm32f469xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_ARM_STD/stm32f469xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_ARM_STD/stm32f469xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_GCC_ARM/STM32F469XI.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_GCC_ARM/STM32F469XI.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_GCC_ARM/STM32F469XI.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_GCC_ARM/STM32F469XI.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_GCC_ARM/startup_stm32f469xx.s b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_GCC_ARM/startup_stm32f469xx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_GCC_ARM/startup_stm32f469xx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_GCC_ARM/startup_stm32f469xx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_IAR/startup_stm32f469xx.s b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_IAR/startup_stm32f469xx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_IAR/startup_stm32f469xx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_IAR/startup_stm32f469xx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_IAR/stm32f469xx.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_IAR/stm32f469xx.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_IAR/stm32f469xx.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/TOOLCHAIN_IAR/stm32f469xx.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/stm32f469xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/stm32f469xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/stm32f469xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/stm32f469xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/stm32f4xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/stm32f4xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/stm32f4xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/stm32f4xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/system_stm32f4xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/system_stm32f4xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/system_stm32f4xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/system_stm32f4xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/system_stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/system_stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/system_stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_DISCO_F469NI/system_stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_ARM_MICRO/startup_stm32f411xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_ARM_MICRO/startup_stm32f411xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_ARM_MICRO/startup_stm32f411xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_ARM_MICRO/startup_stm32f411xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_ARM_MICRO/stm32f411re.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_ARM_MICRO/stm32f411re.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_ARM_MICRO/stm32f411re.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_ARM_MICRO/stm32f411re.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_ARM_STD/startup_stm32f411xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_ARM_STD/startup_stm32f411xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_ARM_STD/startup_stm32f411xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_ARM_STD/startup_stm32f411xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_ARM_STD/stm32f411re.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_ARM_STD/stm32f411re.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_ARM_STD/stm32f411re.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_ARM_STD/stm32f411re.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_GCC_ARM/STM32F411XE.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_GCC_ARM/STM32F411XE.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_GCC_ARM/STM32F411XE.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_GCC_ARM/STM32F411XE.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_GCC_ARM/startup_stm32f411xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_GCC_ARM/startup_stm32f411xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_GCC_ARM/startup_stm32f411xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_GCC_ARM/startup_stm32f411xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_IAR/startup_stm32f411xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_IAR/startup_stm32f411xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_IAR/startup_stm32f411xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_IAR/startup_stm32f411xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_IAR/stm32f411xe.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_IAR/stm32f411xe.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_IAR/stm32f411xe.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/TOOLCHAIN_IAR/stm32f411xe.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/stm32f411xe.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/stm32f411xe.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/stm32f411xe.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/stm32f411xe.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/stm32f4xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/stm32f4xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/stm32f4xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/stm32f4xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/system_stm32f4xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/system_stm32f4xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/system_stm32f4xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/system_stm32f4xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/system_stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/system_stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/system_stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_ELMO_F411RE/system_stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_ARM_MICRO/startup_stm32f411xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_ARM_MICRO/startup_stm32f411xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_ARM_MICRO/startup_stm32f411xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_ARM_MICRO/startup_stm32f411xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_ARM_MICRO/stm32f411re.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_ARM_MICRO/stm32f411re.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_ARM_MICRO/stm32f411re.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_ARM_MICRO/stm32f411re.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_ARM_STD/startup_stm32f411xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_ARM_STD/startup_stm32f411xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_ARM_STD/startup_stm32f411xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_ARM_STD/startup_stm32f411xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_ARM_STD/stm32f411re.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_ARM_STD/stm32f411re.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_ARM_STD/stm32f411re.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_ARM_STD/stm32f411re.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_GCC_ARM/NUCLEO_F411RE.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_GCC_ARM/NUCLEO_F411RE.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_GCC_ARM/NUCLEO_F411RE.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_GCC_ARM/NUCLEO_F411RE.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_GCC_ARM/startup_STM32F41x.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_GCC_ARM/startup_STM32F41x.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_GCC_ARM/startup_STM32F41x.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_GCC_ARM/startup_STM32F41x.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_IAR/startup_stm32f411xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_IAR/startup_stm32f411xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_IAR/startup_stm32f411xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_IAR/startup_stm32f411xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_IAR/stm32f411xe.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_IAR/stm32f411xe.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_IAR/stm32f411xe.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/TOOLCHAIN_IAR/stm32f411xe.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/stm32f411xe.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/stm32f411xe.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/stm32f411xe.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/stm32f411xe.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/stm32f4xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/stm32f4xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/stm32f4xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/stm32f4xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/system_stm32f4xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/system_stm32f4xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/system_stm32f4xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/system_stm32f4xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/system_stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/system_stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/system_stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_DRAGONFLY_F411RE/system_stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_ARM_MICRO/startup_stm32f405xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_ARM_MICRO/startup_stm32f405xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_ARM_MICRO/startup_stm32f405xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_ARM_MICRO/startup_stm32f405xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_ARM_MICRO/stm32f405xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_ARM_MICRO/stm32f405xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_ARM_MICRO/stm32f405xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_ARM_MICRO/stm32f405xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_ARM_STD/startup_stm32f405xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_ARM_STD/startup_stm32f405xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_ARM_STD/startup_stm32f405xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_ARM_STD/startup_stm32f405xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_ARM_STD/stm32f405xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_ARM_STD/stm32f405xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_ARM_STD/stm32f405xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_ARM_STD/stm32f405xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_GCC_ARM/STM32F405.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_GCC_ARM/STM32F405.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_GCC_ARM/STM32F405.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_GCC_ARM/STM32F405.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_GCC_ARM/startup_STM32F40x.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_GCC_ARM/startup_STM32F40x.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_GCC_ARM/startup_STM32F40x.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_GCC_ARM/startup_STM32F40x.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_IAR/startup_stm32f405xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_IAR/startup_stm32f405xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_IAR/startup_stm32f405xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_IAR/startup_stm32f405xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_IAR/stm32f405xx.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_IAR/stm32f405xx.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_IAR/stm32f405xx.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/TOOLCHAIN_IAR/stm32f405xx.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/stm32f405xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/stm32f405xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/stm32f405xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/stm32f405xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/stm32f4xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/stm32f4xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/stm32f4xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/stm32f4xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/system_stm32f4xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/system_stm32f4xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/system_stm32f4xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/system_stm32f4xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/system_stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/system_stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/system_stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F405RG/system_stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_ARM_MICRO/startup_stm32f411xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_ARM_MICRO/startup_stm32f411xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_ARM_MICRO/startup_stm32f411xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_ARM_MICRO/startup_stm32f411xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_ARM_MICRO/stm32f411re.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_ARM_MICRO/stm32f411re.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_ARM_MICRO/stm32f411re.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_ARM_MICRO/stm32f411re.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_ARM_STD/startup_stm32f411xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_ARM_STD/startup_stm32f411xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_ARM_STD/startup_stm32f411xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_ARM_STD/startup_stm32f411xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_ARM_STD/stm32f411re.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_ARM_STD/stm32f411re.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_ARM_STD/stm32f411re.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_ARM_STD/stm32f411re.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_GCC_ARM/STM32F411XE.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_GCC_ARM/STM32F411XE.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_GCC_ARM/STM32F411XE.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_GCC_ARM/STM32F411XE.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_GCC_ARM/startup_stm32f411xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_GCC_ARM/startup_stm32f411xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_GCC_ARM/startup_stm32f411xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_GCC_ARM/startup_stm32f411xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_IAR/startup_stm32f411xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_IAR/startup_stm32f411xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_IAR/startup_stm32f411xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_IAR/startup_stm32f411xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_IAR/stm32f411xe.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_IAR/stm32f411xe.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_IAR/stm32f411xe.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/TOOLCHAIN_IAR/stm32f411xe.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/stm32f411xe.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/stm32f411xe.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/stm32f411xe.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/stm32f411xe.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/stm32f4xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/stm32f4xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/stm32f4xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/stm32f4xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/system_stm32f4xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/system_stm32f4xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/system_stm32f4xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/system_stm32f4xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/system_stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/system_stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/system_stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_MTS_MDOT_F411RE/system_stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_ARM_MICRO/startup_stm32f401xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_ARM_MICRO/startup_stm32f401xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_ARM_MICRO/startup_stm32f401xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_ARM_MICRO/startup_stm32f401xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_ARM_MICRO/stm32f401xe.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_ARM_MICRO/stm32f401xe.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_ARM_MICRO/stm32f401xe.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_ARM_MICRO/stm32f401xe.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_ARM_STD/startup_stm32f401xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_ARM_STD/startup_stm32f401xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_ARM_STD/startup_stm32f401xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_ARM_STD/startup_stm32f401xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_ARM_STD/stm32f401xe.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_ARM_STD/stm32f401xe.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_ARM_STD/stm32f401xe.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_ARM_STD/stm32f401xe.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_GCC_ARM/STM32F401XE.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_GCC_ARM/STM32F401XE.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_GCC_ARM/STM32F401XE.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_GCC_ARM/STM32F401XE.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_GCC_ARM/startup_stm32f401xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_GCC_ARM/startup_stm32f401xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_GCC_ARM/startup_stm32f401xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_GCC_ARM/startup_stm32f401xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_IAR/startup_stm32f401xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_IAR/startup_stm32f401xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_IAR/startup_stm32f401xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_IAR/startup_stm32f401xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_IAR/stm32f401xe.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_IAR/stm32f401xe.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_IAR/stm32f401xe.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/TOOLCHAIN_IAR/stm32f401xe.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/stm32f401xe.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/stm32f401xe.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/stm32f401xe.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/stm32f401xe.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/stm32f4xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/stm32f4xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/stm32f4xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/stm32f4xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/system_stm32f4xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/system_stm32f4xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/system_stm32f4xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/system_stm32f4xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/system_stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/system_stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/system_stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F401RE/system_stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_ARM_MICRO/startup_stm32f410rx.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_ARM_MICRO/startup_stm32f410rx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_ARM_MICRO/startup_stm32f410rx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_ARM_MICRO/startup_stm32f410rx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_ARM_MICRO/stm32f410rb.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_ARM_MICRO/stm32f410rb.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_ARM_MICRO/stm32f410rb.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_ARM_MICRO/stm32f410rb.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_ARM_STD/startup_stm32f410rx.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_ARM_STD/startup_stm32f410rx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_ARM_STD/startup_stm32f410rx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_ARM_STD/startup_stm32f410rx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_ARM_STD/stm32f410rb.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_ARM_STD/stm32f410rb.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_ARM_STD/stm32f410rb.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_ARM_STD/stm32f410rb.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_GCC_ARM/STM32F410RB.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_GCC_ARM/STM32F410RB.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_GCC_ARM/STM32F410RB.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_GCC_ARM/STM32F410RB.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_GCC_ARM/startup_stm32f410rx.s b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_GCC_ARM/startup_stm32f410rx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_GCC_ARM/startup_stm32f410rx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_GCC_ARM/startup_stm32f410rx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_IAR/startup_stm32f410rx.s b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_IAR/startup_stm32f410rx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_IAR/startup_stm32f410rx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_IAR/startup_stm32f410rx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_IAR/stm32f410rx.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_IAR/stm32f410rx.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_IAR/stm32f410rx.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/TOOLCHAIN_IAR/stm32f410rx.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/stm32f410rx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/stm32f410rx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/stm32f410rx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/stm32f410rx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/stm32f4xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/stm32f4xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/stm32f4xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/stm32f4xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/system_stm32f4xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/system_stm32f4xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/system_stm32f4xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/system_stm32f4xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/system_stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/system_stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/system_stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F410RB/system_stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_ARM_MICRO/startup_stm32f411xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_ARM_MICRO/startup_stm32f411xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_ARM_MICRO/startup_stm32f411xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_ARM_MICRO/startup_stm32f411xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_ARM_MICRO/stm32f411re.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_ARM_MICRO/stm32f411re.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_ARM_MICRO/stm32f411re.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_ARM_MICRO/stm32f411re.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_ARM_STD/startup_stm32f411xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_ARM_STD/startup_stm32f411xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_ARM_STD/startup_stm32f411xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_ARM_STD/startup_stm32f411xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_ARM_STD/stm32f411re.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_ARM_STD/stm32f411re.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_ARM_STD/stm32f411re.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_ARM_STD/stm32f411re.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_GCC_ARM/STM32F411XE.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_GCC_ARM/STM32F411XE.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_GCC_ARM/STM32F411XE.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_GCC_ARM/STM32F411XE.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_GCC_ARM/startup_stm32f411xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_GCC_ARM/startup_stm32f411xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_GCC_ARM/startup_stm32f411xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_GCC_ARM/startup_stm32f411xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_IAR/startup_stm32f411xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_IAR/startup_stm32f411xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_IAR/startup_stm32f411xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_IAR/startup_stm32f411xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_IAR/stm32f411xe.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_IAR/stm32f411xe.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_IAR/stm32f411xe.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/TOOLCHAIN_IAR/stm32f411xe.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/stm32f411xe.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/stm32f411xe.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/stm32f411xe.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/stm32f411xe.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/stm32f4xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/stm32f4xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/stm32f4xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/stm32f4xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/system_stm32f4xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/system_stm32f4xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/system_stm32f4xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/system_stm32f4xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/system_stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/system_stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/system_stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F411RE/system_stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_ARM_MICRO/startup_stm32f429xx.s b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_ARM_MICRO/startup_stm32f429xx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_ARM_MICRO/startup_stm32f429xx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_ARM_MICRO/startup_stm32f429xx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_ARM_MICRO/stm32f429xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_ARM_MICRO/stm32f429xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_ARM_MICRO/stm32f429xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_ARM_MICRO/stm32f429xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_ARM_STD/startup_stm32f429xx.s b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_ARM_STD/startup_stm32f429xx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_ARM_STD/startup_stm32f429xx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_ARM_STD/startup_stm32f429xx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_ARM_STD/stm32f429xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_ARM_STD/stm32f429xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_ARM_STD/stm32f429xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_ARM_STD/stm32f429xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_GCC_ARM/STM32F429ZI.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_GCC_ARM/STM32F429ZI.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_GCC_ARM/STM32F429ZI.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_GCC_ARM/STM32F429ZI.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_GCC_ARM/startup_stm32f429xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_GCC_ARM/startup_stm32f429xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_GCC_ARM/startup_stm32f429xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_GCC_ARM/startup_stm32f429xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_IAR/startup_stm32f429xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_IAR/startup_stm32f429xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_IAR/startup_stm32f429xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_IAR/startup_stm32f429xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_IAR/stm32f429xx_flash.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_IAR/stm32f429xx_flash.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_IAR/stm32f429xx_flash.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/TOOLCHAIN_IAR/stm32f429xx_flash.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/stm32f429xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/stm32f429xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/stm32f429xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/stm32f429xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/stm32f4xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/stm32f4xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/stm32f4xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/stm32f4xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/system_stm32f4xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/system_stm32f4xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/system_stm32f4xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/system_stm32f4xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/system_stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/system_stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/system_stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F429ZI/system_stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_ARM_MICRO/startup_stm32f446xx.s b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_ARM_MICRO/startup_stm32f446xx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_ARM_MICRO/startup_stm32f446xx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_ARM_MICRO/startup_stm32f446xx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_ARM_MICRO/stm32f446xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_ARM_MICRO/stm32f446xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_ARM_MICRO/stm32f446xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_ARM_MICRO/stm32f446xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_ARM_STD/startup_stm32f446xx.s b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_ARM_STD/startup_stm32f446xx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_ARM_STD/startup_stm32f446xx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_ARM_STD/startup_stm32f446xx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_ARM_STD/stm32f446xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_ARM_STD/stm32f446xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_ARM_STD/stm32f446xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_ARM_STD/stm32f446xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_GCC_ARM/STM32F446XE.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_GCC_ARM/STM32F446XE.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_GCC_ARM/STM32F446XE.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_GCC_ARM/STM32F446XE.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_GCC_ARM/startup_stm32f446xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_GCC_ARM/startup_stm32f446xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_GCC_ARM/startup_stm32f446xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_GCC_ARM/startup_stm32f446xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_IAR/startup_stm32f446xx.s b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_IAR/startup_stm32f446xx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_IAR/startup_stm32f446xx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_IAR/startup_stm32f446xx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_IAR/stm32f446xx.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_IAR/stm32f446xx.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_IAR/stm32f446xx.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/TOOLCHAIN_IAR/stm32f446xx.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/stm32f446xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/stm32f446xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/stm32f446xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/stm32f446xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/stm32f4xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/stm32f4xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/stm32f4xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/stm32f4xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/system_stm32f4xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/system_stm32f4xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/system_stm32f4xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/system_stm32f4xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/system_stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/system_stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/system_stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446RE/system_stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_ARM_MICRO/startup_stm32f446xx.s b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_ARM_MICRO/startup_stm32f446xx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_ARM_MICRO/startup_stm32f446xx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_ARM_MICRO/startup_stm32f446xx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_ARM_MICRO/stm32f446xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_ARM_MICRO/stm32f446xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_ARM_MICRO/stm32f446xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_ARM_MICRO/stm32f446xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_ARM_STD/startup_stm32f446xx.s b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_ARM_STD/startup_stm32f446xx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_ARM_STD/startup_stm32f446xx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_ARM_STD/startup_stm32f446xx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_ARM_STD/stm32f446xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_ARM_STD/stm32f446xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_ARM_STD/stm32f446xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_ARM_STD/stm32f446xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_GCC_ARM/STM32F446XE.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_GCC_ARM/STM32F446XE.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_GCC_ARM/STM32F446XE.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_GCC_ARM/STM32F446XE.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_GCC_ARM/startup_stm32f446xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_GCC_ARM/startup_stm32f446xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_GCC_ARM/startup_stm32f446xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_GCC_ARM/startup_stm32f446xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_IAR/startup_stm32f446xx.s b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_IAR/startup_stm32f446xx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_IAR/startup_stm32f446xx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_IAR/startup_stm32f446xx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_IAR/stm32f446xx.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_IAR/stm32f446xx.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_IAR/stm32f446xx.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/TOOLCHAIN_IAR/stm32f446xx.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/stm32f446xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/stm32f446xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/stm32f446xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/stm32f446xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/stm32f4xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/stm32f4xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/stm32f4xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/stm32f4xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/system_stm32f4xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/system_stm32f4xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/system_stm32f4xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/system_stm32f4xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/system_stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/system_stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/system_stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_NUCLEO_F446ZE/system_stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_ARM_MICRO/STM32F407.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_ARM_MICRO/STM32F407.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_ARM_MICRO/STM32F407.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_ARM_MICRO/STM32F407.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_ARM_MICRO/startup_STM32F40x.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_ARM_MICRO/startup_STM32F40x.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_ARM_MICRO/startup_STM32F40x.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_ARM_MICRO/startup_STM32F40x.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_ARM_STD/STM32F407.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_ARM_STD/STM32F407.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_ARM_STD/STM32F407.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_ARM_STD/STM32F407.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_ARM_STD/startup_STM32F40x.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_ARM_STD/startup_STM32F40x.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_ARM_STD/startup_STM32F40x.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_ARM_STD/startup_STM32F40x.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_GCC_ARM/STM32F407XG.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_GCC_ARM/STM32F407XG.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_GCC_ARM/STM32F407XG.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_GCC_ARM/STM32F407XG.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_GCC_ARM/startup_stm32f407xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_GCC_ARM/startup_stm32f407xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_GCC_ARM/startup_stm32f407xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/TOOLCHAIN_GCC_ARM/startup_stm32f407xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/stm32f407xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/stm32f407xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/stm32f407xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/stm32f407xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/stm32f4xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/stm32f4xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/stm32f4xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/stm32f4xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/system_stm32f4xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/system_stm32f4xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/system_stm32f4xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/system_stm32f4xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/system_stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/system_stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/system_stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_STM32F407VG/system_stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/TOOLCHAIN_ARM_MICRO/startup_stm32f439xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/TOOLCHAIN_ARM_MICRO/startup_stm32f439xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/TOOLCHAIN_ARM_MICRO/startup_stm32f439xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/TOOLCHAIN_ARM_MICRO/startup_stm32f439xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/TOOLCHAIN_ARM_MICRO/stm32f439xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/TOOLCHAIN_ARM_MICRO/stm32f439xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/TOOLCHAIN_ARM_MICRO/stm32f439xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/TOOLCHAIN_ARM_MICRO/stm32f439xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/TOOLCHAIN_ARM_STD/startup_stm32f439xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/TOOLCHAIN_ARM_STD/startup_stm32f439xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/TOOLCHAIN_ARM_STD/startup_stm32f439xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/TOOLCHAIN_ARM_STD/startup_stm32f439xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/TOOLCHAIN_ARM_STD/stm32f439xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/TOOLCHAIN_ARM_STD/stm32f439xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/TOOLCHAIN_ARM_STD/stm32f439xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/TOOLCHAIN_ARM_STD/stm32f439xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/TOOLCHAIN_GCC_ARM/STM32F439ZI.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/TOOLCHAIN_GCC_ARM/STM32F439ZI.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/TOOLCHAIN_GCC_ARM/STM32F439ZI.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/TOOLCHAIN_GCC_ARM/STM32F439ZI.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/TOOLCHAIN_GCC_ARM/startup_stm32f439xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/TOOLCHAIN_GCC_ARM/startup_stm32f439xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/TOOLCHAIN_GCC_ARM/startup_stm32f439xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/TOOLCHAIN_GCC_ARM/startup_stm32f439xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/TOOLCHAIN_IAR/startup_stm32f439xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/TOOLCHAIN_IAR/startup_stm32f439xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/TOOLCHAIN_IAR/startup_stm32f439xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/TOOLCHAIN_IAR/startup_stm32f439xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/TOOLCHAIN_IAR/stm32f439xx_flash.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/TOOLCHAIN_IAR/stm32f439xx_flash.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/TOOLCHAIN_IAR/stm32f439xx_flash.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/TOOLCHAIN_IAR/stm32f439xx_flash.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/stm32f439xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/stm32f439xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/stm32f439xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/stm32f439xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/stm32f4xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/stm32f4xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/stm32f4xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/stm32f4xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/system_stm32f4xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/system_stm32f4xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/system_stm32f4xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/system_stm32f4xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/system_stm32f4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/system_stm32f4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_C029/system_stm32f4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/TARGET_UBLOX_EVK_ODIN_W2/system_stm32f4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32_hal_legacy.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32_hal_legacy.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32_hal_legacy.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32_hal_legacy.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_adc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_adc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_adc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_adc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_adc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_adc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_adc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_adc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_adc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_adc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_adc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_adc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_adc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_adc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_adc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_adc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_can.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_can.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_can.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_can.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_can.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_can.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_can.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_can.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cec.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cec.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cec.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cec.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cec.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cec.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cec.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cec.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_conf_template.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_conf_template.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_conf_template.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_conf_template.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cortex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cortex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cortex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cortex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cortex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cortex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cortex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cortex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_crc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_crc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_crc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_crc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_crc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_crc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_crc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_crc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cryp.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cryp.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cryp.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cryp.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cryp.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cryp.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cryp.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cryp.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cryp_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cryp_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cryp_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cryp_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cryp_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cryp_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cryp_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_cryp_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dac.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dac.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dac.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dac.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dac.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dac.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dac.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dac.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dac_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dac_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dac_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dac_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dac_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dac_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dac_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dac_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dcmi.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dcmi.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dcmi.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dcmi.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dcmi.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dcmi.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dcmi.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dcmi.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dcmi_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dcmi_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dcmi_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dcmi_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dcmi_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dcmi_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dcmi_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dcmi_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_def.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_def.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_def.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_def.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dfsdm.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dfsdm.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dfsdm.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dfsdm.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dfsdm.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dfsdm.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dfsdm.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dfsdm.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dma.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dma.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dma.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dma.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dma.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dma.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dma.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dma.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dma2d.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dma2d.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dma2d.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dma2d.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dma2d.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dma2d.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dma2d.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dma2d.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dma_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dma_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dma_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dma_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dma_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dma_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dma_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dma_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dsi.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dsi.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dsi.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dsi.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dsi.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dsi.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dsi.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_dsi.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_eth.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_eth.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_eth.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_eth.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_eth.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_eth.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_eth.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_eth.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_flash.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_flash.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_flash.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_flash.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_flash.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_flash.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_flash.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_flash.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_flash_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_flash_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_flash_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_flash_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_flash_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_flash_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_flash_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_flash_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_flash_ramfunc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_flash_ramfunc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_flash_ramfunc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_flash_ramfunc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_flash_ramfunc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_flash_ramfunc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_flash_ramfunc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_flash_ramfunc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_fmpi2c.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_fmpi2c.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_fmpi2c.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_fmpi2c.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_fmpi2c.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_fmpi2c.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_fmpi2c.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_fmpi2c.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_fmpi2c_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_fmpi2c_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_fmpi2c_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_fmpi2c_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_fmpi2c_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_fmpi2c_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_fmpi2c_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_fmpi2c_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_gpio.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_gpio.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_gpio.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_gpio.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_gpio.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_gpio.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_gpio.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_gpio.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_gpio_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_gpio_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_gpio_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_gpio_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_hash.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_hash.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_hash.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_hash.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_hash.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_hash.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_hash.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_hash.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_hash_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_hash_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_hash_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_hash_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_hash_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_hash_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_hash_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_hash_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_hcd.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_hcd.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_hcd.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_hcd.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_hcd.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_hcd.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_hcd.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_hcd.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2c.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2c.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2c.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2c.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2c.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2c.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2c.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2c.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2c_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2c_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2c_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2c_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2c_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2c_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2c_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2c_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2s.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2s.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2s.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2s.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2s.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2s.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2s.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2s.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2s_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2s_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2s_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2s_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2s_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2s_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2s_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_i2s_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_irda.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_irda.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_irda.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_irda.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_irda.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_irda.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_irda.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_irda.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_iwdg.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_iwdg.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_iwdg.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_iwdg.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_iwdg.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_iwdg.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_iwdg.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_iwdg.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_lptim.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_lptim.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_lptim.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_lptim.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_lptim.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_lptim.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_lptim.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_lptim.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_ltdc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_ltdc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_ltdc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_ltdc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_ltdc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_ltdc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_ltdc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_ltdc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_ltdc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_ltdc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_ltdc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_ltdc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_ltdc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_ltdc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_ltdc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_ltdc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_msp_template.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_msp_template.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_msp_template.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_msp_template.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_nand.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_nand.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_nand.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_nand.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_nand.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_nand.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_nand.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_nand.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_nor.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_nor.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_nor.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_nor.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_nor.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_nor.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_nor.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_nor.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pccard.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pccard.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pccard.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pccard.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pccard.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pccard.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pccard.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pccard.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pcd.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pcd.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pcd.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pcd.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pcd.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pcd.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pcd.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pcd.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pcd_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pcd_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pcd_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pcd_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pcd_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pcd_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pcd_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pcd_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pwr.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pwr.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pwr.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pwr.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pwr.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pwr.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pwr.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pwr.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pwr_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pwr_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pwr_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pwr_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pwr_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pwr_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pwr_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_pwr_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_qspi.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_qspi.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_qspi.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_qspi.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_qspi.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_qspi.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_qspi.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_qspi.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rcc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rcc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rcc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rcc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rcc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rcc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rcc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rcc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rcc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rcc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rcc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rcc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rcc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rcc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rcc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rcc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rng.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rng.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rng.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rng.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rng.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rng.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rng.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rng.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rtc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rtc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rtc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rtc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rtc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rtc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rtc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rtc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rtc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rtc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rtc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rtc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rtc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rtc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_rtc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sai.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sai.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sai.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sai.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sai.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sai.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sai.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sai.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sai_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sai_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sai_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sai_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sai_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sai_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sai_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sai_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sd.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sd.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sd.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sd.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sd.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sd.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sd.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sd.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sdram.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sdram.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sdram.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sdram.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sdram.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sdram.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sdram.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sdram.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_smartcard.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_smartcard.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_smartcard.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_smartcard.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_smartcard.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_smartcard.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_smartcard.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_smartcard.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_spdifrx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_spdifrx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_spdifrx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_spdifrx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_spdifrx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_spdifrx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_spdifrx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_spdifrx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_spi.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_spi.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_spi.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_spi.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_spi.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_spi.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_spi.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_spi.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sram.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sram.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sram.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sram.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sram.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sram.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sram.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_sram.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_tim.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_tim.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_tim.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_tim.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_tim.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_tim.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_tim.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_tim.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_tim_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_tim_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_tim_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_tim_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_tim_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_tim_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_tim_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_tim_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_uart.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_uart.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_uart.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_uart.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_uart.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_uart.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_uart.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_uart.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_usart.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_usart.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_usart.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_usart.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_usart.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_usart.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_usart.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_usart.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_wwdg.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_wwdg.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_wwdg.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_wwdg.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_wwdg.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_wwdg.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_wwdg.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_hal_wwdg.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_fmc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_fmc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_fmc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_fmc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_fmc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_fmc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_fmc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_fmc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_fsmc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_fsmc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_fsmc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_fsmc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_fsmc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_fsmc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_fsmc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_fsmc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_sdmmc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_sdmmc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_sdmmc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_sdmmc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_sdmmc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_sdmmc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_sdmmc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_sdmmc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_usb.c b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_usb.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_usb.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_usb.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_usb.h b/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_usb.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_usb.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F4/stm32f4xx_ll_usb.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/Release_Notes_stm32f7xx_hal.html b/targets/cmsis/TARGET_STM/TARGET_STM32F7/Release_Notes_stm32f7xx_hal.html similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/Release_Notes_stm32f7xx_hal.html rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/Release_Notes_stm32f7xx_hal.html diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_ARM_MICRO/startup_stm32f746ng.S b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_ARM_MICRO/startup_stm32f746ng.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_ARM_MICRO/startup_stm32f746ng.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_ARM_MICRO/startup_stm32f746ng.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_ARM_MICRO/stm32f746ng.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_ARM_MICRO/stm32f746ng.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_ARM_MICRO/stm32f746ng.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_ARM_MICRO/stm32f746ng.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_ARM_STD/startup_stm32f746ng.S b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_ARM_STD/startup_stm32f746ng.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_ARM_STD/startup_stm32f746ng.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_ARM_STD/startup_stm32f746ng.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_ARM_STD/stm32f746ng.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_ARM_STD/stm32f746ng.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_ARM_STD/stm32f746ng.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_ARM_STD/stm32f746ng.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_GCC_ARM/STM32F746NG.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_GCC_ARM/STM32F746NG.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_GCC_ARM/STM32F746NG.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_GCC_ARM/STM32F746NG.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_GCC_ARM/startup_stm32f746xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_GCC_ARM/startup_stm32f746xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_GCC_ARM/startup_stm32f746xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_GCC_ARM/startup_stm32f746xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_IAR/startup_stm32f746xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_IAR/startup_stm32f746xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_IAR/startup_stm32f746xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_IAR/startup_stm32f746xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_IAR/stm32f746ng.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_IAR/stm32f746ng.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_IAR/stm32f746ng.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/TOOLCHAIN_IAR/stm32f746ng.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/stm32f746xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/stm32f746xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/stm32f746xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/stm32f746xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/stm32f7xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/stm32f7xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/stm32f7xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/stm32f7xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/stm32f7xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/stm32f7xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/stm32f7xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/stm32f7xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/system_stm32f7xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/system_stm32f7xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/system_stm32f7xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/system_stm32f7xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/system_stm32f7xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/system_stm32f7xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/system_stm32f7xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F746NG/system_stm32f7xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_ARM_STD/startup_stm32f769xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_ARM_STD/startup_stm32f769xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_ARM_STD/startup_stm32f769xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_ARM_STD/startup_stm32f769xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_ARM_STD/stm32f769ni.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_ARM_STD/stm32f769ni.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_ARM_STD/stm32f769ni.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_ARM_STD/stm32f769ni.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_GCC_ARM/STM32F769NI.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_GCC_ARM/STM32F769NI.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_GCC_ARM/STM32F769NI.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_GCC_ARM/STM32F769NI.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_GCC_ARM/startup_stm32f769xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_GCC_ARM/startup_stm32f769xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_GCC_ARM/startup_stm32f769xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_GCC_ARM/startup_stm32f769xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_IAR/startup_stm32f769xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_IAR/startup_stm32f769xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_IAR/startup_stm32f769xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_IAR/startup_stm32f769xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_IAR/stm32f769ni.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_IAR/stm32f769ni.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_IAR/stm32f769ni.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/TOOLCHAIN_IAR/stm32f769ni.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/stm32f769xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/stm32f769xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/stm32f769xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/stm32f769xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/stm32f7xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/stm32f7xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/stm32f7xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/stm32f7xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/stm32f7xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/stm32f7xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/stm32f7xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/stm32f7xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/system_stm32f7xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/system_stm32f7xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/system_stm32f7xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/system_stm32f7xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/system_stm32f7xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/system_stm32f7xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/system_stm32f7xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_DISCO_F769NI/system_stm32f7xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_ARM_MICRO/startup_stm32f746zg.S b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_ARM_MICRO/startup_stm32f746zg.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_ARM_MICRO/startup_stm32f746zg.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_ARM_MICRO/startup_stm32f746zg.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_ARM_MICRO/stm32f746zg.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_ARM_MICRO/stm32f746zg.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_ARM_MICRO/stm32f746zg.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_ARM_MICRO/stm32f746zg.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_ARM_STD/startup_stm32f746zg.S b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_ARM_STD/startup_stm32f746zg.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_ARM_STD/startup_stm32f746zg.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_ARM_STD/startup_stm32f746zg.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_ARM_STD/stm32f746zg.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_ARM_STD/stm32f746zg.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_ARM_STD/stm32f746zg.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_ARM_STD/stm32f746zg.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_GCC_ARM/STM32F746ZG.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_GCC_ARM/STM32F746ZG.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_GCC_ARM/STM32F746ZG.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_GCC_ARM/STM32F746ZG.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_GCC_ARM/startup_stm32f746xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_GCC_ARM/startup_stm32f746xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_GCC_ARM/startup_stm32f746xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_GCC_ARM/startup_stm32f746xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_IAR/startup_stm32f746xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_IAR/startup_stm32f746xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_IAR/startup_stm32f746xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_IAR/startup_stm32f746xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_IAR/stm32f746zg.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_IAR/stm32f746zg.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_IAR/stm32f746zg.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/TOOLCHAIN_IAR/stm32f746zg.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/stm32f746xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/stm32f746xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/stm32f746xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/stm32f746xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/stm32f7xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/stm32f7xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/stm32f7xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/stm32f7xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/stm32f7xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/stm32f7xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/stm32f7xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/stm32f7xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/system_stm32f7xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/system_stm32f7xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/system_stm32f7xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/system_stm32f7xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/system_stm32f7xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/system_stm32f7xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/system_stm32f7xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F746ZG/system_stm32f7xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_ARM_MICRO/startup_stm32f769xx.s b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_ARM_MICRO/startup_stm32f769xx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_ARM_MICRO/startup_stm32f769xx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_ARM_MICRO/startup_stm32f769xx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_ARM_MICRO/stm32f767zi.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_ARM_MICRO/stm32f767zi.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_ARM_MICRO/stm32f767zi.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_ARM_MICRO/stm32f767zi.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_ARM_STD/startup_stm32f769xx.s b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_ARM_STD/startup_stm32f769xx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_ARM_STD/startup_stm32f769xx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_ARM_STD/startup_stm32f769xx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_ARM_STD/stm32f767zi.sct b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_ARM_STD/stm32f767zi.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_ARM_STD/stm32f767zi.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_ARM_STD/stm32f767zi.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_GCC_ARM/STM32F767ZI.ld b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_GCC_ARM/STM32F767ZI.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_GCC_ARM/STM32F767ZI.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_GCC_ARM/STM32F767ZI.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_GCC_ARM/startup_stm32f769xx.s b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_GCC_ARM/startup_stm32f769xx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_GCC_ARM/startup_stm32f769xx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_GCC_ARM/startup_stm32f769xx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_IAR/startup_stm32f767xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_IAR/startup_stm32f767xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_IAR/startup_stm32f767xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_IAR/startup_stm32f767xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_IAR/stm32f767zi.icf b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_IAR/stm32f767zi.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_IAR/stm32f767zi.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/TOOLCHAIN_IAR/stm32f767zi.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/stm32f767xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/stm32f767xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/stm32f767xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/stm32f767xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/stm32f7xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/stm32f7xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/stm32f7xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/stm32f7xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/stm32f7xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/stm32f7xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/stm32f7xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/stm32f7xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/system_stm32f7xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/system_stm32f7xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/system_stm32f7xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/system_stm32f7xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/system_stm32f7xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/system_stm32f7xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/system_stm32f7xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/system_stm32f7xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32_hal_legacy.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32_hal_legacy.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32_hal_legacy.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32_hal_legacy.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_adc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_adc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_adc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_adc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_adc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_adc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_adc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_adc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_adc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_adc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_adc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_adc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_adc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_adc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_adc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_adc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_can.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_can.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_can.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_can.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_can.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_can.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_can.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_can.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cec.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cec.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cec.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cec.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cec.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cec.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cec.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cec.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cortex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cortex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cortex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cortex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cortex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cortex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cortex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cortex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_crc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_crc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_crc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_crc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_crc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_crc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_crc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_crc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_crc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_crc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_crc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_crc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_crc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_crc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_crc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_crc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cryp.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cryp.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cryp.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cryp.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cryp.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cryp.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cryp.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cryp.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cryp_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cryp_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cryp_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cryp_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cryp_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cryp_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cryp_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_cryp_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dac.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dac.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dac.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dac.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dac.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dac.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dac.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dac.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dac_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dac_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dac_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dac_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dac_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dac_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dac_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dac_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dcmi.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dcmi.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dcmi.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dcmi.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dcmi.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dcmi.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dcmi.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dcmi.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dcmi_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dcmi_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dcmi_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dcmi_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dcmi_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dcmi_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dcmi_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dcmi_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_def.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_def.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_def.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_def.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dfsdm.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dfsdm.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dfsdm.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dfsdm.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dfsdm.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dfsdm.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dfsdm.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dfsdm.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dma.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dma.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dma.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dma.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dma.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dma.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dma.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dma.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dma2d.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dma2d.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dma2d.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dma2d.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dma2d.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dma2d.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dma2d.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dma2d.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dma_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dma_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dma_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dma_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dma_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dma_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dma_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dma_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dsi.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dsi.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dsi.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dsi.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dsi.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dsi.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dsi.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_dsi.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_eth.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_eth.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_eth.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_eth.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_eth.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_eth.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_eth.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_eth.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_flash.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_flash.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_flash.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_flash.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_flash.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_flash.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_flash.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_flash.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_flash_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_flash_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_flash_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_flash_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_flash_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_flash_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_flash_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_flash_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_gpio.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_gpio.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_gpio.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_gpio.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_gpio.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_gpio.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_gpio.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_gpio.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_gpio_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_gpio_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_gpio_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_gpio_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_hash.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_hash.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_hash.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_hash.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_hash.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_hash.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_hash.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_hash.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_hash_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_hash_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_hash_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_hash_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_hash_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_hash_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_hash_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_hash_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_hcd.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_hcd.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_hcd.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_hcd.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_hcd.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_hcd.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_hcd.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_hcd.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_i2c.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_i2c.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_i2c.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_i2c.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_i2c.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_i2c.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_i2c.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_i2c.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_i2c_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_i2c_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_i2c_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_i2c_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_i2c_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_i2c_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_i2c_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_i2c_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_i2s.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_i2s.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_i2s.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_i2s.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_i2s.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_i2s.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_i2s.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_i2s.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_irda.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_irda.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_irda.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_irda.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_irda.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_irda.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_irda.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_irda.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_irda_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_irda_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_irda_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_irda_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_iwdg.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_iwdg.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_iwdg.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_iwdg.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_iwdg.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_iwdg.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_iwdg.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_iwdg.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_jpeg.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_jpeg.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_jpeg.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_jpeg.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_jpeg.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_jpeg.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_jpeg.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_jpeg.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_lptim.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_lptim.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_lptim.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_lptim.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_lptim.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_lptim.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_lptim.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_lptim.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_ltdc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_ltdc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_ltdc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_ltdc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_ltdc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_ltdc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_ltdc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_ltdc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_ltdc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_ltdc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_ltdc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_ltdc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_ltdc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_ltdc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_ltdc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_ltdc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_mdios.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_mdios.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_mdios.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_mdios.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_mdios.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_mdios.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_mdios.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_mdios.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_nand.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_nand.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_nand.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_nand.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_nand.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_nand.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_nand.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_nand.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_nor.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_nor.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_nor.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_nor.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_nor.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_nor.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_nor.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_nor.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pcd.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pcd.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pcd.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pcd.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pcd.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pcd.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pcd.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pcd.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pcd_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pcd_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pcd_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pcd_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pcd_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pcd_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pcd_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pcd_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pwr.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pwr.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pwr.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pwr.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pwr.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pwr.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pwr.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pwr.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pwr_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pwr_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pwr_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pwr_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pwr_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pwr_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pwr_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_pwr_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_qspi.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_qspi.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_qspi.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_qspi.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_qspi.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_qspi.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_qspi.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_qspi.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rcc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rcc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rcc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rcc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rcc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rcc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rcc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rcc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rcc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rcc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rcc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rcc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rcc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rcc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rcc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rcc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rng.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rng.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rng.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rng.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rng.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rng.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rng.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rng.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rtc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rtc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rtc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rtc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rtc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rtc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rtc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rtc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rtc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rtc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rtc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rtc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rtc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rtc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_rtc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sai.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sai.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sai.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sai.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sai.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sai.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sai.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sai.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sai_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sai_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sai_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sai_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sai_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sai_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sai_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sai_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sd.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sd.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sd.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sd.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sd.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sd.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sd.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sd.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sdram.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sdram.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sdram.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sdram.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sdram.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sdram.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sdram.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sdram.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_smartcard.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_smartcard.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_smartcard.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_smartcard.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_smartcard.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_smartcard.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_smartcard.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_smartcard.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_smartcard_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_smartcard_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_smartcard_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_smartcard_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_smartcard_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_smartcard_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_smartcard_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_smartcard_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_spdifrx.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_spdifrx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_spdifrx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_spdifrx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_spdifrx.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_spdifrx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_spdifrx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_spdifrx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_spi.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_spi.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_spi.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_spi.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_spi.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_spi.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_spi.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_spi.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sram.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sram.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sram.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sram.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sram.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sram.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sram.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_sram.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_tim.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_tim.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_tim.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_tim.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_tim.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_tim.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_tim.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_tim.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_tim_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_tim_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_tim_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_tim_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_tim_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_tim_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_tim_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_tim_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_uart.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_uart.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_uart.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_uart.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_uart.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_uart.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_uart.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_uart.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_uart_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_uart_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_uart_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_uart_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_usart.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_usart.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_usart.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_usart.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_usart.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_usart.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_usart.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_usart.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_usart_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_usart_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_usart_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_usart_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_wwdg.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_wwdg.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_wwdg.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_wwdg.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_wwdg.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_wwdg.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_wwdg.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_hal_wwdg.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_ll_fmc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_ll_fmc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_ll_fmc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_ll_fmc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_ll_fmc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_ll_fmc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_ll_fmc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_ll_fmc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_ll_sdmmc.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_ll_sdmmc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_ll_sdmmc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_ll_sdmmc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_ll_sdmmc.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_ll_sdmmc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_ll_sdmmc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_ll_sdmmc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_ll_usb.c b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_ll_usb.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_ll_usb.c rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_ll_usb.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_ll_usb.h b/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_ll_usb.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_ll_usb.h rename to targets/cmsis/TARGET_STM/TARGET_STM32F7/stm32f7xx_ll_usb.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/Release_Notes_stm32l0xx_hal.html b/targets/cmsis/TARGET_STM/TARGET_STM32L0/Release_Notes_stm32l0xx_hal.html similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/Release_Notes_stm32l0xx_hal.html rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/Release_Notes_stm32l0xx_hal.html diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_ARM_MICRO/startup_stm32l053xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_ARM_MICRO/startup_stm32l053xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_ARM_MICRO/startup_stm32l053xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_ARM_MICRO/startup_stm32l053xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_ARM_MICRO/stm32l053c8.sct b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_ARM_MICRO/stm32l053c8.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_ARM_MICRO/stm32l053c8.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_ARM_MICRO/stm32l053c8.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_ARM_STD/startup_stm32l053xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_ARM_STD/startup_stm32l053xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_ARM_STD/startup_stm32l053xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_ARM_STD/startup_stm32l053xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_ARM_STD/stm32l053c8.sct b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_ARM_STD/stm32l053c8.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_ARM_STD/stm32l053c8.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_ARM_STD/stm32l053c8.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_GCC_ARM/STM32L053X8.ld b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_GCC_ARM/STM32L053X8.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_GCC_ARM/STM32L053X8.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_GCC_ARM/STM32L053X8.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_GCC_ARM/startup_stm32l053xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_GCC_ARM/startup_stm32l053xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_GCC_ARM/startup_stm32l053xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_GCC_ARM/startup_stm32l053xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_IAR/startup_stm32l053xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_IAR/startup_stm32l053xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_IAR/startup_stm32l053xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_IAR/startup_stm32l053xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_IAR/stm32l053xx.icf b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_IAR/stm32l053xx.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_IAR/stm32l053xx.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/TOOLCHAIN_IAR/stm32l053xx.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/stm32l053xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/stm32l053xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/stm32l053xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/stm32l053xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/stm32l0xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/stm32l0xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/stm32l0xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/stm32l0xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/stm32l0xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/stm32l0xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/stm32l0xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/stm32l0xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/system_stm32l0xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/system_stm32l0xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/system_stm32l0xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/system_stm32l0xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/system_stm32l0xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/system_stm32l0xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/system_stm32l0xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_DISCO_L053C8/system_stm32l0xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/startup_stm32l011xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/startup_stm32l011xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/startup_stm32l011xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/startup_stm32l011xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/stm32l011k4.sct b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/stm32l011k4.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/stm32l011k4.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_MICRO/stm32l011k4.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_STD/startup_stm32l011xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_STD/startup_stm32l011xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_STD/startup_stm32l011xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_STD/startup_stm32l011xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_STD/stm32l011k4.sct b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_STD/stm32l011k4.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_STD/stm32l011k4.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_STD/stm32l011k4.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_GCC_ARM/STM32L011K4.ld b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_GCC_ARM/STM32L011K4.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_GCC_ARM/STM32L011K4.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_GCC_ARM/STM32L011K4.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_GCC_ARM/startup_stm32l011xx.s b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_GCC_ARM/startup_stm32l011xx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_GCC_ARM/startup_stm32l011xx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_GCC_ARM/startup_stm32l011xx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_IAR/startup_stm32l011xx.s b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_IAR/startup_stm32l011xx.s similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_IAR/startup_stm32l011xx.s rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_IAR/startup_stm32l011xx.s diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_IAR/stm32l011xx.icf b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_IAR/stm32l011xx.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_IAR/stm32l011xx.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/TOOLCHAIN_IAR/stm32l011xx.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/stm32l011xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/stm32l011xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/stm32l011xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/stm32l011xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/stm32l0xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/stm32l0xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/stm32l0xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/stm32l0xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/stm32l0xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/stm32l0xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/stm32l0xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/stm32l0xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/system_stm32l0xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/system_stm32l0xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/system_stm32l0xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/system_stm32l0xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/system_stm32l0xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/system_stm32l0xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/system_stm32l0xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L011K4/system_stm32l0xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_ARM_MICRO/startup_stm32l031xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_ARM_MICRO/startup_stm32l031xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_ARM_MICRO/startup_stm32l031xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_ARM_MICRO/startup_stm32l031xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_ARM_MICRO/stm32l031k6.sct b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_ARM_MICRO/stm32l031k6.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_ARM_MICRO/stm32l031k6.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_ARM_MICRO/stm32l031k6.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_ARM_STD/startup_stm32l031xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_ARM_STD/startup_stm32l031xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_ARM_STD/startup_stm32l031xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_ARM_STD/startup_stm32l031xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_ARM_STD/stm32l031k6.sct b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_ARM_STD/stm32l031k6.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_ARM_STD/stm32l031k6.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_ARM_STD/stm32l031k6.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_GCC_ARM/STM32L031K6.ld b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_GCC_ARM/STM32L031K6.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_GCC_ARM/STM32L031K6.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_GCC_ARM/STM32L031K6.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_GCC_ARM/startup_stm32l031xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_GCC_ARM/startup_stm32l031xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_GCC_ARM/startup_stm32l031xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_GCC_ARM/startup_stm32l031xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_IAR/startup_stm32l031xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_IAR/startup_stm32l031xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_IAR/startup_stm32l031xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_IAR/startup_stm32l031xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_IAR/stm32l031xx.icf b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_IAR/stm32l031xx.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_IAR/stm32l031xx.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/TOOLCHAIN_IAR/stm32l031xx.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/stm32l031xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/stm32l031xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/stm32l031xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/stm32l031xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/stm32l0xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/stm32l0xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/stm32l0xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/stm32l0xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/stm32l0xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/stm32l0xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/stm32l0xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/stm32l0xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/system_stm32l0xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/system_stm32l0xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/system_stm32l0xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/system_stm32l0xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/system_stm32l0xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/system_stm32l0xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/system_stm32l0xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L031K6/system_stm32l0xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_ARM_MICRO/startup_stm32l053xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_ARM_MICRO/startup_stm32l053xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_ARM_MICRO/startup_stm32l053xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_ARM_MICRO/startup_stm32l053xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_ARM_MICRO/stm32l053r8.sct b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_ARM_MICRO/stm32l053r8.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_ARM_MICRO/stm32l053r8.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_ARM_MICRO/stm32l053r8.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_ARM_STD/startup_stm32l053xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_ARM_STD/startup_stm32l053xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_ARM_STD/startup_stm32l053xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_ARM_STD/startup_stm32l053xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_ARM_STD/stm32l053r8.sct b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_ARM_STD/stm32l053r8.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_ARM_STD/stm32l053r8.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_ARM_STD/stm32l053r8.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_GCC_ARM/STM32L053X8.ld b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_GCC_ARM/STM32L053X8.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_GCC_ARM/STM32L053X8.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_GCC_ARM/STM32L053X8.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_GCC_ARM/startup_stm32l053xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_GCC_ARM/startup_stm32l053xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_GCC_ARM/startup_stm32l053xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_GCC_ARM/startup_stm32l053xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_IAR/startup_stm32l053xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_IAR/startup_stm32l053xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_IAR/startup_stm32l053xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_IAR/startup_stm32l053xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_IAR/stm32l053xx.icf b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_IAR/stm32l053xx.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_IAR/stm32l053xx.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/TOOLCHAIN_IAR/stm32l053xx.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/stm32l053xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/stm32l053xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/stm32l053xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/stm32l053xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/stm32l0xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/stm32l0xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/stm32l0xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/stm32l0xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/stm32l0xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/stm32l0xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/stm32l0xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/stm32l0xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/system_stm32l0xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/system_stm32l0xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/system_stm32l0xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/system_stm32l0xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/system_stm32l0xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/system_stm32l0xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/system_stm32l0xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L053R8/system_stm32l0xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_ARM_MICRO/startup_stm32l073xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_ARM_MICRO/startup_stm32l073xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_ARM_MICRO/startup_stm32l073xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_ARM_MICRO/startup_stm32l073xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_ARM_MICRO/stm32l073xz.sct b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_ARM_MICRO/stm32l073xz.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_ARM_MICRO/stm32l073xz.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_ARM_MICRO/stm32l073xz.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_ARM_STD/startup_stm32l073xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_ARM_STD/startup_stm32l073xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_ARM_STD/startup_stm32l073xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_ARM_STD/startup_stm32l073xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_ARM_STD/stm32l073xz.sct b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_ARM_STD/stm32l073xz.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_ARM_STD/stm32l073xz.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_ARM_STD/stm32l073xz.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_GCC_ARM/STM32L073XZ.ld b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_GCC_ARM/STM32L073XZ.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_GCC_ARM/STM32L073XZ.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_GCC_ARM/STM32L073XZ.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_GCC_ARM/startup_stm32l073xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_GCC_ARM/startup_stm32l073xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_GCC_ARM/startup_stm32l073xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_GCC_ARM/startup_stm32l073xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_IAR/startup_stm32l073xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_IAR/startup_stm32l073xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_IAR/startup_stm32l073xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_IAR/startup_stm32l073xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_IAR/stm32l073xx.icf b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_IAR/stm32l073xx.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_IAR/stm32l073xx.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/TOOLCHAIN_IAR/stm32l073xx.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/stm32l073xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/stm32l073xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/stm32l073xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/stm32l073xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/stm32l0xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/stm32l0xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/stm32l0xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/stm32l0xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/stm32l0xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/stm32l0xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/stm32l0xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/stm32l0xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/system_stm32l0xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/system_stm32l0xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/system_stm32l0xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/system_stm32l0xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/system_stm32l0xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/system_stm32l0xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/system_stm32l0xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/TARGET_NUCLEO_L073RZ/system_stm32l0xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32_hal_legacy.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32_hal_legacy.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32_hal_legacy.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32_hal_legacy.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_adc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_adc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_adc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_adc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_adc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_adc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_adc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_adc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_adc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_adc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_adc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_adc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_adc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_adc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_adc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_adc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_comp.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_comp.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_comp.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_comp.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_comp.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_comp.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_comp.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_comp.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_comp_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_comp_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_comp_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_comp_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_comp_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_comp_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_comp_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_comp_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_cortex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_cortex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_cortex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_cortex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_cortex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_cortex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_cortex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_cortex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_crc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_crc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_crc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_crc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_crc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_crc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_crc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_crc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_crc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_crc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_crc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_crc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_crc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_crc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_crc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_crc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_cryp.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_cryp.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_cryp.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_cryp.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_cryp.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_cryp.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_cryp.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_cryp.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_cryp_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_cryp_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_cryp_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_cryp_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_cryp_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_cryp_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_cryp_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_cryp_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_dac.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_dac.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_dac.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_dac.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_dac.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_dac.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_dac.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_dac.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_dac_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_dac_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_dac_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_dac_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_dac_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_dac_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_dac_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_dac_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_def.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_def.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_def.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_def.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_dma.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_dma.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_dma.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_dma.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_dma.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_dma.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_dma.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_dma.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_firewall.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_firewall.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_firewall.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_firewall.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_firewall.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_firewall.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_firewall.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_firewall.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_flash.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_flash.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_flash.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_flash.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_flash.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_flash.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_flash.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_flash.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_flash_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_flash_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_flash_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_flash_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_flash_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_flash_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_flash_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_flash_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_flash_ramfunc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_flash_ramfunc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_flash_ramfunc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_flash_ramfunc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_flash_ramfunc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_flash_ramfunc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_flash_ramfunc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_flash_ramfunc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_gpio.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_gpio.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_gpio.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_gpio.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_gpio.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_gpio.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_gpio.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_gpio.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_gpio_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_gpio_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_gpio_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_gpio_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_i2c.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_i2c.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_i2c.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_i2c.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_i2c.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_i2c.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_i2c.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_i2c.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_i2c_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_i2c_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_i2c_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_i2c_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_i2c_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_i2c_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_i2c_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_i2c_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_i2s.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_i2s.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_i2s.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_i2s.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_i2s.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_i2s.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_i2s.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_i2s.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_irda.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_irda.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_irda.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_irda.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_irda.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_irda.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_irda.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_irda.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_irda_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_irda_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_irda_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_irda_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_iwdg.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_iwdg.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_iwdg.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_iwdg.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_iwdg.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_iwdg.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_iwdg.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_iwdg.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_lcd.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_lcd.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_lcd.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_lcd.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_lcd.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_lcd.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_lcd.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_lcd.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_lptim.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_lptim.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_lptim.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_lptim.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_lptim.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_lptim.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_lptim.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_lptim.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_lptim_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_lptim_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_lptim_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_lptim_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pcd.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pcd.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pcd.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pcd.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pcd.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pcd.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pcd.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pcd.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pcd_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pcd_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pcd_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pcd_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pcd_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pcd_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pcd_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pcd_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pwr.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pwr.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pwr.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pwr.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pwr.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pwr.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pwr.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pwr.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pwr_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pwr_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pwr_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pwr_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pwr_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pwr_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pwr_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_pwr_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rcc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rcc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rcc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rcc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rcc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rcc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rcc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rcc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rcc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rcc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rcc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rcc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rcc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rcc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rcc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rcc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rng.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rng.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rng.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rng.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rng.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rng.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rng.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rng.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rtc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rtc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rtc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rtc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rtc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rtc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rtc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rtc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rtc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rtc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rtc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rtc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rtc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rtc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_rtc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_smartcard.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_smartcard.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_smartcard.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_smartcard.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_smartcard.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_smartcard.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_smartcard.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_smartcard.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_smartcard_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_smartcard_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_smartcard_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_smartcard_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_smartcard_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_smartcard_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_smartcard_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_smartcard_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_smbus.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_smbus.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_smbus.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_smbus.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_smbus.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_smbus.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_smbus.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_smbus.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_spi.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_spi.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_spi.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_spi.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_spi.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_spi.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_spi.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_spi.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_tim.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_tim.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_tim.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_tim.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_tim.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_tim.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_tim.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_tim.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_tim_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_tim_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_tim_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_tim_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_tim_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_tim_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_tim_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_tim_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_tsc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_tsc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_tsc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_tsc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_tsc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_tsc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_tsc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_tsc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_uart.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_uart.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_uart.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_uart.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_uart.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_uart.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_uart.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_uart.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_uart_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_uart_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_uart_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_uart_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_uart_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_uart_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_uart_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_uart_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_usart.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_usart.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_usart.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_usart.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_usart.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_usart.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_usart.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_usart.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_usart_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_usart_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_usart_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_usart_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_wwdg.c b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_wwdg.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_wwdg.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_wwdg.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_wwdg.h b/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_wwdg.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_wwdg.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L0/stm32l0xx_hal_wwdg.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/Release_Notes_stm32l1xx_hal.html b/targets/cmsis/TARGET_STM/TARGET_STM32L1/Release_Notes_stm32l1xx_hal.html similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/Release_Notes_stm32l1xx_hal.html rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/Release_Notes_stm32l1xx_hal.html diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_ARM_MICRO/startup_stm32l152xc.S b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_ARM_MICRO/startup_stm32l152xc.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_ARM_MICRO/startup_stm32l152xc.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_ARM_MICRO/startup_stm32l152xc.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_ARM_MICRO/stm32l152rc.sct b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_ARM_MICRO/stm32l152rc.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_ARM_MICRO/stm32l152rc.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_ARM_MICRO/stm32l152rc.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_ARM_STD/startup_stm32l152xc.S b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_ARM_STD/startup_stm32l152xc.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_ARM_STD/startup_stm32l152xc.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_ARM_STD/startup_stm32l152xc.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_ARM_STD/stm32l152rc.sct b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_ARM_STD/stm32l152rc.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_ARM_STD/stm32l152rc.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_ARM_STD/stm32l152rc.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_GCC_ARM/STM32L152XC.ld b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_GCC_ARM/STM32L152XC.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_GCC_ARM/STM32L152XC.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_GCC_ARM/STM32L152XC.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_GCC_ARM/startup_stm32l152xc.S b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_GCC_ARM/startup_stm32l152xc.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_GCC_ARM/startup_stm32l152xc.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_GCC_ARM/startup_stm32l152xc.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_IAR/startup_stm32l152xc.S b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_IAR/startup_stm32l152xc.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_IAR/startup_stm32l152xc.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_IAR/startup_stm32l152xc.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_IAR/stm32l152xc.icf b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_IAR/stm32l152xc.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_IAR/stm32l152xc.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/TOOLCHAIN_IAR/stm32l152xc.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/stm32l152xc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/stm32l152xc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/stm32l152xc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/stm32l152xc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/stm32l1xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/stm32l1xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/stm32l1xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/stm32l1xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/stm32l1xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/stm32l1xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/stm32l1xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/stm32l1xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/system_stm32l1xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/system_stm32l1xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/system_stm32l1xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/system_stm32l1xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/system_stm32l1xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/system_stm32l1xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/system_stm32l1xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_MOTE_L152RC/system_stm32l1xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_ARM_MICRO/startup_stm32l152xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_ARM_MICRO/startup_stm32l152xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_ARM_MICRO/startup_stm32l152xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_ARM_MICRO/startup_stm32l152xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_ARM_MICRO/stm32l152re.sct b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_ARM_MICRO/stm32l152re.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_ARM_MICRO/stm32l152re.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_ARM_MICRO/stm32l152re.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_ARM_STD/startup_stm32l152xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_ARM_STD/startup_stm32l152xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_ARM_STD/startup_stm32l152xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_ARM_STD/startup_stm32l152xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_ARM_STD/stm32l152re.sct b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_ARM_STD/stm32l152re.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_ARM_STD/stm32l152re.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_ARM_STD/stm32l152re.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_GCC_ARM/STM32L152XE.ld b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_GCC_ARM/STM32L152XE.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_GCC_ARM/STM32L152XE.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_GCC_ARM/STM32L152XE.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_GCC_ARM/startup_stm32l152xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_GCC_ARM/startup_stm32l152xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_GCC_ARM/startup_stm32l152xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_GCC_ARM/startup_stm32l152xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_IAR/startup_stm32l152xe.S b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_IAR/startup_stm32l152xe.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_IAR/startup_stm32l152xe.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_IAR/startup_stm32l152xe.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_IAR/stm32l152xe.icf b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_IAR/stm32l152xe.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_IAR/stm32l152xe.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/TOOLCHAIN_IAR/stm32l152xe.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/stm32l152xe.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/stm32l152xe.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/stm32l152xe.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/stm32l152xe.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/stm32l1xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/stm32l1xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/stm32l1xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/stm32l1xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/stm32l1xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/stm32l1xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/stm32l1xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/stm32l1xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/system_stm32l1xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/system_stm32l1xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/system_stm32l1xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/system_stm32l1xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/system_stm32l1xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/system_stm32l1xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/system_stm32l1xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NUCLEO_L152RE/system_stm32l1xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_ARM_MICRO/startup_stm32l151xc.S b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_ARM_MICRO/startup_stm32l151xc.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_ARM_MICRO/startup_stm32l151xc.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_ARM_MICRO/startup_stm32l151xc.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_ARM_MICRO/stm32l151rc.sct b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_ARM_MICRO/stm32l151rc.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_ARM_MICRO/stm32l151rc.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_ARM_MICRO/stm32l151rc.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_ARM_STD/startup_stm32l151xc.S b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_ARM_STD/startup_stm32l151xc.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_ARM_STD/startup_stm32l151xc.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_ARM_STD/startup_stm32l151xc.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_ARM_STD/stm32l151rc.sct b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_ARM_STD/stm32l151rc.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_ARM_STD/stm32l151rc.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_ARM_STD/stm32l151rc.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_GCC_ARM/STM32L151XC.ld b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_GCC_ARM/STM32L151XC.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_GCC_ARM/STM32L151XC.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_GCC_ARM/STM32L151XC.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_GCC_ARM/startup_stm32l151xc.S b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_GCC_ARM/startup_stm32l151xc.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_GCC_ARM/startup_stm32l151xc.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/TOOLCHAIN_GCC_ARM/startup_stm32l151xc.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/stm32l151xc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/stm32l151xc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/stm32l151xc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/stm32l151xc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/stm32l1xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/stm32l1xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/stm32l1xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/stm32l1xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/stm32l1xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/stm32l1xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/stm32l1xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/stm32l1xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/system_stm32l1xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/system_stm32l1xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/system_stm32l1xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/system_stm32l1xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/system_stm32l1xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/system_stm32l1xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/system_stm32l1xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_NZ32_SC151/system_stm32l1xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_ARM_MICRO/startup_stm32l151xc.S b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_ARM_MICRO/startup_stm32l151xc.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_ARM_MICRO/startup_stm32l151xc.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_ARM_MICRO/startup_stm32l151xc.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_ARM_MICRO/stm32l151rc.sct b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_ARM_MICRO/stm32l151rc.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_ARM_MICRO/stm32l151rc.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_ARM_MICRO/stm32l151rc.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_ARM_STD/startup_stm32l151xc.S b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_ARM_STD/startup_stm32l151xc.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_ARM_STD/startup_stm32l151xc.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_ARM_STD/startup_stm32l151xc.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_ARM_STD/stm32l151rc.sct b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_ARM_STD/stm32l151rc.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_ARM_STD/stm32l151rc.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_ARM_STD/stm32l151rc.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_GCC_ARM/STM32L151XC.ld b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_GCC_ARM/STM32L151XC.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_GCC_ARM/STM32L151XC.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_GCC_ARM/STM32L151XC.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_GCC_ARM/startup_stm32l151xc.S b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_GCC_ARM/startup_stm32l151xc.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_GCC_ARM/startup_stm32l151xc.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_GCC_ARM/startup_stm32l151xc.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_IAR/startup_stm32l152xc.S b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_IAR/startup_stm32l152xc.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_IAR/startup_stm32l152xc.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_IAR/startup_stm32l152xc.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_IAR/stm32l152xc.icf b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_IAR/stm32l152xc.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_IAR/stm32l152xc.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/TOOLCHAIN_IAR/stm32l152xc.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/stm32l151xc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/stm32l151xc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/stm32l151xc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/stm32l151xc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/stm32l1xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/stm32l1xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/stm32l1xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/stm32l1xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/stm32l1xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/stm32l1xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/stm32l1xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/stm32l1xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/system_stm32l1xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/system_stm32l1xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/system_stm32l1xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/system_stm32l1xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/system_stm32l1xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/system_stm32l1xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/system_stm32l1xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/TARGET_XDOT_L151CC/system_stm32l1xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32_hal_legacy.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32_hal_legacy.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32_hal_legacy.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32_hal_legacy.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_adc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_adc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_adc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_adc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_adc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_adc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_adc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_adc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_adc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_adc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_adc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_adc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_adc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_adc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_adc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_adc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_comp.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_comp.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_comp.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_comp.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_comp.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_comp.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_comp.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_comp.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_comp_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_comp_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_comp_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_comp_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_cortex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_cortex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_cortex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_cortex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_cortex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_cortex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_cortex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_cortex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_crc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_crc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_crc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_crc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_crc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_crc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_crc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_crc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_cryp.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_cryp.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_cryp.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_cryp.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_cryp.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_cryp.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_cryp.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_cryp.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_cryp_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_cryp_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_cryp_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_cryp_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_cryp_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_cryp_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_cryp_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_cryp_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_dac.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_dac.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_dac.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_dac.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_dac.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_dac.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_dac.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_dac.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_dac_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_dac_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_dac_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_dac_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_dac_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_dac_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_dac_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_dac_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_def.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_def.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_def.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_def.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_dma.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_dma.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_dma.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_dma.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_dma.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_dma.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_dma.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_dma.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_flash.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_flash.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_flash.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_flash.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_flash.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_flash.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_flash.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_flash.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_flash_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_flash_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_flash_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_flash_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_flash_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_flash_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_flash_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_flash_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_flash_ramfunc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_flash_ramfunc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_flash_ramfunc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_flash_ramfunc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_flash_ramfunc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_flash_ramfunc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_flash_ramfunc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_flash_ramfunc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_gpio.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_gpio.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_gpio.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_gpio.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_gpio.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_gpio.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_gpio.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_gpio.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_gpio_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_gpio_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_gpio_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_gpio_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_i2c.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_i2c.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_i2c.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_i2c.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_i2c.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_i2c.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_i2c.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_i2c.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_i2s.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_i2s.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_i2s.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_i2s.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_i2s.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_i2s.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_i2s.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_i2s.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_irda.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_irda.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_irda.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_irda.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_irda.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_irda.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_irda.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_irda.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_iwdg.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_iwdg.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_iwdg.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_iwdg.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_iwdg.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_iwdg.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_iwdg.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_iwdg.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_lcd.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_lcd.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_lcd.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_lcd.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_lcd.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_lcd.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_lcd.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_lcd.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_nor.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_nor.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_nor.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_nor.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_nor.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_nor.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_nor.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_nor.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_opamp.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_opamp.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_opamp.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_opamp.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_opamp.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_opamp.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_opamp.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_opamp.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_opamp_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_opamp_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_opamp_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_opamp_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_opamp_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_opamp_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_opamp_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_opamp_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pcd.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pcd.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pcd.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pcd.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pcd.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pcd.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pcd.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pcd.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pcd_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pcd_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pcd_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pcd_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pcd_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pcd_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pcd_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pcd_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pwr.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pwr.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pwr.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pwr.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pwr.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pwr.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pwr.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pwr.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pwr_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pwr_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pwr_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pwr_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pwr_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pwr_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pwr_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_pwr_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rcc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rcc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rcc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rcc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rcc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rcc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rcc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rcc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rcc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rcc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rcc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rcc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rcc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rcc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rcc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rcc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rtc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rtc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rtc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rtc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rtc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rtc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rtc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rtc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rtc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rtc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rtc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rtc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rtc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rtc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_rtc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_sd.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_sd.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_sd.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_sd.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_sd.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_sd.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_sd.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_sd.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_smartcard.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_smartcard.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_smartcard.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_smartcard.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_smartcard.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_smartcard.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_smartcard.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_smartcard.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_spi.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_spi.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_spi.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_spi.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_spi.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_spi.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_spi.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_spi.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_spi_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_spi_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_spi_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_spi_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_spi_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_spi_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_spi_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_spi_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_sram.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_sram.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_sram.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_sram.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_sram.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_sram.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_sram.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_sram.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_tim.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_tim.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_tim.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_tim.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_tim.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_tim.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_tim.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_tim.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_tim_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_tim_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_tim_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_tim_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_tim_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_tim_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_tim_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_tim_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_uart.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_uart.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_uart.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_uart.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_uart.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_uart.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_uart.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_uart.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_usart.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_usart.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_usart.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_usart.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_usart.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_usart.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_usart.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_usart.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_wwdg.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_wwdg.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_wwdg.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_wwdg.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_wwdg.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_wwdg.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_wwdg.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_hal_wwdg.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_adc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_adc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_adc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_adc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_adc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_adc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_adc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_adc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_bus.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_bus.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_bus.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_bus.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_comp.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_comp.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_comp.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_comp.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_comp.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_comp.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_comp.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_comp.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_cortex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_cortex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_cortex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_cortex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_crc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_crc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_crc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_crc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_crc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_crc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_crc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_crc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_dac.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_dac.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_dac.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_dac.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_dac.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_dac.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_dac.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_dac.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_dma.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_dma.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_dma.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_dma.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_dma.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_dma.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_dma.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_dma.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_exti.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_exti.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_exti.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_exti.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_exti.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_exti.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_exti.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_exti.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_fsmc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_fsmc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_fsmc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_fsmc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_fsmc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_fsmc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_fsmc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_fsmc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_gpio.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_gpio.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_gpio.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_gpio.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_gpio.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_gpio.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_gpio.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_gpio.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_i2c.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_i2c.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_i2c.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_i2c.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_i2c.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_i2c.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_i2c.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_i2c.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_iwdg.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_iwdg.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_iwdg.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_iwdg.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_opamp.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_opamp.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_opamp.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_opamp.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_opamp.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_opamp.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_opamp.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_opamp.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_pwr.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_pwr.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_pwr.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_pwr.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_pwr.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_pwr.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_pwr.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_pwr.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_rcc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_rcc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_rcc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_rcc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_rcc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_rcc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_rcc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_rcc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_rtc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_rtc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_rtc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_rtc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_rtc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_rtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_rtc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_rtc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_sdmmc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_sdmmc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_sdmmc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_sdmmc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_sdmmc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_sdmmc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_sdmmc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_sdmmc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_spi.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_spi.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_spi.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_spi.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_spi.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_spi.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_spi.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_spi.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_system.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_system.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_system.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_system.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_tim.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_tim.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_tim.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_tim.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_tim.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_tim.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_tim.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_tim.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_usart.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_usart.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_usart.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_usart.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_usart.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_usart.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_usart.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_usart.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_utils.c b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_utils.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_utils.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_utils.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_utils.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_utils.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_utils.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_utils.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_wwdg.h b/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_wwdg.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_wwdg.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L1/stm32l1xx_ll_wwdg.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/Release_Notes_stm32l4xx_hal.html b/targets/cmsis/TARGET_STM/TARGET_STM32L4/Release_Notes_stm32l4xx_hal.html similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/Release_Notes_stm32l4xx_hal.html rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/Release_Notes_stm32l4xx_hal.html diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_ARM_MICRO/startup_stm32l476xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_ARM_MICRO/startup_stm32l476xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_ARM_MICRO/startup_stm32l476xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_ARM_MICRO/startup_stm32l476xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_ARM_MICRO/stm32l476xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_ARM_MICRO/stm32l476xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_ARM_MICRO/stm32l476xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_ARM_MICRO/stm32l476xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_ARM_STD/startup_stm32l476xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_ARM_STD/startup_stm32l476xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_ARM_STD/startup_stm32l476xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_ARM_STD/startup_stm32l476xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_ARM_STD/stm32l476xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_ARM_STD/stm32l476xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_ARM_STD/stm32l476xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_ARM_STD/stm32l476xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_GCC_ARM/STM32L476XX.ld b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_GCC_ARM/STM32L476XX.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_GCC_ARM/STM32L476XX.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_GCC_ARM/STM32L476XX.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_GCC_ARM/startup_stm32l476xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_GCC_ARM/startup_stm32l476xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_GCC_ARM/startup_stm32l476xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_GCC_ARM/startup_stm32l476xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_IAR/startup_stm32l476xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_IAR/startup_stm32l476xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_IAR/startup_stm32l476xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_IAR/startup_stm32l476xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_IAR/stm32l476xx.icf b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_IAR/stm32l476xx.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_IAR/stm32l476xx.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/TOOLCHAIN_IAR/stm32l476xx.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/stm32l476xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/stm32l476xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/stm32l476xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/stm32l476xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/stm32l4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/stm32l4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/stm32l4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/stm32l4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/stm32l4xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/stm32l4xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/stm32l4xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/stm32l4xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/system_stm32l4xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/system_stm32l4xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/system_stm32l4xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/system_stm32l4xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/system_stm32l4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/system_stm32l4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/system_stm32l4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_DISCO_L476VG/system_stm32l4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_ARM_MICRO/startup_stm32l432xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_ARM_MICRO/startup_stm32l432xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_ARM_MICRO/startup_stm32l432xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_ARM_MICRO/startup_stm32l432xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_ARM_MICRO/stm32l432xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_ARM_MICRO/stm32l432xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_ARM_MICRO/stm32l432xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_ARM_MICRO/stm32l432xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_ARM_STD/startup_stm32l432xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_ARM_STD/startup_stm32l432xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_ARM_STD/startup_stm32l432xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_ARM_STD/startup_stm32l432xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_ARM_STD/stm32l432xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_ARM_STD/stm32l432xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_ARM_STD/stm32l432xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_ARM_STD/stm32l432xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_GCC_ARM/STM32L432XX.ld b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_GCC_ARM/STM32L432XX.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_GCC_ARM/STM32L432XX.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_GCC_ARM/STM32L432XX.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_GCC_ARM/startup_stm32l432xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_GCC_ARM/startup_stm32l432xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_GCC_ARM/startup_stm32l432xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_GCC_ARM/startup_stm32l432xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_IAR/startup_stm32l432xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_IAR/startup_stm32l432xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_IAR/startup_stm32l432xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_IAR/startup_stm32l432xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_IAR/stm32l432xx.icf b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_IAR/stm32l432xx.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_IAR/stm32l432xx.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/TOOLCHAIN_IAR/stm32l432xx.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/stm32l432xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/stm32l432xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/stm32l432xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/stm32l432xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/stm32l4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/stm32l4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/stm32l4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/stm32l4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/stm32l4xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/stm32l4xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/stm32l4xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/stm32l4xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/system_stm32l4xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/system_stm32l4xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/system_stm32l4xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/system_stm32l4xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/system_stm32l4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/system_stm32l4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/system_stm32l4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L432KC/system_stm32l4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_ARM_MICRO/startup_stm32l476xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_ARM_MICRO/startup_stm32l476xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_ARM_MICRO/startup_stm32l476xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_ARM_MICRO/startup_stm32l476xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_ARM_MICRO/stm32l476xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_ARM_MICRO/stm32l476xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_ARM_MICRO/stm32l476xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_ARM_MICRO/stm32l476xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_ARM_STD/startup_stm32l476xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_ARM_STD/startup_stm32l476xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_ARM_STD/startup_stm32l476xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_ARM_STD/startup_stm32l476xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_ARM_STD/stm32l476xx.sct b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_ARM_STD/stm32l476xx.sct similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_ARM_STD/stm32l476xx.sct rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_ARM_STD/stm32l476xx.sct diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_GCC_ARM/STM32L476XX.ld b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_GCC_ARM/STM32L476XX.ld similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_GCC_ARM/STM32L476XX.ld rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_GCC_ARM/STM32L476XX.ld diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_GCC_ARM/startup_stm32l476xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_GCC_ARM/startup_stm32l476xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_GCC_ARM/startup_stm32l476xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_GCC_ARM/startup_stm32l476xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_IAR/startup_stm32l476xx.S b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_IAR/startup_stm32l476xx.S similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_IAR/startup_stm32l476xx.S rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_IAR/startup_stm32l476xx.S diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_IAR/stm32l476xx.icf b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_IAR/stm32l476xx.icf similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_IAR/stm32l476xx.icf rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/TOOLCHAIN_IAR/stm32l476xx.icf diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/cmsis.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/cmsis.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/cmsis.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/cmsis_nvic.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/cmsis_nvic.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/cmsis_nvic.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/cmsis_nvic.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/hal_tick.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/hal_tick.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/hal_tick.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/hal_tick.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/hal_tick.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/hal_tick.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/hal_tick.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/hal_tick.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/stm32l476xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/stm32l476xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/stm32l476xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/stm32l476xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/stm32l4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/stm32l4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/stm32l4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/stm32l4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/stm32l4xx_hal_conf.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/stm32l4xx_hal_conf.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/stm32l4xx_hal_conf.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/stm32l4xx_hal_conf.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/system_stm32l4xx.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/system_stm32l4xx.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/system_stm32l4xx.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/system_stm32l4xx.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/system_stm32l4xx.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/system_stm32l4xx.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/system_stm32l4xx.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/TARGET_NUCLEO_L476RG/system_stm32l4xx.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32_hal_legacy.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32_hal_legacy.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32_hal_legacy.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32_hal_legacy.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_adc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_adc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_adc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_adc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_adc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_adc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_adc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_adc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_adc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_adc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_adc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_adc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_adc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_adc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_adc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_adc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_can.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_can.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_can.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_can.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_can.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_can.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_can.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_can.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_comp.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_comp.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_comp.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_comp.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_comp.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_comp.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_comp.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_comp.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_cortex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_cortex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_cortex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_cortex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_cortex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_cortex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_cortex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_cortex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_crc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_crc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_crc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_crc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_crc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_crc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_crc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_crc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_crc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_crc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_crc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_crc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_crc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_crc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_crc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_crc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_cryp.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_cryp.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_cryp.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_cryp.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_cryp.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_cryp.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_cryp.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_cryp.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_cryp_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_cryp_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_cryp_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_cryp_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_cryp_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_cryp_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_cryp_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_cryp_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dac.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dac.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dac.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dac.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dac.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dac.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dac.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dac.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dac_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dac_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dac_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dac_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dac_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dac_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dac_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dac_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_def.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_def.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_def.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_def.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dfsdm.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dfsdm.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dfsdm.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dfsdm.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dfsdm.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dfsdm.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dfsdm.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dfsdm.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dma.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dma.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dma.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dma.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dma.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dma.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dma.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_dma.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_firewall.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_firewall.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_firewall.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_firewall.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_firewall.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_firewall.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_firewall.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_firewall.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_flash.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_flash.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_flash.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_flash.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_flash.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_flash.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_flash.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_flash.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_flash_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_flash_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_flash_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_flash_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_flash_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_flash_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_flash_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_flash_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_flash_ramfunc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_flash_ramfunc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_flash_ramfunc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_flash_ramfunc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_flash_ramfunc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_flash_ramfunc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_flash_ramfunc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_flash_ramfunc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_gpio.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_gpio.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_gpio.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_gpio.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_gpio.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_gpio.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_gpio.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_gpio.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_gpio_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_gpio_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_gpio_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_gpio_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_hcd.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_hcd.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_hcd.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_hcd.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_hcd.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_hcd.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_hcd.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_hcd.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_i2c.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_i2c.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_i2c.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_i2c.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_i2c.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_i2c.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_i2c.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_i2c.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_i2c_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_i2c_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_i2c_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_i2c_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_i2c_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_i2c_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_i2c_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_i2c_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_irda.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_irda.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_irda.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_irda.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_irda.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_irda.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_irda.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_irda.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_irda_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_irda_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_irda_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_irda_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_iwdg.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_iwdg.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_iwdg.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_iwdg.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_iwdg.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_iwdg.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_iwdg.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_iwdg.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_lcd.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_lcd.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_lcd.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_lcd.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_lcd.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_lcd.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_lcd.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_lcd.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_lptim.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_lptim.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_lptim.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_lptim.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_lptim.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_lptim.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_lptim.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_lptim.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_msp_template.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_msp_template.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_msp_template.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_msp_template.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_nand.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_nand.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_nand.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_nand.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_nand.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_nand.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_nand.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_nand.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_nor.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_nor.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_nor.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_nor.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_nor.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_nor.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_nor.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_nor.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_opamp.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_opamp.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_opamp.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_opamp.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_opamp.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_opamp.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_opamp.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_opamp.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_opamp_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_opamp_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_opamp_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_opamp_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_opamp_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_opamp_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_opamp_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_opamp_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pcd.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pcd.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pcd.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pcd.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pcd.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pcd.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pcd.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pcd.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pcd_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pcd_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pcd_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pcd_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pcd_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pcd_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pcd_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pcd_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pwr.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pwr.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pwr.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pwr.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pwr.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pwr.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pwr.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pwr.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pwr_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pwr_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pwr_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pwr_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pwr_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pwr_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pwr_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_pwr_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_qspi.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_qspi.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_qspi.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_qspi.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_qspi.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_qspi.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_qspi.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_qspi.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rcc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rcc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rcc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rcc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rcc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rcc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rcc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rcc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rcc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rcc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rcc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rcc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rcc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rcc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rcc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rcc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rng.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rng.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rng.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rng.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rng.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rng.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rng.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rng.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rtc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rtc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rtc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rtc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rtc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rtc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rtc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rtc_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rtc_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rtc_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rtc_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rtc_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rtc_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rtc_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_rtc_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_sai.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_sai.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_sai.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_sai.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_sai.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_sai.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_sai.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_sai.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_sd.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_sd.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_sd.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_sd.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_sd.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_sd.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_sd.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_sd.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_smartcard.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_smartcard.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_smartcard.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_smartcard.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_smartcard.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_smartcard.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_smartcard.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_smartcard.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_smartcard_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_smartcard_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_smartcard_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_smartcard_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_smartcard_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_smartcard_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_smartcard_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_smartcard_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_smbus.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_smbus.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_smbus.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_smbus.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_smbus.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_smbus.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_smbus.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_smbus.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_spi.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_spi.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_spi.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_spi.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_spi.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_spi.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_spi.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_spi.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_spi_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_spi_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_spi_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_spi_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_spi_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_spi_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_spi_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_spi_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_sram.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_sram.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_sram.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_sram.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_sram.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_sram.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_sram.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_sram.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_swpmi.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_swpmi.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_swpmi.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_swpmi.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_swpmi.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_swpmi.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_swpmi.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_swpmi.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_tim.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_tim.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_tim.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_tim.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_tim.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_tim.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_tim.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_tim.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_tim_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_tim_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_tim_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_tim_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_tim_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_tim_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_tim_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_tim_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_tsc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_tsc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_tsc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_tsc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_tsc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_tsc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_tsc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_tsc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_uart.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_uart.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_uart.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_uart.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_uart.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_uart.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_uart.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_uart.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_uart_ex.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_uart_ex.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_uart_ex.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_uart_ex.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_uart_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_uart_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_uart_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_uart_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_usart.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_usart.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_usart.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_usart.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_usart.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_usart.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_usart.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_usart.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_usart_ex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_usart_ex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_usart_ex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_usart_ex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_wwdg.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_wwdg.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_wwdg.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_wwdg.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_wwdg.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_wwdg.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_wwdg.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_hal_wwdg.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_adc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_adc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_adc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_adc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_adc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_adc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_adc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_adc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_bus.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_bus.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_bus.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_bus.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_comp.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_comp.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_comp.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_comp.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_comp.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_comp.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_comp.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_comp.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_cortex.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_cortex.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_cortex.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_cortex.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_crc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_crc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_crc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_crc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_crc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_crc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_crc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_crc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_crs.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_crs.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_crs.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_crs.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_crs.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_crs.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_crs.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_crs.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_dac.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_dac.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_dac.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_dac.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_dac.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_dac.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_dac.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_dac.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_dma.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_dma.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_dma.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_dma.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_dma.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_dma.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_dma.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_dma.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_exti.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_exti.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_exti.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_exti.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_exti.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_exti.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_exti.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_exti.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_fmc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_fmc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_fmc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_fmc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_fmc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_fmc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_fmc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_fmc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_gpio.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_gpio.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_gpio.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_gpio.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_gpio.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_gpio.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_gpio.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_gpio.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_i2c.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_i2c.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_i2c.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_i2c.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_i2c.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_i2c.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_i2c.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_i2c.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_iwdg.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_iwdg.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_iwdg.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_iwdg.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_lptim.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_lptim.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_lptim.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_lptim.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_lptim.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_lptim.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_lptim.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_lptim.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_lpuart.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_lpuart.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_lpuart.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_lpuart.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_lpuart.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_lpuart.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_lpuart.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_lpuart.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_opamp.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_opamp.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_opamp.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_opamp.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_opamp.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_opamp.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_opamp.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_opamp.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_pwr.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_pwr.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_pwr.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_pwr.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_pwr.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_pwr.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_pwr.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_pwr.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_rcc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_rcc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_rcc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_rcc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_rcc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_rcc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_rcc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_rcc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_rng.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_rng.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_rng.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_rng.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_rng.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_rng.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_rng.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_rng.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_rtc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_rtc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_rtc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_rtc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_rtc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_rtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_rtc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_rtc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_sdmmc.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_sdmmc.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_sdmmc.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_sdmmc.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_sdmmc.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_sdmmc.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_sdmmc.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_sdmmc.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_spi.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_spi.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_spi.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_spi.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_spi.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_spi.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_spi.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_spi.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_swpmi.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_swpmi.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_swpmi.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_swpmi.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_swpmi.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_swpmi.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_swpmi.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_swpmi.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_system.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_system.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_system.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_system.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_tim.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_tim.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_tim.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_tim.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_tim.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_tim.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_tim.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_tim.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_usart.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_usart.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_usart.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_usart.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_usart.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_usart.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_usart.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_usart.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_usb.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_usb.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_usb.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_usb.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_usb.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_usb.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_usb.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_usb.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_utils.c b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_utils.c similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_utils.c rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_utils.c diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_utils.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_utils.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_utils.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_utils.h diff --git a/hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_wwdg.h b/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_wwdg.h similarity index 100% rename from hal/targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_wwdg.h rename to targets/cmsis/TARGET_STM/TARGET_STM32L4/stm32l4xx_ll_wwdg.h diff --git a/hal/targets/cmsis/TARGET_STM/mbed_rtx.h b/targets/cmsis/TARGET_STM/mbed_rtx.h similarity index 95% rename from hal/targets/cmsis/TARGET_STM/mbed_rtx.h rename to targets/cmsis/TARGET_STM/mbed_rtx.h index b0a18d335d..77febaaf6d 100644 --- a/hal/targets/cmsis/TARGET_STM/mbed_rtx.h +++ b/targets/cmsis/TARGET_STM/mbed_rtx.h @@ -287,7 +287,7 @@ #define OS_CLOCK 168000000 #endif -#elif defined(TARGET_UBLOX_C029) +#elif defined(TARGET_UBLOX_EVK_ODIN_W2) #ifndef INITIAL_SP #define INITIAL_SP (0x20030000UL) @@ -317,36 +317,6 @@ #define OS_CLOCK 168000000 #endif -#elif defined(TARGET_STM32F411RE) - -#ifndef INITIAL_SP -#define INITIAL_SP (0x20020000UL) -#endif -#ifndef OS_TASKCNT -#define OS_TASKCNT 14 -#endif -#ifndef OS_MAINSTKSIZE -#define OS_MAINSTKSIZE 256 -#endif -#ifndef OS_CLOCK -#define OS_CLOCK 100000000 -#endif - -#elif defined(TARGET_STM32F411RE) - -#ifndef INITIAL_SP -#define INITIAL_SP (0x20020000UL) -#endif -#ifndef OS_TASKCNT -#define OS_TASKCNT 14 -#endif -#ifndef OS_MAINSTKSIZE -#define OS_MAINSTKSIZE 256 -#endif -#ifndef OS_CLOCK -#define OS_CLOCK 100000000 -#endif - #elif defined(TARGET_STM32F405RG) #ifndef INITIAL_SP @@ -362,21 +332,6 @@ #define OS_CLOCK 48000000 #endif -#elif defined(TARGET_STM32F411RE) - -#ifndef INITIAL_SP -#define INITIAL_SP (0x20020000UL) -#endif -#ifndef OS_TASKCNT -#define OS_TASKCNT 14 -#endif -#ifndef OS_MAINSTKSIZE -#define OS_MAINSTKSIZE 256 -#endif -#ifndef OS_CLOCK -#define OS_CLOCK 96000000 -#endif - #elif defined(TARGET_STM32F401RE) #ifndef INITIAL_SP @@ -407,6 +362,21 @@ #define OS_CLOCK 100000000 #endif +#elif defined(TARGET_MTS_MDOT_F411RE) || defined (TARGET_MTS_DRAGONFLY_F411RE) + +#ifndef INITIAL_SP +#define INITIAL_SP (0x20020000UL) +#endif +#ifndef OS_TASKCNT +#define OS_TASKCNT 14 +#endif +#ifndef OS_MAINSTKSIZE +#define OS_MAINSTKSIZE 1024 +#endif +#ifndef OS_CLOCK +#define OS_CLOCK 96000000 +#endif + #elif defined(TARGET_STM32F411RE) #ifndef INITIAL_SP diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_ARM_MICRO/efm32gg.sct b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_ARM_MICRO/efm32gg.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_ARM_MICRO/efm32gg.sct rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_ARM_MICRO/efm32gg.sct diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_ARM_MICRO/startup_efm32gg.S b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_ARM_MICRO/startup_efm32gg.S similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_ARM_MICRO/startup_efm32gg.S rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_ARM_MICRO/startup_efm32gg.S diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_ARM_STD/efm32gg.sct b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_ARM_STD/efm32gg.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_ARM_STD/efm32gg.sct rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_ARM_STD/efm32gg.sct diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_ARM_STD/startup_efm32gg.S b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_ARM_STD/startup_efm32gg.S similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_ARM_STD/startup_efm32gg.S rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_ARM_STD/startup_efm32gg.S diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_GCC_ARM/efm32gg.ld b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_GCC_ARM/efm32gg.ld similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_GCC_ARM/efm32gg.ld rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_GCC_ARM/efm32gg.ld diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_GCC_ARM/startup_efm32gg.S b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_GCC_ARM/startup_efm32gg.S similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_GCC_ARM/startup_efm32gg.S rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_GCC_ARM/startup_efm32gg.S diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_IAR/efm32gg990f1024.icf b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_IAR/efm32gg990f1024.icf similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_IAR/efm32gg990f1024.icf rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_IAR/efm32gg990f1024.icf diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_IAR/startup_efm32gg.S b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_IAR/startup_efm32gg.S similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_IAR/startup_efm32gg.S rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/TOOLCHAIN_IAR/startup_efm32gg.S diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/cmsis.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/cmsis.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/cmsis.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/cmsis_nvic.c b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/cmsis_nvic.c rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/cmsis_nvic.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/cmsis_nvic.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg990f1024.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg990f1024.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg990f1024.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg990f1024.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_acmp.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_acmp.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_acmp.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_acmp.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_adc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_adc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_adc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_adc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_aes.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_aes.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_aes.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_aes.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_af_pins.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_af_pins.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_af_pins.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_af_pins.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_af_ports.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_af_ports.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_af_ports.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_af_ports.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_burtc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_burtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_burtc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_burtc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_burtc_ret.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_burtc_ret.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_burtc_ret.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_burtc_ret.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_calibrate.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_calibrate.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_calibrate.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_calibrate.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_cmu.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_cmu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_cmu.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_cmu.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_dac.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_dac.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_dac.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_dac.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_devinfo.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_devinfo.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_devinfo.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_devinfo.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_dma.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_dma.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_dma.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_dma.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_dma_ch.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_dma_ch.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_dma_ch.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_dma_ch.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_dma_descriptor.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_dma_descriptor.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_dma_descriptor.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_dma_descriptor.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_dmactrl.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_dmactrl.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_dmactrl.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_dmactrl.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_dmareq.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_dmareq.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_dmareq.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_dmareq.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_ebi.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_ebi.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_ebi.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_ebi.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_emu.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_emu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_emu.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_emu.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_etm.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_etm.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_etm.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_etm.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_gpio.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_gpio.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_gpio.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_gpio.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_gpio_p.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_gpio_p.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_gpio_p.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_gpio_p.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_i2c.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_i2c.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_i2c.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_i2c.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_lcd.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_lcd.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_lcd.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_lcd.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_lesense.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_lesense.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_lesense.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_lesense.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_lesense_buf.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_lesense_buf.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_lesense_buf.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_lesense_buf.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_lesense_ch.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_lesense_ch.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_lesense_ch.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_lesense_ch.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_lesense_st.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_lesense_st.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_lesense_st.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_lesense_st.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_letimer.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_letimer.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_letimer.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_letimer.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_leuart.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_leuart.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_leuart.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_leuart.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_msc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_msc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_msc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_msc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_pcnt.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_pcnt.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_pcnt.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_pcnt.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_prs.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_prs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_prs.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_prs.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_prs_ch.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_prs_ch.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_prs_ch.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_prs_ch.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_prs_signals.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_prs_signals.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_prs_signals.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_prs_signals.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_rmu.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_rmu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_rmu.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_rmu.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_romtable.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_romtable.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_romtable.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_romtable.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_rtc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_rtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_rtc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_rtc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_timer.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_timer.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_timer.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_timer.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_timer_cc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_timer_cc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_timer_cc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_timer_cc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_uart.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_uart.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_uart.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_uart.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_usart.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_usart.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_usart.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_usart.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_usb.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_usb.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_usb.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_usb.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_usb_diep.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_usb_diep.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_usb_diep.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_usb_diep.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_usb_doep.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_usb_doep.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_usb_doep.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_usb_doep.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_usb_hc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_usb_hc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_usb_hc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_usb_hc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_vcmp.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_vcmp.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_vcmp.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_vcmp.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_wdog.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_wdog.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_wdog.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/efm32gg_wdog.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/em_device.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/em_device.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/em_device.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/em_device.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/system_efm32gg.c b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/system_efm32gg.c similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/system_efm32gg.c rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/system_efm32gg.c diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/system_efm32gg.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/system_efm32gg.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/system_efm32gg.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32GG_STK3700/system_efm32gg.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/TOOLCHAIN_ARM_MICRO/efm32hg.sct b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/TOOLCHAIN_ARM_MICRO/efm32hg.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/TOOLCHAIN_ARM_MICRO/efm32hg.sct rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/TOOLCHAIN_ARM_MICRO/efm32hg.sct diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/TOOLCHAIN_ARM_MICRO/startup_efm32hg.S b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/TOOLCHAIN_ARM_MICRO/startup_efm32hg.S similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/TOOLCHAIN_ARM_MICRO/startup_efm32hg.S rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/TOOLCHAIN_ARM_MICRO/startup_efm32hg.S diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/TOOLCHAIN_GCC_ARM/efm32hg.ld b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/TOOLCHAIN_GCC_ARM/efm32hg.ld similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/TOOLCHAIN_GCC_ARM/efm32hg.ld rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/TOOLCHAIN_GCC_ARM/efm32hg.ld diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/TOOLCHAIN_GCC_ARM/startup_efm32hg.S b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/TOOLCHAIN_GCC_ARM/startup_efm32hg.S similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/TOOLCHAIN_GCC_ARM/startup_efm32hg.S rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/TOOLCHAIN_GCC_ARM/startup_efm32hg.S diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/TOOLCHAIN_IAR/efm32hg322f64.icf b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/TOOLCHAIN_IAR/efm32hg322f64.icf similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/TOOLCHAIN_IAR/efm32hg322f64.icf rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/TOOLCHAIN_IAR/efm32hg322f64.icf diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/TOOLCHAIN_IAR/startup_efm32hg.s b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/TOOLCHAIN_IAR/startup_efm32hg.s similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/TOOLCHAIN_IAR/startup_efm32hg.s rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/TOOLCHAIN_IAR/startup_efm32hg.s diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/arm_math.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/arm_math.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/arm_math.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/arm_math.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/cmsis.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/cmsis.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/cmsis.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/cmsis_nvic.c b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/cmsis_nvic.c rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/cmsis_nvic.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/cmsis_nvic.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg322f64.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg322f64.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg322f64.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg322f64.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_acmp.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_acmp.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_acmp.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_acmp.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_adc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_adc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_adc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_adc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_aes.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_aes.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_aes.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_aes.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_af_pins.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_af_pins.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_af_pins.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_af_pins.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_af_ports.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_af_ports.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_af_ports.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_af_ports.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_calibrate.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_calibrate.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_calibrate.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_calibrate.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_cmu.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_cmu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_cmu.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_cmu.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_devinfo.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_devinfo.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_devinfo.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_devinfo.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_dma.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_dma.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_dma.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_dma.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_dma_ch.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_dma_ch.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_dma_ch.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_dma_ch.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_dma_descriptor.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_dma_descriptor.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_dma_descriptor.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_dma_descriptor.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_dmactrl.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_dmactrl.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_dmactrl.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_dmactrl.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_dmareq.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_dmareq.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_dmareq.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_dmareq.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_emu.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_emu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_emu.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_emu.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_gpio.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_gpio.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_gpio.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_gpio.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_gpio_p.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_gpio_p.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_gpio_p.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_gpio_p.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_i2c.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_i2c.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_i2c.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_i2c.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_idac.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_idac.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_idac.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_idac.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_leuart.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_leuart.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_leuart.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_leuart.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_msc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_msc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_msc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_msc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_mtb.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_mtb.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_mtb.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_mtb.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_pcnt.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_pcnt.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_pcnt.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_pcnt.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_prs.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_prs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_prs.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_prs.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_prs_ch.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_prs_ch.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_prs_ch.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_prs_ch.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_prs_signals.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_prs_signals.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_prs_signals.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_prs_signals.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_rmu.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_rmu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_rmu.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_rmu.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_romtable.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_romtable.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_romtable.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_romtable.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_rtc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_rtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_rtc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_rtc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_timer.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_timer.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_timer.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_timer.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_timer_cc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_timer_cc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_timer_cc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_timer_cc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_usart.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_usart.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_usart.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_usart.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_usb.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_usb.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_usb.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_usb.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_usb_diep.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_usb_diep.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_usb_diep.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_usb_diep.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_usb_doep.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_usb_doep.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_usb_doep.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_usb_doep.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_vcmp.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_vcmp.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_vcmp.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_vcmp.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_wdog.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_wdog.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_wdog.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/efm32hg_wdog.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/em_device.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/em_device.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/em_device.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/em_device.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/system_efm32hg.c b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/system_efm32hg.c similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/system_efm32hg.c rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/system_efm32hg.c diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/system_efm32hg.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/system_efm32hg.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/system_efm32hg.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32HG_STK3400/system_efm32hg.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_ARM_MICRO/efm32lg.sct b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_ARM_MICRO/efm32lg.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_ARM_MICRO/efm32lg.sct rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_ARM_MICRO/efm32lg.sct diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_ARM_MICRO/startup_efm32lg.S b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_ARM_MICRO/startup_efm32lg.S similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_ARM_MICRO/startup_efm32lg.S rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_ARM_MICRO/startup_efm32lg.S diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_ARM_STD/efm32lg.sct b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_ARM_STD/efm32lg.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_ARM_STD/efm32lg.sct rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_ARM_STD/efm32lg.sct diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_ARM_STD/startup_efm32lg.S b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_ARM_STD/startup_efm32lg.S similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_ARM_STD/startup_efm32lg.S rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_ARM_STD/startup_efm32lg.S diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_GCC_ARM/efm32lg.ld b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_GCC_ARM/efm32lg.ld similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_GCC_ARM/efm32lg.ld rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_GCC_ARM/efm32lg.ld diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_GCC_ARM/startup_efm32lg.S b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_GCC_ARM/startup_efm32lg.S similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_GCC_ARM/startup_efm32lg.S rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_GCC_ARM/startup_efm32lg.S diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_IAR/efm32lg990f256.icf b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_IAR/efm32lg990f256.icf similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_IAR/efm32lg990f256.icf rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_IAR/efm32lg990f256.icf diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_IAR/startup_efm32lg.s b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_IAR/startup_efm32lg.s similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_IAR/startup_efm32lg.s rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/TOOLCHAIN_IAR/startup_efm32lg.s diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/cmsis.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/cmsis.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/cmsis.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/cmsis_nvic.c b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/cmsis_nvic.c rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/cmsis_nvic.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/cmsis_nvic.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg990f256.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg990f256.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg990f256.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg990f256.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_acmp.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_acmp.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_acmp.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_acmp.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_adc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_adc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_adc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_adc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_aes.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_aes.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_aes.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_aes.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_af_pins.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_af_pins.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_af_pins.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_af_pins.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_af_ports.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_af_ports.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_af_ports.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_af_ports.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_burtc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_burtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_burtc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_burtc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_burtc_ret.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_burtc_ret.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_burtc_ret.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_burtc_ret.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_calibrate.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_calibrate.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_calibrate.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_calibrate.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_cmu.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_cmu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_cmu.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_cmu.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_dac.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_dac.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_dac.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_dac.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_devinfo.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_devinfo.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_devinfo.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_devinfo.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_dma.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_dma.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_dma.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_dma.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_dma_ch.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_dma_ch.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_dma_ch.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_dma_ch.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_dma_descriptor.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_dma_descriptor.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_dma_descriptor.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_dma_descriptor.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_dmactrl.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_dmactrl.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_dmactrl.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_dmactrl.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_dmareq.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_dmareq.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_dmareq.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_dmareq.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_ebi.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_ebi.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_ebi.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_ebi.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_emu.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_emu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_emu.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_emu.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_etm.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_etm.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_etm.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_etm.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_gpio.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_gpio.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_gpio.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_gpio.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_gpio_p.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_gpio_p.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_gpio_p.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_gpio_p.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_i2c.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_i2c.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_i2c.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_i2c.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_lcd.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_lcd.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_lcd.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_lcd.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_lesense.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_lesense.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_lesense.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_lesense.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_lesense_buf.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_lesense_buf.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_lesense_buf.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_lesense_buf.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_lesense_ch.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_lesense_ch.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_lesense_ch.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_lesense_ch.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_lesense_st.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_lesense_st.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_lesense_st.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_lesense_st.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_letimer.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_letimer.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_letimer.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_letimer.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_leuart.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_leuart.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_leuart.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_leuart.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_msc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_msc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_msc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_msc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_pcnt.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_pcnt.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_pcnt.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_pcnt.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_prs.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_prs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_prs.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_prs.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_prs_ch.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_prs_ch.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_prs_ch.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_prs_ch.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_prs_signals.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_prs_signals.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_prs_signals.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_prs_signals.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_rmu.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_rmu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_rmu.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_rmu.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_romtable.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_romtable.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_romtable.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_romtable.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_rtc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_rtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_rtc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_rtc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_timer.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_timer.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_timer.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_timer.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_timer_cc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_timer_cc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_timer_cc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_timer_cc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_uart.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_uart.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_uart.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_uart.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_usart.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_usart.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_usart.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_usart.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_usb.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_usb.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_usb.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_usb.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_usb_diep.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_usb_diep.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_usb_diep.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_usb_diep.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_usb_doep.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_usb_doep.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_usb_doep.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_usb_doep.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_usb_hc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_usb_hc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_usb_hc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_usb_hc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_vcmp.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_vcmp.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_vcmp.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_vcmp.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_wdog.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_wdog.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_wdog.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/efm32lg_wdog.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/em_device.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/em_device.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/em_device.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/em_device.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/system_efm32lg.c b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/system_efm32lg.c similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/system_efm32lg.c rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/system_efm32lg.c diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/system_efm32lg.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/system_efm32lg.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/system_efm32lg.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32LG_STK3600/system_efm32lg.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_ARM_MICRO/efm32pg1b.sct b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_ARM_MICRO/efm32pg1b.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_ARM_MICRO/efm32pg1b.sct rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_ARM_MICRO/efm32pg1b.sct diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_ARM_MICRO/startup_efm32pg1b.S b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_ARM_MICRO/startup_efm32pg1b.S similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_ARM_MICRO/startup_efm32pg1b.S rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_ARM_MICRO/startup_efm32pg1b.S diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_ARM_STD/efm32pg1b.sct b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_ARM_STD/efm32pg1b.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_ARM_STD/efm32pg1b.sct rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_ARM_STD/efm32pg1b.sct diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_ARM_STD/startup_efm32pg1b.S b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_ARM_STD/startup_efm32pg1b.S similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_ARM_STD/startup_efm32pg1b.S rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_ARM_STD/startup_efm32pg1b.S diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_GCC_ARM/efm32pg1b.ld b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_GCC_ARM/efm32pg1b.ld similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_GCC_ARM/efm32pg1b.ld rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_GCC_ARM/efm32pg1b.ld diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_GCC_ARM/startup_efm32pg1b.S b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_GCC_ARM/startup_efm32pg1b.S similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_GCC_ARM/startup_efm32pg1b.S rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_GCC_ARM/startup_efm32pg1b.S diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_IAR/efm32pg1b200f256.icf b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_IAR/efm32pg1b200f256.icf similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_IAR/efm32pg1b200f256.icf rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_IAR/efm32pg1b200f256.icf diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_IAR/startup_efm32pg1b.S b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_IAR/startup_efm32pg1b.S similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_IAR/startup_efm32pg1b.S rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/TOOLCHAIN_IAR/startup_efm32pg1b.S diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/cmsis.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/cmsis.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/cmsis.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/cmsis_nvic.c b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/cmsis_nvic.c rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/cmsis_nvic.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/cmsis_nvic.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b100f128gm32.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b100f128gm32.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b100f128gm32.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b100f128gm32.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b100f256gm32.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b100f256gm32.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b100f256gm32.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b100f256gm32.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b200f128gm32.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b200f128gm32.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b200f128gm32.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b200f128gm32.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b200f128gm48.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b200f128gm48.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b200f128gm48.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b200f128gm48.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b200f256gm32.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b200f256gm32.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b200f256gm32.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b200f256gm32.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b200f256gm48.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b200f256gm48.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b200f256gm48.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b200f256gm48.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_acmp.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_acmp.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_acmp.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_acmp.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_adc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_adc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_adc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_adc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_af_pins.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_af_pins.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_af_pins.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_af_pins.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_af_ports.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_af_ports.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_af_ports.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_af_ports.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_cmu.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_cmu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_cmu.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_cmu.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_cryotimer.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_cryotimer.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_cryotimer.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_cryotimer.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_crypto.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_crypto.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_crypto.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_crypto.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_devinfo.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_devinfo.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_devinfo.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_devinfo.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_dma_descriptor.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_dma_descriptor.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_dma_descriptor.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_dma_descriptor.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_dmareq.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_dmareq.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_dmareq.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_dmareq.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_emu.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_emu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_emu.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_emu.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_fpueh.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_fpueh.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_fpueh.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_fpueh.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_gpcrc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_gpcrc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_gpcrc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_gpcrc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_gpio.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_gpio.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_gpio.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_gpio.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_gpio_p.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_gpio_p.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_gpio_p.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_gpio_p.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_i2c.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_i2c.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_i2c.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_i2c.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_idac.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_idac.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_idac.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_idac.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_ldma.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_ldma.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_ldma.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_ldma.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_ldma_ch.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_ldma_ch.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_ldma_ch.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_ldma_ch.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_letimer.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_letimer.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_letimer.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_letimer.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_leuart.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_leuart.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_leuart.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_leuart.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_msc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_msc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_msc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_msc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_pcnt.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_pcnt.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_pcnt.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_pcnt.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_prs.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_prs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_prs.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_prs.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_prs_ch.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_prs_ch.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_prs_ch.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_prs_ch.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_prs_signals.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_prs_signals.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_prs_signals.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_prs_signals.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_rmu.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_rmu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_rmu.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_rmu.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_romtable.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_romtable.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_romtable.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_romtable.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_rtcc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_rtcc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_rtcc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_rtcc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_rtcc_cc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_rtcc_cc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_rtcc_cc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_rtcc_cc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_rtcc_ret.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_rtcc_ret.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_rtcc_ret.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_rtcc_ret.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_timer.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_timer.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_timer.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_timer.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_timer_cc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_timer_cc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_timer_cc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_timer_cc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_usart.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_usart.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_usart.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_usart.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_wdog.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_wdog.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_wdog.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_wdog.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_wdog_pch.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_wdog_pch.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_wdog_pch.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/efm32pg1b_wdog_pch.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/em_device.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/em_device.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/em_device.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/em_device.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/system_efm32pg1b.c b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/system_efm32pg1b.c similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/system_efm32pg1b.c rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/system_efm32pg1b.c diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/system_efm32pg1b.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/system_efm32pg1b.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/system_efm32pg1b.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32PG_STK3401/system_efm32pg1b.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_ARM_MICRO/efm32wg.sct b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_ARM_MICRO/efm32wg.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_ARM_MICRO/efm32wg.sct rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_ARM_MICRO/efm32wg.sct diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_ARM_MICRO/startup_efm32wg.S b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_ARM_MICRO/startup_efm32wg.S similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_ARM_MICRO/startup_efm32wg.S rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_ARM_MICRO/startup_efm32wg.S diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_ARM_STD/efm32wg.sct b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_ARM_STD/efm32wg.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_ARM_STD/efm32wg.sct rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_ARM_STD/efm32wg.sct diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_ARM_STD/startup_efm32wg.S b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_ARM_STD/startup_efm32wg.S similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_ARM_STD/startup_efm32wg.S rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_ARM_STD/startup_efm32wg.S diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_GCC_ARM/efm32wg.ld b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_GCC_ARM/efm32wg.ld similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_GCC_ARM/efm32wg.ld rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_GCC_ARM/efm32wg.ld diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_GCC_ARM/startup_efm32wg.S b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_GCC_ARM/startup_efm32wg.S similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_GCC_ARM/startup_efm32wg.S rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_GCC_ARM/startup_efm32wg.S diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_IAR/efm32wg990f256.icf b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_IAR/efm32wg990f256.icf similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_IAR/efm32wg990f256.icf rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_IAR/efm32wg990f256.icf diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_IAR/startup_efm32wg.s b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_IAR/startup_efm32wg.s similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_IAR/startup_efm32wg.s rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/TOOLCHAIN_IAR/startup_efm32wg.s diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/cmsis.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/cmsis.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/cmsis.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/cmsis_nvic.c b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/cmsis_nvic.c rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/cmsis_nvic.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/cmsis_nvic.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg990f256.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg990f256.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg990f256.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg990f256.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_acmp.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_acmp.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_acmp.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_acmp.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_adc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_adc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_adc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_adc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_aes.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_aes.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_aes.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_aes.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_af_pins.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_af_pins.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_af_pins.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_af_pins.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_af_ports.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_af_ports.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_af_ports.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_af_ports.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_burtc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_burtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_burtc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_burtc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_burtc_ret.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_burtc_ret.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_burtc_ret.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_burtc_ret.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_calibrate.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_calibrate.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_calibrate.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_calibrate.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_cmu.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_cmu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_cmu.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_cmu.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_dac.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_dac.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_dac.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_dac.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_devinfo.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_devinfo.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_devinfo.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_devinfo.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_dma.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_dma.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_dma.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_dma.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_dma_ch.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_dma_ch.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_dma_ch.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_dma_ch.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_dma_descriptor.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_dma_descriptor.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_dma_descriptor.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_dma_descriptor.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_dmactrl.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_dmactrl.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_dmactrl.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_dmactrl.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_dmareq.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_dmareq.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_dmareq.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_dmareq.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_ebi.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_ebi.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_ebi.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_ebi.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_emu.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_emu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_emu.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_emu.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_etm.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_etm.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_etm.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_etm.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_fpueh.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_fpueh.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_fpueh.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_fpueh.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_gpio.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_gpio.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_gpio.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_gpio.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_gpio_p.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_gpio_p.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_gpio_p.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_gpio_p.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_i2c.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_i2c.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_i2c.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_i2c.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_lcd.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_lcd.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_lcd.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_lcd.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_lesense.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_lesense.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_lesense.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_lesense.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_lesense_buf.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_lesense_buf.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_lesense_buf.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_lesense_buf.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_lesense_ch.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_lesense_ch.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_lesense_ch.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_lesense_ch.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_lesense_st.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_lesense_st.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_lesense_st.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_lesense_st.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_letimer.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_letimer.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_letimer.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_letimer.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_leuart.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_leuart.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_leuart.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_leuart.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_msc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_msc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_msc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_msc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_pcnt.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_pcnt.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_pcnt.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_pcnt.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_prs.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_prs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_prs.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_prs.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_prs_ch.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_prs_ch.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_prs_ch.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_prs_ch.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_prs_signals.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_prs_signals.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_prs_signals.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_prs_signals.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_rmu.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_rmu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_rmu.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_rmu.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_romtable.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_romtable.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_romtable.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_romtable.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_rtc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_rtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_rtc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_rtc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_timer.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_timer.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_timer.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_timer.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_timer_cc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_timer_cc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_timer_cc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_timer_cc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_uart.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_uart.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_uart.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_uart.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_usart.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_usart.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_usart.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_usart.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_usb.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_usb.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_usb.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_usb.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_usb_diep.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_usb_diep.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_usb_diep.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_usb_diep.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_usb_doep.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_usb_doep.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_usb_doep.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_usb_doep.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_usb_hc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_usb_hc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_usb_hc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_usb_hc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_vcmp.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_vcmp.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_vcmp.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_vcmp.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_wdog.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_wdog.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_wdog.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/efm32wg_wdog.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/em_device.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/em_device.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/em_device.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/em_device.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/system_efm32wg.c b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/system_efm32wg.c similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/system_efm32wg.c rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/system_efm32wg.c diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/system_efm32wg.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/system_efm32wg.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/system_efm32wg.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32WG_STK3800/system_efm32wg.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/TOOLCHAIN_ARM_MICRO/efm32zg.sct b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/TOOLCHAIN_ARM_MICRO/efm32zg.sct similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/TOOLCHAIN_ARM_MICRO/efm32zg.sct rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/TOOLCHAIN_ARM_MICRO/efm32zg.sct diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/TOOLCHAIN_ARM_MICRO/startup_efm32zg.S b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/TOOLCHAIN_ARM_MICRO/startup_efm32zg.S similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/TOOLCHAIN_ARM_MICRO/startup_efm32zg.S rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/TOOLCHAIN_ARM_MICRO/startup_efm32zg.S diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/TOOLCHAIN_GCC_ARM/efm32zg.ld b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/TOOLCHAIN_GCC_ARM/efm32zg.ld similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/TOOLCHAIN_GCC_ARM/efm32zg.ld rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/TOOLCHAIN_GCC_ARM/efm32zg.ld diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/TOOLCHAIN_GCC_ARM/startup_efm32zg.S b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/TOOLCHAIN_GCC_ARM/startup_efm32zg.S similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/TOOLCHAIN_GCC_ARM/startup_efm32zg.S rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/TOOLCHAIN_GCC_ARM/startup_efm32zg.S diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/TOOLCHAIN_IAR/efm32zg222f32.icf b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/TOOLCHAIN_IAR/efm32zg222f32.icf similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/TOOLCHAIN_IAR/efm32zg222f32.icf rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/TOOLCHAIN_IAR/efm32zg222f32.icf diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/TOOLCHAIN_IAR/startup_efm32zg.s b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/TOOLCHAIN_IAR/startup_efm32zg.s similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/TOOLCHAIN_IAR/startup_efm32zg.s rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/TOOLCHAIN_IAR/startup_efm32zg.s diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/arm_math.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/arm_math.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/arm_math.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/arm_math.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/cmsis.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/cmsis.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/cmsis.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/cmsis_nvic.c b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/cmsis_nvic.c rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/cmsis_nvic.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/cmsis_nvic.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg222f32.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg222f32.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg222f32.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg222f32.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_acmp.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_acmp.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_acmp.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_acmp.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_adc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_adc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_adc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_adc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_aes.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_aes.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_aes.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_aes.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_af_pins.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_af_pins.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_af_pins.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_af_pins.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_af_ports.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_af_ports.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_af_ports.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_af_ports.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_calibrate.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_calibrate.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_calibrate.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_calibrate.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_cmu.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_cmu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_cmu.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_cmu.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_devinfo.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_devinfo.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_devinfo.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_devinfo.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_dma.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_dma.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_dma.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_dma.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_dma_ch.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_dma_ch.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_dma_ch.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_dma_ch.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_dma_descriptor.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_dma_descriptor.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_dma_descriptor.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_dma_descriptor.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_dmactrl.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_dmactrl.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_dmactrl.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_dmactrl.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_dmareq.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_dmareq.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_dmareq.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_dmareq.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_emu.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_emu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_emu.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_emu.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_gpio.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_gpio.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_gpio.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_gpio.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_gpio_p.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_gpio_p.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_gpio_p.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_gpio_p.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_i2c.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_i2c.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_i2c.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_i2c.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_idac.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_idac.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_idac.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_idac.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_leuart.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_leuart.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_leuart.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_leuart.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_msc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_msc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_msc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_msc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_pcnt.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_pcnt.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_pcnt.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_pcnt.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_prs.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_prs.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_prs.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_prs.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_prs_ch.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_prs_ch.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_prs_ch.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_prs_ch.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_prs_signals.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_prs_signals.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_prs_signals.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_prs_signals.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_rmu.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_rmu.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_rmu.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_rmu.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_romtable.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_romtable.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_romtable.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_romtable.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_rtc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_rtc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_rtc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_rtc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_timer.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_timer.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_timer.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_timer.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_timer_cc.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_timer_cc.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_timer_cc.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_timer_cc.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_usart.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_usart.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_usart.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_usart.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_vcmp.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_vcmp.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_vcmp.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_vcmp.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_wdog.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_wdog.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_wdog.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/efm32zg_wdog.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/em_device.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/em_device.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/em_device.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/em_device.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/system_efm32zg.c b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/system_efm32zg.c similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/system_efm32zg.c rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/system_efm32zg.c diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/system_efm32zg.h b/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/system_efm32zg.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/system_efm32zg.h rename to targets/cmsis/TARGET_Silicon_Labs/TARGET_EFM32/TARGET_EFM32ZG_STK3200/system_efm32zg.h diff --git a/hal/targets/cmsis/TARGET_Silicon_Labs/mbed_rtx.h b/targets/cmsis/TARGET_Silicon_Labs/mbed_rtx.h similarity index 100% rename from hal/targets/cmsis/TARGET_Silicon_Labs/mbed_rtx.h rename to targets/cmsis/TARGET_Silicon_Labs/mbed_rtx.h diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_ARM_MICRO/W7500.sct b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_ARM_MICRO/W7500.sct similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_ARM_MICRO/W7500.sct rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_ARM_MICRO/W7500.sct diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_ARM_MICRO/startup_W7500x.S b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_ARM_MICRO/startup_W7500x.S similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_ARM_MICRO/startup_W7500x.S rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_ARM_MICRO/startup_W7500x.S diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_ARM_MICRO/sys.cpp b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_ARM_MICRO/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_ARM_MICRO/sys.cpp rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_ARM_MICRO/sys.cpp diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_ARM_STD/W7500.sct b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_ARM_STD/W7500.sct similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_ARM_STD/W7500.sct rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_ARM_STD/W7500.sct diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_ARM_STD/startup_W7500x.S b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_ARM_STD/startup_W7500x.S similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_ARM_STD/startup_W7500x.S rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_ARM_STD/startup_W7500x.S diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_GCC_ARM/W7500.ld b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_GCC_ARM/W7500.ld similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_GCC_ARM/W7500.ld rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_GCC_ARM/W7500.ld diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_GCC_ARM/startup_W7500.S b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_GCC_ARM/startup_W7500.S similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_GCC_ARM/startup_W7500.S rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500/TOOLCHAIN_GCC_ARM/startup_W7500.S diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_ARM_MICRO/W7500.sct b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_ARM_MICRO/W7500.sct similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_ARM_MICRO/W7500.sct rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_ARM_MICRO/W7500.sct diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_ARM_MICRO/startup_W7500x.S b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_ARM_MICRO/startup_W7500x.S similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_ARM_MICRO/startup_W7500x.S rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_ARM_MICRO/startup_W7500x.S diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_ARM_MICRO/sys.cpp b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_ARM_MICRO/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_ARM_MICRO/sys.cpp rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_ARM_MICRO/sys.cpp diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_ARM_STD/W7500.sct b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_ARM_STD/W7500.sct similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_ARM_STD/W7500.sct rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_ARM_STD/W7500.sct diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_ARM_STD/startup_W7500x.S b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_ARM_STD/startup_W7500x.S similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_ARM_STD/startup_W7500x.S rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_ARM_STD/startup_W7500x.S diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_GCC_ARM/W7500.ld b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_GCC_ARM/W7500.ld similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_GCC_ARM/W7500.ld rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_GCC_ARM/W7500.ld diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_GCC_ARM/startup_W7500.S b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_GCC_ARM/startup_W7500.S similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_GCC_ARM/startup_W7500.S rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_GCC_ARM/startup_W7500.S diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_GCC_ARM/startup_W7500.o b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_GCC_ARM/startup_W7500.o similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_GCC_ARM/startup_W7500.o rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500ECO/TOOLCHAIN_GCC_ARM/startup_W7500.o diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_ARM_MICRO/W7500.sct b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_ARM_MICRO/W7500.sct similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_ARM_MICRO/W7500.sct rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_ARM_MICRO/W7500.sct diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_ARM_MICRO/startup_W7500x.S b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_ARM_MICRO/startup_W7500x.S similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_ARM_MICRO/startup_W7500x.S rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_ARM_MICRO/startup_W7500x.S diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_ARM_MICRO/sys.cpp b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_ARM_MICRO/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_ARM_MICRO/sys.cpp rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_ARM_MICRO/sys.cpp diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_ARM_STD/W7500.sct b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_ARM_STD/W7500.sct similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_ARM_STD/W7500.sct rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_ARM_STD/W7500.sct diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_ARM_STD/startup_W7500x.S b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_ARM_STD/startup_W7500x.S similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_ARM_STD/startup_W7500x.S rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_ARM_STD/startup_W7500x.S diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_ARM_STD/sys.cpp b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_ARM_STD/sys.cpp similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_ARM_STD/sys.cpp rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_ARM_STD/sys.cpp diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_GCC_ARM/W7500.ld b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_GCC_ARM/W7500.ld similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_GCC_ARM/W7500.ld rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_GCC_ARM/W7500.ld diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_GCC_ARM/startup_W7500.S b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_GCC_ARM/startup_W7500.S similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_GCC_ARM/startup_W7500.S rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/TARGET_WIZwiki_W7500P/TOOLCHAIN_GCC_ARM/startup_W7500.S diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/W7500x.h b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/W7500x.h similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/W7500x.h rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/W7500x.h diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/cmsis.h b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/cmsis.h similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/cmsis.h rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/cmsis.h diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/cmsis_nvic.c b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/cmsis_nvic.c similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/cmsis_nvic.c rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/cmsis_nvic.c diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/cmsis_nvic.h b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/cmsis_nvic.h similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/cmsis_nvic.h rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/cmsis_nvic.h diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/system_W7500x.c b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/system_W7500x.c similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/system_W7500x.c rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/system_W7500x.c diff --git a/hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/system_W7500x.h b/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/system_W7500x.h similarity index 100% rename from hal/targets/cmsis/TARGET_WIZNET/TARGET_W7500x/system_W7500x.h rename to targets/cmsis/TARGET_WIZNET/TARGET_W7500x/system_W7500x.h diff --git a/hal/targets/cmsis/TOOLCHAIN_GCC/TARGET_CORTEX_A/cache.S b/targets/cmsis/TOOLCHAIN_GCC/TARGET_CORTEX_A/cache.S similarity index 100% rename from hal/targets/cmsis/TOOLCHAIN_GCC/TARGET_CORTEX_A/cache.S rename to targets/cmsis/TOOLCHAIN_GCC/TARGET_CORTEX_A/cache.S diff --git a/hal/targets/cmsis/TOOLCHAIN_IAR/TARGET_CORTEX_A/cache.s b/targets/cmsis/TOOLCHAIN_IAR/TARGET_CORTEX_A/cache.s similarity index 100% rename from hal/targets/cmsis/TOOLCHAIN_IAR/TARGET_CORTEX_A/cache.s rename to targets/cmsis/TOOLCHAIN_IAR/TARGET_CORTEX_A/cache.s diff --git a/hal/targets/cmsis/TOOLCHAIN_IAR/cmain.S b/targets/cmsis/TOOLCHAIN_IAR/cmain.S similarity index 100% rename from hal/targets/cmsis/TOOLCHAIN_IAR/cmain.S rename to targets/cmsis/TOOLCHAIN_IAR/cmain.S diff --git a/hal/targets/cmsis/arm_common_tables.h b/targets/cmsis/arm_common_tables.h similarity index 100% rename from hal/targets/cmsis/arm_common_tables.h rename to targets/cmsis/arm_common_tables.h diff --git a/libraries/dsp/cmsis_dsp/arm_const_structs.h b/targets/cmsis/arm_const_structs.h old mode 100644 new mode 100755 similarity index 100% rename from libraries/dsp/cmsis_dsp/arm_const_structs.h rename to targets/cmsis/arm_const_structs.h diff --git a/hal/targets/cmsis/arm_math.h b/targets/cmsis/arm_math.h similarity index 100% rename from hal/targets/cmsis/arm_math.h rename to targets/cmsis/arm_math.h diff --git a/hal/targets/cmsis/core_ca9.h b/targets/cmsis/core_ca9.h similarity index 100% rename from hal/targets/cmsis/core_ca9.h rename to targets/cmsis/core_ca9.h diff --git a/hal/targets/cmsis/core_caFunc.h b/targets/cmsis/core_caFunc.h similarity index 100% rename from hal/targets/cmsis/core_caFunc.h rename to targets/cmsis/core_caFunc.h diff --git a/hal/targets/cmsis/core_caInstr.h b/targets/cmsis/core_caInstr.h similarity index 100% rename from hal/targets/cmsis/core_caInstr.h rename to targets/cmsis/core_caInstr.h diff --git a/hal/targets/cmsis/core_ca_mmu.h b/targets/cmsis/core_ca_mmu.h similarity index 100% rename from hal/targets/cmsis/core_ca_mmu.h rename to targets/cmsis/core_ca_mmu.h diff --git a/hal/targets/cmsis/core_cm0.h b/targets/cmsis/core_cm0.h similarity index 100% rename from hal/targets/cmsis/core_cm0.h rename to targets/cmsis/core_cm0.h diff --git a/hal/targets/cmsis/core_cm0plus.h b/targets/cmsis/core_cm0plus.h similarity index 100% rename from hal/targets/cmsis/core_cm0plus.h rename to targets/cmsis/core_cm0plus.h diff --git a/hal/targets/cmsis/core_cm3.h b/targets/cmsis/core_cm3.h similarity index 100% rename from hal/targets/cmsis/core_cm3.h rename to targets/cmsis/core_cm3.h diff --git a/hal/targets/cmsis/core_cm4.h b/targets/cmsis/core_cm4.h similarity index 100% rename from hal/targets/cmsis/core_cm4.h rename to targets/cmsis/core_cm4.h diff --git a/hal/targets/cmsis/core_cm4_simd.h b/targets/cmsis/core_cm4_simd.h similarity index 100% rename from hal/targets/cmsis/core_cm4_simd.h rename to targets/cmsis/core_cm4_simd.h diff --git a/hal/targets/cmsis/core_cm7.h b/targets/cmsis/core_cm7.h similarity index 100% rename from hal/targets/cmsis/core_cm7.h rename to targets/cmsis/core_cm7.h diff --git a/hal/targets/cmsis/core_cmFunc.h b/targets/cmsis/core_cmFunc.h similarity index 100% rename from hal/targets/cmsis/core_cmFunc.h rename to targets/cmsis/core_cmFunc.h diff --git a/hal/targets/cmsis/core_cmInstr.h b/targets/cmsis/core_cmInstr.h similarity index 100% rename from hal/targets/cmsis/core_cmInstr.h rename to targets/cmsis/core_cmInstr.h diff --git a/hal/targets/cmsis/core_cmSecureAccess.h b/targets/cmsis/core_cmSecureAccess.h similarity index 100% rename from hal/targets/cmsis/core_cmSecureAccess.h rename to targets/cmsis/core_cmSecureAccess.h diff --git a/hal/targets/cmsis/core_cmSimd.h b/targets/cmsis/core_cmSimd.h similarity index 100% rename from hal/targets/cmsis/core_cmSimd.h rename to targets/cmsis/core_cmSimd.h diff --git a/hal/targets/cmsis/core_sc000.h b/targets/cmsis/core_sc000.h similarity index 100% rename from hal/targets/cmsis/core_sc000.h rename to targets/cmsis/core_sc000.h diff --git a/hal/targets/cmsis/core_sc300.h b/targets/cmsis/core_sc300.h similarity index 100% rename from hal/targets/cmsis/core_sc300.h rename to targets/cmsis/core_sc300.h diff --git a/hal/targets.json b/targets/targets.json similarity index 98% rename from hal/targets.json rename to targets/targets.json index 23af151ec3..14a445299f 100644 --- a/hal/targets.json +++ b/targets/targets.json @@ -254,7 +254,8 @@ "progen": {"target": "mbed-lpc1768"}, "detect_code": ["1010"], "device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "DEBUG_AWARENESS", "ERROR_PATTERN", "ETHERNET", "I2C", "I2CSLAVE", "INTERRUPTIN", "LOCALFILESYSTEM", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SEMIHOST", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"], - "release_versions": ["2", "5"] + "release_versions": ["2", "5"], + "features": ["LWIP"] }, "ARCH_PRO": { "supported_form_factors": ["ARDUINO"], @@ -265,7 +266,8 @@ "inherits": ["LPCTarget"], "progen": {"target": "arch-pro"}, "device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "DEBUG_AWARENESS", "ERROR_PATTERN", "ETHERNET", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"], - "release_versions": ["2", "5"] + "release_versions": ["2", "5"], + "features": ["LWIP"] }, "UBLOX_C027": { "supported_form_factors": ["ARDUINO"], @@ -276,7 +278,8 @@ "inherits": ["LPCTarget"], "progen": {"target": "ublox-c027"}, "device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "DEBUG_AWARENESS", "ERROR_RED", "ETHERNET", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"], - "release_versions": ["2", "5"] + "release_versions": ["2", "5"], + "features": ["LWIP"] }, "XBED_LPC1768": { "inherits": ["LPCTarget"], @@ -566,7 +569,7 @@ "progen": {"target": "frdm-k64f"}, "detect_code": ["0240"], "device_has": ["ANALOGIN", "ANALOGOUT", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES", "STORAGE", "TRNG"], - "features": ["IPV4", "STORAGE"], + "features": ["LWIP", "STORAGE"], "release_versions": ["2", "5"] }, "MTS_GAMBIT": { @@ -589,7 +592,7 @@ "default_toolchain": "ARM", "detect_code": ["0214"], "progen": {"target": "hexiwear-k64f"}, - "device_has": ["ANALOGIN", "ANALOGOUT", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"], + "device_has": ["ANALOGIN", "ANALOGOUT", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES", "TRNG"], "default_lib": "std", "release_versions": ["2", "5"] }, @@ -624,7 +627,7 @@ "core": "Cortex-M0", "default_toolchain": "uARM", "extra_labels": ["STM", "STM32F0", "STM32F031K6"], - "macros": ["DEVICE_RTC_LSI=1"], + "macros": ["RTC_LSI=1"], "supported_toolchains": ["ARM", "uARM", "IAR", "GCC_ARM"], "inherits": ["Target"], "progen": {"target": "nucleo-f031k6"}, @@ -638,7 +641,7 @@ "core": "Cortex-M0", "default_toolchain": "uARM", "extra_labels": ["STM", "STM32F0", "STM32F042K6"], - "macros": ["DEVICE_RTC_LSI=1"], + "macros": ["RTC_LSI=1"], "supported_toolchains": ["ARM", "uARM", "IAR", "GCC_ARM"], "inherits": ["Target"], "progen": {"target": "nucleo-f042k6"}, @@ -705,7 +708,7 @@ "progen": {"target": "nucleo-f207zg"}, "detect_code": ["0835"], "device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"], - "features": ["IPV4"], + "features": ["LWIP"], "release_versions": ["2", "5"] }, "NUCLEO_F302R8": { @@ -726,7 +729,7 @@ "core": "Cortex-M4F", "default_toolchain": "ARM", "extra_labels": ["STM", "STM32F3", "STM32F303K8"], - "macros": ["DEVICE_RTC_LSI=1"], + "macros": ["RTC_LSI=1"], "supported_toolchains": ["ARM", "uARM", "IAR", "GCC_ARM"], "inherits": ["Target"], "progen": {"target": "nucleo-f303k8"}, @@ -832,10 +835,10 @@ "extra_labels": ["STM", "STM32F4", "STM32F429", "STM32F429ZI", "STM32F429xx"], "supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"], "progen": {"target": "nucleo-f429zi"}, - "macros": ["DEVICE_RTC_LSI=1", "TRANSACTION_QUEUE_SIZE_SPI=2"], - "device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "ERROR_RED", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "RTC_LSI", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH", "STDIO_MESSAGES", "TRNG"], + "macros": ["RTC_LSI=1", "TRANSACTION_QUEUE_SIZE_SPI=2"], + "device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "ERROR_RED", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH", "STDIO_MESSAGES", "TRNG"], "detect_code": ["0796"], - "features": ["IPV4"], + "features": ["LWIP"], "release_versions": ["2", "5"] }, "NUCLEO_F446RE": { @@ -892,7 +895,7 @@ "supported_form_factors": ["ARDUINO"], "detect_code": ["0816"], "device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "I2C", "I2CSLAVE", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES", "TRNG"], - "features": ["IPV4"], + "features": ["LWIP"], "release_versions": ["2", "5"] }, "NUCLEO_F767ZI": { @@ -904,7 +907,7 @@ "progen": {"target": "nucleo-f767zi"}, "detect_code": ["0818"], "device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "I2C", "I2CSLAVE", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES", "TRNG"], - "features": ["IPV4"], + "features": ["LWIP"], "release_versions": ["2", "5"] }, "NUCLEO_L011K4": { @@ -1041,20 +1044,20 @@ "core": "Cortex-M4F", "default_toolchain": "ARM", "extra_labels": ["STM", "STM32F3", "STM32F303", "STM32F303VC"], - "macros": ["DEVICE_RTC_LSI=1"], + "macros": ["RTC_LSI=1"], "supported_toolchains": ["GCC_ARM"], - "device_has": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "RTC_LSI", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] + "device_has": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"] }, "DISCO_F334C8": { "inherits": ["Target"], "core": "Cortex-M4F", "default_toolchain": "ARM", "extra_labels": ["STM", "STM32F3", "STM32F334C8"], - "macros": ["DEVICE_RTC_LSI=1"], + "macros": ["RTC_LSI=1"], "supported_toolchains": ["ARM", "uARM", "IAR", "GCC_ARM"], "progen": {"target": "disco-f334c8"}, "detect_code": ["0810"], - "device_has": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "RTC_LSI", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"], + "device_has": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"], "default_lib": "small", "release_versions": ["2"] }, @@ -1072,7 +1075,7 @@ "core": "Cortex-M4F", "default_toolchain": "ARM", "extra_labels": ["STM", "STM32F4", "STM32F429", "STM32F429ZI", "STM32F429xx"], - "macros": ["DEVICE_RTC_LSI=1","TRANSACTION_QUEUE_SIZE_SPI=2"], + "macros": ["RTC_LSI=1","TRANSACTION_QUEUE_SIZE_SPI=2"], "supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"], "progen": {"target": "disco-f429zi"}, "device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "ERROR_RED", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH", "STDIO_MESSAGES", "TRNG"], @@ -1111,7 +1114,7 @@ "progen": {"target": "disco-f746ng"}, "detect_code": ["0815"], "device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "I2C", "I2CSLAVE", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES", "TRNG"], - "features": ["IPV4"], + "features": ["LWIP"], "release_versions": ["2", "5"] }, "DISCO_F769NI": { @@ -1123,7 +1126,7 @@ "progen": {"target": "disco-f769ni"}, "detect_code": ["0817"], "device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "I2C", "I2CSLAVE", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"], - "features": ["IPV4"], + "features": ["LWIP"], "release_versions": ["2"] }, "DISCO_L476VG": { @@ -1192,7 +1195,7 @@ "core": "Cortex-M3", "default_toolchain": "uARM", "extra_labels": ["STM", "STM32L1", "STM32L152RC"], - "macros": ["DEVICE_RTC_LSI=1"], + "macros": ["RTC_LSI=1"], "supported_toolchains": ["ARM", "uARM", "IAR", "GCC_ARM"], "progen": {"target": "stm32l151rc"}, "detect_code": ["4100"], @@ -1209,7 +1212,7 @@ "macros": ["TRANSACTION_QUEUE_SIZE_SPI=2"], "device_has": ["ANALOGIN", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH", "STDIO_MESSAGES"] }, - "UBLOX_C029": { + "UBLOX_EVK_ODIN_W2": { "supported_form_factors": ["ARDUINO"], "core": "Cortex-M4F", "default_toolchain": "ARM", @@ -1218,7 +1221,7 @@ "macros": ["HSE_VALUE=24000000", "HSE_STARTUP_TIMEOUT=5000", "CB_INTERFACE_SDIO","CB_CHIP_WL18XX","SUPPORT_80211D_ALWAYS","WLAN_ENABLED"], "inherits": ["Target"], "device_has": ["ANALOGIN", "CAN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"], - "features": ["IPV4"], + "features": ["LWIP"], "release_versions": ["5"] }, "NZ32_SC151": { @@ -1227,7 +1230,7 @@ "default_toolchain": "uARM", "program_cycle_s": 1.5, "extra_labels": ["STM", "STM32L1", "STM32L151RC"], - "macros": ["DEVICE_RTC_LSI=1"], + "macros": ["RTC_LSI=1"], "supported_toolchains": ["ARM", "uARM", "GCC_ARM"], "progen": {"target": "stm32l151rc"}, "device_has": ["ANALOGIN", "ANALOGOUT", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"], @@ -1725,7 +1728,7 @@ } }, "device_has": ["ANALOGIN", "CAN", "ERROR_PATTERN", "ETHERNET", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SPI", "SPISLAVE", "SPI_ASYNCH", "STDIO_MESSAGES"], - "features": ["IPV4"], + "features": ["LWIP"], "release_versions": ["2", "5"] }, "VK_RZ_A1H": { @@ -1742,7 +1745,7 @@ }, "program_cycle_s": 2, "device_has": ["ANALOGIN", "CAN", "ERROR_PATTERN", "ETHERNET", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_FC", "SPI", "SPISLAVE", "STDIO_MESSAGES"], - "features": ["IPV4"], + "features": ["LWIP"], "default_lib": "std", "release_versions": ["2", "5"] }, @@ -1992,7 +1995,7 @@ "NRF51_DONGLE": { "inherits": ["MCU_NRF51_32K_UNIFIED"], "progen": {"target": "nrf51-dongle"}, - "device_has": ["ERROR_PATTERN", "I2C", "I2C_ASYNCH", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SLEEP", "SPI", "SPI_ASYNCH", "SPISLAVE"], + "device_has": ["ERROR_PATTERN", "I2C", "I2C_ASYNCH", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SLEEP", "SPI", "SPI_ASYNCH", "SPISLAVE"], "release_versions": ["2", "5"] }, "MCU_NRF52": { @@ -2086,9 +2089,9 @@ "inherits": ["Target"], "progen": {"target": "numaker-pfm-nuc472"}, "device_has": ["ANALOGIN", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH", "TRNG"], - "features": ["IPV4"], + "features": ["LWIP"], "release_versions": ["2", "5"] - }, + }, "NCS36510": { "inherits": ["Target"], "core": "Cortex-M3", diff --git a/tools/build.py b/tools/build.py index 7915ed03a4..2749776a08 100644 --- a/tools/build.py +++ b/tools/build.py @@ -31,6 +31,7 @@ from tools.toolchains import TOOLCHAINS, TOOLCHAIN_CLASSES, TOOLCHAIN_PATHS from tools.toolchains import mbedToolchain from tools.targets import TARGET_NAMES, TARGET_MAP from tools.options import get_default_options_parser +from tools.options import extract_profile from tools.build_api import build_library, build_mbed_libs, build_lib from tools.build_api import mcu_toolchain_matrix from tools.build_api import static_analysis_scan, static_analysis_scan_lib, static_analysis_scan_library @@ -222,13 +223,20 @@ if __name__ == '__main__': try: mcu = TARGET_MAP[target] # CMSIS and MBED libs analysis - static_analysis_scan(mcu, toolchain, CPPCHECK_CMD, CPPCHECK_MSG_FORMAT, verbose=options.verbose, jobs=options.jobs) + profile = extract_profile(parser, options, toolchain) + static_analysis_scan( + mcu, toolchain, CPPCHECK_CMD, CPPCHECK_MSG_FORMAT, + verbose=options.verbose, jobs=options.jobs, + build_profile=profile) for lib_id in libraries: # Static check for library - static_analysis_scan_lib(lib_id, mcu, toolchain, CPPCHECK_CMD, CPPCHECK_MSG_FORMAT, - options=options.options, - extra_verbose=options.extra_verbose_notify, verbose=options.verbose, jobs=options.jobs, clean=options.clean, - macros=options.macros) + static_analysis_scan_lib( + lib_id, mcu, toolchain, CPPCHECK_CMD, + CPPCHECK_MSG_FORMAT, + extra_verbose=options.extra_verbose_notify, + verbose=options.verbose, jobs=options.jobs, + clean=options.clean, macros=options.macros, + build_profile=profile) pass except Exception, e: if options.verbose: @@ -248,9 +256,9 @@ if __name__ == '__main__': else: try: mcu = TARGET_MAP[target] + profile = extract_profile(parser, options, toolchain) if options.source_dir: lib_build_res = build_library(options.source_dir, options.build_dir, mcu, toolchain, - options=options.options, extra_verbose=options.extra_verbose_notify, verbose=options.verbose, silent=options.silent, @@ -258,26 +266,27 @@ if __name__ == '__main__': clean=options.clean, archive=(not options.no_archive), macros=options.macros, - name=options.artifact_name) + name=options.artifact_name, + build_profile=profile) else: lib_build_res = build_mbed_libs(mcu, toolchain, - options=options.options, extra_verbose=options.extra_verbose_notify, verbose=options.verbose, silent=options.silent, jobs=options.jobs, clean=options.clean, - macros=options.macros) + macros=options.macros, + build_profile=profile) for lib_id in libraries: build_lib(lib_id, mcu, toolchain, - options=options.options, extra_verbose=options.extra_verbose_notify, verbose=options.verbose, silent=options.silent, clean=options.clean, macros=options.macros, - jobs=options.jobs) + jobs=options.jobs, + build_profile=profile) if lib_build_res: successes.append(tt_id) else: diff --git a/tools/build_api.py b/tools/build_api.py index 4718e8da09..eaebbd01a1 100644 --- a/tools/build_api.py +++ b/tools/build_api.py @@ -19,14 +19,16 @@ import re import tempfile from types import ListType from shutil import rmtree -from os.path import join, exists, basename, abspath, normpath +from os.path import join, exists, dirname, basename, abspath, normpath from os import linesep, remove from time import time from tools.utils import mkdir, run_cmd, run_cmd_ext, NotSupportedException,\ ToolException, InvalidReleaseTargetException -from tools.paths import MBED_TARGETS_PATH, MBED_LIBRARIES, MBED_API, MBED_HAL,\ - MBED_COMMON, MBED_CONFIG_FILE +from tools.paths import MBED_TARGETS_PATH, MBED_LIBRARIES, MBED_HEADER,\ + MBED_DRIVERS, MBED_PLATFORM, MBED_HAL, MBED_CONFIG_FILE,\ + MBED_LIBRARIES_DRIVERS, MBED_LIBRARIES_PLATFORM, MBED_LIBRARIES_HAL,\ + BUILD_DIR from tools.targets import TARGET_NAMES, TARGET_MAP from tools.libraries import Library from tools.toolchains import TOOLCHAIN_CLASSES @@ -274,10 +276,10 @@ def get_mbed_official_release(version): def prepare_toolchain(src_paths, target, toolchain_name, - macros=None, options=None, clean=False, jobs=1, + macros=None, clean=False, jobs=1, notify=None, silent=False, verbose=False, extra_verbose=False, config=None, - app_config=None): + app_config=None, build_profile=None): """ Prepares resource related objects - toolchain, target, config Positional arguments: @@ -287,7 +289,6 @@ def prepare_toolchain(src_paths, target, toolchain_name, Keyword arguments: macros - additional macros - options - general compiler options like debug-symbols or small-build clean - Rebuild everything if True jobs - how many compilers we can run at once notify - Notify function for logs @@ -296,6 +297,7 @@ def prepare_toolchain(src_paths, target, toolchain_name, extra_verbose - even more output! config - a Config object to use instead of creating one app_config - location of a chosen mbed_app.json file + build_profile - a dict of flags that will be passed to the compiler """ # We need to remove all paths which are repeated to avoid @@ -303,14 +305,14 @@ def prepare_toolchain(src_paths, target, toolchain_name, src_paths = [src_paths[0]] + list(set(src_paths[1:])) # If the configuration object was not yet created, create it now - config = config or Config(target, src_paths) + config = config or Config(target, src_paths, app_config=app_config) target = config.target # Toolchain instance try: toolchain = TOOLCHAIN_CLASSES[toolchain_name]( - target, options, notify, macros, silent, - extra_verbose=extra_verbose) + target, notify, macros, silent, + extra_verbose=extra_verbose, build_profile=build_profile) except KeyError: raise KeyError("Toolchain %s not supported" % toolchain_name) @@ -361,12 +363,12 @@ def scan_resources(src_paths, toolchain, dependencies_paths=None, return resources def build_project(src_paths, build_path, target, toolchain_name, - libraries_paths=None, options=None, linker_script=None, + libraries_paths=None, linker_script=None, clean=False, notify=None, verbose=False, name=None, macros=None, inc_dirs=None, jobs=1, silent=False, report=None, properties=None, project_id=None, project_description=None, extra_verbose=False, config=None, - app_config=None): + app_config=None, build_profile=None): """ Build a project. A project may be a test or a user program. Positional arguments: @@ -378,7 +380,6 @@ def build_project(src_paths, build_path, target, toolchain_name, Keyword arguments: libraries_paths - The location of libraries to include when linking - options - general compiler options like debug-symbols or small-build linker_script - the file that drives the linker to do it's job clean - Rebuild everything if True notify - Notify function for logs @@ -395,6 +396,7 @@ def build_project(src_paths, build_path, target, toolchain_name, extra_verbose - even more output! config - a Config object to use instead of creating one app_config - location of a chosen mbed_app.json file + build_profile - a dict of flags that will be passed to the compiler """ # Convert src_path to a list if needed @@ -411,9 +413,10 @@ def build_project(src_paths, build_path, target, toolchain_name, # Pass all params to the unified prepare_toolchain() toolchain = prepare_toolchain( - src_paths, target, toolchain_name, macros=macros, options=options, - clean=clean, jobs=jobs, notify=notify, silent=silent, verbose=verbose, - extra_verbose=extra_verbose, config=config, app_config=app_config) + src_paths, target, toolchain_name, macros=macros, clean=clean, + jobs=jobs, notify=notify, silent=silent, verbose=verbose, + extra_verbose=extra_verbose, config=config, app_config=app_config, + build_profile=build_profile) # The first path will give the name to the library if name is None: @@ -451,6 +454,8 @@ def build_project(src_paths, build_path, target, toolchain_name, # Link Program res, _ = toolchain.link_program(resources, build_path, name) + resources.detect_duplicates(toolchain) + if report != None: end = time() cur_result["elapsed_time"] = end - start @@ -483,11 +488,12 @@ def build_project(src_paths, build_path, target, toolchain_name, raise def build_library(src_paths, build_path, target, toolchain_name, - dependencies_paths=None, options=None, name=None, clean=False, + dependencies_paths=None, name=None, clean=False, archive=True, notify=None, verbose=False, macros=None, inc_dirs=None, jobs=1, silent=False, report=None, properties=None, extra_verbose=False, project_id=None, - remove_config_header_file=False, app_config=None): + remove_config_header_file=False, app_config=None, + build_profile=None): """ Build a library Positional arguments: @@ -499,7 +505,6 @@ def build_library(src_paths, build_path, target, toolchain_name, Keyword arguments: dependencies_paths - The location of libraries to include when linking - options - general compiler options like debug-symbols or small-build name - the name of the library clean - Rebuild everything if True archive - whether the library will create an archive file @@ -515,6 +520,7 @@ def build_library(src_paths, build_path, target, toolchain_name, project_id - the name that goes in the report remove_config_header_file - delete config header file when done building app_config - location of a chosen mbed_app.json file + build_profile - a dict of flags that will be passed to the compiler """ # Convert src_path to a list if needed @@ -536,9 +542,10 @@ def build_library(src_paths, build_path, target, toolchain_name, # Pass all params to the unified prepare_toolchain() toolchain = prepare_toolchain( - src_paths, target, toolchain_name, macros=macros, options=options, - clean=clean, jobs=jobs, notify=notify, silent=silent, verbose=verbose, - extra_verbose=extra_verbose, app_config=app_config) + src_paths, target, toolchain_name, macros=macros, clean=clean, + jobs=jobs, notify=notify, silent=silent, verbose=verbose, + extra_verbose=extra_verbose, app_config=app_config, + build_profile=build_profile) # The first path will give the name to the library if name is None: @@ -639,9 +646,10 @@ def build_library(src_paths, build_path, target, toolchain_name, ### Legacy methods ### ###################### -def build_lib(lib_id, target, toolchain_name, options=None, verbose=False, +def build_lib(lib_id, target, toolchain_name, verbose=False, clean=False, macros=None, notify=None, jobs=1, silent=False, - report=None, properties=None, extra_verbose=False): + report=None, properties=None, extra_verbose=False, + build_profile=None): """ Legacy method for building mbed libraries Positional arguments: @@ -650,7 +658,6 @@ def build_lib(lib_id, target, toolchain_name, options=None, verbose=False, toolchain_name - the name of the build tools Keyword arguments: - options - general compiler options like debug-symbols or small-build clean - Rebuild everything if True verbose - Write the actual tools command lines used if True macros - additional macros @@ -660,6 +667,7 @@ def build_lib(lib_id, target, toolchain_name, options=None, verbose=False, report - a dict where a result may be appended properties - UUUUHHHHH beats me extra_verbose - even more output! + build_profile - a dict of flags that will be passed to the compiler """ lib = Library(lib_id) if not lib.is_supported(target, toolchain_name): @@ -715,8 +723,8 @@ def build_lib(lib_id, target, toolchain_name, options=None, verbose=False, try: # Toolchain instance toolchain = TOOLCHAIN_CLASSES[toolchain_name]( - target, options, macros=macros, notify=notify, silent=silent, - extra_verbose=extra_verbose) + target, macros=macros, notify=notify, silent=silent, + extra_verbose=extra_verbose, build_profile=build_profile) toolchain.VERBOSE = verbose toolchain.jobs = jobs toolchain.build_all = clean @@ -747,6 +755,7 @@ def build_lib(lib_id, target, toolchain_name, options=None, verbose=False, for path in dependencies_paths: lib_resources = toolchain.scan_resources(path) dependencies_include_dir.extend(lib_resources.inc_dirs) + dependencies_include_dir.extend(map(dirname, lib_resources.inc_dirs)) if inc_dirs: dependencies_include_dir.extend(inc_dirs) @@ -804,9 +813,10 @@ def build_lib(lib_id, target, toolchain_name, options=None, verbose=False, # We do have unique legacy conventions about how we build and package the mbed # library -def build_mbed_libs(target, toolchain_name, options=None, verbose=False, +def build_mbed_libs(target, toolchain_name, verbose=False, clean=False, macros=None, notify=None, jobs=1, silent=False, - report=None, properties=None, extra_verbose=False): + report=None, properties=None, extra_verbose=False, + build_profile=None): """ Function returns True is library was built and false if building was skipped @@ -815,7 +825,6 @@ def build_mbed_libs(target, toolchain_name, options=None, verbose=False, toolchain_name - the name of the build tools Keyword arguments: - options - general compiler options like debug-symbols or small-build verbose - Write the actual tools command lines used if True clean - Rebuild everything if True macros - additional macros @@ -825,6 +834,7 @@ def build_mbed_libs(target, toolchain_name, options=None, verbose=False, report - a dict where a result may be appended properties - UUUUHHHHH beats me extra_verbose - even more output! + build_profile - a dict of flags that will be passed to the compiler """ if report != None: @@ -859,8 +869,8 @@ def build_mbed_libs(target, toolchain_name, options=None, verbose=False, try: # Toolchain toolchain = TOOLCHAIN_CLASSES[toolchain_name]( - target, options, macros=macros, notify=notify, silent=silent, - extra_verbose=extra_verbose) + target, macros=macros, notify=notify, silent=silent, + extra_verbose=extra_verbose, build_profile=build_profile) toolchain.VERBOSE = verbose toolchain.jobs = jobs toolchain.build_all = clean @@ -897,29 +907,37 @@ def build_mbed_libs(target, toolchain_name, options=None, verbose=False, ('MBED', target.name, toolchain_name)) # Common Headers - toolchain.copy_files(toolchain.scan_resources(MBED_API).headers, - MBED_LIBRARIES) - toolchain.copy_files(toolchain.scan_resources(MBED_HAL).headers, - MBED_LIBRARIES) + toolchain.copy_files([MBED_HEADER], MBED_LIBRARIES) + library_incdirs = [dirname(MBED_LIBRARIES), MBED_LIBRARIES] + + for dir, dest in [(MBED_DRIVERS, MBED_LIBRARIES_DRIVERS), + (MBED_PLATFORM, MBED_LIBRARIES_PLATFORM), + (MBED_HAL, MBED_LIBRARIES_HAL)]: + resources = toolchain.scan_resources(dir) + toolchain.copy_files(resources.headers, dest) + library_incdirs.append(dest) # Target specific sources - hal_src = join(MBED_TARGETS_PATH, "hal") + hal_src = MBED_TARGETS_PATH hal_implementation = toolchain.scan_resources(hal_src) toolchain.copy_files(hal_implementation.headers + hal_implementation.hex_files + - hal_implementation.libraries, + hal_implementation.libraries + + [MBED_CONFIG_FILE], build_target, resources=hal_implementation) incdirs = toolchain.scan_resources(build_target).inc_dirs objects = toolchain.compile_sources(hal_implementation, tmp_path, - [MBED_LIBRARIES] + incdirs) + library_incdirs + incdirs) # Common Sources - mbed_resources = toolchain.scan_resources(MBED_COMMON) + mbed_resources = None + for dir in [MBED_DRIVERS, MBED_PLATFORM, MBED_HAL]: + mbed_resources += toolchain.scan_resources(dir) + objects += toolchain.compile_sources(mbed_resources, tmp_path, - [MBED_LIBRARIES] + incdirs) + library_incdirs + incdirs) # A number of compiled files need to be copied as objects as opposed to - # being part of the mbed library, for reasons that have to do with the # way the linker search for symbols in archives. These are: # - retarget.o: to make sure that the C standard lib symbols get # overridden @@ -1096,9 +1114,9 @@ def get_target_supported_toolchains(target): def static_analysis_scan(target, toolchain_name, cppcheck_cmd, - cppcheck_msg_format, options=None, verbose=False, + cppcheck_msg_format, verbose=False, clean=False, macros=None, notify=None, jobs=1, - extra_verbose=False): + extra_verbose=False, build_profile=None): """Perform static analysis on a target and toolchain combination Positional arguments: @@ -1108,18 +1126,19 @@ def static_analysis_scan(target, toolchain_name, cppcheck_cmd, cppcheck_msg_format - the format of the check messages Keyword arguments: - options - things like debug-symbols, or small-build, etc. verbose - more printing! clean - start from a clean slate macros - extra macros to compile with notify - the notification event handling function jobs - number of commands to run at once extra_verbose - even moar printing + build_profile - a dict of flags that will be passed to the compiler """ # Toolchain - toolchain = TOOLCHAIN_CLASSES[toolchain_name](target, options, - macros=macros, notify=notify, - extra_verbose=extra_verbose) + toolchain = TOOLCHAIN_CLASSES[toolchain_name](target, macros=macros, + notify=notify, + extra_verbose=extra_verbose, + build_profile=build_profile) toolchain.VERBOSE = verbose toolchain.jobs = jobs toolchain.build_all = clean @@ -1178,7 +1197,10 @@ def static_analysis_scan(target, toolchain_name, cppcheck_cmd, ('MBED', target.name, toolchain_name)) # Common Headers - toolchain.copy_files(toolchain.scan_resources(MBED_API).headers, + toolchain.copy_files([MBED_HEADER], MBED_LIBRARIES) + toolchain.copy_files(toolchain.scan_resources(MBED_DRIVERS).headers, + MBED_LIBRARIES) + toolchain.copy_files(toolchain.scan_resources(MBED_PLATFORM).headers, MBED_LIBRARIES) toolchain.copy_files(toolchain.scan_resources(MBED_HAL).headers, MBED_LIBRARIES) @@ -1208,8 +1230,8 @@ def static_analysis_scan(target, toolchain_name, cppcheck_cmd, # command line mbed_includes = ["-I%s" % i for i in mbed_resources.inc_dirs] mbed_includes.append("-I%s"% str(build_target)) - mbed_includes.append("-I%s"% str(MBED_COMMON)) - mbed_includes.append("-I%s"% str(MBED_API)) + mbed_includes.append("-I%s"% str(MBED_DRIVERS)) + mbed_includes.append("-I%s"% str(MBED_PLATFORM)) mbed_includes.append("-I%s"% str(MBED_HAL)) mbed_c_sources = " ".join(mbed_resources.c_sources) mbed_cpp_sources = " ".join(mbed_resources.cpp_sources) @@ -1241,9 +1263,9 @@ def static_analysis_scan(target, toolchain_name, cppcheck_cmd, def static_analysis_scan_lib(lib_id, target, toolchain, cppcheck_cmd, - cppcheck_msg_format, options=None, verbose=False, + cppcheck_msg_format, verbose=False, clean=False, macros=None, notify=None, jobs=1, - extra_verbose=False): + extra_verbose=False, build_profile=None): """Perform static analysis on a library as if it were to be compiled for a particular target and toolchain combination """ @@ -1251,9 +1273,9 @@ def static_analysis_scan_lib(lib_id, target, toolchain, cppcheck_cmd, if lib.is_supported(target, toolchain): static_analysis_scan_library( lib.source_dir, lib.build_dir, target, toolchain, cppcheck_cmd, - cppcheck_msg_format, lib.dependencies, options, verbose=verbose, + cppcheck_msg_format, lib.dependencies, verbose=verbose, clean=clean, macros=macros, notify=notify, jobs=jobs, - extra_verbose=extra_verbose) + extra_verbose=extra_verbose, build_profile=build_profile) else: print('Library "%s" is not yet supported on target %s with toolchain %s' % (lib_id, target.name, toolchain)) @@ -1261,10 +1283,10 @@ def static_analysis_scan_lib(lib_id, target, toolchain, cppcheck_cmd, def static_analysis_scan_library(src_paths, build_path, target, toolchain_name, cppcheck_cmd, cppcheck_msg_format, - dependencies_paths=None, options=None, + dependencies_paths=None, name=None, clean=False, notify=None, verbose=False, macros=None, jobs=1, - extra_verbose=False): + extra_verbose=False, build_profile=None): """ Function scans library for statically detectable defects Positional arguments: @@ -1277,7 +1299,6 @@ def static_analysis_scan_library(src_paths, build_path, target, toolchain_name, Keyword arguments: dependencies_paths - the paths to sources that this library depends on - options - things like debug-symbols, or small-build, etc. name - the name of this library clean - start from a clean slate notify - the notification event handling function @@ -1285,6 +1306,7 @@ def static_analysis_scan_library(src_paths, build_path, target, toolchain_name, macros - extra macros to compile with jobs - number of commands to run at once extra_verbose - even moar printing + build_profile - a dict of flags that will be passed to the compiler """ if type(src_paths) != ListType: src_paths = [src_paths] @@ -1295,9 +1317,10 @@ def static_analysis_scan_library(src_paths, build_path, target, toolchain_name, src_path) # Toolchain instance - toolchain = TOOLCHAIN_CLASSES[toolchain_name](target, options, - macros=macros, notify=notify, - extra_verbose=extra_verbose) + toolchain = TOOLCHAIN_CLASSES[toolchain_name](target, macros=macros, + notify=notify, + extra_verbose=extra_verbose, + build_profile=build_profile) toolchain.VERBOSE = verbose toolchain.jobs = jobs diff --git a/tools/build_release.py b/tools/build_release.py index ec46e32293..bb24eea3a3 100644 --- a/tools/build_release.py +++ b/tools/build_release.py @@ -29,6 +29,7 @@ sys.path.insert(0, ROOT) from tools.build_api import build_mbed_libs from tools.build_api import write_build_report from tools.build_api import get_mbed_official_release +from tools.options import extract_profile from tools.targets import TARGET_MAP, TARGET_NAMES from tools.test_exporters import ReportExporter, ResultExporterType from tools.test_api import SingleTestRunner @@ -48,6 +49,8 @@ if __name__ == '__main__': default=False, help="Verbose diagnostic output") parser.add_option("-t", "--toolchains", dest="toolchains", help="Use toolchains names separated by comma") + parser.add_option("--profile", dest="profile", action="append", default=[]) + parser.add_option("-p", "--platforms", dest="platforms", default="", help="Build only for the platform namesseparated by comma") parser.add_option("-L", "--list-config", action="store_true", dest="list_config", @@ -127,6 +130,8 @@ if __name__ == '__main__': test_spec["targets"][target_name] = toolchains single_test = SingleTestRunner(_muts=mut, + _parser=parser, + _opts=options, _opts_report_build_file_name=options.report_build_file_name, _test_spec=test_spec, _opts_test_by_names=",".join(test_names), @@ -162,14 +167,22 @@ if __name__ == '__main__': for toolchain in toolchains: id = "%s::%s" % (target_name, toolchain) + profile = extract_profile(parser, options, toolchain) + try: - built_mbed_lib = build_mbed_libs(TARGET_MAP[target_name], toolchain, verbose=options.verbose, jobs=options.jobs, report=build_report, properties=build_properties) + built_mbed_lib = build_mbed_libs(TARGET_MAP[target_name], + toolchain, + verbose=options.verbose, + jobs=options.jobs, + report=build_report, + properties=build_properties, + build_profile=profile) except Exception, e: print str(e) # copy targets.json file as part of the release - copy(join(dirname(abspath(__file__)), '..', 'hal', 'targets.json'), MBED_LIBRARIES) + copy(join(dirname(abspath(__file__)), '..', 'targets', 'targets.json'), MBED_LIBRARIES) # Write summary of the builds if options.report_build_file_name: diff --git a/tools/config.py b/tools/config.py index 59cdab1417..43edfc17ba 100644 --- a/tools/config.py +++ b/tools/config.py @@ -347,8 +347,10 @@ class Config(object): # Allowed features in configurations __allowed_features = [ - "UVISOR", "BLE", "CLIENT", "IPV4", "IPV6", "COMMON_PAL", "STORAGE" - ] + "UVISOR", "BLE", "CLIENT", "IPV4", "LWIP", "COMMON_PAL", "STORAGE", "NANOSTACK", + # Nanostack configurations + "LOWPAN_BORDER_ROUTER", "LOWPAN_HOST", "LOWPAN_ROUTER", "NANOSTACK_FULL", "THREAD_BORDER_ROUTER", "THREAD_END_DEVICE", "THREAD_ROUTER" + ] def __init__(self, tgt, top_level_dirs=None, app_config=None): """Construct a mbed configuration diff --git a/tools/export/README.md b/tools/export/README.md index 10277759ea..bf062acc71 100644 --- a/tools/export/README.md +++ b/tools/export/README.md @@ -1107,7 +1107,7 @@ Exporter IDE/Platform Support ✓ - UBLOX_C029 + UBLOX_EVK_ODIN_W2 - - - diff --git a/tools/export/__init__.py b/tools/export/__init__.py index 4b0a29471e..16e5d48563 100644 --- a/tools/export/__init__.py +++ b/tools/export/__init__.py @@ -21,7 +21,7 @@ import yaml from tools.export import uvision4, uvision5, codered, makefile, ds5_5, iar from tools.export import emblocks, coide, kds, simplicityv3, atmelstudio -from tools.export import sw4stm32, e2studio, zip +from tools.export import sw4stm32, e2studio, zip, cdt from tools.export.exporters import OldLibrariesException, FailedBuildException from tools.targets import TARGET_NAMES, EXPORT_MAP, TARGET_MAP @@ -45,7 +45,10 @@ EXPORTERS = { 'atmelstudio' : atmelstudio.AtmelStudio, 'sw4stm32' : sw4stm32.Sw4STM32, 'e2studio' : e2studio.E2Studio, - 'zip' : zip.ZIP, + 'eclipse_gcc_arm' : cdt.EclipseGcc, + 'eclipse_iar' : cdt.EclipseIAR, + 'eclipse_armc5' : cdt.EclipseArmc5, + 'zip' : zip.ZIP } ERROR_MESSAGE_UNSUPPORTED_TOOLCHAIN = """ diff --git a/tools/export/cdt/.cproject.tmpl b/tools/export/cdt/.cproject.tmpl new file mode 100644 index 0000000000..53cd29cfb3 --- /dev/null +++ b/tools/export/cdt/.cproject.tmpl @@ -0,0 +1,84 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tools/export/cdt/.project.tmpl b/tools/export/cdt/.project.tmpl new file mode 100644 index 0000000000..ce4e268083 --- /dev/null +++ b/tools/export/cdt/.project.tmpl @@ -0,0 +1,27 @@ + + + {{name}} + + + + + + org.eclipse.cdt.managedbuilder.core.genmakebuilder + clean,full,incremental, + + + + + org.eclipse.cdt.managedbuilder.core.ScannerConfigBuilder + full,incremental, + + + + + + org.eclipse.cdt.core.cnature + org.eclipse.cdt.core.ccnature + org.eclipse.cdt.managedbuilder.core.managedBuildNature + org.eclipse.cdt.managedbuilder.core.ScannerConfigNature + + diff --git a/tools/export/cdt/__init__.py b/tools/export/cdt/__init__.py new file mode 100644 index 0000000000..d62d88773e --- /dev/null +++ b/tools/export/cdt/__init__.py @@ -0,0 +1,51 @@ +from os.path import join, exists, realpath, relpath, basename +from os import makedirs + +from tools.export.makefile import Makefile, GccArm, Armc5, IAR + +class Eclipse(Makefile): + """Generic Eclipse project. Intended to be subclassed by classes that + specify a type of Makefile. + """ + def generate(self): + """Generate Makefile, .cproject & .project Eclipse project file, + py_ocd_settings launch file, and software link .p2f file + """ + super(Eclipse, self).generate() + ctx = { + 'name': self.project_name, + 'elf_location': join('.build',self.project_name)+'.elf', + 'c_symbols': self.toolchain.get_symbols(), + 'asm_symbols': self.toolchain.get_symbols(True), + 'target': self.target, + 'include_paths': self.resources.inc_dirs, + 'load_exe': str(self.LOAD_EXE).lower() + } + + if not exists(join(self.export_dir,'eclipse-extras')): + makedirs(join(self.export_dir,'eclipse-extras')) + + + self.gen_file('cdt/pyocd_settings.tmpl', ctx, + join('eclipse-extras',self.target+'_pyocd_settings.launch')) + self.gen_file('cdt/necessary_software.tmpl', ctx, + join('eclipse-extras','necessary_software.p2f')) + + cproj = relpath('.cproject',self.export_dir) + self.gen_file('cdt/.cproject.tmpl', ctx, + cproj) + proj = relpath('.project',self.export_dir) + self.gen_file('cdt/.project.tmpl', ctx, + proj) + + +class EclipseGcc(Eclipse, GccArm): + LOAD_EXE = True + +class EclipseArmc5(Eclipse, Armc5): + LOAD_EXE = False + +class EclipseIAR(Eclipse, IAR): + LOAD_EXE = True + + diff --git a/tools/export/cdt/necessary_software.tmpl b/tools/export/cdt/necessary_software.tmpl new file mode 100644 index 0000000000..8807d07492 --- /dev/null +++ b/tools/export/cdt/necessary_software.tmpl @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/tools/export/cdt/pyocd_settings.tmpl b/tools/export/cdt/pyocd_settings.tmpl new file mode 100644 index 0000000000..a34c0dbbd4 --- /dev/null +++ b/tools/export/cdt/pyocd_settings.tmpl @@ -0,0 +1,69 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tools/export/sw4stm32.py b/tools/export/sw4stm32.py index df8aafd77a..fa38f53abe 100644 --- a/tools/export/sw4stm32.py +++ b/tools/export/sw4stm32.py @@ -24,49 +24,47 @@ class Sw4STM32(Exporter): NAME = 'Sw4STM32' TOOLCHAIN = 'GCC_ARM' - # fp_hardware = no | fpv4-sp-d16 | fpv5-d16 - # fp_abi = soft | softfp | hard BOARDS = { - 'B96B_F446VE': {'name': 'B96B-F446VE', 'mcuId': 'STM32F446VETx', 'fp_hardware': 'fpv4-sp-d16', 'fp_abi': 'softfp'}, - 'DISCO_F051R8': {'name': 'STM32F0DISCOVERY', 'mcuId': 'STM32F051R8Tx', 'fp_hardware': 'no', 'fp_abi': 'soft' }, - 'DISCO_F303VC': {'name': 'STM32F3DISCOVERY', 'mcuId': 'STM32F303VCTx', 'fp_hardware': 'fpv4-sp-d16', 'fp_abi': 'softfp'}, - 'DISCO_F334C8': {'name': 'STM32F3348DISCOVERY', 'mcuId': 'STM32F334C8Tx', 'fp_hardware': 'fpv4-sp-d16', 'fp_abi': 'softfp'}, - 'DISCO_F401VC': {'name': 'STM32F401C-DISCO', 'mcuId': 'STM32F401VCTx', 'fp_hardware': 'fpv4-sp-d16', 'fp_abi': 'softfp'}, - 'DISCO_F407VG': {'name': 'STM32F4DISCOVERY', 'mcuId': 'STM32F407VGTx', 'fp_hardware': 'fpv4-sp-d16', 'fp_abi': 'softfp'}, - 'DISCO_F429ZI': {'name': 'STM32F429I-DISCO', 'mcuId': 'STM32F429ZITx', 'fp_hardware': 'fpv4-sp-d16', 'fp_abi': 'softfp'}, - 'DISCO_F469NI': {'name': 'DISCO-F469NI', 'mcuId': 'STM32F469NIHx', 'fp_hardware': 'fpv4-sp-d16', 'fp_abi': 'softfp'}, - 'DISCO_F746NG': {'name': 'STM32F746G-DISCO', 'mcuId': 'STM32F746NGHx', 'fp_hardware': 'fpv4-sp-d16', 'fp_abi': 'softfp'}, - 'DISCO_F769NI': {'name': 'DISCO-F769NI', 'mcuId': 'STM32F769NIHx', 'fp_hardware': 'fpv5-d16', 'fp_abi': 'softfp'}, - 'DISCO_L053C8': {'name': 'STM32L0538DISCOVERY', 'mcuId': 'STM32L053C8Tx', 'fp_hardware': 'no', 'fp_abi': 'soft' }, - 'DISCO_L476VG': {'name': 'STM32L476G-DISCO', 'mcuId': 'STM32L476VGTx', 'fp_hardware': 'fpv4-sp-d16', 'fp_abi': 'softfp'}, - 'NUCLEO_F030R8': {'name': 'NUCLEO-F030R8', 'mcuId': 'STM32F030R8Tx', 'fp_hardware': 'no', 'fp_abi': 'soft' }, - 'NUCLEO_F031K6': {'name': 'NUCLEO-F031K6', 'mcuId': 'STM32F031K6Tx', 'fp_hardware': 'no', 'fp_abi': 'soft' }, - 'NUCLEO_F042K6': {'name': 'NUCLEO-F042K6', 'mcuId': 'STM32F042K6Tx', 'fp_hardware': 'no', 'fp_abi': 'soft' }, - 'NUCLEO_F070RB': {'name': 'NUCLEO-F070RB', 'mcuId': 'STM32F070RBTx', 'fp_hardware': 'no', 'fp_abi': 'soft' }, - 'NUCLEO_F072RB': {'name': 'NUCLEO-F072RB', 'mcuId': 'STM32F072RBTx', 'fp_hardware': 'no', 'fp_abi': 'soft' }, - 'NUCLEO_F091RC': {'name': 'NUCLEO-F091RC', 'mcuId': 'STM32F091RCTx', 'fp_hardware': 'no', 'fp_abi': 'soft' }, - 'NUCLEO_F103RB': {'name': 'NUCLEO-F103RB', 'mcuId': 'STM32F103RBTx', 'fp_hardware': 'no', 'fp_abi': 'soft' }, - 'NUCLEO_F207ZG': {'name': 'NUCLEO-F207ZG', 'mcuId': 'STM32F207ZGTx', 'fp_hardware': 'no', 'fp_abi': 'soft' }, - 'NUCLEO_F302R8': {'name': 'NUCLEO-F302R8', 'mcuId': 'STM32F302R8Tx', 'fp_hardware': 'fpv4-sp-d16', 'fp_abi': 'softfp'}, - 'NUCLEO_F303K8': {'name': 'NUCLEO-F303K8', 'mcuId': 'STM32F303K8Tx', 'fp_hardware': 'fpv4-sp-d16', 'fp_abi': 'softfp'}, - 'NUCLEO_F303RE': {'name': 'NUCLEO-F303RE', 'mcuId': 'STM32F303RETx', 'fp_hardware': 'fpv4-sp-d16', 'fp_abi': 'softfp'}, - 'NUCLEO_F303ZE': {'name': 'NUCLEO-F303ZE', 'mcuId': 'STM32F303ZETx', 'fp_hardware': 'fpv4-sp-d16', 'fp_abi': 'softfp'}, - 'NUCLEO_F334R8': {'name': 'NUCLEO-F334R8', 'mcuId': 'STM32F334R8Tx', 'fp_hardware': 'fpv4-sp-d16', 'fp_abi': 'softfp'}, - 'NUCLEO_F401RE': {'name': 'NUCLEO-F401RE', 'mcuId': 'STM32F401RETx', 'fp_hardware': 'fpv4-sp-d16', 'fp_abi': 'softfp'}, - 'NUCLEO_F410RB': {'name': 'NUCLEO-F410RB', 'mcuId': 'STM32F410RBTx', 'fp_hardware': 'fpv4-sp-d16', 'fp_abi': 'softfp'}, - 'NUCLEO_F411RE': {'name': 'NUCLEO-F411RE', 'mcuId': 'STM32F411RETx', 'fp_hardware': 'fpv4-sp-d16', 'fp_abi': 'softfp'}, - 'NUCLEO_F429ZI': {'name': 'NUCLEO-F429ZI', 'mcuId': 'STM32F429ZITx', 'fp_hardware': 'fpv4-sp-d16', 'fp_abi': 'softfp'}, - 'NUCLEO_F446RE': {'name': 'NUCLEO-F446RE', 'mcuId': 'STM32F446RETx', 'fp_hardware': 'fpv4-sp-d16', 'fp_abi': 'softfp'}, - 'NUCLEO_F446ZE': {'name': 'NUCLEO-F446ZE', 'mcuId': 'STM32F446ZETx', 'fp_hardware': 'fpv4-sp-d16', 'fp_abi': 'softfp'}, - 'NUCLEO_F746ZG': {'name': 'NUCLEO-F746ZG', 'mcuId': 'STM32F746ZGTx', 'fp_hardware': 'fpv4-sp-d16', 'fp_abi': 'softfp'}, - 'NUCLEO_F767ZI': {'name': 'NUCLEO-F767ZI', 'mcuId': 'STM32F767ZITx', 'fp_hardware': 'fpv5-d16', 'fp_abi': 'softfp'}, - 'NUCLEO_L011K4': {'name': 'NUCLEO-L011K4', 'mcuId': 'STM32L011K4Tx', 'fp_hardware': 'no', 'fp_abi': 'soft' }, - 'NUCLEO_L031K6': {'name': 'NUCLEO-L031K6', 'mcuId': 'STM32L031K6Tx', 'fp_hardware': 'no', 'fp_abi': 'soft' }, - 'NUCLEO_L053R8': {'name': 'NUCLEO-L053R8', 'mcuId': 'STM32L053R8Tx', 'fp_hardware': 'no', 'fp_abi': 'soft' }, - 'NUCLEO_L073RZ': {'name': 'NUCLEO-L073RZ', 'mcuId': 'STM32L073RZTx', 'fp_hardware': 'no', 'fp_abi': 'soft' }, - 'NUCLEO_L152RE': {'name': 'NUCLEO-L152RE', 'mcuId': 'STM32L152RETx', 'fp_hardware': 'no', 'fp_abi': 'soft' }, - 'NUCLEO_L432KC': {'name': 'NUCLEO-L432KC', 'mcuId': 'STM32L432KCUx', 'fp_hardware': 'fpv4-sp-d16', 'fp_abi': 'softfp'}, - 'NUCLEO_L476RG': {'name': 'NUCLEO-L476RG', 'mcuId': 'STM32L476RGTx', 'fp_hardware': 'fpv4-sp-d16', 'fp_abi': 'softfp'}, + 'B96B_F446VE': {'name': 'B96B-F446VE', 'mcuId': 'STM32F446VETx'}, + 'DISCO_F051R8': {'name': 'STM32F0DISCOVERY', 'mcuId': 'STM32F051R8Tx'}, + 'DISCO_F303VC': {'name': 'STM32F3DISCOVERY', 'mcuId': 'STM32F303VCTx'}, + 'DISCO_F334C8': {'name': 'STM32F3348DISCOVERY', 'mcuId': 'STM32F334C8Tx'}, + 'DISCO_F401VC': {'name': 'STM32F401C-DISCO', 'mcuId': 'STM32F401VCTx'}, + 'DISCO_F407VG': {'name': 'STM32F4DISCOVERY', 'mcuId': 'STM32F407VGTx'}, + 'DISCO_F429ZI': {'name': 'STM32F429I-DISCO', 'mcuId': 'STM32F429ZITx'}, + 'DISCO_F469NI': {'name': 'DISCO-F469NI', 'mcuId': 'STM32F469NIHx'}, + 'DISCO_F746NG': {'name': 'STM32F746G-DISCO', 'mcuId': 'STM32F746NGHx'}, + 'DISCO_F769NI': {'name': 'DISCO-F769NI', 'mcuId': 'STM32F769NIHx'}, + 'DISCO_L053C8': {'name': 'STM32L0538DISCOVERY', 'mcuId': 'STM32L053C8Tx'}, + 'DISCO_L476VG': {'name': 'STM32L476G-DISCO', 'mcuId': 'STM32L476VGTx'}, + 'NUCLEO_F030R8': {'name': 'NUCLEO-F030R8', 'mcuId': 'STM32F030R8Tx'}, + 'NUCLEO_F031K6': {'name': 'NUCLEO-F031K6', 'mcuId': 'STM32F031K6Tx'}, + 'NUCLEO_F042K6': {'name': 'NUCLEO-F042K6', 'mcuId': 'STM32F042K6Tx'}, + 'NUCLEO_F070RB': {'name': 'NUCLEO-F070RB', 'mcuId': 'STM32F070RBTx'}, + 'NUCLEO_F072RB': {'name': 'NUCLEO-F072RB', 'mcuId': 'STM32F072RBTx'}, + 'NUCLEO_F091RC': {'name': 'NUCLEO-F091RC', 'mcuId': 'STM32F091RCTx'}, + 'NUCLEO_F103RB': {'name': 'NUCLEO-F103RB', 'mcuId': 'STM32F103RBTx'}, + 'NUCLEO_F207ZG': {'name': 'NUCLEO-F207ZG', 'mcuId': 'STM32F207ZGTx'}, + 'NUCLEO_F302R8': {'name': 'NUCLEO-F302R8', 'mcuId': 'STM32F302R8Tx'}, + 'NUCLEO_F303K8': {'name': 'NUCLEO-F303K8', 'mcuId': 'STM32F303K8Tx'}, + 'NUCLEO_F303RE': {'name': 'NUCLEO-F303RE', 'mcuId': 'STM32F303RETx'}, + 'NUCLEO_F303ZE': {'name': 'NUCLEO-F303ZE', 'mcuId': 'STM32F303ZETx'}, + 'NUCLEO_F334R8': {'name': 'NUCLEO-F334R8', 'mcuId': 'STM32F334R8Tx'}, + 'NUCLEO_F401RE': {'name': 'NUCLEO-F401RE', 'mcuId': 'STM32F401RETx'}, + 'NUCLEO_F410RB': {'name': 'NUCLEO-F410RB', 'mcuId': 'STM32F410RBTx'}, + 'NUCLEO_F411RE': {'name': 'NUCLEO-F411RE', 'mcuId': 'STM32F411RETx'}, + 'NUCLEO_F429ZI': {'name': 'NUCLEO-F429ZI', 'mcuId': 'STM32F429ZITx'}, + 'NUCLEO_F446RE': {'name': 'NUCLEO-F446RE', 'mcuId': 'STM32F446RETx'}, + 'NUCLEO_F446ZE': {'name': 'NUCLEO-F446ZE', 'mcuId': 'STM32F446ZETx'}, + 'NUCLEO_F746ZG': {'name': 'NUCLEO-F746ZG', 'mcuId': 'STM32F746ZGTx'}, + 'NUCLEO_F767ZI': {'name': 'NUCLEO-F767ZI', 'mcuId': 'STM32F767ZITx'}, + 'NUCLEO_L011K4': {'name': 'NUCLEO-L011K4', 'mcuId': 'STM32L011K4Tx'}, + 'NUCLEO_L031K6': {'name': 'NUCLEO-L031K6', 'mcuId': 'STM32L031K6Tx'}, + 'NUCLEO_L053R8': {'name': 'NUCLEO-L053R8', 'mcuId': 'STM32L053R8Tx'}, + 'NUCLEO_L073RZ': {'name': 'NUCLEO-L073RZ', 'mcuId': 'STM32L073RZTx'}, + 'NUCLEO_L152RE': {'name': 'NUCLEO-L152RE', 'mcuId': 'STM32L152RETx'}, + 'NUCLEO_L432KC': {'name': 'NUCLEO-L432KC', 'mcuId': 'STM32L432KCUx'}, + 'NUCLEO_L476RG': {'name': 'NUCLEO-L476RG', 'mcuId': 'STM32L476RGTx'}, } TARGETS = BOARDS.keys() @@ -79,6 +77,16 @@ class Sw4STM32(Exporter): return "%0.9u" % randint(0, 999999999) def generate(self): + fp_hardware = "no" + fp_abi = "soft" + core = self.target.core + if core == "Cortex-M4F" or core == "Cortex-M7F": + fp_hardware = "fpv4-sp-d16" + fp_abi = "soft-fp" + elif core == "Cortex-M7FD": + fp_hardware = "fpv5-d16" + fp_abi = "soft-fp" + libraries = [] for lib in self.resources.libraries: l, _ = splitext(basename(lib)) @@ -101,8 +109,8 @@ class Sw4STM32(Exporter): 'release_tool_compiler_uid': self.__generate_uid(), 'release_tool_compiler_input_uid': self.__generate_uid(), 'uid': self.__generate_uid(), - 'floating_point_hardware': self.BOARDS[self.target.upper()]['fp_hardware'], - 'floating_point_abi': self.BOARDS[self.target.upper()]['fp_abi'] + 'floating_point_hardware': fp_hardware, + 'floating_point_abi': fp_abi } self.__gen_dir('.settings') diff --git a/tools/export/uvision4.py b/tools/export/uvision4.py index 1bc41e46a9..02c630f26d 100644 --- a/tools/export/uvision4.py +++ b/tools/export/uvision4.py @@ -19,6 +19,7 @@ from project_generator_definitions.definitions import ProGenDef from tools.export.exporters import Exporter, ExporterTargetsProperty from tools.targets import TARGET_MAP, TARGET_NAMES +from tools.utils import remove_if_in # If you wish to add a new target, add it to project_generator_definitions, and then # define progen_target name in the target class (`` self.progen_target = 'my_target_name' ``) @@ -87,11 +88,11 @@ class Uvision4(Exporter): + self.flags['c_flags'] + self.flags['cxx_flags'])) # not compatible with c99 flag set in the template - project_data['misc']['c_flags'].remove("--c99") + remove_if_in(project_data['misc']['c_flags'], "--c99") # cpp is not required as it's implicit for cpp files - project_data['misc']['c_flags'].remove("--cpp") + remove_if_in(project_data['misc']['c_flags'], "--cpp") # we want no-vla for only cxx, but it's also applied for C in IDE, thus we remove it - project_data['misc']['c_flags'].remove("--no_vla") + remove_if_in(project_data['misc']['c_flags'], "--no_vla") project_data['misc']['ld_flags'] = self.flags['ld_flags'] project_data['build_dir'] = project_data['build_dir'] + '\\' + 'uvision4' diff --git a/tools/export/uvision5.py b/tools/export/uvision5.py index 5eb08a5803..5b4a6756e0 100644 --- a/tools/export/uvision5.py +++ b/tools/export/uvision5.py @@ -19,6 +19,7 @@ from project_generator_definitions.definitions import ProGenDef from tools.export.exporters import Exporter, ExporterTargetsProperty from tools.targets import TARGET_MAP, TARGET_NAMES +from tools.utils import remove_if_in # If you wish to add a new target, add it to project_generator_definitions, and then # define progen_target name in the target class (`` self.progen_target = 'my_target_name' ``) @@ -83,11 +84,12 @@ class Uvision5(Exporter): + self.flags['c_flags'] + self.flags['cxx_flags'])) # not compatible with c99 flag set in the template - project_data['misc']['c_flags'].remove("--c99") + remove_if_in(project_data['misc']['c_flags'], "--c99") # cpp is not required as it's implicit for cpp files - project_data['misc']['c_flags'].remove("--cpp") + remove_if_in(project_data['misc']['c_flags'], "--cpp") # we want no-vla for only cxx, but it's also applied for C in IDE, thus we remove it - project_data['misc']['c_flags'].remove("--no_vla") + remove_if_in(project_data['misc']['c_flags'], "--no_vla") + # not compatible with c99 flag set in the template project_data['misc']['ld_flags'] = self.flags['ld_flags'] i = 0 diff --git a/tools/git_hooks/__init__.py b/tools/git_hooks/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/tools/git_hooks/find_duplicates.py b/tools/git_hooks/find_duplicates.py new file mode 100755 index 0000000000..40531994e2 --- /dev/null +++ b/tools/git_hooks/find_duplicates.py @@ -0,0 +1,26 @@ +from os import walk +from os.path import join, abspath, dirname, basename, splitext +import sys + +ROOT = abspath(join(dirname(__file__), "..", "..")) +sys.path.insert(0, ROOT) + +from tools.toolchains.gcc import GCC_ARM +from tools.targets import TARGET_MAP +from argparse import ArgumentParser + +if __name__ == "__main__": + parser = ArgumentParser("Find duplicate file names within a directory structure") + parser.add_argument("dirs", help="Directories to search for duplicate file names" + , nargs="*") + parser.add_argument("--silent", help="Supress printing of filenames, just return number of duplicates", action="store_true") + args = parser.parse_args() + + toolchain = GCC_ARM(TARGET_MAP["K64F"]) + + resources = sum([toolchain.scan_resources(d) for d in args.dirs], None) + + scanned_files = {} + + exit(resources.detect_duplicates(toolchain)) + diff --git a/tools/libraries.py b/tools/libraries.py index 598572f910..918356ddfb 100644 --- a/tools/libraries.py +++ b/tools/libraries.py @@ -14,8 +14,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ -from tools.paths import MBED_RTX, RTOS_LIBRARIES, MBED_LIBRARIES, MBED_RPC,\ - RTOS_ABSTRACTION, RPC_LIBRARY, USB, USB_LIBRARIES, USB_HOST,\ +from tools.paths import MBED_RTX, RTOS, RTOS_LIBRARIES, MBED_LIBRARIES,\ + MBED_RPC, RPC_LIBRARY, USB, USB_LIBRARIES, USB_HOST,\ USB_HOST_LIBRARIES, FAT_FS, DSP_ABSTRACTION, DSP_CMSIS, DSP_LIBRARIES,\ SD_FS, FS_LIBRARY, ETH_SOURCES, LWIP_SOURCES, ETH_LIBRARY, UBLOX_SOURCES,\ UBLOX_LIBRARY, CELLULAR_SOURCES, CELLULAR_USB_SOURCES, CPPUTEST_SRC,\ @@ -36,7 +36,7 @@ LIBRARIES = [ }, { "id": "rtos", - "source_dir": RTOS_ABSTRACTION, + "source_dir": RTOS, "build_dir": RTOS_LIBRARIES, "dependencies": [MBED_LIBRARIES, MBED_RTX], }, @@ -62,7 +62,7 @@ LIBRARIES = [ "id": "usb_host", "source_dir": USB_HOST, "build_dir": USB_HOST_LIBRARIES, - "dependencies": [MBED_LIBRARIES, FAT_FS, MBED_RTX, RTOS_ABSTRACTION], + "dependencies": [MBED_LIBRARIES, FAT_FS, MBED_RTX, RTOS_LIBRARIES], }, # DSP libraries diff --git a/tools/make.py b/tools/make.py index 4434931f8e..28767cd70c 100644 --- a/tools/make.py +++ b/tools/make.py @@ -19,6 +19,7 @@ limitations under the License. TEST BUILD & RUN """ import sys +import json from time import sleep from shutil import copy from os.path import join, abspath, dirname @@ -29,6 +30,7 @@ sys.path.insert(0, ROOT) from tools.utils import args_error from tools.paths import BUILD_DIR +from tools.paths import MBED_LIBRARIES from tools.paths import RTOS_LIBRARIES from tools.paths import RPC_LIBRARY from tools.paths import ETH_LIBRARY @@ -41,6 +43,7 @@ from tools.tests import TEST_MBED_LIB from tools.tests import test_known, test_name_known from tools.targets import TARGET_MAP from tools.options import get_default_options_parser +from tools.options import extract_profile from tools.build_api import build_project from tools.build_api import mcu_toolchain_matrix from utils import argparse_filestring_type @@ -220,6 +223,7 @@ if __name__ == '__main__': if options.source_dir and not options.build_dir: args_error(parser, "argument --build is required when argument --source is provided") + if options.color: # This import happens late to prevent initializing colorization when we don't need it import colorize @@ -271,7 +275,8 @@ if __name__ == '__main__': build_dir = options.build_dir try: - bin_file = build_project(test.source_dir, build_dir, mcu, toolchain, test.dependencies, options.options, + bin_file = build_project(test.source_dir, build_dir, mcu, toolchain, + test.dependencies, linker_script=options.linker_script, clean=options.clean, verbose=options.verbose, @@ -280,7 +285,11 @@ if __name__ == '__main__': macros=options.macros, jobs=options.jobs, name=options.artifact_name, - app_config=options.app_config) + app_config=options.app_config, + inc_dirs=[dirname(MBED_LIBRARIES)], + build_profile=extract_profile(parser, + options, + toolchain)) print 'Image: %s'% bin_file if options.disk: diff --git a/tools/memap.py b/tools/memap.py index 669fc41a8b..abc3282a53 100644 --- a/tools/memap.py +++ b/tools/memap.py @@ -10,10 +10,11 @@ import json import argparse from prettytable import PrettyTable -from tools.utils import argparse_filestring_type, \ +from utils import argparse_filestring_type, \ argparse_lowercase_hyphen_type, argparse_uppercase_type DEBUG = False + RE_ARMCC = re.compile( r'^\s+0x(\w{8})\s+0x(\w{8})\s+(\w+)\s+(\w+)\s+(\d+)\s+[*]?.+\s+(.+)$') RE_IAR = re.compile( @@ -37,10 +38,12 @@ class MemapParser(object): # sections to print info (generic for all toolchains) sections = ('.text', '.data', '.bss', '.heap', '.stack') - def __init__(self): + def __init__(self, detailed_misc=False): """ General initialization """ - + # + self.detailed_misc = detailed_misc + # list of all modules and their sections self.modules = dict() @@ -51,9 +54,14 @@ class MemapParser(object): # list of all object files and mappting to module names self.object_to_module = dict() - # Memory usage summary structure + # Memory report (sections + summary) + self.mem_report = [] + + # Just the memory summary section self.mem_summary = dict() + self.subtotal = dict() + def module_add(self, module_name, size, section): """ Adds a module / section to the list @@ -90,8 +98,8 @@ class MemapParser(object): else: return False # everything else, means no change in section - @staticmethod - def path_object_to_module_name(txt): + + def path_object_to_module_name(self, txt): """ Parse a path to object file to extract it's module and object data Positional arguments: @@ -114,9 +122,17 @@ class MemapParser(object): module_name = data[0] + '/' + data[1] return [module_name, object_name] - else: + + elif self.detailed_misc: + rex_obj_name = r'^.+\/(.+\.o\)*)$' + test_rex_obj_name = re.match(rex_obj_name, txt) + if test_rex_obj_name: + object_name = test_rex_obj_name.group(1) + return ['Misc/' + object_name, ""] + + return ['Misc', ""] + else: return ['Misc', ""] - def parse_section_gcc(self, line): """ Parse data from a section of gcc map file @@ -399,68 +415,27 @@ class MemapParser(object): print "I/O error({0}): {1}".format(error.errno, error.strerror) return False - subtotal = dict() - for k in self.sections: - subtotal[k] = 0 - - # Calculate misc flash sections - misc_flash_mem = 0 - for i in self.modules: - for k in self.misc_flash_sections: - if self.modules[i][k]: - misc_flash_mem += self.modules[i][k] - - json_obj = [] - for i in sorted(self.modules): - - row = [] - - json_obj.append({ - "module":i, - "size":{ - k:self.modules[i][k] for k in self.print_sections - } - }) - - summary = { - 'summary':{ - 'static_ram': (subtotal['.data'] + subtotal['.bss']), - 'heap': (subtotal['.heap']), - 'stack': (subtotal['.stack']), - 'total_ram': (subtotal['.data'] + subtotal['.bss'] + - subtotal['.heap']+subtotal['.stack']), - 'total_flash': (subtotal['.text'] + subtotal['.data'] + - misc_flash_mem), - } - } - - self.mem_summary = json_obj + [summary] - to_call = {'json': self.generate_json, 'csv-ci': self.generate_csv, 'table': self.generate_table}[export_format] - to_call(subtotal, misc_flash_mem, file_desc) + to_call(file_desc) if file_desc is not sys.stdout: file_desc.close() - def generate_json(self, _, dummy, file_desc): + def generate_json(self, file_desc): """Generate a json file from a memory map Positional arguments: - subtotal - total sizes for each module - misc_flash_mem - size of misc flash sections file_desc - the file to write out the final report to """ - file_desc.write(json.dumps(self.mem_summary, indent=4)) + file_desc.write(json.dumps(self.mem_report, indent=4)) file_desc.write('\n') - def generate_csv(self, subtotal, misc_flash_mem, file_desc): + def generate_csv(self, file_desc): """Generate a CSV file from a memoy map Positional arguments: - subtotal - total sizes for each module - misc_flash_mem - size of misc flash sections file_desc - the file to write out the final report to """ csv_writer = csv.writer(file_desc, delimiter=',', @@ -474,36 +449,33 @@ class MemapParser(object): csv_sizes += [self.modules[i][k]] csv_module_section += ['static_ram'] - csv_sizes += [subtotal['.data']+subtotal['.bss']] + csv_sizes += [self.mem_summary['static_ram']] csv_module_section += ['heap'] - if subtotal['.heap'] == 0: + if self.mem_summary['heap'] == 0: csv_sizes += ['unknown'] else: - csv_sizes += [subtotal['.heap']] + csv_sizes += [self.mem_summary['heap']] csv_module_section += ['stack'] - if subtotal['.stack'] == 0: + if self.mem_summary['stack'] == 0: csv_sizes += ['unknown'] else: - csv_sizes += [subtotal['.stack']] + csv_sizes += [self.mem_summary['stack']] csv_module_section += ['total_ram'] - csv_sizes += [subtotal['.data'] + subtotal['.bss'] + - subtotal['.heap'] + subtotal['.stack']] + csv_sizes += [self.mem_summary['total_ram']] csv_module_section += ['total_flash'] - csv_sizes += [subtotal['.text']+subtotal['.data']+misc_flash_mem] + csv_sizes += [self.mem_summary['total_flash']] csv_writer.writerow(csv_module_section) csv_writer.writerow(csv_sizes) - def generate_table(self, subtotal, misc_flash_mem, file_desc): + def generate_table(self, file_desc): """Generate a table from a memoy map Positional arguments: - subtotal - total sizes for each module - misc_flash_mem - size of misc flash sections file_desc - the file to write out the final report to """ # Create table @@ -521,9 +493,6 @@ class MemapParser(object): for i in sorted(self.modules): row = [i] - for k in self.sections: - subtotal[k] += self.modules[i][k] - for k in self.print_sections: row.append(self.modules[i][k]) @@ -531,37 +500,73 @@ class MemapParser(object): subtotal_row = ['Subtotals'] for k in self.print_sections: - subtotal_row.append(subtotal[k]) + subtotal_row.append(self.subtotal[k]) table.add_row(subtotal_row) file_desc.write(table.get_string()) file_desc.write('\n') - if subtotal['.heap'] == 0: + if self.mem_summary['heap'] == 0: file_desc.write("Allocated Heap: unknown\n") else: file_desc.write("Allocated Heap: %s bytes\n" % - str(subtotal['.heap'])) + str(self.mem_summary['heap'])) - if subtotal['.stack'] == 0: + if self.mem_summary['stack'] == 0: file_desc.write("Allocated Stack: unknown\n") else: file_desc.write("Allocated Stack: %s bytes\n" % - str(subtotal['.stack'])) + str(self.mem_summary['stack'])) file_desc.write("Total Static RAM memory (data + bss): %s bytes\n" % - (str(subtotal['.data'] + subtotal['.bss']))) + (str(self.mem_summary['static_ram']))) file_desc.write( "Total RAM memory (data + bss + heap + stack): %s bytes\n" - % (str(subtotal['.data'] + subtotal['.bss'] + subtotal['.heap'] + - subtotal['.stack']))) + % (str(self.mem_summary['total_ram']))) file_desc.write("Total Flash memory (text + data + misc): %s bytes\n" % - (str(subtotal['.text'] + subtotal['.data'] + - misc_flash_mem))) + (str(self.mem_summary['total_flash']))) toolchains = ["ARM", "ARM_STD", "ARM_MICRO", "GCC_ARM", "IAR"] + def compute_report(self): + for k in self.sections: + self.subtotal[k] = 0 + + for i in sorted(self.modules): + for k in self.sections: + self.subtotal[k] += self.modules[i][k] + + # Calculate misc flash sections + self.misc_flash_mem = 0 + for i in self.modules: + for k in self.misc_flash_sections: + if self.modules[i][k]: + self.misc_flash_mem += self.modules[i][k] + + self.mem_summary = { + 'static_ram': (self.subtotal['.data'] + self.subtotal['.bss']), + 'heap': (self.subtotal['.heap']), + 'stack': (self.subtotal['.stack']), + 'total_ram': (self.subtotal['.data'] + self.subtotal['.bss'] + + self.subtotal['.heap']+self.subtotal['.stack']), + 'total_flash': (self.subtotal['.text'] + self.subtotal['.data'] + + self.misc_flash_mem), + } + + self.mem_report = [] + for i in sorted(self.modules): + self.mem_report.append({ + "module":i, + "size":{ + k:self.modules[i][k] for k in self.print_sections + } + }) + + self.mem_report.append({ + 'summary': self.mem_summary + }) + def parse(self, mapfile, toolchain): """ Parse and decode map file depending on the toolchain @@ -584,6 +589,9 @@ class MemapParser(object): self.parse_map_file_iar(file_input) else: result = False + + self.compute_report() + except IOError as error: print "I/O error({0}): {1}".format(error.errno, error.strerror) result = False @@ -620,6 +628,8 @@ def main(): ", ".join(MemapParser.export_formats)) parser.add_argument('-v', '--version', action='version', version=version) + + parser.add_argument('-d', '--detailed', action='store_true', help='Displays the elements in "Misc" in a detailed fashion', required=False) # Parse/run command if len(sys.argv) <= 1: @@ -630,7 +640,7 @@ def main(): args = parser.parse_args() # Create memap object - memap = MemapParser() + memap = MemapParser(detailed_misc=args.detailed) # Parse and decode a map file if args.file and args.toolchain: diff --git a/tools/options.py b/tools/options.py index 45f3cfb016..0c3b016d95 100644 --- a/tools/options.py +++ b/tools/options.py @@ -14,12 +14,14 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. """ +from json import load +from os.path import join, dirname from argparse import ArgumentParser from tools.toolchains import TOOLCHAINS from tools.targets import TARGET_NAMES from tools.utils import argparse_force_uppercase_type, \ argparse_lowercase_hyphen_type, argparse_many, \ - argparse_filestring_type + argparse_filestring_type, args_error def get_default_options_parser(add_clean=True, add_options=True, add_app_config=False): @@ -70,21 +72,35 @@ def get_default_options_parser(add_clean=True, add_options=True, help="clean the build directory") if add_options: - parser.add_argument("-o", "--options", action="append", - help=('Add a build argument ("save-asm": save the ' - 'asm generated by the compiler, "debug-info":' - ' generate debugging information, "analyze": ' - 'run Goanna static code analyzer")'), - type=argparse_lowercase_hyphen_type(['save-asm', - 'debug-info', - 'analyze', - 'small-lib', - 'std-lib'], - "build option")) - + parser.add_argument("--profile", dest="profile", action="append", + type=argparse_filestring_type, + default=[]) if add_app_config: parser.add_argument("--app-config", default=None, dest="app_config", type=argparse_filestring_type, help="Path of an app configuration file (Default is to look for 'mbed_app.json')") return parser + + +def extract_profile(parser, options, toolchain): + """Extract a Toolchain profile from parsed options + + Positional arguments: + parser - parser used to parse the command line arguments + options - The parsed command line arguments + toolchain - the toolchain that the profile should be extracted for + """ + profile = {'c': [], 'cxx': [], 'ld': [], 'common': [], 'asm': []} + filenames = options.profile or [join(dirname(__file__), "profiles", + "default.json")] + for filename in filenames: + contents = load(open(filename)) + try: + for key in profile.iterkeys(): + profile[key] += contents[toolchain][key] + except KeyError: + args_error(parser, ("argument --profile: toolchain {} is not" + " supported by profile {}").format(toolchain, + filename)) + return profile diff --git a/tools/paths.py b/tools/paths.py index ec9c5adc15..5fef51d4ae 100644 --- a/tools/paths.py +++ b/tools/paths.py @@ -24,23 +24,26 @@ from tools.settings import ROOT, BUILD_DIR BUILD_DIR = getenv("MBED_BUILD_DIR") or BUILD_DIR # Embedded Libraries Sources -LIB_DIR = join(ROOT, "libraries") +LIB_DIR = join(ROOT, "features/unsupported") TOOLS = join(ROOT, "tools") TOOLS_DATA = join(TOOLS, "data") TOOLS_BOOTLOADERS = join(TOOLS, "bootloaders") # mbed libraries -MBED_BASE = join(ROOT, "hal") +MBED_HEADER = join(ROOT, "mbed.h") +MBED_DRIVERS = join(ROOT, "drivers") +MBED_PLATFORM = join(ROOT, "platform") +MBED_HAL = join(ROOT, "hal") -MBED_API = join(MBED_BASE, "api") -MBED_COMMON = join(MBED_BASE, "common") -MBED_HAL = join(MBED_BASE, "hal") -MBED_TARGETS_PATH = join(MBED_BASE, "targets") +MBED_TARGETS_PATH = join(ROOT, "targets") MBED_LIBRARIES = join(BUILD_DIR, "mbed") +MBED_LIBRARIES_DRIVERS = join(MBED_LIBRARIES, "drivers") +MBED_LIBRARIES_PLATFORM = join(MBED_LIBRARIES, "platform") +MBED_LIBRARIES_HAL = join(MBED_LIBRARIES, "hal") -MBED_CONFIG_FILE = join(ROOT, "mbed_lib.json") +MBED_CONFIG_FILE = join(ROOT, "platform/mbed_lib.json") # Tests TEST_DIR = join(LIB_DIR, "tests") @@ -54,7 +57,6 @@ RPC_LIBRARY = join(BUILD_DIR, "rpc") # mbed RTOS RTOS = join(ROOT, "rtos") MBED_RTX = join(RTOS, "rtx") -RTOS_ABSTRACTION = join(RTOS, "rtos") RTOS_LIBRARIES = join(BUILD_DIR, "rtos") diff --git a/tools/profiles/all-warnings.json b/tools/profiles/all-warnings.json new file mode 100644 index 0000000000..a7e8cb71ed --- /dev/null +++ b/tools/profiles/all-warnings.json @@ -0,0 +1,9 @@ +{ + "GCC_ARM": { + "common": ["-pedantic"], + "asm": [], + "c": [], + "cxx": [], + "ld": [] + } +} diff --git a/tools/profiles/debug.json b/tools/profiles/debug.json new file mode 100644 index 0000000000..d776dca921 --- /dev/null +++ b/tools/profiles/debug.json @@ -0,0 +1,44 @@ +{ + "GCC_ARM": { + "common": ["-c", "-Wall", "-Wextra", + "-Wno-unused-parameter", "-Wno-missing-field-initializers", + "-fmessage-length=0", "-fno-exceptions", "-fno-builtin", + "-ffunction-sections", "-fdata-sections", "-funsigned-char", + "-MMD", "-fno-delete-null-pointer-checks", + "-fomit-frame-pointer", "-O0", "-g"], + "asm": ["-x", "assembler-with-cpp"], + "c": ["-std=gnu99"], + "cxx": ["-std=gnu++98", "-fno-rtti", "-Wvla"], + "ld": ["-Wl,--gc-sections", "-Wl,--wrap,main", "-Wl,--wrap,_malloc_r", + "-Wl,--wrap,_free_r", "-Wl,--wrap,_realloc_r", + "-Wl,--wrap,_calloc_r", "-Wl,--wrap,exit", "-Wl,--wrap,atexit"] + }, + "ARM": { + "common": ["-c", "--gnu", "-Otime", "--split_sections", + "--apcs=interwork", "--brief_diagnostics", "--restrict", + "--multibyte_chars", "-O0", "-g"], + "asm": [], + "c": ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"], + "cxx": ["--cpp", "--no_rtti", "--no_vla"], + "ld": [] + }, + "uARM": { + "common": ["-c", "--gnu", "-Otime", "--split_sections", + "--apcs=interwork", "--brief_diagnostics", "--restrict", + "--multibyte_chars", "-O0", "-D__MICROLIB", "-g", + "--library_type=microlib", "-DMBED_RTOS_SINGLE_THREAD"], + "asm": [], + "c": ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"], + "cxx": ["--cpp", "--no_rtti", "--no_vla"], + "ld": ["--library_type=microlib"] + }, + "IAR": { + "common": [ + "--no_wrap_diagnostics", "non-native end of line sequence", "-e", + "--diag_suppress=Pa050,Pa084,Pa093,Pa082", "-On", "-r"], + "asm": [], + "c": ["--vla"], + "cxx": ["--guard_calls", "--no_static_destruction"], + "ld": ["--skip_dynamic_initialization", "--threaded_lib"] + } +} diff --git a/tools/profiles/default.json b/tools/profiles/default.json new file mode 100644 index 0000000000..d4755e9b81 --- /dev/null +++ b/tools/profiles/default.json @@ -0,0 +1,44 @@ +{ + "GCC_ARM": { + "common": ["-c", "-Wall", "-Wextra", + "-Wno-unused-parameter", "-Wno-missing-field-initializers", + "-fmessage-length=0", "-fno-exceptions", "-fno-builtin", + "-ffunction-sections", "-fdata-sections", "-funsigned-char", + "-MMD", "-fno-delete-null-pointer-checks", + "-fomit-frame-pointer", "-Os"], + "asm": ["-x", "assembler-with-cpp"], + "c": ["-std=gnu99"], + "cxx": ["-std=gnu++98", "-fno-rtti", "-Wvla"], + "ld": ["-Wl,--gc-sections", "-Wl,--wrap,main", "-Wl,--wrap,_malloc_r", + "-Wl,--wrap,_free_r", "-Wl,--wrap,_realloc_r", + "-Wl,--wrap,_calloc_r", "-Wl,--wrap,exit", "-Wl,--wrap,atexit"] + }, + "ARM": { + "common": ["-c", "--gnu", "-Otime", "--split_sections", + "--apcs=interwork", "--brief_diagnostics", "--restrict", + "--multibyte_chars", "-O3"], + "asm": [], + "c": ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"], + "cxx": ["--cpp", "--no_rtti", "--no_vla"], + "ld": [] + }, + "uARM": { + "common": ["-c", "--gnu", "-Otime", "--split_sections", + "--apcs=interwork", "--brief_diagnostics", "--restrict", + "--multibyte_chars", "-O3", "-D__MICROLIB", + "--library_type=microlib", "-DMBED_RTOS_SINGLE_THREAD"], + "asm": [], + "c": ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"], + "cxx": ["--cpp", "--no_rtti", "--no_vla"], + "ld": ["--library_type=microlib"] + }, + "IAR": { + "common": [ + "--no_wrap_diagnostics", "-e", + "--diag_suppress=Pa050,Pa084,Pa093,Pa082", "-Oh"], + "asm": [], + "c": ["--vla"], + "cxx": ["--guard_calls", "--no_static_destruction"], + "ld": ["--skip_dynamic_initialization", "--threaded_lib"] + } +} diff --git a/tools/profiles/nanolib.json b/tools/profiles/nanolib.json new file mode 100644 index 0000000000..545120d0ac --- /dev/null +++ b/tools/profiles/nanolib.json @@ -0,0 +1,9 @@ +{ + "GCC_ARM": { + "common": [ "-DMBED_RTOS_SINGLE_THREAD"], + "asm": [], + "c": [], + "cxx": [], + "ld": [ "--specs=nano.specs"] + } +} diff --git a/tools/profiles/save-asm.json b/tools/profiles/save-asm.json new file mode 100644 index 0000000000..04128176d9 --- /dev/null +++ b/tools/profiles/save-asm.json @@ -0,0 +1,23 @@ +{ + "GCC_ARM": { + "common": ["-save-temps"], + "asm": [], + "c": [], + "cxx": [], + "ld": [] + }, + "ARM": { + "common": ["--asm", "--interleave"], + "asm": [], + "c": [], + "cxx": [], + "ld": [] + }, + "uARM": { + "common": ["--asm", "--interleave"], + "asm": [], + "c": [], + "cxx": [], + "ld": [] + } +} diff --git a/tools/project.py b/tools/project.py index 399faa7413..c75e7a94b4 100644 --- a/tools/project.py +++ b/tools/project.py @@ -10,7 +10,7 @@ from shutil import move, rmtree from argparse import ArgumentParser from os.path import normpath, realpath -from tools.paths import EXPORT_DIR, MBED_BASE, MBED_LIBRARIES +from tools.paths import EXPORT_DIR, MBED_HAL, MBED_LIBRARIES from tools.export import EXPORTERS, mcu_ide_matrix from tools.tests import TESTS, TEST_MAP from tools.tests import test_known, test_name_known, Test @@ -18,7 +18,8 @@ from tools.targets import TARGET_NAMES from tools.utils import argparse_filestring_type, argparse_many, args_error from tools.utils import argparse_force_lowercase_type from tools.utils import argparse_force_uppercase_type -from tools.project_api import export_project +from tools.project_api import export_project, get_exporter_toolchain +from tools.options import extract_profile def setup_project(ide, target, program=None, source_dir=None, build=None, export_path=None): @@ -52,7 +53,8 @@ def setup_project(ide, target, program=None, source_dir=None, build=None, export # Substitute the mbed library builds with their sources if MBED_LIBRARIES in test.dependencies: test.dependencies.remove(MBED_LIBRARIES) - test.dependencies.append(MBED_BASE) + test.dependencies.append(MBED_HAL) + src_paths = [test.source_dir] lib_paths = test.dependencies @@ -63,7 +65,8 @@ def setup_project(ide, target, program=None, source_dir=None, build=None, export def export(target, ide, build=None, src=None, macros=None, project_id=None, - clean=False, zip_proj=False, options=None, export_path=None, silent=False): + clean=False, zip_proj=False, build_profile=None, export_path=None, + silent=False): """Do an export of a project. Positional arguments: @@ -87,7 +90,7 @@ def export(target, ide, build=None, src=None, macros=None, project_id=None, return export_project(src, project_dir, target, ide, clean=clean, name=name, macros=macros, libraries_paths=lib, zip_proj=zip_name, - options=options, silent=silent) + build_profile=build_profile, silent=silent) def main(): @@ -167,11 +170,10 @@ def main(): dest="macros", help="Add a macro definition") - parser.add_argument("-o", - type=argparse_many(str), - dest="opts", - default=["debug-info"], - help="Toolchain options") + parser.add_argument("--profile", + type=argparse_filestring_type, + default=[], + help="Toolchain profile") options = parser.parse_args() @@ -220,10 +222,12 @@ def main(): if (options.program is None) and (not options.source_dir): args_error(parser, "one of -p, -n, or --source is required") # Export to selected toolchain + _, toolchain_name = get_exporter_toolchain(options.ide) + profile = extract_profile(parser, options, toolchain_name) export(options.mcu, options.ide, build=options.build, src=options.source_dir, macros=options.macros, project_id=options.program, clean=options.clean, - zip_proj=zip_proj, options=options.opts) + zip_proj=zip_proj, build_profile=profile) if __name__ == "__main__": diff --git a/tools/project_api.py b/tools/project_api.py index 0a64df0fc5..dc5871f217 100644 --- a/tools/project_api.py +++ b/tools/project_api.py @@ -135,10 +135,11 @@ def zip_export(file_name, prefix, resources, project_files, inc_repos): def export_project(src_paths, export_path, target, ide, - libraries_paths=None, options=None, linker_script=None, - clean=False, notify=None, verbose=False, name=None, - inc_dirs=None, jobs=1, silent=False, extra_verbose=False, - config=None, macros=None, zip_proj=None, inc_repos=False): + libraries_paths=None, linker_script=None, clean=False, + notify=None, verbose=False, name=None, inc_dirs=None, + jobs=1, silent=False, extra_verbose=False, config=None, + macros=None, zip_proj=None, inc_repos=False, + build_profile=None): """Generates a project file and creates a zip archive if specified Positional Arguments: @@ -149,7 +150,6 @@ def export_project(src_paths, export_path, target, ide, Keyword Arguments: libraries_paths - paths to additional libraries - options - build options passed by -o flag linker_script - path to the linker script for the specified target clean - removes the export_path if it exists notify - function is passed all events, and expected to handle notification @@ -192,10 +192,10 @@ def export_project(src_paths, export_path, target, ide, # Pass all params to the unified prepare_resources() toolchain = prepare_toolchain(paths, target, toolchain_name, - macros=macros, options=options, clean=clean, - jobs=jobs, notify=notify, silent=silent, - verbose=verbose, extra_verbose=extra_verbose, - config=config) + macros=macros, clean=clean, jobs=jobs, + notify=notify, silent=silent, verbose=verbose, + extra_verbose=extra_verbose, config=config, + build_profile=build_profile) # The first path will give the name to the library if name is None: name = basename(normpath(abspath(src_paths[0]))) diff --git a/tools/singletest.py b/tools/singletest.py index bde208c521..a07ecd4b23 100644 --- a/tools/singletest.py +++ b/tools/singletest.py @@ -225,6 +225,8 @@ if __name__ == '__main__': _test_loops_list=opts.test_loops_list, _muts=MUTs, _clean=opts.clean, + _parser=parser, + _opts=opts, _opts_db_url=opts.db_url, _opts_log_file_name=opts.log_file_name, _opts_report_html_file_name=opts.report_html_file_name, diff --git a/tools/synch.py b/tools/synch.py index 5b4da3c31a..5a483818f9 100644 --- a/tools/synch.py +++ b/tools/synch.py @@ -47,7 +47,7 @@ commit_msg = '' # Tuple data: (repo_name, list_of_code_dirs, [team]) # team is optional - if not specified, the code is published under mbed_official OFFICIAL_CODE = ( - ("mbed-dev" , MBED_BASE), + ("mbed-dev" , [MBED_DRIVERS, MBED_PLATFORM, MBED_HAL]), ("mbed-rtos", RTOS), ("mbed-dsp" , DSP), ("mbed-rpc" , MBED_RPC), diff --git a/tools/targets.py b/tools/targets.py index c5402bf398..a795958f5a 100644 --- a/tools/targets.py +++ b/tools/targets.py @@ -120,7 +120,7 @@ class Target(namedtuple("Target", "name json_data resolution_order resolution_or # Default location of the 'targets.json' file __targets_json_location_default = os.path.join( - os.path.dirname(os.path.abspath(__file__)), '..', 'hal', 'targets.json') + os.path.dirname(os.path.abspath(__file__)), '..', 'targets', 'targets.json') # Current/new location of the 'targets.json' file __targets_json_location = None diff --git a/tools/test.py b/tools/test.py index 851cb05538..9e520d59b2 100644 --- a/tools/test.py +++ b/tools/test.py @@ -27,7 +27,7 @@ ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) sys.path.insert(0, ROOT) from tools.test_api import test_path_to_name, find_tests, print_tests, build_tests, test_spec_from_test_builds -from tools.options import get_default_options_parser +from tools.options import get_default_options_parser, extract_profile from tools.build_api import build_project, build_library from tools.build_api import print_build_memory_usage from tools.targets import TARGET_MAP @@ -132,7 +132,7 @@ if __name__ == '__main__': # Find all tests in the relevant paths for path in all_paths: - all_tests.update(find_tests(path, mcu, toolchain, options.options, + all_tests.update(find_tests(path, mcu, toolchain, app_config=options.app_config)) # Filter tests by name if specified @@ -180,10 +180,10 @@ if __name__ == '__main__': build_properties = {} library_build_success = False + profile = extract_profile(parser, options, toolchain) try: # Build sources build_library(base_source_paths, options.build_dir, mcu, toolchain, - options=options.options, jobs=options.jobs, clean=options.clean, report=build_report, @@ -193,7 +193,8 @@ if __name__ == '__main__': verbose=options.verbose, notify=notify, archive=False, - app_config=options.app_config) + app_config=options.app_config, + build_profile=profile) library_build_success = True except ToolException, e: @@ -212,7 +213,6 @@ if __name__ == '__main__': # Build all the tests test_build_success, test_build = build_tests(tests, [options.build_dir], options.build_dir, mcu, toolchain, - options=options.options, clean=options.clean, report=build_report, properties=build_properties, @@ -221,7 +221,8 @@ if __name__ == '__main__': notify=notify, jobs=options.jobs, continue_on_build_fail=options.continue_on_build_fail, - app_config=options.app_config) + app_config=options.app_config, + build_profile=profile) # If a path to a test spec is provided, write it to a file if options.test_spec: diff --git a/tools/test/build_api/build_api_test.py b/tools/test/build_api/build_api_test.py index 97c2f1cf21..a3353929ea 100644 --- a/tools/test/build_api/build_api_test.py +++ b/tools/test/build_api/build_api_test.py @@ -16,8 +16,10 @@ limitations under the License. """ import unittest -from mock import patch -from tools.build_api import prepare_toolchain, build_project, build_library +from collections import namedtuple +from mock import patch, MagicMock +from tools.build_api import prepare_toolchain, build_project, build_library,\ + scan_resources """ Tests for build_api.py @@ -47,7 +49,30 @@ class BuildApiTests(unittest.TestCase): """ pass - @patch('tools.config.Config.__init__') + @patch('tools.toolchains.arm.ARM_STD.parse_dependencies', + return_value=["foo"]) + @patch('tools.toolchains.mbedToolchain.need_update', + side_effect=[i % 2 for i in range(3000)]) + @patch('os.mkdir') + @patch('tools.toolchains.exists', return_value=True) + @patch('tools.utils.run_cmd', return_value=("", "", 0)) + def test_always_complete_build(self, *_): + with MagicMock() as notify: + toolchain = prepare_toolchain(self.src_paths, self.target, + self.toolchain_name, notify=notify) + + res = scan_resources(self.src_paths, toolchain) + + toolchain.RESPONSE_FILES=False + toolchain.config_processed = True + toolchain.config_file = "junk" + toolchain.compile_sources(res, self.build_path) + + assert any('percent' in msg[0] and msg[0]['percent'] == 100.0 + for _, msg, _ in notify.mock_calls if msg) + + + @patch('tools.build_api.Config') def test_prepare_toolchain_app_config(self, mock_config_init): """ Test that prepare_toolchain uses app_config correctly @@ -56,15 +81,18 @@ class BuildApiTests(unittest.TestCase): :return: """ app_config = "app_config" - mock_config_init.return_value = None + mock_config_init.return_value = namedtuple("Config", "target")( + namedtuple("Target", + "init_hooks name features core")(lambda _, __ : None, + "Junk", [], "Cortex-M3")) prepare_toolchain(self.src_paths, self.target, self.toolchain_name, app_config=app_config) - mock_config_init.assert_called_with(self.target, self.src_paths, - app_config=app_config) + mock_config_init.assert_called_once_with(self.target, self.src_paths, + app_config=app_config) - @patch('tools.config.Config.__init__') + @patch('tools.build_api.Config') def test_prepare_toolchain_no_app_config(self, mock_config_init): """ Test that prepare_toolchain correctly deals with no app_config @@ -72,12 +100,15 @@ class BuildApiTests(unittest.TestCase): :param mock_config_init: mock of Config __init__ :return: """ - mock_config_init.return_value = None + mock_config_init.return_value = namedtuple("Config", "target")( + namedtuple("Target", + "init_hooks name features core")(lambda _, __ : None, + "Junk", [], "Cortex-M3")) prepare_toolchain(self.src_paths, self.target, self.toolchain_name) - mock_config_init.assert_called_with(self.target, self.src_paths, - app_config=None) + mock_config_init.assert_called_once_with(self.target, self.src_paths, + app_config=None) @patch('tools.build_api.scan_resources') @patch('tools.build_api.mkdir') diff --git a/tools/test/config_test/test21/mbed_app.json b/tools/test/config_test/test21/mbed_app.json index d1a874a23d..3c809f7d65 100644 --- a/tools/test/config_test/test21/mbed_app.json +++ b/tools/test/config_test/test21/mbed_app.json @@ -1,7 +1,7 @@ { "target_overrides": { "*": { - "target.features": ["IPV4", "IPV6"] + "target.features": ["IPV4"] } } } diff --git a/tools/test/config_test/test21/test_data.py b/tools/test/config_test/test21/test_data.py index ca0a48907c..4f7ae443e9 100644 --- a/tools/test/config_test/test21/test_data.py +++ b/tools/test/config_test/test21/test_data.py @@ -3,6 +3,6 @@ expected_results = { "test_target": { "desc": "test basic features", - "expected_features": ["IPV4", "IPV6"] + "expected_features": ["IPV4"] } } diff --git a/tools/test/config_test/test22/mbed_app.json b/tools/test/config_test/test22/mbed_app.json index a070a2d556..9509bfecb9 100644 --- a/tools/test/config_test/test22/mbed_app.json +++ b/tools/test/config_test/test22/mbed_app.json @@ -1,7 +1,7 @@ { "target_overrides": { "*": { - "target.features_add": ["IPV6"] + "target.features_add": ["STORAGE"] } } } diff --git a/tools/test/config_test/test22/test_data.py b/tools/test/config_test/test22/test_data.py index 7610f4107c..5edfe17891 100644 --- a/tools/test/config_test/test22/test_data.py +++ b/tools/test/config_test/test22/test_data.py @@ -3,6 +3,6 @@ expected_results = { "test_target": { "desc": "test composing features", - "expected_features": ["IPV4", "IPV6"] + "expected_features": ["IPV4", "STORAGE"] } } diff --git a/tools/test/config_test/test23/mbed_app.json b/tools/test/config_test/test23/mbed_app.json index a070a2d556..9509bfecb9 100644 --- a/tools/test/config_test/test23/mbed_app.json +++ b/tools/test/config_test/test23/mbed_app.json @@ -1,7 +1,7 @@ { "target_overrides": { "*": { - "target.features_add": ["IPV6"] + "target.features_add": ["STORAGE"] } } } diff --git a/tools/test/config_test/test24/FEATURE_IPV4/lib1/mbed_lib.json b/tools/test/config_test/test24/FEATURE_IPV4/lib1/mbed_lib.json index 539d8ccc22..4ba03096c9 100644 --- a/tools/test/config_test/test24/FEATURE_IPV4/lib1/mbed_lib.json +++ b/tools/test/config_test/test24/FEATURE_IPV4/lib1/mbed_lib.json @@ -2,7 +2,7 @@ "name": "lib1", "target_overrides": { "*": { - "target.features_add": ["IPV6"] + "target.features_add": ["STORAGE"] } } } diff --git a/tools/test/config_test/test24/FEATURE_IPV6/lib2/mbed_lib.json b/tools/test/config_test/test24/FEATURE_STORAGE/lib2/mbed_lib.json similarity index 100% rename from tools/test/config_test/test24/FEATURE_IPV6/lib2/mbed_lib.json rename to tools/test/config_test/test24/FEATURE_STORAGE/lib2/mbed_lib.json diff --git a/tools/test/config_test/test24/test_data.py b/tools/test/config_test/test24/test_data.py index 00681ed475..a77f026758 100644 --- a/tools/test/config_test/test24/test_data.py +++ b/tools/test/config_test/test24/test_data.py @@ -3,6 +3,6 @@ expected_results = { "test_target": { "desc": "test recursive features", - "expected_features": ["IPV4", "IPV6", "UVISOR"] + "expected_features": ["IPV4", "STORAGE", "UVISOR"] } } diff --git a/tools/test/config_test/test25/FEATURE_IPV6/FEATURE_IPV4/lib1/mbed_lib.json b/tools/test/config_test/test25/FEATURE_STORAGE/FEATURE_IPV4/lib1/mbed_lib.json similarity index 63% rename from tools/test/config_test/test25/FEATURE_IPV6/FEATURE_IPV4/lib1/mbed_lib.json rename to tools/test/config_test/test25/FEATURE_STORAGE/FEATURE_IPV4/lib1/mbed_lib.json index 539d8ccc22..4ba03096c9 100644 --- a/tools/test/config_test/test25/FEATURE_IPV6/FEATURE_IPV4/lib1/mbed_lib.json +++ b/tools/test/config_test/test25/FEATURE_STORAGE/FEATURE_IPV4/lib1/mbed_lib.json @@ -2,7 +2,7 @@ "name": "lib1", "target_overrides": { "*": { - "target.features_add": ["IPV6"] + "target.features_add": ["STORAGE"] } } } diff --git a/tools/test/config_test/test25/FEATURE_IPV6/lib2/mbed_lib.json b/tools/test/config_test/test25/FEATURE_STORAGE/lib2/mbed_lib.json similarity index 100% rename from tools/test/config_test/test25/FEATURE_IPV6/lib2/mbed_lib.json rename to tools/test/config_test/test25/FEATURE_STORAGE/lib2/mbed_lib.json diff --git a/tools/test/config_test/test25/mbed_app.json b/tools/test/config_test/test25/mbed_app.json index d1a874a23d..b4ad5832fb 100644 --- a/tools/test/config_test/test25/mbed_app.json +++ b/tools/test/config_test/test25/mbed_app.json @@ -1,7 +1,7 @@ { "target_overrides": { "*": { - "target.features": ["IPV4", "IPV6"] + "target.features": ["IPV4", "STORAGE"] } } } diff --git a/tools/test/config_test/test26/FEATURE_IPV4/lib1/mbed_lib.json b/tools/test/config_test/test26/FEATURE_IPV4/lib1/mbed_lib.json index 539d8ccc22..4ba03096c9 100644 --- a/tools/test/config_test/test26/FEATURE_IPV4/lib1/mbed_lib.json +++ b/tools/test/config_test/test26/FEATURE_IPV4/lib1/mbed_lib.json @@ -2,7 +2,7 @@ "name": "lib1", "target_overrides": { "*": { - "target.features_add": ["IPV6"] + "target.features_add": ["STORAGE"] } } } diff --git a/tools/test/config_test/test26/FEATURE_IPV6/lib2/mbed_lib.json b/tools/test/config_test/test26/FEATURE_STORAGE/lib2/mbed_lib.json similarity index 100% rename from tools/test/config_test/test26/FEATURE_IPV6/lib2/mbed_lib.json rename to tools/test/config_test/test26/FEATURE_STORAGE/lib2/mbed_lib.json diff --git a/tools/test/examples/examples.json b/tools/test/examples/examples.json index c45d2feecb..0e7a99924e 100644 --- a/tools/test/examples/examples.json +++ b/tools/test/examples/examples.json @@ -1,9 +1,5 @@ { "https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-blinky" : {}, - "https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-ble-Beacon" : - {"features": ["BLE"]}, - "https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-ble-HeartRate" : - {"features": ["BLE"]}, "https://developer.mbed.org/teams/mbed-os-examples/code/mbed-os-example-mesh-minimal" : {"features": ["IPV6"]}, "https://github.com/ARMmbed/mbed-os-example-client" : {"features": ["IPV6"]}, diff --git a/tools/test/export/build_test.py b/tools/test/export/build_test.py index 4d3e99e02f..3d8b284b9b 100644 --- a/tools/test/export/build_test.py +++ b/tools/test/export/build_test.py @@ -36,12 +36,14 @@ from tools.test_api import find_tests from tools.project import export from Queue import Queue from threading import Thread, Lock -from tools.project_api import print_results +from tools.project_api import print_results, get_exporter_toolchain from tools.tests import test_name_known, test_known, Test from tools.export.exporters import FailedBuildException, \ TargetNotSupportedException from tools.utils import argparse_force_lowercase_type, \ - argparse_many, columnate, args_error + argparse_many, columnate, args_error, \ + argparse_filestring_type +from tools.options import extract_profile print_lock = Lock() @@ -72,13 +74,15 @@ class Reader (Thread) : class ExportBuildTest(object): """Object to encapsulate logic for progen build testing""" - def __init__(self, tests): + def __init__(self, tests, parser, options): """ Initialize an instance of class ProgenBuildTest Args: tests: array of TestCase instances """ self.total = len(tests) + self.parser = parser + self.options = options self.counter = 0 self.successes = [] self.failures = [] @@ -155,11 +159,13 @@ class ExportBuildTest(object): test_case.name)) try: + _, toolchain = get_exporter_toolchain(test_case.ide) + profile = extract_profile(self.parser, self.options, toolchain) exporter = export(test_case.mcu, test_case.ide, project_id=test_case.id, zip_proj=None, clean=True, src=test_case.src, export_path=join(EXPORT_DIR,name_str), - silent=True) + silent=True, build_profile=profile) exporter.generated_files.append(join(EXPORT_DIR,name_str,test_case.log)) self.build_queue.put((exporter,test_case)) except TargetNotSupportedException: @@ -243,6 +249,12 @@ def main(): help="Which version of mbed to test", default=RELEASE_VERSIONS[-1]) + parser.add_argument("--profile", + dest="profile", + action="append", + type=argparse_filestring_type, + default=[]) + options = parser.parse_args() # targets in chosen release targetnames = [target[0] for target in @@ -273,7 +285,7 @@ def main(): for test in v5_tests: default_test.update({'name':test[0],'src':[test[1],ROOT]}) tests.append(copy(default_test)) - test = ExportBuildTest(tests) + test = ExportBuildTest(tests, parser, options) test.batch_tests(clean=options.clean) print_results(test.successes, test.failures, test.skips) sys.exit(len(test.failures)) diff --git a/tools/test/memap/memap_test.py b/tools/test/memap/memap_test.py new file mode 100644 index 0000000000..4407347422 --- /dev/null +++ b/tools/test/memap/memap_test.py @@ -0,0 +1,168 @@ +""" +mbed SDK +Copyright (c) 2016 ARM Limited + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +""" +import sys +import os + +ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "..")) +sys.path.insert(0, ROOT) + +import unittest +from tools.memap import MemapParser +from copy import deepcopy + +""" +Tests for test_api.py +""" + +class MemapParserTests(unittest.TestCase): + """ + Test cases for Test Api + """ + + def setUp(self): + """ + Called before each test case + + :return: + """ + self.memap_parser = MemapParser() + + self.memap_parser.modules = { + "Misc": { + "unknown": 0, + ".ARM": 8, + ".ARM.extab": 0, + ".init": 12, + "OUTPUT": 0, + ".stack": 0, + ".eh_frame": 0, + ".fini_array": 4, + ".heap": 0, + ".stabstr": 0, + ".interrupts_ram": 0, + ".init_array": 0, + ".stab": 0, + ".ARM.attributes": 7347, + ".bss": 8517, + ".flash_config": 16, + ".interrupts": 1024, + ".data": 2325, + ".ARM.exidx": 0, + ".text": 59906, + ".jcr": 0 + }, + "Fill": { + "unknown": 12, + ".ARM": 0, + ".ARM.extab": 0, + ".init": 0, + "OUTPUT": 0, + ".stack": 0, + ".eh_frame": 0, + ".fini_array": 0, + ".heap": 65536, + ".stabstr": 0, + ".interrupts_ram": 1024, + ".init_array": 0, + ".stab": 0, + ".ARM.attributes": 0, + ".bss": 2235, + ".flash_config": 0, + ".interrupts": 0, + ".data": 3, + ".ARM.exidx": 0, + ".text": 136, + ".jcr": 0 + } + } + + self.memap_parser.compute_report() + + def tearDown(self): + """ + Called after each test case + + :return: + """ + pass + + def generate_test_helper(self, output_type, file_output=None): + """ + Helper that ensures that the member variables "modules", "mem_report", + and "mem_summary" are unchanged after calling "generate_output" + + :param output_type: type string that is passed to "generate_output" + :param file_output: path to output file that is passed to "generate_output" + :return: + """ + + old_modules = deepcopy(self.memap_parser.modules) + old_report = deepcopy(self.memap_parser.mem_report) + old_summary = deepcopy(self.memap_parser.mem_summary) + self.memap_parser.generate_output(output_type, file_output) + self.assertEqual(self.memap_parser.modules, old_modules, + "generate_output modified the 'modules' property") + self.assertEqual(self.memap_parser.mem_report, old_report, + "generate_output modified the 'mem_report' property") + self.assertEqual(self.memap_parser.mem_summary, old_summary, + "generate_output modified the 'mem_summary' property") + + def test_report_computed(self): + """ + Test ensures the report and summary are computed + + :return: + """ + self.assertTrue(self.memap_parser.mem_report) + self.assertTrue(self.memap_parser.mem_summary) + self.assertEqual(self.memap_parser.mem_report[-1]['summary'], + self.memap_parser.mem_summary, + "mem_report did not contain a correct copy of mem_summary") + + def test_generate_output_table(self): + """ + Test ensures that an output of type "table" can be generated correctly + + :return: + """ + self.generate_test_helper('table') + + def test_generate_output_json(self): + """ + Test ensures that an output of type "json" can be generated correctly + + :return: + """ + file_name = '.json_test_output.json' + self.generate_test_helper('json', file_output=file_name) + self.assertTrue(os.path.exists(file_name), "Failed to create json file") + os.remove(file_name) + + def test_generate_output_csv_ci(self): + """ + Test ensures that an output of type "csv-ci" can be generated correctly + + :return: + """ + file_name = '.csv_ci_test_output.csv' + self.generate_test_helper('csv-ci', file_output=file_name) + self.assertTrue(os.path.exists(file_name), "Failed to create csv-ci file") + os.remove(file_name) + + +if __name__ == '__main__': + unittest.main() diff --git a/tools/test/toolchains/api.py b/tools/test/toolchains/api.py index 1452f58c01..31ced9d0c9 100644 --- a/tools/test/toolchains/api.py +++ b/tools/test/toolchains/api.py @@ -1,13 +1,127 @@ +"""Tests for the toolchain sub-system""" import sys import os +from string import printable +from copy import deepcopy +from mock import MagicMock, patch +from hypothesis import given +from hypothesis.strategies import text, lists, fixed_dictionaries -ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", "..")) +ROOT = os.path.abspath(os.path.join(os.path.dirname(__file__), "..", "..", + "..")) sys.path.insert(0, ROOT) -from tools.toolchains import TOOLCHAIN_CLASSES, LEGACY_TOOLCHAIN_NAMES +from tools.toolchains import TOOLCHAIN_CLASSES, LEGACY_TOOLCHAIN_NAMES,\ + Resources from tools.targets import TARGET_MAP def test_instantiation(): + """Test that all exported toolchain may be instantiated""" + for name, tc_class in TOOLCHAIN_CLASSES.items(): + cls = tc_class(TARGET_MAP["K64F"]) + assert name == cls.name or\ + name == LEGACY_TOOLCHAIN_NAMES[cls.name] + +ALPHABET = [char for char in printable if char not in [u'.', u'/']] + +@given(fixed_dictionaries({ + 'common': lists(text()), + 'c': lists(text()), + 'cxx': lists(text()), + 'asm': lists(text()), + 'ld': lists(text())}), + lists(text(min_size=1, alphabet=ALPHABET), min_size=1)) +def test_toolchain_profile_c(profile, source_file): + """Test that the appropriate profile parameters are passed to the + C compiler""" + filename = deepcopy(source_file) + filename[-1] += ".c" + to_compile = os.path.join(*filename) + with patch('os.mkdir') as _mkdir: + for _, tc_class in TOOLCHAIN_CLASSES.items(): + toolchain = tc_class(TARGET_MAP["K64F"], build_profile=profile) + toolchain.inc_md5 = "" + toolchain.build_dir = "" + compile_command = toolchain.compile_command(to_compile, + to_compile + ".o", []) + for parameter in profile['c'] + profile['common']: + assert any(parameter in cmd for cmd in compile_command), \ + "Toolchain %s did not propigate arg %s" % (toolchain.name, + parameter) + +@given(fixed_dictionaries({ + 'common': lists(text()), + 'c': lists(text()), + 'cxx': lists(text()), + 'asm': lists(text()), + 'ld': lists(text())}), + lists(text(min_size=1, alphabet=ALPHABET), min_size=1)) +def test_toolchain_profile_cpp(profile, source_file): + """Test that the appropriate profile parameters are passed to the + C++ compiler""" + filename = deepcopy(source_file) + filename[-1] += ".cpp" + to_compile = os.path.join(*filename) + with patch('os.mkdir') as _mkdir: + for _, tc_class in TOOLCHAIN_CLASSES.items(): + toolchain = tc_class(TARGET_MAP["K64F"], build_profile=profile) + toolchain.inc_md5 = "" + toolchain.build_dir = "" + compile_command = toolchain.compile_command(to_compile, + to_compile + ".o", []) + for parameter in profile['cxx'] + profile['common']: + assert any(parameter in cmd for cmd in compile_command), \ + "Toolchain %s did not propigate arg %s" % (toolchain.name, + parameter) + +@given(fixed_dictionaries({ + 'common': lists(text()), + 'c': lists(text()), + 'cxx': lists(text()), + 'asm': lists(text()), + 'ld': lists(text())}), + lists(text(min_size=1, alphabet=ALPHABET), min_size=1)) +def test_toolchain_profile_asm(profile, source_file): + """Test that the appropriate profile parameters are passed to the + Assembler""" + filename = deepcopy(source_file) + filename[-1] += ".s" + to_compile = os.path.join(*filename) + with patch('os.mkdir') as _mkdir: + for _, tc_class in TOOLCHAIN_CLASSES.items(): + toolchain = tc_class(TARGET_MAP["K64F"], build_profile=profile) + toolchain.inc_md5 = "" + toolchain.build_dir = "" + compile_command = toolchain.compile_command(to_compile, + to_compile + ".o", []) + if not compile_command: + assert compile_command, to_compile + for parameter in profile['asm']: + assert any(parameter in cmd for cmd in compile_command), \ + "Toolchain %s did not propigate arg %s" % (toolchain.name, + parameter) + for name, Class in TOOLCHAIN_CLASSES.items(): CLS = Class(TARGET_MAP["K64F"]) assert name == CLS.name or name == LEGACY_TOOLCHAIN_NAMES[CLS.name] + + +@given(lists(text(alphabet=ALPHABET, min_size=1), min_size=1)) +def test_detect_duplicates(filenames): + c_sources = [os.path.join(name, "dupe.c") for name in filenames] + s_sources = [os.path.join(name, "dupe.s") for name in filenames] + cpp_sources = [os.path.join(name, "dupe.cpp") for name in filenames] + with MagicMock() as notify: + toolchain = TOOLCHAIN_CLASSES["ARM"](TARGET_MAP["K64F"], notify=notify) + res = Resources() + res.c_sources = c_sources + res.s_sources = s_sources + res.cpp_sources = cpp_sources + assert res.detect_duplicates(toolchain) == 1,\ + "Not Enough duplicates found" + + _, (notification, _), _ = notify.mock_calls[1] + assert "dupe.o" in notification["message"] + assert "dupe.s" in notification["message"] + assert "dupe.c" in notification["message"] + assert "dupe.cpp" in notification["message"] diff --git a/tools/test_api.py b/tools/test_api.py index 3c05788e2b..126328f3ad 100644 --- a/tools/test_api.py +++ b/tools/test_api.py @@ -60,6 +60,7 @@ from tools.build_api import add_result_to_report from tools.build_api import prepare_toolchain from tools.build_api import scan_resources from tools.libraries import LIBRARIES, LIBRARY_MAP +from tools.options import extract_profile from tools.toolchains import TOOLCHAIN_PATHS from tools.toolchains import TOOLCHAINS from tools.test_exporters import ReportExporter, ResultExporterType @@ -170,6 +171,8 @@ class SingleTestRunner(object): _test_loops_list=None, _muts={}, _clean=False, + _parser=None, + _opts=None, _opts_db_url=None, _opts_log_file_name=None, _opts_report_html_file_name=None, @@ -258,6 +261,8 @@ class SingleTestRunner(object): self.opts_consolidate_waterfall_test = _opts_consolidate_waterfall_test self.opts_extend_test_timeout = _opts_extend_test_timeout self.opts_clean = _clean + self.opts_parser = _parser + self.opts = _opts self.opts_auto_detect = _opts_auto_detect self.opts_include_non_automated = _opts_include_non_automated @@ -355,19 +360,20 @@ class SingleTestRunner(object): print self.logger.log_line(self.logger.LogType.NOTIF, 'Skipped tests for %s target. Target platform not found'% (target)) continue - build_mbed_libs_options = ["analyze"] if self.opts_goanna_for_mbed_sdk else None clean_mbed_libs_options = True if self.opts_goanna_for_mbed_sdk or clean or self.opts_clean else None + profile = extract_profile(self.opts_parser, self.opts, toolchain) + try: build_mbed_libs_result = build_mbed_libs(T, toolchain, - options=build_mbed_libs_options, clean=clean_mbed_libs_options, verbose=self.opts_verbose, jobs=self.opts_jobs, report=build_report, - properties=build_properties) + properties=build_properties, + build_profile=profile) if not build_mbed_libs_result: print self.logger.log_line(self.logger.LogType.NOTIF, 'Skipped tests for %s target. Toolchain %s is not yet supported for this target'% (T.name, toolchain)) @@ -423,7 +429,6 @@ class SingleTestRunner(object): libraries.append(lib['id']) - build_project_options = ["analyze"] if self.opts_goanna_for_tests else None clean_project_options = True if self.opts_goanna_for_tests or clean or self.opts_clean else None # Build all required libraries @@ -432,12 +437,12 @@ class SingleTestRunner(object): build_lib(lib_id, T, toolchain, - options=build_project_options, verbose=self.opts_verbose, clean=clean_mbed_libs_options, jobs=self.opts_jobs, report=build_report, - properties=build_properties) + properties=build_properties, + build_profile=profile) except ToolException: print self.logger.log_line(self.logger.LogType.ERROR, 'There were errors while building library %s'% (lib_id)) @@ -479,7 +484,6 @@ class SingleTestRunner(object): T, toolchain, test.dependencies, - options=build_project_options, clean=clean_project_options, verbose=self.opts_verbose, name=project_name, @@ -489,7 +493,8 @@ class SingleTestRunner(object): report=build_report, properties=build_properties, project_id=test_id, - project_description=test.get_description()) + project_description=test.get_description(), + build_profile=profile) except Exception, e: project_name_str = project_name if project_name is not None else test_id @@ -1789,6 +1794,10 @@ def get_default_test_options_parser(): action="store_true", help='Test only peripheral declared for MUT and skip common tests') + parser.add_argument("--profile", dest="profile", action="append", + type=argparse_filestring_type, + default=[]) + parser.add_argument('-C', '--only-commons', dest='test_only_common', default=False, @@ -1990,7 +1999,7 @@ def test_path_to_name(path, base): return "-".join(name_parts).lower() -def find_tests(base_dir, target_name, toolchain_name, options=None, app_config=None): +def find_tests(base_dir, target_name, toolchain_name, app_config=None): """ Finds all tests in a directory recursively base_dir: path to the directory to scan for tests (ex. 'path/to/project') target_name: name of the target to use for scanning (ex. 'K64F') @@ -2002,7 +2011,7 @@ def find_tests(base_dir, target_name, toolchain_name, options=None, app_config=N tests = {} # Prepare the toolchain - toolchain = prepare_toolchain([base_dir], target_name, toolchain_name, options=options, + toolchain = prepare_toolchain([base_dir], target_name, toolchain_name, silent=True, app_config=app_config) # Scan the directory for paths to probe for 'TESTS' folders @@ -2060,9 +2069,10 @@ def norm_relative_path(path, start): return path def build_tests(tests, base_source_paths, build_path, target, toolchain_name, - options=None, clean=False, notify=None, verbose=False, jobs=1, - macros=None, silent=False, report=None, properties=None, - continue_on_build_fail=False, app_config=None): + clean=False, notify=None, verbose=False, jobs=1, macros=None, + silent=False, report=None, properties=None, + continue_on_build_fail=False, app_config=None, + build_profile=None): """Given the data structure from 'find_tests' and the typical build parameters, build all the tests @@ -2095,7 +2105,6 @@ def build_tests(tests, base_source_paths, build_path, target, toolchain_name, try: bin_file = build_project(src_path, test_build_path, target, toolchain_name, - options=options, jobs=jobs, clean=clean, macros=macros, @@ -2104,16 +2113,17 @@ def build_tests(tests, base_source_paths, build_path, target, toolchain_name, report=report, properties=properties, verbose=verbose, - app_config=app_config) + app_config=app_config, + build_profile=build_profile) - except Exception, e: - if not isinstance(e, NotSupportedException): - result = False - - if continue_on_build_fail: - continue - else: - break + except NotSupportedException: + pass + except ToolException: + result = False + if continue_on_build_fail: + continue + else: + break # If a clean build was carried out last time, disable it for the next build. # Otherwise the previously built test will be deleted. diff --git a/tools/toolchains/__init__.py b/tools/toolchains/__init__.py index 9b56649f9c..98def03191 100644 --- a/tools/toolchains/__init__.py +++ b/tools/toolchains/__init__.py @@ -31,7 +31,7 @@ from distutils.spawn import find_executable from multiprocessing import Pool, cpu_count from tools.utils import run_cmd, mkdir, rel_path, ToolException, NotSupportedException, split_path, compile_worker -from tools.settings import BUILD_OPTIONS, MBED_ORG_USER +from tools.settings import MBED_ORG_USER import tools.hooks as hooks from tools.memap import MemapParser from hashlib import md5 @@ -120,6 +120,43 @@ class Resources: return self + def _collect_duplicates(self, dupe_dict, dupe_headers): + for filename in self.s_sources + self.c_sources + self.cpp_sources: + objname, _ = splitext(basename(filename)) + dupe_dict.setdefault(objname, set()) + dupe_dict[objname] |= set([filename]) + for filename in self.headers: + headername = basename(filename) + dupe_headers.setdefault(headername, set()) + dupe_headers[headername] |= set([headername]) + for res in self.features.values(): + res._collect_duplicates(dupe_dict, dupe_headers) + return dupe_dict, dupe_headers + + def detect_duplicates(self, toolchain): + """Detect all potential ambiguities in filenames and report them with + a toolchain notification + + Positional Arguments: + toolchain - used for notifications + """ + count = 0 + dupe_dict, dupe_headers = self._collect_duplicates(dict(), dict()) + for objname, filenames in dupe_dict.iteritems(): + if len(filenames) > 1: + count+=1 + toolchain.tool_error( + "Object file %s.o is not unique! It could be made from: %s"\ + % (objname, " ".join(filenames))) + for headername, locations in dupe_headers.iteritems(): + if len(locations) > 1: + count+=1 + toolchain.tool_error( + "Header file %s is not unique! It could be: %s" %\ + (headername, " ".join(locations))) + return count + + def relative_to(self, base, dot=False): for field in ['inc_dirs', 'headers', 's_sources', 'c_sources', 'cpp_sources', 'lib_dirs', 'objects', 'libraries', @@ -217,7 +254,9 @@ class mbedToolchain: __metaclass__ = ABCMeta - def __init__(self, target, options=None, notify=None, macros=None, silent=False, extra_verbose=False): + profile_template = {'common':[], 'c':[], 'cxx':[], 'asm':[], 'ld':[]} + + def __init__(self, target, notify=None, macros=None, silent=False, extra_verbose=False, build_profile=None): self.target = target self.name = self.__class__.__name__ @@ -225,7 +264,7 @@ class mbedToolchain: self.hook = hooks.Hook(target, self) # Toolchain flags - self.flags = deepcopy(self.DEFAULT_FLAGS) + self.flags = deepcopy(build_profile or self.profile_template) # User-defined macros self.macros = macros or [] @@ -291,15 +330,6 @@ class mbedToolchain: self.output = str() self.map_outputs = list() # Place to store memmap scan results in JSON like data structures - # Build options passed by -o flag - self.options = options if options is not None else [] - - # Build options passed by settings.py or mbed_settings.py - self.options.extend(BUILD_OPTIONS) - - if self.options: - self.info("Build Options: %s" % (', '.join(self.options))) - # uVisor spepcific rules if 'UVISOR' in self.target.features and 'UVISOR_SUPPORTED' in self.target.extra_labels: self.target.core = re.sub(r"F$", '', self.target.core) @@ -434,10 +464,20 @@ class mbedToolchain: toolchain_labels = [c.__name__ for c in getmro(self.__class__)] toolchain_labels.remove('mbedToolchain') self.labels = { - 'TARGET': self.target.labels + ["DEBUG" if "debug-info" in self.options else "RELEASE"], + 'TARGET': self.target.labels, 'FEATURE': self.target.features, 'TOOLCHAIN': toolchain_labels } + + # This is a policy decision and it should /really/ be in the config system + # ATM it's here for backward compatibility + if (("-g" in self.flags['common'] and + "-O0") in self.flags['common'] or + ("-r" in self.flags['common'] and + "-On" in self.flags['common'])): + self.labels['TARGET'].append("DEBUG") + else: + self.labels['TARGET'].append("RELEASE") return self.labels @@ -757,6 +797,7 @@ class mbedToolchain: 'chroot': self.CHROOT }) else: + self.compiled += 1 objects.append(object) # Use queues/multiprocessing if cpu count is higher than setting @@ -1047,7 +1088,7 @@ class mbedToolchain: # Here we return memory statistics structure (constructed after # call to generate_output) which contains raw data in bytes # about sections + summary - return memap.mem_summary + return memap.mem_report # Set the configuration data def set_config_data(self, config_data): diff --git a/tools/toolchains/arm.py b/tools/toolchains/arm.py index f294edb5f5..5eb5387187 100644 --- a/tools/toolchains/arm.py +++ b/tools/toolchains/arm.py @@ -30,20 +30,6 @@ class ARM(mbedToolchain): INDEX_PATTERN = re.compile('(?P\s*)\^') DEP_PATTERN = re.compile('\S+:\s(?P.+)\n') - - # ANY changes to these default flags is backwards incompatible and require - # an update to the mbed-sdk-tools and website that introduces a profile - # for the previous version of these flags - DEFAULT_FLAGS = { - 'common': ["-c", "--gnu", - "-Otime", "--split_sections", "--apcs=interwork", - "--brief_diagnostics", "--restrict", "--multibyte_chars"], - 'asm': [], - 'c': ["--md", "--no_depend_system_headers", "--c99", "-D__ASSERT_MSG"], - 'cxx': ["--cpp", "--no_rtti", "--no_vla"], - 'ld': [], - } - @staticmethod def check_executable(): """Returns True if the executable (armcc) location specified by the @@ -51,8 +37,11 @@ class ARM(mbedToolchain): Returns False otherwise.""" return mbedToolchain.generic_check_executable("ARM", 'armcc', 2, 'bin') - def __init__(self, target, options=None, notify=None, macros=None, silent=False, extra_verbose=False): - mbedToolchain.__init__(self, target, options, notify, macros, silent, extra_verbose=extra_verbose) + def __init__(self, target, notify=None, macros=None, + silent=False, extra_verbose=False, build_profile=None): + mbedToolchain.__init__(self, target, notify, macros, silent, + extra_verbose=extra_verbose, + build_profile=build_profile) if target.core == "Cortex-M0+": cpu = "Cortex-M0" @@ -71,14 +60,6 @@ class ARM(mbedToolchain): main_cc = join(ARM_BIN, "armcc") self.flags['common'] += ["--cpu=%s" % cpu] - if "save-asm" in self.options: - self.flags['common'].extend(["--asm", "--interleave"]) - - if "debug-info" in self.options: - self.flags['common'].append("-g") - self.flags['c'].append("-O0") - else: - self.flags['c'].append("-O3") self.asm = [main_cc] + self.flags['common'] + self.flags['asm'] + ["-I \""+ARM_INC+"\""] self.cc = [main_cc] + self.flags['common'] + self.flags['c'] + ["-I \""+ARM_INC+"\""] @@ -106,6 +87,7 @@ class ARM(mbedToolchain): if match is not None: if msg is not None: self.cc_info(msg) + msg = None msg = { 'severity': match.group('severity').lower(), 'file': match.group('file'), @@ -241,8 +223,10 @@ class ARM(mbedToolchain): class ARM_STD(ARM): - def __init__(self, target, options=None, notify=None, macros=None, silent=False, extra_verbose=False): - ARM.__init__(self, target, options, notify, macros, silent, extra_verbose=extra_verbose) + def __init__(self, target, notify=None, macros=None, + silent=False, extra_verbose=False, build_profile=None): + ARM.__init__(self, target, notify, macros, silent, + extra_verbose=extra_verbose, build_profile=build_profile) # Run-time values self.ld.extend(["--libpath", join(TOOLCHAIN_PATHS['ARM'], "lib")]) @@ -251,40 +235,10 @@ class ARM_STD(ARM): class ARM_MICRO(ARM): PATCHED_LIBRARY = False - def __init__(self, target, options=None, notify=None, macros=None, silent=False, extra_verbose=False): - ARM.__init__(self, target, options, notify, macros, silent, extra_verbose=extra_verbose) - - # Extend flags - self.flags['common'].extend(["-D__MICROLIB"]) - self.flags['c'].extend(["--library_type=microlib"]) - self.flags['ld'].extend(["--library_type=microlib"]) + def __init__(self, target, notify=None, macros=None, + silent=False, extra_verbose=False, build_profile=None): + ARM.__init__(self, target, notify, macros, silent, + extra_verbose=extra_verbose, build_profile=build_profile) # Run-time values - self.asm += ["-D__MICROLIB"] - self.cc += ["-D__MICROLIB", "--library_type=microlib"] - self.cppc += ["-D__MICROLIB", "--library_type=microlib"] - self.ld += ["--library_type=microlib"] - - # Only allow a single thread - self.cc += ["-DMBED_RTOS_SINGLE_THREAD"] - self.cppc += ["-DMBED_RTOS_SINGLE_THREAD"] - - # We had to patch microlib to add C++ support - # In later releases this patch should have entered mainline - if ARM_MICRO.PATCHED_LIBRARY: - # Run-time values - self.flags['ld'].extend(["--noscanlib"]) - # Run-time values - self.ld += ["--noscanlib"] - - # System Libraries - self.sys_libs.extend([join(TOOLCHAIN_PATHS['ARM'], "lib", "microlib", lib+".l") for lib in ["mc_p", "mf_p", "m_ps"]]) - - if target.core == "Cortex-M3": - self.sys_libs.extend([join(TOOLCHAIN_PATHS['ARM'], "lib", "cpplib", lib+".l") for lib in ["cpp_ws", "cpprt_w"]]) - - elif target.core in ["Cortex-M0", "Cortex-M0+"]: - self.sys_libs.extend([join(TOOLCHAIN_PATHS['ARM'], "lib", "cpplib", lib+".l") for lib in ["cpp_ps", "cpprt_p"]]) - else: - # Run-time values - self.ld.extend(["--libpath", join(TOOLCHAIN_PATHS['ARM'], "lib")]) + self.ld.extend(["--libpath", join(TOOLCHAIN_PATHS['ARM'], "lib")]) diff --git a/tools/toolchains/gcc.py b/tools/toolchains/gcc.py index dbbe2c62bc..190f7f9f74 100644 --- a/tools/toolchains/gcc.py +++ b/tools/toolchains/gcc.py @@ -28,26 +28,12 @@ class GCC(mbedToolchain): DIAGNOSTIC_PATTERN = re.compile('((?P[^:]+):(?P\d+):)(\d+:)? (?Pwarning|error): (?P.+)') INDEX_PATTERN = re.compile('(?P\s*)\^') - # ANY changes to these default flags is backwards incompatible and require - # an update to the mbed-sdk-tools and website that introduces a profile - # for the previous version of these flags - DEFAULT_FLAGS = { - 'common': ["-c", "-Wall", "-Wextra", - "-Wno-unused-parameter", "-Wno-missing-field-initializers", - "-fmessage-length=0", "-fno-exceptions", "-fno-builtin", - "-ffunction-sections", "-fdata-sections", "-funsigned-char", - "-MMD", "-fno-delete-null-pointer-checks", "-fomit-frame-pointer" - ], - 'asm': ["-x", "assembler-with-cpp"], - 'c': ["-std=gnu99"], - 'cxx': ["-std=gnu++98", "-fno-rtti", "-Wvla"], - 'ld': ["-Wl,--gc-sections", "-Wl,--wrap,main", - "-Wl,--wrap,_malloc_r", "-Wl,--wrap,_free_r", "-Wl,--wrap,_realloc_r", "-Wl,--wrap,_calloc_r", - "-Wl,--wrap,exit", "-Wl,--wrap,atexit"], - } - - def __init__(self, target, options=None, notify=None, macros=None, silent=False, tool_path="", extra_verbose=False): - mbedToolchain.__init__(self, target, options, notify, macros, silent, extra_verbose=extra_verbose) + def __init__(self, target, notify=None, macros=None, + silent=False, tool_path="", extra_verbose=False, + build_profile=None): + mbedToolchain.__init__(self, target, notify, macros, silent, + extra_verbose=extra_verbose, + build_profile=build_profile) if target.core == "Cortex-M0+": cpu = "cortex-m0plus" @@ -75,8 +61,6 @@ class GCC(mbedToolchain): self.cpu.append("-mfpu=fpv5-d16") self.cpu.append("-mfloat-abi=softfp") - - if target.core == "Cortex-A9": self.cpu.append("-mthumb-interwork") self.cpu.append("-marm") @@ -85,20 +69,8 @@ class GCC(mbedToolchain): self.cpu.append("-mfloat-abi=hard") self.cpu.append("-mno-unaligned-access") - - # Note: We are using "-O2" instead of "-Os" to avoid this known GCC bug: - # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46762 self.flags["common"] += self.cpu - if "save-asm" in self.options: - self.flags["common"].append("-save-temps") - - if "debug-info" in self.options: - self.flags["common"].append("-g") - self.flags["common"].append("-O0") - else: - self.flags["common"].append("-Os") - main_cc = join(tool_path, "arm-none-eabi-gcc") main_cppc = join(tool_path, "arm-none-eabi-g++") self.asm = [main_cc] + self.flags['asm'] + self.flags["common"] @@ -146,6 +118,7 @@ class GCC(mbedToolchain): if match is not None: if msg is not None: self.cc_info(msg) + msg = None msg = { 'severity': match.group('severity').lower(), 'file': match.group('file'), @@ -166,6 +139,9 @@ class GCC(mbedToolchain): else: msg['text'] += line+"\n" + if msg is not None: + self.cc_info(msg) + def get_dep_option(self, object): base, _ = splitext(object) dep_path = base + '.d' @@ -280,27 +256,12 @@ class GCC_ARM(GCC): Returns False otherwise.""" return mbedToolchain.generic_check_executable("GCC_ARM", 'arm-none-eabi-gcc', 1) - def __init__(self, target, options=None, notify=None, macros=None, silent=False, extra_verbose=False): - GCC.__init__(self, target, options, notify, macros, silent, TOOLCHAIN_PATHS['GCC_ARM'], extra_verbose=extra_verbose) + def __init__(self, target, notify=None, macros=None, + silent=False, extra_verbose=False, build_profile=None): + GCC.__init__(self, target, notify, macros, silent, + TOOLCHAIN_PATHS['GCC_ARM'], extra_verbose=extra_verbose, + build_profile=build_profile) - # Use latest gcc nanolib - if "std-lib" in self.options: - use_nano = False - elif "small-lib" in self.options: - use_nano = True - elif target.default_lib == "std": - use_nano = False - elif target.default_lib == "small": - use_nano = True - else: - use_nano = False - - if use_nano: - self.ld.append("--specs=nano.specs") - self.flags['ld'].append("--specs=nano.specs") - self.cc += ["-DMBED_RTOS_SINGLE_THREAD"] - self.cppc += ["-DMBED_RTOS_SINGLE_THREAD"] - self.macros.extend(["MBED_RTOS_SINGLE_THREAD"]) self.sys_libs.append("nosys") @@ -312,8 +273,11 @@ class GCC_CR(GCC): Returns False otherwise.""" return mbedToolchain.generic_check_executable("GCC_CR", 'arm-none-eabi-gcc', 1) - def __init__(self, target, options=None, notify=None, macros=None, silent=False, extra_verbose=False): - GCC.__init__(self, target, options, notify, macros, silent, TOOLCHAIN_PATHS['GCC_CR'], extra_verbose=extra_verbose) + def __init__(self, target, notify=None, macros=None, + silent=False, extra_verbose=False, build_profile=None): + GCC.__init__(self, target, notify, macros, silent, + TOOLCHAIN_PATHS['GCC_CR'], extra_verbose=extra_verbose, + build_profile=build_profile) additional_compiler_flags = [ "-D__NEWLIB__", "-D__CODE_RED", "-D__USE_CMSIS", "-DCPP_USE_HEAP", diff --git a/tools/toolchains/iar.py b/tools/toolchains/iar.py index b712c2a158..46ada3a703 100644 --- a/tools/toolchains/iar.py +++ b/tools/toolchains/iar.py @@ -29,24 +29,6 @@ class IAR(mbedToolchain): DIAGNOSTIC_PATTERN = re.compile('"(?P[^"]+)",(?P[\d]+)\s+(?PWarning|Error)(?P.+)') INDEX_PATTERN = re.compile('(?P\s*)\^') - # ANY changes to these default flags is backwards incompatible and require - # an update to the mbed-sdk-tools and website that introduces a profile - # for the previous version of these flags - DEFAULT_FLAGS = { - 'common': [ - "--no_wrap_diagnostics", - # Pa050: No need to be notified about "non-native end of line sequence" - # Pa084: Pointless integer comparison -> checks for the values of an enum, but we use values outside of the enum to notify errors (ie: NC). - # Pa093: Implicit conversion from float to integer (ie: wait_ms(85.4) -> wait_ms(85)) - # Pa082: Operation involving two values from two registers (ie: (float)(*obj->MR)/(float)(LPC_PWM1->MR0)) - "-e", # Enable IAR language extension - "--diag_suppress=Pa050,Pa084,Pa093,Pa082"], - 'asm': [], - 'c': ["--vla"], - 'cxx': ["--guard_calls", "--no_static_destruction"], - 'ld': ["--skip_dynamic_initialization", "--threaded_lib"], - } - @staticmethod def check_executable(): """Returns True if the executable (arm-none-eabi-gcc) location @@ -54,8 +36,11 @@ class IAR(mbedToolchain): Returns False otherwise.""" return mbedToolchain.generic_check_executable("IAR", 'iccarm', 2, "bin") - def __init__(self, target, options=None, notify=None, macros=None, silent=False, extra_verbose=False): - mbedToolchain.__init__(self, target, options, notify, macros, silent, extra_verbose=extra_verbose) + def __init__(self, target, notify=None, macros=None, + silent=False, extra_verbose=False, build_profile=None): + mbedToolchain.__init__(self, target, notify, macros, silent, + extra_verbose=extra_verbose, + build_profile=build_profile) if target.core == "Cortex-M7F" or target.core == "Cortex-M7FD": cpuchoice = "Cortex-M7" else: @@ -94,12 +79,6 @@ class IAR(mbedToolchain): asm_flags_cmd += ["--fpu", "VFPv5_sp"] c_flags_cmd.append("--fpu=VFPv5_sp") - if "debug-info" in self.options: - c_flags_cmd.append("-r") - c_flags_cmd.append("-On") - else: - c_flags_cmd.append("-Oh") - IAR_BIN = join(TOOLCHAIN_PATHS['IAR'], "bin") main_cc = join(IAR_BIN, "iccarm") @@ -123,6 +102,7 @@ class IAR(mbedToolchain): if match is not None: if msg is not None: self.cc_info(msg) + msg = None msg = { 'severity': match.group('severity').lower(), 'file': match.group('file'), @@ -143,6 +123,9 @@ class IAR(mbedToolchain): else: msg['text'] += line+"\n" + if msg is not None: + self.cc_info(msg) + def get_dep_option(self, object): base, _ = splitext(object) dep_path = base + '.d' diff --git a/tools/utils.py b/tools/utils.py index b250491dc0..9ad74de63d 100644 --- a/tools/utils.py +++ b/tools/utils.py @@ -28,6 +28,10 @@ import json from collections import OrderedDict import logging +def remove_if_in(lst, thing): + if thing in lst: + lst.remove(thing) + def compile_worker(job): """Standard task runner used for compiling