Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
7 years ago.
how do I write gpio_set function for gpio_api.c
Hi,
I am writing gpio_set function in gpio_api.c. My question is what do I need to write gpio_set function. What info I need to do so.
1 Answer
7 years ago.
Are you trying to port a new board? If so, please follow our porting guides - https://os.mbed.com/docs/v5.6/reference/contributing-target.html
To see current target implementations of gpio_set see here - https://github.com/ARMmbed/mbed-os/search?utf8=%E2%9C%93&q=gpio_set&type=
Thanks for reply. Yes I am porting new target. I have read that mbed porting guide but now I have to write api of gpio but I have to know what steps are involving to write gpio_set function. I need more explanation.
posted by 26 Oct 2017This is going to be a specific implementation for your board. Please see some of the current implementations here - https://github.com/ARMmbed/mbed-os/search?utf8=%E2%9C%93&q=gpio_set&type=. Those should provide you with some references for your work.
posted by 26 Oct 2017