-
Notifications
You must be signed in to change notification settings - Fork 1.3k
STM32: Adds missing declarations in periph.h for stm32f767xx #2809
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
Conversation
@@ -50,6 +50,8 @@ const mcu_periph_obj_t mcu_uart_rx_list[25]; | |||
//Timers | |||
#define TIM_BANK_ARRAY_LEN 14 | |||
#define TIM_PIN_ARRAY_LEN 55 | |||
TIM_TypeDef * mcu_tim_banks[TIM_BANK_ARRAY_LEN]; | |||
extern TIM_TypeDef * mcu_tim_banks[TIM_BANK_ARRAY_LEN]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this array declared in a different header somewhere? That'd be better.
So, FYI, this oversight is present in every SoC that we support, including heavily tested ones like the F405. It doesn't impact the functionality of the timers in any of them as far as I'm aware, which is why I hadn't noticed it before. The use of the |
I don't really know much about this, just it couldn't find mcu_tim_pin_list when I enabled pulseio, so I assumed it needed that. I'll look into it more to figure out why it needed it. |
@k0d what's the nature of the issue you were having with this array not being extern? I want to make sure we aren't overlooking any other issues. If there's a bug here it should be fixed for all boards. |
ok, that extern isn't needed...it's the other line that was important. |
Oh, yes I see we're simply missing the tim_pin_list array altogether! That's a typo for sure. Please remove the |
Thanks @k0d! |
@hierophect found this bug, it's stopping pulseio from working on the f767.