-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
migrate some projects to new example infrastructure #2420
base: main
Are you sure you want to change the base?
Conversation
Make the necessary changes to use the new example infrastructure. Signed-off-by: Darius Berghe <[email protected]>
Make the necessary changes to use the new example infrastructure. Signed-off-by: Darius Berghe <[email protected]>
79a2272
to
7fd64a7
Compare
struct no_os_irq_ctrl_desc *nvic_desc; | ||
struct no_os_irq_init_param nvic_ip = { | ||
.platform_ops = &max_irq_ops, | ||
}; | ||
struct no_os_gpio_desc *adxl355_gpio_desc; | ||
|
||
/* Initialize DATA READY pin */ | ||
ret = no_os_gpio_get_optional(&adxl355_gpio_desc, &adxl355_gpio_drdy_ip); |
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.
this DRDY pin is really weird, it's initialized for the iio_trigger_example (aducm3029 and maxim BUT NOT stm32!) but it's not used anywhere, so if anyone has an explanation for this let me know
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.
@CiprianRegus came with a good explanation, on stm32, EXTI is automatically configured as GPIO input by the HAL but on aducm3029 and maxim, it's not, so this extra step is needed. In the modified code, this is kept so I don't think it will break anything.
Make the necessary changes to use the new example infrastructure. Signed-off-by: Darius Berghe <[email protected]>
Make the necessary changes to use the new example infrastructure. Signed-off-by: Darius Berghe <[email protected]>
Make the necessary changes to use the new example infrastructure. Signed-off-by: Darius Berghe <[email protected]>
Make the necessary changes to use the new example infrastructure. Signed-off-by: Darius Berghe <[email protected]>
Make the necessary changes to use the new example infrastructure. Signed-off-by: Darius Berghe <[email protected]>
7fd64a7
to
6a0c60c
Compare
Make the necessary changes to use the new example infrastructure. Signed-off-by: Darius Berghe <[email protected]>
6a0c60c
to
52820bb
Compare
V2:
|
This migrates several projects to the new example infrastructure, most important being adxl355 which was used as template for many others.
PR Type
PR Checklist