Skip to content

custom hal error: assignment from incompatible pointer type #160

@5frank

Description

@5frank

As there was a name conflict for hal_i2c_init I tired to use the custom interface but this causes error: assignment from incompatible pointer type.
Example the atcacustom prototype is:

ATCA_STATUS (*halinit)(void *hal, void *cfg);

but should be same as in ATCAHAL_t struct and struct atca_iface:

ATCA_STATUS (*halinit)(void *hal, ATCAIfaceCfg *);

... of unknown reasons the same function prototypes is declared in 3 places... Related issue: #156

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions