Skip to content

ATP fails to compile Blink - Unused pin def not compatible #52

Closed
@nseidle

Description

@nseidle

ATP uses the

AP3_GPIO_PAD_UNUSED, //The one pad not broken out of the Apollo3 on the Artemis

in the variant file:

image

When we removed the -w compiler flag, ATP now fails to compile with the following error:

C:\...\...\apollo3\0.0.0\variants\SparkFun_BlackBoard_Artemis_ATP\config\variant.cpp:77:1: error: narrowing conversion of '-1' from 'int' to 'ap3_gpio_pad_t' {aka 'unsigned char'} inside { } [-Wnarrowing]

I plan to change the header files to change UNUSED define to 255 instead of -1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions