include/hcs12/applicfg.h
author edouard
Sat, 13 Nov 2010 22:25:24 +0100
changeset 632 0f3dc8bbaaa0
parent 315 1d3bf87b8658
permissions -rw-r--r--
Fixed execution right on configure script
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     1
/*
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     2
This file is part of CanFestival, a library implementing CanOpen Stack. 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     3
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     4
Copyright (C): Edouard TISSERANT and Francis DUPIN
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     5
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     6
See COPYING file for copyrights details.
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     7
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     8
This library is free software; you can redistribute it and/or
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
     9
modify it under the terms of the GNU Lesser General Public
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    10
License as published by the Free Software Foundation; either
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    11
version 2.1 of the License, or (at your option) any later version.
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    12
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    13
This library is distributed in the hope that it will be useful,
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    14
but WITHOUT ANY WARRANTY; without even the implied warranty of
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    16
Lesser General Public License for more details.
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    17
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    18
You should have received a copy of the GNU Lesser General Public
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    19
License along with this library; if not, write to the Free Software
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    20
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    21
*/
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    22
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    23
#ifndef __APPLICFG_HC12__
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    24
#define __APPLICFG_HC12__
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    25
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    26
#include <string.h>
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    27
#include <stdio.h>
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    28
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    29
#include <../include/hcs12/asm-m68hc12/portsaccess.h>
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    30
#include <../include/hcs12/asm-m68hc12/ports_def.h>
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    31
#include <../include/hcs12/asm-m68hc12/ports.h>
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    32
#include <../include/hcs12/interrupt.h>
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    33
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    34
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    35
/// Define the architecture : little_endian or big_endian
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    36
// -----------------------------------------------------
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    37
// Test :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    38
// UNS32 v = 0x1234ABCD;
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    39
// char *data = &v;
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    40
//
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    41
// Result for a little_endian architecture :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    42
// data[0] = 0xCD;
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    43
// data[1] = 0xAB;
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    44
// data[2] = 0x34;
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    45
// data[3] = 0x12;
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    46
//
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    47
// Result for a big_endian architecture :
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    48
// data[0] = 0x12;
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    49
// data[1] = 0x34;
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    50
// data[2] = 0xAB;
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    51
// data[3] = 0xCD;
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    52
83
3a7d54b0a299 BIG endian def is moved to config.h
frdupin
parents: 13
diff changeset
    53
/* CANOPEN_BIG_ENDIAN now defined in config.h*/
3a7d54b0a299 BIG endian def is moved to config.h
frdupin
parents: 13
diff changeset
    54
#ifndef CANOPEN_BIG_ENDIAN
3a7d54b0a299 BIG endian def is moved to config.h
frdupin
parents: 13
diff changeset
    55
#  define CANOPEN_BIG_ENDIAN 1
3a7d54b0a299 BIG endian def is moved to config.h
frdupin
parents: 13
diff changeset
    56
#endif
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    57
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    58
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    59
// Use or not the PLL
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    60
//#define USE_PLL
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    61
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    62
#ifdef USE_PLL
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    63
#  define BUS_CLOCK 24 // If the quartz on the board is 16 MHz. If different, change this value
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    64
#else 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    65
#  define BUS_CLOCK 8  // If the quartz on the board is 16 MHz. If different, change this value
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    66
#endif
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    67
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    68
/// Configuration of the serials port SCI0 and SCI1
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    69
// Tested : 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    70
//   SERIAL_SCI0_BAUD_RATE 9600      BUS_CLOCK 8   Send OK      Receive not tested
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    71
//   SERIAL_SCI0_BAUD_RATE 19200     BUS_CLOCK 8   Send OK      Receive not tested
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    72
//   SERIAL_SCI0_BAUD_RATE 38400     BUS_CLOCK 8   Send OK      Receive not tested
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    73
//   SERIAL_SCI0_BAUD_RATE 57600     BUS_CLOCK 8   Send Failed  Receive not tested
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    74
//   SERIAL_SCI0_BAUD_RATE 115200    BUS_CLOCK 8   Send Failed  Receive not tested
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    75
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    76
//   SERIAL_SCI0_BAUD_RATE 9600      BUS_CLOCK 24  Send OK      Receive not tested
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    77
//   SERIAL_SCI0_BAUD_RATE 19200     BUS_CLOCK 24  Send OK      Receive not tested
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    78
//   SERIAL_SCI0_BAUD_RATE 38400     BUS_CLOCK 24  Send OK but init problems     Receive not tested
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    79
//   SERIAL_SCI0_BAUD_RATE 57600     BUS_CLOCK 24  Send Failed  Receive not tested
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    80
//   SERIAL_SCI0_BAUD_RATE 115200    BUS_CLOCK 24  Send Failed  Receive not tested
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    81
13
0e43acff2c96 Modifs mineures.
dejoigny
parents: 0
diff changeset
    82
