mirror of https://github.com/ARMmbed/mbed-os.git
platform: move internal headers to internal/
They belong to internal folder to follow our guideline, not in source as they were.pull/13459/head
parent
8078e20cb4
commit
a6ce2c53a0
|
@ -38,7 +38,7 @@ using namespace mbed;
|
||||||
#if MBED_CONF_RTOS_API_PRESENT
|
#if MBED_CONF_RTOS_API_PRESENT
|
||||||
|
|
||||||
#include "rtos/Kernel.h"
|
#include "rtos/Kernel.h"
|
||||||
#include "platform/source/mbed_os_timer.h"
|
#include "platform/internal/mbed_os_timer.h"
|
||||||
|
|
||||||
void equeue_tick_init()
|
void equeue_tick_init()
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
#define MBED_MBED_SLEEP_TIMER_H
|
#define MBED_MBED_SLEEP_TIMER_H
|
||||||
|
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include "source/SysTimer.h"
|
#include "platform/internal/SysTimer.h"
|
||||||
|
|
||||||
#if MBED_CONF_RTOS_PRESENT
|
#if MBED_CONF_RTOS_PRESENT
|
||||||
extern "C" {
|
extern "C" {
|
|
@ -22,7 +22,7 @@
|
||||||
#include "mbed_assert.h"
|
#include "mbed_assert.h"
|
||||||
#include "platform/mbed_power_mgmt.h"
|
#include "platform/mbed_power_mgmt.h"
|
||||||
#include "platform/CriticalSectionLock.h"
|
#include "platform/CriticalSectionLock.h"
|
||||||
#include "source/SysTimer.h"
|
#include "platform/internal/SysTimer.h"
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#if MBED_CONF_RTOS_PRESENT
|
#if MBED_CONF_RTOS_PRESENT
|
||||||
#include "rtx_lib.h"
|
#include "rtx_lib.h"
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
#include "platform/mbed_power_mgmt.h"
|
#include "platform/mbed_power_mgmt.h"
|
||||||
#include "platform/mbed_stats.h"
|
#include "platform/mbed_stats.h"
|
||||||
#include "platform/internal/mbed_fault_handler.h"
|
#include "platform/internal/mbed_fault_handler.h"
|
||||||
#include "source/mbed_error_hist.h"
|
#include "platform/internal/mbed_error_hist.h"
|
||||||
#include "drivers/MbedCRC.h"
|
#include "drivers/MbedCRC.h"
|
||||||
#include "mbed_rtx.h"
|
#include "mbed_rtx.h"
|
||||||
#ifdef MBED_CONF_RTOS_PRESENT
|
#ifdef MBED_CONF_RTOS_PRESENT
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#include "platform/mbed_critical.h"
|
#include "platform/mbed_critical.h"
|
||||||
|
|
||||||
#if MBED_CONF_PLATFORM_ERROR_HIST_ENABLED
|
#if MBED_CONF_PLATFORM_ERROR_HIST_ENABLED
|
||||||
#include "source/mbed_error_hist.h"
|
#include "platform/internal/mbed_error_hist.h"
|
||||||
|
|
||||||
static mbed_error_ctx mbed_error_ctx_log[MBED_CONF_PLATFORM_ERROR_HIST_SIZE] = {0};
|
static mbed_error_ctx mbed_error_ctx_log[MBED_CONF_PLATFORM_ERROR_HIST_SIZE] = {0};
|
||||||
static int error_log_count = -1;
|
static int error_log_count = -1;
|
||||||
|
|
|
@ -17,8 +17,8 @@
|
||||||
|
|
||||||
#include "platform/mbed_power_mgmt.h"
|
#include "platform/mbed_power_mgmt.h"
|
||||||
#include "platform/CriticalSectionLock.h"
|
#include "platform/CriticalSectionLock.h"
|
||||||
#include "source/SysTimer.h"
|
#include "paltform/internal/SysTimer.h"
|
||||||
#include "source/mbed_os_timer.h"
|
#include "platform/internal/mbed_os_timer.h"
|
||||||
#include "us_ticker_api.h"
|
#include "us_ticker_api.h"
|
||||||
#include "lp_ticker_api.h"
|
#include "lp_ticker_api.h"
|
||||||
#include "mbed_critical.h"
|
#include "mbed_critical.h"
|
||||||
|
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
#include "platform/mbed_thread.h"
|
#include "platform/mbed_thread.h"
|
||||||
#include "platform/mbed_critical.h"
|
#include "platform/mbed_critical.h"
|
||||||
#include "source/mbed_os_timer.h"
|
#include "platform/internal/mbed_os_timer.h"
|
||||||
|
|
||||||
/* If the RTOS is present, we call the RTOS API to do the work */
|
/* If the RTOS is present, we call the RTOS API to do the work */
|
||||||
/* If the RTOS is not present, the RTOS API calls us to do the work */
|
/* If the RTOS is not present, the RTOS API calls us to do the work */
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
#include "rtos/mbed_rtos_types.h"
|
#include "rtos/mbed_rtos_types.h"
|
||||||
#include "platform/mbed_toolchain.h"
|
#include "platform/mbed_toolchain.h"
|
||||||
#if !MBED_CONF_RTOS_PRESENT
|
#if !MBED_CONF_RTOS_PRESENT
|
||||||
#include "platform/source/mbed_os_timer.h"
|
#include "platform/internal/mbed_os_timer.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
*/
|
*/
|
||||||
#include "rtos/EventFlags.h"
|
#include "rtos/EventFlags.h"
|
||||||
#include "rtos/ThisThread.h"
|
#include "rtos/ThisThread.h"
|
||||||
#include "mbed_os_timer.h"
|
#include "platform/internal/mbed_os_timer.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "platform/mbed_error.h"
|
#include "platform/mbed_error.h"
|
||||||
#include "platform/mbed_assert.h"
|
#include "platform/mbed_assert.h"
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
#include "rtos_idle.h"
|
#include "rtos_idle.h"
|
||||||
#include "rtos_handlers.h"
|
#include "rtos_handlers.h"
|
||||||
#include "platform/mbed_critical.h"
|
#include "platform/mbed_critical.h"
|
||||||
#include "platform/source/mbed_os_timer.h"
|
#include "platform/internal/mbed_os_timer.h"
|
||||||
|
|
||||||
#if !MBED_CONF_RTOS_PRESENT
|
#if !MBED_CONF_RTOS_PRESENT
|
||||||
/* If the RTOS is not present, we call mbed_thread.cpp to do the work */
|
/* If the RTOS is not present, we call mbed_thread.cpp to do the work */
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
#include "platform/mbed_assert.h"
|
#include "platform/mbed_assert.h"
|
||||||
#include "platform/mbed_critical.h"
|
#include "platform/mbed_critical.h"
|
||||||
#include "platform/mbed_error.h"
|
#include "platform/mbed_error.h"
|
||||||
#include "platform/source/mbed_os_timer.h"
|
#include "platform/internal/mbed_os_timer.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
|
|
@ -24,7 +24,7 @@
|
||||||
#include "rtos/source/rtos_idle.h"
|
#include "rtos/source/rtos_idle.h"
|
||||||
#include "rtos/Kernel.h"
|
#include "rtos/Kernel.h"
|
||||||
#include "platform/mbed_power_mgmt.h"
|
#include "platform/mbed_power_mgmt.h"
|
||||||
#include "platform/source/mbed_os_timer.h"
|
#include "platform/internal/mbed_os_timer.h"
|
||||||
#include "TimerEvent.h"
|
#include "TimerEvent.h"
|
||||||
#include "mbed_critical.h"
|
#include "mbed_critical.h"
|
||||||
#include "mbed_assert.h"
|
#include "mbed_assert.h"
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
#include "platform/CriticalSectionLock.h"
|
#include "platform/CriticalSectionLock.h"
|
||||||
#include "platform/mbed_assert.h"
|
#include "platform/mbed_assert.h"
|
||||||
#include "platform/mbed_critical.h"
|
#include "platform/mbed_critical.h"
|
||||||
#include "platform/source/mbed_os_timer.h"
|
#include "platform/internal/mbed_os_timer.h"
|
||||||
|
|
||||||
using std::milli;
|
using std::milli;
|
||||||
using std::chrono::duration;
|
using std::chrono::duration;
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
#include "utest.h"
|
#include "utest.h"
|
||||||
#include "ticker_api.h"
|
#include "ticker_api.h"
|
||||||
|
|
||||||
#include "platform/source/SysTimer.h"
|
#include "platform/internal/SysTimer.h"
|
||||||
|
|
||||||
using namespace std::chrono;
|
using namespace std::chrono;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue