Nisi’s work blog

Nisi’s work blog – programing tips

C for Atmega (GCC) Data Types

Tipuri de date recunoscute de compilatorul GCC pentru microcontrolele de la Atmel

Toate Exemplele sunt testate in Avr-Studio & GCC plugin

Tipuri Intregi de date

8 bit types

  1. typedef signed char        int8_t
  2. typedef unsigned char    uint8_t

16 bit types

  1. typedef int                       int16_t
  2. typedef unsigned            int uint

32 bit types

  1. typedef long                    int32_t
  2. typedef unsigned long    uint32_t

64 bit types

  1. typedef long long                    int64_t
  2. typedef unsigned long long    uint64_t

Pointer Types

  • typedef int16_t       intptr_t
  • typedef uint16_t     uintptr_t