Back to home page

LXR

 
 

    


File indexing completed on 2025-05-11 08:23:44

0001 /**
0002  * @file
0003  * @ingroup lm32_milkymist_usbinput RTEMSBSPsLM32SharedMilkymistOne
0004  * @brief Milkymist USB input devices driver
0005  */
0006 
0007 /*  comloc.h
0008  *
0009  *  Milkymist USB input devices driver for RTEMS
0010  *
0011  *  The license and distribution terms for this file may be
0012  *  found in the file LICENSE in this distribution or at
0013  *  http://www.rtems.org/license/LICENSE.
0014  *
0015  *  COPYRIGHT (c) 2010 Sebastien Bourdeauducq
0016  */
0017 
0018 #ifndef __COMLOC_H_
0019 #define __COMLOC_H_
0020 
0021 #define COMLOCV(x)  (*(volatile unsigned char *)(x))
0022 
0023 #define COMLOC_DEBUG_PRODUCE  COMLOCV(MM_SOFTUSB_DMEM_BASE+0x1000)
0024 #define COMLOC_DEBUG(offset)  COMLOCV(MM_SOFTUSB_DMEM_BASE+0x1001+offset)
0025 #define COMLOC_MEVT_PRODUCE COMLOCV(MM_SOFTUSB_DMEM_BASE+0x1101)
0026 #define COMLOC_MEVT(offset) COMLOCV(MM_SOFTUSB_DMEM_BASE+0x1102+offset)
0027 #define COMLOC_KEVT_PRODUCE COMLOCV(MM_SOFTUSB_DMEM_BASE+0x1142)
0028 #define COMLOC_KEVT(offset) COMLOCV(MM_SOFTUSB_DMEM_BASE+0x1143+offset)
0029 #define COMLOC_MIDI_PRODUCE COMLOCV(MM_SOFTUSB_DMEM_BASE+0x1183)
0030 #define COMLOC_MIDI(offset) COMLOCV(MM_SOFTUSB_DMEM_BASE+0x1184+offset)
0031 
0032 #endif /* __COMLOC_H_ */