Re: [Mspgcc-users] Interrupt Syntax

2013-03-19 Thread Peter Johansson
On Tue, Mar 19, 2013 at 9:42 AM, Peter Bigot wrote: > There is an isr_compat.h or some such header > that's supposed to work on all the toolchains which you could try too. The compatibility macro in the uniarch mspgcc headers of this era didn't work for me. I can't recall what the problem was

Re: [Mspgcc-users] Interrupt Syntax

2013-03-19 Thread Peter Bigot
It's valid in the ones it works in. The pragma approach probably isn't good before 20120406; the attribute approach should work in any mspgcc version. The syntactic sugar that used to be recommended just makes it hard to see what's going on. There is an isr_compat.h or some such header that's su

Re: [Mspgcc-users] Interrupt Syntax

2013-03-19 Thread Nils Faerber
Sorry for the TOFU - but I wondered about the same problem already and your explanation is very helpful, thanks! Cheers nils Am 19.03.2013 14:18, schrieb Peter Bigot: > Ahem. Let's try that again without pressing "send" prematurely: > > That page suggests including and using the interrupt ma

Re: [Mspgcc-users] Interrupt Syntax

2013-03-19 Thread Dean Chester
For which version is this valid syntax? Just tried to use it for a simple test with my version which is: Deans-MacBook-Pro:src dean$ msp430-gcc -v Using built-in specs. Reading specs from /usr/local/msp430-uniarch-20110716/lib/gcc/msp430/4.5.3/../../../../msp430/lib/msp430mcu.spec COLLECT_GCC=msp4

Re: [Mspgcc-users] Interrupt Syntax

2013-03-19 Thread Peter Bigot
Ahem. Let's try that again without pressing "send" prematurely: That page suggests including and using the interrupt macro. is deprecated; its content is in and you need to include that file to use it without getting a warning at compile time. If you tried it, you should have seen that warning

Re: [Mspgcc-users] Interrupt Syntax

2013-03-19 Thread Wayne Uroda
Thanks, so, is this syntax still current? I.e. hasn't been superseded? On 19/03/2013 11:05 PM, Peter Bigot wrote: That page suggests including and using the interrupt macro. On Tue, Mar 19, 2013 at 7:56 AM, Wayne Uroda > wrote: Hi, I just want to double che

Re: [Mspgcc-users] Interrupt Syntax

2013-03-19 Thread Peter Bigot
That page suggests including and using the interrupt macro. On Tue, Mar 19, 2013 at 7:56 AM, Wayne Uroda wrote: > Hi, > > I just want to double check, is the interrupt syntax described here: > > http://mspgcc.sourceforge.net/manual/x918.html > > still modern and current? I know many parts of MS

[Mspgcc-users] Interrupt Syntax

2013-03-19 Thread Wayne Uroda
Hi, I just want to double check, is the interrupt syntax described here: http://mspgcc.sourceforge.net/manual/x918.html still modern and current? I know many parts of MSPGCC have changed, and I may be getting confused with IAR or code composer because somewhere I recall the ISR syntax changed

Re: [Mspgcc-users] interrupt syntax with uniarch mspgcc

2011-06-02 Thread Harri Haataja
On 2 June 2011 15:06, Peter Bigot wrote: > The experimental Debian repositories do not include msp340-libc, because we > are still cleaning up copyright issues.  So it's really not yet ready for > use, unless you don't need libc functionality, or you build the pieces > yourself. Is there a way to

Re: [Mspgcc-users] interrupt syntax with uniarch mspgcc

2011-06-02 Thread Tõnu Samuel
> You should not have needed to add the -L path, but you may not have > provided the right -mmcu option at the link phase: without it, the gcc > driver can't figure out what path to add. Don't use msp430x2553: use > the real target MCU identifier (msp430g2553). Especially in the > value-line fam

Re: [Mspgcc-users] interrupt syntax with uniarch mspgcc

2011-06-02 Thread Peter Bigot
Forgot to mention, when you include in uniarch, you get a warning redirecting you to if you have to support the sugar (it also includes that file, so old code *should* just continue to work). Of course, for that to function as intended you need uniarch msp430-libc. We'll get it into the deb expe