#define SERIAL_SCI0_BAUD_RATE 38400
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    83
#define SERIAL_SCI1_BAUD_RATE 9600
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    84
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    85
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    86
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    87
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    88
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    89
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    90
// Several hardware definitions functions
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    91
// --------------------------------------
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    92
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    93
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    94
/// Initialisation of the serial port 0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    95
extern void initSCI_0 (void);
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    96
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    97
/// Initialisation of the serial port 1
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    98
extern void initSCI_1 (void);
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
    99
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   100
/// Convert an integer to a string in hexadecimal format
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   101
/// If you do not wants to use a lastCar, put lastCar = '\0' (end of string)
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   102
/// ex : value = 0XABCDEF and lastCar = '\n'
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   103
/// buf[0] = '0'
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   104
/// buf[1] = 'X'
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   105
/// buf[2] = 'A'
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   106
/// ....
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   107
/// buf[7] = 'F'
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   108
/// buf[8] = '\n'
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   109
/// buf[9] = '\0'
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   110
extern char *
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   111
hex_convert (char *buf, unsigned long value, char lastCar);
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   112
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   113
/// Print the string to the serial port sci 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   114
/// (sci takes the values SCI0 or SCI1)
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   115
extern void printSCI_str (char sci, const char * str); 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   116
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   117
/// Print the number in hexadecimal  to the serial port sci 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   118
/// (sci takes the values SCI0 or SCI1)
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   119
extern void printSCI_nbr (char sci, unsigned long nbr, char lastCar);
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   120
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   121
/// to start using the PLL. Bus clock becomes 24 MHz if the quartz 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   122
/// on the board is at 16 MHz
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   123
extern void initPLL (void);
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   124
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   125
/// Put here all the code to init the HCS12
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   126
extern void initHCS12 (void);
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   127
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   128
// Integers
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   129
#define INTEGER8 signed char
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   130
#define INTEGER16 short
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   131
#define INTEGER24
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   132
#define INTEGER32 long
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   133
#define INTEGER40
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   134
#define INTEGER48
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   135
#define INTEGER56
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   136
#define INTEGER64
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   137
 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   138
// Unsigned integers
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   139
#define UNS8   unsigned char
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   140
#define UNS16  unsigned short
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   141
#define UNS32  unsigned long
315
1d3bf87b8658 Workaround for unsupported UNS64 on some compiler.
etisserant
parents: 83
diff changeset
   142
/*
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   143
#define UNS24
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   144
#define UNS40
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   145
#define UNS48
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   146
#define UNS56
315
1d3bf87b8658 Workaround for unsupported UNS64 on some compiler.
etisserant
parents: 83
diff changeset
   147
#define UNS64
1d3bf87b8658 Workaround for unsupported UNS64 on some compiler.
etisserant
parents: 83
diff changeset
   148
*/ 
0
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   149
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   150
// Whatever your microcontroller, the timer wont work if 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   151
// TIMEVAL is not at least on 32 bits
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   152
#define TIMEVAL UNS32 
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   153
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   154
// The timer of the hcs12 counts from 0000 to 0xFFFF
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   155
#define TIMEVAL_MAX 0xFFFF
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   156
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   157
// The timer is incrementing every 4 us.
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   158
#define MS_TO_TIMEVAL(ms) (ms * 250)
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   159
#define US_TO_TIMEVAL(us) (us>>2)
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   160
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   161
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   162
// Reals
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   163
#define REAL32	float
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   164
#define REAL64 double
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   165
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   166
#include "can.h"
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   167
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   168
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   169
/// Definition of MSG_ERR
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   170
// ---------------------
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   171
#ifdef DEBUG_ERR_CONSOLE_ON
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   172
#    define MSG_ERR(num, str, val)            \
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   173
          initSCI_0();                        \
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   174
          printSCI_nbr(SCI0, num, ' ');       \
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   175
          /* large printing on console  */    \
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   176
          printSCI_str(SCI0, str);            \
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   177
          printSCI_nbr(SCI0, val, '\n');      
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   178
#else
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   179
#    define MSG_ERR(num, str, val)
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   180
#endif
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   181
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   182
/// Definition of MSG_WAR
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   183
// ---------------------
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   184
#ifdef DEBUG_WAR_CONSOLE_ON
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   185
#    define MSG_WAR(num, str, val)          \
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   186
        initSCI_0();                        \
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   187
        printSCI_nbr(SCI0, num, ' ');       \
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   188
        /* large printing on console  */    \
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   189
        printSCI_str(SCI0, str);            \
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   190
        printSCI_nbr(SCI0, val, '\n');      
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   191
#else
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   192
#    define MSG_WAR(num, str, val)
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   193
#endif
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   194
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   195
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   196
#endif
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   197
4472ee7c6c3e Commit a new cvs repo.
etisserant
parents:
diff changeset
   198