Skip to content
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

Issue with PA12 #14

Open
PAk-CatchFire opened this issue Feb 15, 2019 · 2 comments
Open

Issue with PA12 #14

PAk-CatchFire opened this issue Feb 15, 2019 · 2 comments

Comments

@PAk-CatchFire
Copy link

Hi there. I am having an issue using a B-L072Z-LRWAN1 board and wanted to use PA12 as an output pin. I have checked variant cpp and added (in the digital block - position 3) the line:

{ GPIOA, STM32L0_GPIO_PIN_MASK(STM32L0_GPIO_PIN_PA12), STM32L0_GPIO_PIN_PA12, (PIN_ATTR_EXTI), PWM_INSTANCE_NONE, PWM_CHANNEL_NONE, ADC_CHANNEL_NONE },

I have alse changed:

void initVariant()
{
    //CMWX1ZZABZ_Initialize(STM32L0_GPIO_PIN_PA12, STM32L0_GPIO_PIN_PA11);
CMWX1ZZABZ_Initialize(STM32L0_GPIO_PIN_NONE, STM32L0_GPIO_PIN_PA11);

}

Then in variant.h I have added:
#define PIN_D3 (03ul)
but with no luck.

On the other hand, I have done the same for PA5 (as Analog1 - A1) and it worked fine for that pin.

Is there anything I am missing?
Thank you

@kriswiner
Copy link
Owner

kriswiner commented Feb 15, 2019 via email

@PAk-CatchFire
Copy link
Author

Yes, I am using that code. I don't know if USB is automatically enabled....but I think it shouldn't.
I cannot see why it isn't working. Did you need to change the variant files?
Regards

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