This is a port of the mruby/c tutorial Chapter 03 to the mbed environment.

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

rrt0.h File Reference

rrt0.h File Reference

Realtime multitask monitor for mruby/c. More...

Go to the source code of this file.

Enumerations

enum  MrbcTaskState
 

Task state.

More...

Functions

void mrbc_tick (void)
void mrbc_init (void)
MrbcTcb * mrbc_create_task (const uint8_t *vm_code, MrbcTcb *tcb)
int mrbc_run (void)
void mrbc_sleep_ms (MrbcTcb *tcb, uint32_t ms)
void mrbc_relinquish (MrbcTcb *tcb)
void mrbc_change_priority (MrbcTcb *tcb, int priority)
void mrbc_suspend_task (MrbcTcb *tcb)
void mrbc_resume_task (MrbcTcb *tcb)

Detailed Description

Realtime multitask monitor for mruby/c.

  Copyright (C) 2016 Kyushu Institute of Technology.
  Copyright (C) 2016 Shimane IT Open-Innovation Center.
  This file is distributed under BSD 3-Clause License.
  

Definition in file rrt0.h.


Enumeration Type Documentation

Task state.

Definition at line 31 of file rrt0.h.


Function Documentation

void mrbc_change_priority ( MrbcTcb *  tcb,
int  priority 
)

プライオリティーの変更 TODO: No check, yet.

Definition at line 482 of file rrt0.c.

MrbcTcb* mrbc_create_task ( const uint8_t *  vm_code,
MrbcTcb *  tcb 
)

specify running VM code.

Parameters:
vm_codepointer of VM byte code.
tcbTask control block with parameter, or NULL.
Return values:
Pointerof MrbcTcb.
NULLis error.

Definition at line 351 of file rrt0.c.

void mrbc_init ( void   )

initialize

Definition at line 324 of file rrt0.c.

void mrbc_relinquish ( MrbcTcb *  tcb )

実行権を手放す

Definition at line 471 of file rrt0.c.

void mrbc_resume_task ( MrbcTcb *  tcb )

実行再開

Definition at line 511 of file rrt0.c.

int mrbc_run ( void   )

execute

Definition at line 386 of file rrt0.c.

void mrbc_sleep_ms ( MrbcTcb *  tcb,
uint32_t  ms 
)

実行一時停止

Definition at line 453 of file rrt0.c.

void mrbc_suspend_task ( MrbcTcb *  tcb )

実行停止

Definition at line 495 of file rrt0.c.

void mrbc_tick ( void   )

Tick timer interrupt handler.

Definition at line 279 of file rrt0.c.