Summary: | dev-embedded/msp430mcu - problem with macros and void functions | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | David Relson <relson> |
Component: | [OLD] Unspecified | Assignee: | Tim Harder <radhermit> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | dev-embedded+disabled |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | AMD64 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | code to generate error messages |
Description
David Relson
2011-12-23 01:06:10 UTC
Created attachment 296703 [details]
code to generate error messages
The sample code being used was copied from TI web pages. I now believe the flaw is TI's. The following two changes allow successful compilation: from: _BIC_SR(LPM3_EXIT); to: LPM3_EXIT; from: __bis_SR_register(LPM0 + GIE); // LPM0 with interrupts enabled to: __bis_SR_register(LPM0_bits + GIE); // LPM0 with interrupts enabled |