6 years, 6 months 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

6 years, 6 months 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 Mudassar Hussain 26 Oct 2017

This 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 Sarah Marsh 26 Oct 2017