473,408 Members | 1,976 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

error " macro names must be identifiers"

code:
volatile*boolean*TurnDetected;**//*need*volatile *
for *Interrupts
volatile*boolean*up;]
const*int*PinCLK = 2;*** //*Generating*interrupts*us ing*CLK*signal
const*int*PinDT = 3;**** //*Reading*DT*signal
const*int*PinSW = 4;**** //*Reading*Push*Button*swit ch *

//*L9110*connections
#define*L9110_B_IA*10*//*Pin*D10***>*Motor*B*Input*A
#define*L9110_B_IB*11*//*Pin*D11***>*Motor*B*Input*B *

//*Motor*Speed*&*Direction
#define*MOTOR_B_PWM*L9110_B_IA*//*Motor*PWM*Speed
#define*MOTOR_B_DIR*L9110_B_IB //*Motor*Direction *

//*Interrupt*routine*runs*if*CLK*goes*from*HIGH*t o*LOW
void*isr*()*
Sep 20 '16 #1
2 4039
weaknessforcats
9,208 Expert Mod 8TB
You can't use a keyword from the C/C++ language as an identifier.

The * is part of C/C++.
Sep 21 '16 #2
donbock
2,426 Expert 2GB
Presumably a lot of the asterisks in your code listing are actually spaces. I suppose you changed the spaces to asterisks to unambiguously indicate where the spaces are. That actually makes your code impossible to read. Please put back the spaces.

Please use CODE tags when you provide code listings.
Sep 21 '16 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Dgates | last post by:
This request might belong in a "SQL"-related newsgroup, but it's such a pain using Agent to subscribe to a new group (and download its 50,000 messages!) just to ask one question. So, since it...
12
by: Prabu Subroto | last post by:
Dear my friends... I am using postgres 7.4 and SuSE 9.1. I want to use auto_increment as on MySQL. I look up the documentation on www.postgres.com and I found "serial" . But I don't know...
0
by: mvdkwong | last post by:
I am trying to run a macro that will export a table into a fixed length file (see below). However, when I run it, I get the following error: "Cannot update. Database or object is read-only." I've...
5
by: Pete C | last post by:
I was looking at Section 17.4.3.1 and I can't work out whether macro names are also covered by Section 17.4.3.1.2 ("Global names"). I often see preple chastised for using include guards like...
2
by: utab | last post by:
Dear all, I was looking at a simple code on an exercise question. In the code, there is a conditional inclusion dependent on __GNUC__ #include <algorithm> #include <iomanip> #ifndef __GNUC__...
0
Boxcar74
by: Boxcar74 | last post by:
Hi Everybody!!! I have an Issue. I have an Excel file that queries an Access db. I’m trying to have it so I don’t have to keep updating it manually everyday and save it to a network drive...
2
by: Chris Thomasson | last post by:
I was wondering if the 'SLINK_*' and 'SLIST_*' macros, which implement a simple singly-linked list, will produce _any_ possible undefined behavior: ____________________________ #include...
9
by: Rohit | last post by:
I am trying to initialize an array whose initializers depend on value of Enums. I take enum and then decide the initializer value, so that even if enum value changes because of addition to list...
10
sueb
by: sueb | last post by:
I've done a lot of database work, but only scratched the surface with Access. I'm trying to write a macro (executable on-click from a button on a form) that will clear a subset of the current...
0
by: Pooja135singh | last post by:
i have tried to install bgp in ns2. But on running th makefile i get the above problem. Make file-- # Copyright (c) 1994, 1995, 1996 # The Regents of the University of California. All rights...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.