skeleton for lab1

Dependencies:   AvailableMemory mbed-rtos mbed

Fork of helloaabbc by 32314 mbed

Committer:
y7jin
Date:
Thu Apr 03 22:56:32 2014 +0000
Revision:
0:1c8f2727e9f5
hello

Who changed what in which revision?

UserRevisionLine numberNew contents of line
y7jin 0:1c8f2727e9f5 1 /*----------------------------------------------------------------------------
y7jin 0:1c8f2727e9f5 2 * RL-ARM - RTX
y7jin 0:1c8f2727e9f5 3 *----------------------------------------------------------------------------
y7jin 0:1c8f2727e9f5 4 * Name: RT_MAILBOX.C
y7jin 0:1c8f2727e9f5 5 * Purpose: Implements waits and wake-ups for mailbox messages
y7jin 0:1c8f2727e9f5 6 * Rev.: V4.60
y7jin 0:1c8f2727e9f5 7 *----------------------------------------------------------------------------
y7jin 0:1c8f2727e9f5 8 *
y7jin 0:1c8f2727e9f5 9 * Copyright (c) 1999-2009 KEIL, 2009-2012 ARM Germany GmbH
y7jin 0:1c8f2727e9f5 10 * All rights reserved.
y7jin 0:1c8f2727e9f5 11 * Redistribution and use in source and binary forms, with or without
y7jin 0:1c8f2727e9f5 12 * modification, are permitted provided that the following conditions are met:
y7jin 0:1c8f2727e9f5 13 * - Redistributions of source code must retain the above copyright
y7jin 0:1c8f2727e9f5 14 * notice, this list of conditions and the following disclaimer.
y7jin 0:1c8f2727e9f5 15 * - Redistributions in binary form must reproduce the above copyright
y7jin 0:1c8f2727e9f5 16 * notice, this list of conditions and the following disclaimer in the
y7jin 0:1c8f2727e9f5 17 * documentation and/or other materials provided with the distribution.
y7jin 0:1c8f2727e9f5 18 * - Neither the name of ARM nor the names of its contributors may be used
y7jin 0:1c8f2727e9f5 19 * to endorse or promote products derived from this software without
y7jin 0:1c8f2727e9f5 20 * specific prior written permission.
y7jin 0:1c8f2727e9f5 21 *
y7jin 0:1c8f2727e9f5 22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
y7jin 0:1c8f2727e9f5 23 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
y7jin 0:1c8f2727e9f5 24 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
y7jin 0:1c8f2727e9f5 25 * ARE DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDERS AND CONTRIBUTORS BE
y7jin 0:1c8f2727e9f5 26 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
y7jin 0:1c8f2727e9f5 27 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
y7jin 0:1c8f2727e9f5 28 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
y7jin 0:1c8f2727e9f5 29 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
y7jin 0:1c8f2727e9f5 30 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
y7jin 0:1c8f2727e9f5 31 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
y7jin 0:1c8f2727e9f5 32 * POSSIBILITY OF SUCH DAMAGE.
y7jin 0:1c8f2727e9f5 33 *---------------------------------------------------------------------------*/
y7jin 0:1c8f2727e9f5 34
y7jin 0:1c8f2727e9f5 35 #include "rt_TypeDef.h"
y7jin 0:1c8f2727e9f5 36 #include "RTX_Config.h"
y7jin 0:1c8f2727e9f5 37 #include "rt_System.h"
y7jin 0:1c8f2727e9f5 38 #include "rt_List.h"
y7jin 0:1c8f2727e9f5 39 #include "rt_Mailbox.h"
y7jin 0:1c8f2727e9f5 40 #include "rt_MemBox.h"
y7jin 0:1c8f2727e9f5 41 #include "rt_Task.h"
y7jin 0:1c8f2727e9f5 42 #include "rt_HAL_CM.h"
y7jin 0:1c8f2727e9f5 43
y7jin 0:1c8f2727e9f5 44
y7jin 0:1c8f2727e9f5 45 /*----------------------------------------------------------------------------
y7jin 0:1c8f2727e9f5 46 * Functions
y7jin 0:1c8f2727e9f5 47 *---------------------------------------------------------------------------*/
y7jin 0:1c8f2727e9f5 48
y7jin 0:1c8f2727e9f5 49
y7jin 0:1c8f2727e9f5 50 /*--------------------------- rt_mbx_init -----------------------------------*/
y7jin 0:1c8f2727e9f5 51
y7jin 0:1c8f2727e9f5 52 void rt_mbx_init (OS_ID mailbox, U16 mbx_size) {
y7jin 0:1c8f2727e9f5 53 /* Initialize a mailbox */
y7jin 0:1c8f2727e9f5 54 P_MCB p_MCB = mailbox;
y7jin 0:1c8f2727e9f5 55
y7jin 0:1c8f2727e9f5 56 p_MCB->cb_type = MCB;
y7jin 0:1c8f2727e9f5 57 p_MCB->state = 0;
y7jin 0:1c8f2727e9f5 58 p_MCB->isr_st = 0;
y7jin 0:1c8f2727e9f5 59 p_MCB->p_lnk = NULL;
y7jin 0:1c8f2727e9f5 60 p_MCB->first = 0;
y7jin 0:1c8f2727e9f5 61 p_MCB->last = 0;
y7jin 0:1c8f2727e9f5 62 p_MCB->count = 0;
y7jin 0:1c8f2727e9f5 63 p_MCB->size = (mbx_size + sizeof(void *) - sizeof(struct OS_MCB)) /
y7jin 0:1c8f2727e9f5 64 (U32)sizeof (void *);
y7jin 0:1c8f2727e9f5 65 }
y7jin 0:1c8f2727e9f5 66
y7jin 0:1c8f2727e9f5 67
y7jin 0:1c8f2727e9f5 68 /*--------------------------- rt_mbx_send -----------------------------------*/
y7jin 0:1c8f2727e9f5 69
y7jin 0:1c8f2727e9f5 70 OS_RESULT rt_mbx_send (OS_ID mailbox, void *p_msg, U16 timeout) {
y7jin 0:1c8f2727e9f5 71 /* Send message to a mailbox */
y7jin 0:1c8f2727e9f5 72 P_MCB p_MCB = mailbox;
y7jin 0:1c8f2727e9f5 73 P_TCB p_TCB;
y7jin 0:1c8f2727e9f5 74
y7jin 0:1c8f2727e9f5 75 if ((p_MCB->p_lnk != NULL) && (p_MCB->state == 1)) {
y7jin 0:1c8f2727e9f5 76 /* A task is waiting for message */
y7jin 0:1c8f2727e9f5 77 p_TCB = rt_get_first ((P_XCB)p_MCB);
y7jin 0:1c8f2727e9f5 78 #ifdef __CMSIS_RTOS
y7jin 0:1c8f2727e9f5 79 rt_ret_val2(p_TCB, 0x10/*osEventMessage*/, (U32)p_msg);
y7jin 0:1c8f2727e9f5 80 #else
y7jin 0:1c8f2727e9f5 81 *p_TCB->msg = p_msg;
y7jin 0:1c8f2727e9f5 82 rt_ret_val (p_TCB, OS_R_MBX);
y7jin 0:1c8f2727e9f5 83 #endif
y7jin 0:1c8f2727e9f5 84 rt_rmv_dly (p_TCB);
y7jin 0:1c8f2727e9f5 85 rt_dispatch (p_TCB);
y7jin 0:1c8f2727e9f5 86 }
y7jin 0:1c8f2727e9f5 87 else {
y7jin 0:1c8f2727e9f5 88 /* Store message in mailbox queue */
y7jin 0:1c8f2727e9f5 89 if (p_MCB->count == p_MCB->size) {
y7jin 0:1c8f2727e9f5 90 /* No free message entry, wait for one. If message queue is full, */
y7jin 0:1c8f2727e9f5 91 /* then no task is waiting for message. The 'p_MCB->p_lnk' list */
y7jin 0:1c8f2727e9f5 92 /* pointer can now be reused for send message waits task list. */
y7jin 0:1c8f2727e9f5 93 if (timeout == 0) {
y7jin 0:1c8f2727e9f5 94 return (OS_R_TMO);
y7jin 0:1c8f2727e9f5 95 }
y7jin 0:1c8f2727e9f5 96 if (p_MCB->p_lnk != NULL) {
y7jin 0:1c8f2727e9f5 97 rt_put_prio ((P_XCB)p_MCB, os_tsk.run);
y7jin 0:1c8f2727e9f5 98 }
y7jin 0:1c8f2727e9f5 99 else {
y7jin 0:1c8f2727e9f5 100 p_MCB->p_lnk = os_tsk.run;
y7jin 0:1c8f2727e9f5 101 os_tsk.run->p_lnk = NULL;
y7jin 0:1c8f2727e9f5 102 os_tsk.run->p_rlnk = (P_TCB)p_MCB;
y7jin 0:1c8f2727e9f5 103 /* Task is waiting to send a message */
y7jin 0:1c8f2727e9f5 104 p_MCB->state = 2;
y7jin 0:1c8f2727e9f5 105 }
y7jin 0:1c8f2727e9f5 106 os_tsk.run->msg = p_msg;
y7jin 0:1c8f2727e9f5 107 rt_block (timeout, WAIT_MBX);
y7jin 0:1c8f2727e9f5 108 return (OS_R_TMO);
y7jin 0:1c8f2727e9f5 109 }
y7jin 0:1c8f2727e9f5 110 /* Yes, there is a free entry in a mailbox. */
y7jin 0:1c8f2727e9f5 111 p_MCB->msg[p_MCB->first] = p_msg;
y7jin 0:1c8f2727e9f5 112 rt_inc (&p_MCB->count);
y7jin 0:1c8f2727e9f5 113 if (++p_MCB->first == p_MCB->size) {
y7jin 0:1c8f2727e9f5 114 p_MCB->first = 0;
y7jin 0:1c8f2727e9f5 115 }
y7jin 0:1c8f2727e9f5 116 }
y7jin 0:1c8f2727e9f5 117 return (OS_R_OK);
y7jin 0:1c8f2727e9f5 118 }
y7jin 0:1c8f2727e9f5 119
y7jin 0:1c8f2727e9f5 120
y7jin 0:1c8f2727e9f5 121 /*--------------------------- rt_mbx_wait -----------------------------------*/
y7jin 0:1c8f2727e9f5 122
y7jin 0:1c8f2727e9f5 123 OS_RESULT rt_mbx_wait (OS_ID mailbox, void **message, U16 timeout) {
y7jin 0:1c8f2727e9f5 124 /* Receive a message; possibly wait for it */
y7jin 0:1c8f2727e9f5 125 P_MCB p_MCB = mailbox;
y7jin 0:1c8f2727e9f5 126 P_TCB p_TCB;
y7jin 0:1c8f2727e9f5 127
y7jin 0:1c8f2727e9f5 128 /* If a message is available in the fifo buffer */
y7jin 0:1c8f2727e9f5 129 /* remove it from the fifo buffer and return. */
y7jin 0:1c8f2727e9f5 130 if (p_MCB->count) {
y7jin 0:1c8f2727e9f5 131 *message = p_MCB->msg[p_MCB->last];
y7jin 0:1c8f2727e9f5 132 if (++p_MCB->last == p_MCB->size) {
y7jin 0:1c8f2727e9f5 133 p_MCB->last = 0;
y7jin 0:1c8f2727e9f5 134 }
y7jin 0:1c8f2727e9f5 135 if ((p_MCB->p_lnk != NULL) && (p_MCB->state == 2)) {
y7jin 0:1c8f2727e9f5 136 /* A task is waiting to send message */
y7jin 0:1c8f2727e9f5 137 p_TCB = rt_get_first ((P_XCB)p_MCB);
y7jin 0:1c8f2727e9f5 138 #ifdef __CMSIS_RTOS
y7jin 0:1c8f2727e9f5 139 rt_ret_val(p_TCB, 0/*osOK*/);
y7jin 0:1c8f2727e9f5 140 #else
y7jin 0:1c8f2727e9f5 141 rt_ret_val(p_TCB, OS_R_OK);
y7jin 0:1c8f2727e9f5 142 #endif
y7jin 0:1c8f2727e9f5 143 p_MCB->msg[p_MCB->first] = p_TCB->msg;
y7jin 0:1c8f2727e9f5 144 if (++p_MCB->first == p_MCB->size) {
y7jin 0:1c8f2727e9f5 145 p_MCB->first = 0;
y7jin 0:1c8f2727e9f5 146 }
y7jin 0:1c8f2727e9f5 147 rt_rmv_dly (p_TCB);
y7jin 0:1c8f2727e9f5 148 rt_dispatch (p_TCB);
y7jin 0:1c8f2727e9f5 149 }
y7jin 0:1c8f2727e9f5 150 else {
y7jin 0:1c8f2727e9f5 151 rt_dec (&p_MCB->count);
y7jin 0:1c8f2727e9f5 152 }
y7jin 0:1c8f2727e9f5 153 return (OS_R_OK);
y7jin 0:1c8f2727e9f5 154 }
y7jin 0:1c8f2727e9f5 155 /* No message available: wait for one */
y7jin 0:1c8f2727e9f5 156 if (timeout == 0) {
y7jin 0:1c8f2727e9f5 157 return (OS_R_TMO);
y7jin 0:1c8f2727e9f5 158 }
y7jin 0:1c8f2727e9f5 159 if (p_MCB->p_lnk != NULL) {
y7jin 0:1c8f2727e9f5 160 rt_put_prio ((P_XCB)p_MCB, os_tsk.run);
y7jin 0:1c8f2727e9f5 161 }
y7jin 0:1c8f2727e9f5 162 else {
y7jin 0:1c8f2727e9f5 163 p_MCB->p_lnk = os_tsk.run;
y7jin 0:1c8f2727e9f5 164 os_tsk.run->p_lnk = NULL;
y7jin 0:1c8f2727e9f5 165 os_tsk.run->p_rlnk = (P_TCB)p_MCB;
y7jin 0:1c8f2727e9f5 166 /* Task is waiting to receive a message */
y7jin 0:1c8f2727e9f5 167 p_MCB->state = 1;
y7jin 0:1c8f2727e9f5 168 }
y7jin 0:1c8f2727e9f5 169 rt_block(timeout, WAIT_MBX);
y7jin 0:1c8f2727e9f5 170 #ifndef __CMSIS_RTOS
y7jin 0:1c8f2727e9f5 171 os_tsk.run->msg = message;
y7jin 0:1c8f2727e9f5 172 #endif
y7jin 0:1c8f2727e9f5 173 return (OS_R_TMO);
y7jin 0:1c8f2727e9f5 174 }
y7jin 0:1c8f2727e9f5 175
y7jin 0:1c8f2727e9f5 176
y7jin 0:1c8f2727e9f5 177 /*--------------------------- rt_mbx_check ----------------------------------*/
y7jin 0:1c8f2727e9f5 178
y7jin 0:1c8f2727e9f5 179 OS_RESULT rt_mbx_check (OS_ID mailbox) {
y7jin 0:1c8f2727e9f5 180 /* Check for free space in a mailbox. Returns the number of messages */
y7jin 0:1c8f2727e9f5 181 /* that can be stored to a mailbox. It returns 0 when mailbox is full. */
y7jin 0:1c8f2727e9f5 182 P_MCB p_MCB = mailbox;
y7jin 0:1c8f2727e9f5 183
y7jin 0:1c8f2727e9f5 184 return (p_MCB->size - p_MCB->count);
y7jin 0:1c8f2727e9f5 185 }
y7jin 0:1c8f2727e9f5 186
y7jin 0:1c8f2727e9f5 187
y7jin 0:1c8f2727e9f5 188 /*--------------------------- isr_mbx_send ----------------------------------*/
y7jin 0:1c8f2727e9f5 189
y7jin 0:1c8f2727e9f5 190 void isr_mbx_send (OS_ID mailbox, void *p_msg) {
y7jin 0:1c8f2727e9f5 191 /* Same function as "os_mbx_send", but to be called by ISRs. */
y7jin 0:1c8f2727e9f5 192 P_MCB p_MCB = mailbox;
y7jin 0:1c8f2727e9f5 193
y7jin 0:1c8f2727e9f5 194 rt_psq_enq (p_MCB, (U32)p_msg);
y7jin 0:1c8f2727e9f5 195 rt_psh_req ();
y7jin 0:1c8f2727e9f5 196 }
y7jin 0:1c8f2727e9f5 197
y7jin 0:1c8f2727e9f5 198
y7jin 0:1c8f2727e9f5 199 /*--------------------------- isr_mbx_receive -------------------------------*/
y7jin 0:1c8f2727e9f5 200
y7jin 0:1c8f2727e9f5 201 OS_RESULT isr_mbx_receive (OS_ID mailbox, void **message) {
y7jin 0:1c8f2727e9f5 202 /* Receive a message in the interrupt function. The interrupt function */
y7jin 0:1c8f2727e9f5 203 /* should not wait for a message since this would block the rtx os. */
y7jin 0:1c8f2727e9f5 204 P_MCB p_MCB = mailbox;
y7jin 0:1c8f2727e9f5 205
y7jin 0:1c8f2727e9f5 206 if (p_MCB->count) {
y7jin 0:1c8f2727e9f5 207 /* A message is available in the fifo buffer. */
y7jin 0:1c8f2727e9f5 208 *message = p_MCB->msg[p_MCB->last];
y7jin 0:1c8f2727e9f5 209 if (p_MCB->state == 2) {
y7jin 0:1c8f2727e9f5 210 /* A task is locked waiting to send message */
y7jin 0:1c8f2727e9f5 211 rt_psq_enq (p_MCB, 0);
y7jin 0:1c8f2727e9f5 212 rt_psh_req ();
y7jin 0:1c8f2727e9f5 213 }
y7jin 0:1c8f2727e9f5 214 rt_dec (&p_MCB->count);
y7jin 0:1c8f2727e9f5 215 if (++p_MCB->last == p_MCB->size) {
y7jin 0:1c8f2727e9f5 216 p_MCB->last = 0;
y7jin 0:1c8f2727e9f5 217 }
y7jin 0:1c8f2727e9f5 218 return (OS_R_MBX);
y7jin 0:1c8f2727e9f5 219 }
y7jin 0:1c8f2727e9f5 220 return (OS_R_OK);
y7jin 0:1c8f2727e9f5 221 }
y7jin 0:1c8f2727e9f5 222
y7jin 0:1c8f2727e9f5 223
y7jin 0:1c8f2727e9f5 224 /*--------------------------- rt_mbx_psh ------------------------------------*/
y7jin 0:1c8f2727e9f5 225
y7jin 0:1c8f2727e9f5 226 void rt_mbx_psh (P_MCB p_CB, void *p_msg) {
y7jin 0:1c8f2727e9f5 227 /* Store the message to the mailbox queue or pass it to task directly. */
y7jin 0:1c8f2727e9f5 228 P_TCB p_TCB;
y7jin 0:1c8f2727e9f5 229 void *mem;
y7jin 0:1c8f2727e9f5 230
y7jin 0:1c8f2727e9f5 231 if (p_CB->p_lnk != NULL) switch (p_CB->state) {
y7jin 0:1c8f2727e9f5 232 #ifdef __CMSIS_RTOS
y7jin 0:1c8f2727e9f5 233 case 3:
y7jin 0:1c8f2727e9f5 234 /* Task is waiting to allocate memory, remove it from the waiting list */
y7jin 0:1c8f2727e9f5 235 mem = rt_alloc_box(p_msg);
y7jin 0:1c8f2727e9f5 236 if (mem == NULL) break;
y7jin 0:1c8f2727e9f5 237 p_TCB = rt_get_first ((P_XCB)p_CB);
y7jin 0:1c8f2727e9f5 238 rt_ret_val(p_TCB, (U32)mem);
y7jin 0:1c8f2727e9f5 239 p_TCB->state = READY;
y7jin 0:1c8f2727e9f5 240 rt_rmv_dly (p_TCB);
y7jin 0:1c8f2727e9f5 241 rt_put_prio (&os_rdy, p_TCB);
y7jin 0:1c8f2727e9f5 242 break;
y7jin 0:1c8f2727e9f5 243 #endif
y7jin 0:1c8f2727e9f5 244 case 2:
y7jin 0:1c8f2727e9f5 245 /* Task is waiting to send a message, remove it from the waiting list */
y7jin 0:1c8f2727e9f5 246 p_TCB = rt_get_first ((P_XCB)p_CB);
y7jin 0:1c8f2727e9f5 247 #ifdef __CMSIS_RTOS
y7jin 0:1c8f2727e9f5 248 rt_ret_val(p_TCB, 0/*osOK*/);
y7jin 0:1c8f2727e9f5 249 #else
y7jin 0:1c8f2727e9f5 250 rt_ret_val(p_TCB, OS_R_OK);
y7jin 0:1c8f2727e9f5 251 #endif
y7jin 0:1c8f2727e9f5 252 p_CB->msg[p_CB->first] = p_TCB->msg;
y7jin 0:1c8f2727e9f5 253 rt_inc (&p_CB->count);
y7jin 0:1c8f2727e9f5 254 if (++p_CB->first == p_CB->size) {
y7jin 0:1c8f2727e9f5 255 p_CB->first = 0;
y7jin 0:1c8f2727e9f5 256 }
y7jin 0:1c8f2727e9f5 257 p_TCB->state = READY;
y7jin 0:1c8f2727e9f5 258 rt_rmv_dly (p_TCB);
y7jin 0:1c8f2727e9f5 259 rt_put_prio (&os_rdy, p_TCB);
y7jin 0:1c8f2727e9f5 260 break;
y7jin 0:1c8f2727e9f5 261 case 1:
y7jin 0:1c8f2727e9f5 262 /* Task is waiting for a message, pass the message to the task directly */
y7jin 0:1c8f2727e9f5 263 p_TCB = rt_get_first ((P_XCB)p_CB);
y7jin 0:1c8f2727e9f5 264 #ifdef __CMSIS_RTOS
y7jin 0:1c8f2727e9f5 265 rt_ret_val2(p_TCB, 0x10/*osEventMessage*/, (U32)p_msg);
y7jin 0:1c8f2727e9f5 266 #else
y7jin 0:1c8f2727e9f5 267 *p_TCB->msg = p_msg;
y7jin 0:1c8f2727e9f5 268 rt_ret_val (p_TCB, OS_R_MBX);
y7jin 0:1c8f2727e9f5 269 #endif
y7jin 0:1c8f2727e9f5 270 p_TCB->state = READY;
y7jin 0:1c8f2727e9f5 271 rt_rmv_dly (p_TCB);
y7jin 0:1c8f2727e9f5 272 rt_put_prio (&os_rdy, p_TCB);
y7jin 0:1c8f2727e9f5 273 break;
y7jin 0:1c8f2727e9f5 274 } else {
y7jin 0:1c8f2727e9f5 275 /* No task is waiting for a message, store it to the mailbox queue */
y7jin 0:1c8f2727e9f5 276 if (p_CB->count < p_CB->size) {
y7jin 0:1c8f2727e9f5 277 p_CB->msg[p_CB->first] = p_msg;
y7jin 0:1c8f2727e9f5 278 rt_inc (&p_CB->count);
y7jin 0:1c8f2727e9f5 279 if (++p_CB->first == p_CB->size) {
y7jin 0:1c8f2727e9f5 280 p_CB->first = 0;
y7jin 0:1c8f2727e9f5 281 }
y7jin 0:1c8f2727e9f5 282 }
y7jin 0:1c8f2727e9f5 283 else {
y7jin 0:1c8f2727e9f5 284 os_error (OS_ERR_MBX_OVF);
y7jin 0:1c8f2727e9f5 285 }
y7jin 0:1c8f2727e9f5 286 }
y7jin 0:1c8f2727e9f5 287 }
y7jin 0:1c8f2727e9f5 288
y7jin 0:1c8f2727e9f5 289 /*----------------------------------------------------------------------------
y7jin 0:1c8f2727e9f5 290 * end of file
y7jin 0:1c8f2727e9f5 291 *---------------------------------------------------------------------------*/
y7jin 0:1c8f2727e9f5 292