# Initialize GPIO pins

**URL:** https://forums.digi.com/t/initialize-gpio-pins/5930
**Category:** NET+OS
**Created:** [November 30, 2011, 10:43pm UTC](https://forums.digi.com/t/initialize-gpio-pins/5930 "2011-11-30T22:43:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![lialiem](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@lialiem](https://forums.digi.com/u/lialiem)
#### Post date: [November 30, 2011, 10:43pm UTC](https://forums.digi.com/t/initialize-gpio-pins/5930/1 "2011-11-30T22:43:48Z")

</div>

Hello,

I need to configure some outputs pins to be be GPIO and have a low state from the very beginning.

Where is that done?

Is it in the gpio.h where I define it like this?  
#define BSP\_GPIO\_INITIAL\_STATE\_PIN0 BSP\_GPIO\_INITIAL\_STATE\_OUTPUT\_DRIVER\_LOGIC0

---

<div class="post-metadata">

### Author: ![bobthomas13](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@bobthomas13](https://forums.digi.com/u/bobthomas13)
#### Post date: [December 2, 2011, 9:34am UTC](https://forums.digi.com/t/initialize-gpio-pins/5930/2 "2011-12-02T09:34:06Z")

</div>

Which device? i guess this is for NET+OS… which version?

---

<div class="post-metadata">

### Author: ![lialiem](https://avatars.discourse-cdn.com/v4/letter/l/df705f/32.png) [@lialiem](https://forums.digi.com/u/lialiem)
#### Post date: [December 2, 2011, 3:51pm UTC](https://forums.digi.com/t/initialize-gpio-pins/5930/3 "2011-12-02T15:51:44Z")

</div>

Hello,

Sorry for missing that, it is NS9215 and NET+OS 7.4.

---

<div class="post-metadata">

### Author: ![bobthomas13](https://avatars.discourse-cdn.com/v4/letter/b/958977/32.png) [@bobthomas13](https://forums.digi.com/u/bobthomas13)
#### Post date: [December 5, 2011, 6:05am UTC](https://forums.digi.com/t/initialize-gpio-pins/5930/4 "2011-12-05T06:05:26Z")

</div>

yes it will do i guess… i have never tried this.  
It has to work.  
In project folder 7.4/bsp/{platform}/gpio.h
