m8_128.h - all bits deffs for ATmega8 16 32 64 128

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

m8_128.h - all bits deffs for ATmega8 16 32 64 128

I've made it for CodeVisionAVR

http://avr123.nm.ru/m8_128.h

After including it to source you can use sample source code from datasheets directly in CVAVR.

And type deffs like these:

u8 s8 u16 s16 and so on.

Like it is in WinAVR, IAR, KEIL.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

c_mcu_faq wrote:
u8 s8 u16 s16 and so on.

Like it is in WinAVR, IAR, KEIL.

Not sure if the C99 standard dictates the exact names for those types, but WinAVR defines then as "uint8_t", "int8_t", etc. Might want to change those for cross-compatibility.

Nice work, i'm sure the CV users here will thank you :).

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Quote:
Not sure if the C99 standard dictates the exact names for those types, but WinAVR defines then as "uint8_t", "int8_t", etc. Might want to change those for cross-compatibility.

Dean, I think that uint8_t etc. are, in fact, part of the C99 standard.

Four legs good, two legs bad, three legs stable.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I see the imagecraft compiler has a new c99 version. I guess I should ask the boss to upgrade.

Imagecraft compiler user