Added cfg for AVR microcontrollers. This config file contains podtype definitions so far.

This commit is contained in:
orbitcowboy 2014-06-16 15:14:33 +02:00
parent be49185471
commit b501708b6f
1 changed files with 37 additions and 0 deletions

37
cfg/avr.cfg Normal file
View File

@ -0,0 +1,37 @@
<?xml version="1.0"?>
<!-- Based on http://www.nongnu.org/avr-libc/user-manual/group__avr__stdint.html -->
<def>
<!-- Exact-width integer types -->
<podtype name="int8_t" sign="s" size="1"/>
<podtype name="uint8_t" sign="u" size="1"/>
<podtype name="int16_t" sign="s" size="2"/>
<podtype name="uint16_t" sign="u" size="2"/>
<podtype name="int32_t" sign="s" size="4"/>
<podtype name="uint32_t" sign="u" size="4"/>
<podtype name="int64_t" sign="s" size="8"/>
<podtype name="uint64_t" sign="u" size="8"/>
<!-- Integer types capable of holding object pointers -->
<podtype name="intptr_t" sign="s" size="2"/>
<podtype name="uintptr_t" sign="u" size="2"/>
<!-- Minimum-width integer types -->
<podtype name="int_least8_t" sign="s" size="1"/>
<podtype name="uint_least8_t" sign="u" size="1"/>
<podtype name="int_least16_t" sign="s" size="2"/>
<podtype name="uint_least16_t" sign="u" size="2"/>
<podtype name="int_least32_t" sign="s" size="4"/>
<podtype name="uint_least32_t" sign="u" size="4"/>
<podtype name="int_least64_t" sign="s" size="8"/>
<podtype name="uint_least64_t" sign="u" size="8"/>
<!-- Fastest minimum-width integer types -->
<podtype name="int_fast8_t" sign="s" size="1"/>
<podtype name="uint_fast8_t" sign="u" size="1"/>
<podtype name="int_fast16_t" sign="s" size="2"/>
<podtype name="uint_fast16_t" sign="u" size="2"/>
<podtype name="int_fast32_t" sign="s" size="4"/>
<podtype name="uint_fast32_t" sign="u" size="4"/>
<podtype name="int_fast64_t" sign="s" size="8"/>
<podtype name="uint_fast64_t" sign="u" size="8"/>
<!-- Greatest-width integer types -->
<podtype name="intmax_t" sign="s" size="8"/>
<podtype name="uintmax_t" sign="u" size="8"/>
</def>