うおーるぼっとをWiiリモコンでコントロールする新しいプログラムです。 以前のものより、Wiiリモコンが早く繋がる様になりました。 It is a program which controls A with the Wii remote. ※ A Bluetooth dongle and a Wii remote control are needed.

Dependencies:   USBHost mbed FATFileSystem mbed-rtos

Committer:
jksoft
Date:
Mon Jun 10 16:01:50 2013 +0000
Revision:
0:fccb789424fc
1.0

Who changed what in which revision?

UserRevisionLine numberNew contents of line
jksoft 0:fccb789424fc 1 /*----------------------------------------------------------------------------
jksoft 0:fccb789424fc 2 * RL-ARM - RTX
jksoft 0:fccb789424fc 3 *----------------------------------------------------------------------------
jksoft 0:fccb789424fc 4 * Name: RT_LIST.H
jksoft 0:fccb789424fc 5 * Purpose: Functions for the management of different lists
jksoft 0:fccb789424fc 6 * Rev.: V4.60
jksoft 0:fccb789424fc 7 *----------------------------------------------------------------------------
jksoft 0:fccb789424fc 8 *
jksoft 0:fccb789424fc 9 * Copyright (c) 1999-2009 KEIL, 2009-2012 ARM Germany GmbH
jksoft 0:fccb789424fc 10 * All rights reserved.
jksoft 0:fccb789424fc 11 * Redistribution and use in source and binary forms, with or without
jksoft 0:fccb789424fc 12 * modification, are permitted provided that the following conditions are met:
jksoft 0:fccb789424fc 13 * - Redistributions of source code must retain the above copyright
jksoft 0:fccb789424fc 14 * notice, this list of conditions and the following disclaimer.
jksoft 0:fccb789424fc 15 * - Redistributions in binary form must reproduce the above copyright
jksoft 0:fccb789424fc 16 * notice, this list of conditions and the following disclaimer in the
jksoft 0:fccb789424fc 17 * documentation and/or other materials provided with the distribution.
jksoft 0:fccb789424fc 18 * - Neither the name of ARM nor the names of its contributors may be used
jksoft 0:fccb789424fc 19 * to endorse or promote products derived from this software without
jksoft 0:fccb789424fc 20 * specific prior written permission.
jksoft 0:fccb789424fc 21 *
jksoft 0:fccb789424fc 22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
jksoft 0:fccb789424fc 23 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
jksoft 0:fccb789424fc 24 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
jksoft 0:fccb789424fc 25 * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE
jksoft 0:fccb789424fc 26 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
jksoft 0:fccb789424fc 27 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
jksoft 0:fccb789424fc 28 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
jksoft 0:fccb789424fc 29 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
jksoft 0:fccb789424fc 30 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
jksoft 0:fccb789424fc 31 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
jksoft 0:fccb789424fc 32 * POSSIBILITY OF SUCH DAMAGE.
jksoft 0:fccb789424fc 33 *---------------------------------------------------------------------------*/
jksoft 0:fccb789424fc 34
jksoft 0:fccb789424fc 35 /* Definitions */
jksoft 0:fccb789424fc 36
jksoft 0:fccb789424fc 37 /* Values for 'cb_type' */
jksoft 0:fccb789424fc 38 #define TCB 0
jksoft 0:fccb789424fc 39 #define MCB 1
jksoft 0:fccb789424fc 40 #define SCB 2
jksoft 0:fccb789424fc 41 #define MUCB 3
jksoft 0:fccb789424fc 42 #define HCB 4
jksoft 0:fccb789424fc 43
jksoft 0:fccb789424fc 44 /* Variables */
jksoft 0:fccb789424fc 45 extern struct OS_XCB os_rdy;
jksoft 0:fccb789424fc 46 extern struct OS_XCB os_dly;
jksoft 0:fccb789424fc 47
jksoft 0:fccb789424fc 48 /* Functions */
jksoft 0:fccb789424fc 49 extern void rt_put_prio (P_XCB p_CB, P_TCB p_task);
jksoft 0:fccb789424fc 50 extern P_TCB rt_get_first (P_XCB p_CB);
jksoft 0:fccb789424fc 51 extern void rt_put_rdy_first (P_TCB p_task);
jksoft 0:fccb789424fc 52 extern P_TCB rt_get_same_rdy_prio (void);
jksoft 0:fccb789424fc 53 extern void rt_resort_prio (P_TCB p_task);
jksoft 0:fccb789424fc 54 extern void rt_put_dly (P_TCB p_task, U16 delay);
jksoft 0:fccb789424fc 55 extern void rt_dec_dly (void);
jksoft 0:fccb789424fc 56 extern void rt_rmv_list (P_TCB p_task);
jksoft 0:fccb789424fc 57 extern void rt_rmv_dly (P_TCB p_task);
jksoft 0:fccb789424fc 58 extern void rt_psq_enq (OS_ID entry, U32 arg);
jksoft 0:fccb789424fc 59
jksoft 0:fccb789424fc 60 /* This is a fast macro generating in-line code */
jksoft 0:fccb789424fc 61 #define rt_rdy_prio(void) (os_rdy.p_lnk->prio)
jksoft 0:fccb789424fc 62
jksoft 0:fccb789424fc 63
jksoft 0:fccb789424fc 64 /*----------------------------------------------------------------------------
jksoft 0:fccb789424fc 65 * end of file
jksoft 0:fccb789424fc 66 *---------------------------------------------------------------------------*/
jksoft 0:fccb789424fc 67