Re: [Mspgcc-users] interrupt syntax with uniarch mspgcc

2011-06-02 Thread Matthias Ringwald
On 02.06.2011, at 14:06, Peter Bigot wrote: > The syntactic sugar provided by signal.h was removed in uniarch following > previous discussions over the last year. Thanks for clearing that up... will use the actual syntax then. While looking for examples, I've found the old exmples in mspgcc/

Re: [Mspgcc-users] interrupt syntax with uniarch mspgcc

2011-06-02 Thread Peter Bigot
The experimental Debian repositories do not include msp340-libc, because we are still cleaning up copyright issues. So it's really not yet ready for use, unless you don't need libc functionality, or you build the pieces yourself. You should not have needed to add the -L path, but you may not have

Re: [Mspgcc-users] interrupt syntax with uniarch mspgcc

2011-06-02 Thread Tõnu Samuel
On Thu, 2011-06-02 at 13:42 +0200, Matthias Ringwald wrote: > hi > > I don't use uniarch (yet), but adding signal.h solved the problem for me on > the mspgcc4. > > If that file's not there, you can also just copy the interrupt macro from > there into your code. > > #define interrupt(x) void __

Re: [Mspgcc-users] interrupt syntax with uniarch mspgcc

2011-06-02 Thread Matthias Ringwald
hi I don't use uniarch (yet), but adding signal.h solved the problem for me on the mspgcc4. If that file's not there, you can also just copy the interrupt macro from there into your code. #define interrupt(x) void __attribute__((interrupt (x))) That works at least on mspgcc4. Best Mathias

Re: [Mspgcc-users] interrupt syntax with uniarch mspgcc

2011-06-02 Thread Matthias Ringwald
Hi please add #include . There's a macro in there to get the interrupt syntax right. Best Matthias On 02.06.2011, at 12:49, Tõnu Samuel wrote: > Hi! > > Reading thread about uniarch mspgcc and because I need msp430G2553 > support, installed it from Debian repo as suggested. Now I cannot get

Re: [Mspgcc-users] interrupt syntax with uniarch mspgcc

2011-06-02 Thread Tõnu Samuel
On Thu, 2011-06-02 at 13:11 +0200, Matthias Ringwald wrote: > Hi > > please add #include . There's a macro in there to get the interrupt > syntax right. > tonu@hp:~/msp/temperature-demo$ make msp430-gcc -Os -Wall -g -mmcu=msp430x2553 -c main.c main.c:17:20: fatal error: signal.h: No such file o

[Mspgcc-users] interrupt syntax with uniarch mspgcc

2011-06-02 Thread Tõnu Samuel
Hi! Reading thread about uniarch mspgcc and because I need msp430G2553 support, installed it from Debian repo as suggested. Now I cannot get interrupt syntax right and Googling doesn't help either. Error is: tonu@hp:~/msp/temperature-demo$ make msp430-gcc -Os -Wall -g -mmcu=msp430x2553 -c main.c

Re: [Mspgcc-users] Interrupt syntax- help please

2002-08-28 Thread Ricardo H. Wiggers
ct: Re: [Mspgcc-users] Interrupt syntax- help please Am 28.08.2002 15:10:11, schrieb Paul Burke : >Hi, I'm newish to the MSP430 and completely new to GCC. I'm using the >Win32 version (latest version, downloaded today!), and I can't get it to >compile the Texas 9600 b

Re: [Mspgcc-users] Interrupt syntax- help please

2002-08-28 Thread Chris Liechti
Am 28.08.2002 15:10:11, schrieb Paul Burke : >Hi, I'm newish to the MSP430 and completely new to GCC. I'm using the >Win32 version (latest version, downloaded today!), and I can't get it to >compile the Texas 9600 baud UART example. we have gcc specific examples in the CVS on mspgcc.sf.net. there

[Mspgcc-users] Interrupt syntax- help please

2002-08-28 Thread Paul Burke
Hi, I'm newish to the MSP430 and completely new to GCC. I'm using the Win32 version (latest version, downloaded today!), and I can't get it to compile the Texas 9600 baud UART example. I have changed the #includes to and . I have changed the interrupt routine line to: interrupt (UART0RX_VECTOR)