summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/arm/nds/include/my_ipc.h
blob: 14505738a1cbb048957be32f272433becb0dc3ad (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
 * RTEMS for Nintendo DS interprocessor communication extensions.
 *
 * Copyright (c) 2008 by Matthieu Bucchianeri <mbucchia@gmail.com>
 *
 * The license and distribution terms for this file may be
 * found in the file LICENSE in this distribution or at
 *
 * http://www.rtems.com/license/LICENSE
 */

#ifndef _MYIPC_H_
#define _MYIPC_H_

#include "types.h"

typedef struct
{
  vuint8_t *record_buffer;
  vuint32_t record_length_max;
  vuint32_t recorded_length;
  vuint8_t record;
} my_TransferRegion;

static inline my_TransferRegion volatile *
getmy_IPC (void)
{
  return (my_TransferRegion volatile *) (0x027FF000 +
                                         sizeof (TransferRegion));
}

#define my_IPC getmy_IPC()

#endif