Skip to content

UCSZ0 vs UCSZ00 #1026

@matwey

Description

@matwey

Hello,

I've found that some headers in avr/io (for instance, iom324pa.h) has

#define UCSZ00 1
// ...
#define UCSZ10 1

for each UART separately, while others (for instance, iom324pb.h) has only

#define UCSZ0   1

for all UARTs. Note, for instance, 324PB has three of them.
What is the purpose for having different names for the same thing and how to write portable code?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions