File tree Expand file tree Collapse file tree 5 files changed +10
-12
lines changed
TESTS/mbedmicro-rtos-mbed/systimer Expand file tree Collapse file tree 5 files changed +10
-12
lines changed Original file line number Diff line number Diff line change 26
26
extern " C" {
27
27
#include " rtx_lib.h"
28
28
}
29
- #include " rtos/TARGET_CORTEX /SysTimer.h"
29
+ #include " platform /SysTimer.h"
30
30
31
31
#define TEST_TICKS 42UL
32
32
#define DELAY_DELTA_US 2500ULL
@@ -44,7 +44,7 @@ using namespace utest::v1;
44
44
const us_timestamp_t DELAY_US = 1000000ULL * TEST_TICKS / OS_TICK_FREQ;
45
45
46
46
// Override the handler() -- the SysTick interrupt must not be set as pending by the test code.
47
- class SysTimerTest : public rtos ::internal::SysTimer {
47
+ class SysTimerTest : public mbed ::internal::SysTimer {
48
48
private:
49
49
Semaphore _sem;
50
50
virtual void handler ()
Original file line number Diff line number Diff line change 19
19
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20
20
* SOFTWARE.
21
21
*/
22
- #include " rtos/TARGET_CORTEX /SysTimer.h"
22
+ #include " platform /SysTimer.h"
23
23
24
24
#if MBED_TICKLESS
25
25
@@ -55,7 +55,7 @@ extern "C" IRQn_Type mbed_get_m0_tick_irqn(void);
55
55
extern " C" IRQn_ID_t mbed_get_a9_tick_irqn (void );
56
56
#endif
57
57
58
- namespace rtos {
58
+ namespace mbed {
59
59
namespace internal {
60
60
61
61
SysTimer::SysTimer () :
Original file line number Diff line number Diff line change 27
27
#include " platform/NonCopyable.h"
28
28
#include " drivers/TimerEvent.h"
29
29
30
- namespace rtos {
30
+ namespace mbed {
31
31
namespace internal {
32
32
33
33
/* *
Original file line number Diff line number Diff line change @@ -7,8 +7,6 @@ Files licensed under MIT:
7
7
- TARGET_CORTEX/mbed_rtos_storage.h
8
8
- TARGET_CORTEX/mbed_rtx_conf.h
9
9
- TARGET_CORTEX/mbed_rtx_idle.cpp
10
- - TARGET_CORTEX/SysTimer.h
11
- - TARGET_CORTEX/SysTimer.cpp
12
10
- ConditionVariable.cpp
13
11
- ConditionVariable.h
14
12
- EventFlags.cpp
Original file line number Diff line number Diff line change @@ -46,20 +46,20 @@ extern "C" {
46
46
#error Low power ticker required when MBED_CONF_TARGET_TICKLESS_FROM_US_TICKER is false
47
47
#endif
48
48
49
- #include " rtos/TARGET_CORTEX /SysTimer.h"
49
+ #include " platform /SysTimer.h"
50
50
51
- static rtos ::internal::SysTimer *os_timer;
52
- static uint64_t os_timer_data[sizeof (rtos ::internal::SysTimer) / 8 ];
51
+ static mbed ::internal::SysTimer *os_timer;
52
+ static uint64_t os_timer_data[sizeof (mbed ::internal::SysTimer) / 8 ];
53
53
54
54
// Enable System Timer.
55
55
void OS_Tick_Enable (void )
56
56
{
57
57
// Do not use SingletonPtr since this relies on the RTOS
58
58
if (NULL == os_timer) {
59
59
#if MBED_CONF_TARGET_TICKLESS_FROM_US_TICKER
60
- os_timer = new (os_timer_data) rtos ::internal::SysTimer (get_us_ticker_data ());
60
+ os_timer = new (os_timer_data) mbed ::internal::SysTimer (get_us_ticker_data ());
61
61
#else
62
- os_timer = new (os_timer_data) rtos ::internal::SysTimer (get_lp_ticker_data ());
62
+ os_timer = new (os_timer_data) mbed ::internal::SysTimer (get_lp_ticker_data ());
63
63
#endif
64
64
os_timer->setup_irq ();
65
65
}
You can’t perform that action at this time.
0 commit comments