[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [avr-gcc-list] Lint and avr-gcc

From: Dave Hansen
Subject: RE: [avr-gcc-list] Lint and avr-gcc
Date: Mon, 26 Sep 2005 20:13:31 -0400

From: Jonathan Goldberg <address@hidden>
Anyone have a good lint configuration file for avr-gcc?

You don't say which lint.

Here's the one I'm using for a current project under Ginpel's PC-lint.

--- begin included file ---
// Compiler definitions
c:\lint\lnt\co-gnu3.lnt         // 2.95.3 and later (3.3.1)
-si2                            // Change int and ptr sizes for AVR

// Header file locations

// Project definitions
-d__AVR_ATmega32__          // Compiler does this from MCU definition
-dOSC_FREQ=12000000         // Make file derives this from HZ

// Error reporting suspension
// Some GNU macros return a value from bracketed expressions.

// lint doesn't understand "extern inline"
-esym(14,timer_enable_int)      // in <avr/interrupt.h>

// Interrupt vectors must be extern but aren't referenced

--- end included file ---


reply via email to

[Prev in Thread] Current Thread [Next in Thread]