summaryrefslogtreecommitdiff
path: root/AT91SAM7S256/armdebug/Debugger/debug_runlooptasks.h
blob: 360e0d1f1f941e798296573f836bceb65bb516cd (plain)
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/** @file debug_runlooptasks.h
 *  @brief Shared C/ASM header file for debugger communications
 *
 */

/* Copyright (C) 2007-2011 the NxOS developers
 *
 * Module Developed by: TC Wan <tcwan@cs.usm.my>
 *
 * See AUTHORS for a full list of the developers.
 *
 * See COPYING for redistribution license
 *
 */

#ifndef __DEBUG_RUNLOOPTASKS_H__
#define __DEBUG_RUNLOOPTASKS_H__

#include "_c_arm_macros.h"

/* This is a place holder header file to allow for interfacing with C Routines in either
 * NxOS or NXT Firmware.
 *
 * Since the header files from the original source trees were meant for C programs, we can't
 * include them directly. Here we just use .extern to reference the routines.
 */

#ifdef __NXOS__

  .extern	nx_usb_is_connected
  .extern       nx_usb_can_write
  .extern       nx_usb_write
  .extern       nx_usb_data_written
  .extern       nx_usb_read
  .extern       nx_usb_data_read
  .extern       nx_core_reset

#else           /* NXT Firmware */

  .extern      cCommInit
  .extern      cCommCtrl
  .extern      cCommExit
  .extern      dUsbWrite
  .extern      dUsbRead
  .extern      dUsbIsConfigured
  .extern      dBtSendMsg
  .equ         nxt_UBYTE_TRUE, 1
  .equ         nxt_UBYTE_FALSE, 0
  .equ         USB_CMD_READY, 0x01			/* From c_comm.iom */
  .equ         BT_CMD_READY, 0x02			/* From c_comm.iom */

  .extern dIOCtrlSetPower
  .extern dIOCtrlSetPwm
  .extern dIOCtrlTransfer
  .equ    BOOT, 0xA55A                                  /* from c_ioctrl.iom */
  .equ    POWERDOWN, 0x5A00                             /* from c_ioctrl.iom */

#endif

#endif