Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
nseidle opened this issue Aug 19, 2019 · 1 comment
Closed

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

nseidle opened this issue Aug 19, 2019 · 1 comment

Comments

@nseidle
Copy link
Member

nseidle commented Aug 19, 2019

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.

@oclyke
Copy link
Contributor

oclyke commented Aug 21, 2019

Sounds like a good solution to me!

@nseidle nseidle closed this as completed Sep 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants