Hi Daniel,

signal.h is not a library. It is just an include files that contains some macro 
definitions.

#define eint()  __asm__ __volatile__("eint"::)

which just puts an assembly command into the code flow.

Also the interrupt functions are just defines that allow you to write 

interrupt (vector) name (void)

instead of 

void __attribute__((interrupt (vector))) name (void)

If you write the long forms yourself in your coude, you can do easily without 
signal.h.
But why should you? It does not add any code by itself. It just makes your code 
more readable and saves you some keystrokes.

But your error messages indicate that you didn't include it in this particular 
code file. Therefore you cannot use its 'shortcuts' such as dint() in this code 
file without an error.

JMGross

----- Ursprüngliche Nachricht -----
Von: Daniel Rabino
An: GCC for MSP430 - http://mspgcc.sf.net
Gesendet am: 11 Jan 2010 21:55:39
Betreff: Re: [Mspgcc-users] mspgcc repository

Bevan Weiss wrote:
> Have you #include'd signal.h?
>
> I don't see any reference to the system not being able to find that file,
> only that the the dint/eint function declarations can't be found.
>

#include <signal.h> exists in all the files that need it, I thought that 
this library is not found because in mspgcc manual by Steve says that is 
necessary not only for dint/eint but also to process interrups 
functions, which is the case.



Reply via email to