<div dir="ltr">Hi,<div class="gmail_extra"><br><div class="gmail_quote">On 15 August 2015 at 23:57, Joel Sherrill <span dir="ltr"><<a href="mailto:joel.sherrill@oarcorp.com" target="_blank">joel.sherrill@oarcorp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<br>
<br>
It looks like the gpio addition broke three BSPs:<br>
<br>
arm-lpc1768_mbed_ahb_ram_eth<br>
arm-lpc1768_mbed_ahb_ram<br>
arm-lpc1768_mbed<br>
<br>
<br>
arm-rtems4.11-gcc --pipe -B../../../../../.././lib/ -B../../../../../.././lpc1768_mbed_ahb_ram_eth/lib/ -specs bsp_specs -qrtems -DHAVE_CONFIG_H -I../../../../../../../../rtems/c/src/lib/libbsp/arm/lpc176x/../../../libcpu/arm/shared/include -march=armv7-m -mthumb -O2 -ggdb3 -Wall -Wmissing-prototypes -Wimplicit-function-declaration -Wstrict-prototypes -Wnested-externs -MT libbsp_a-timer.o -MD -MP -MF .deps/libbsp_a-timer.Tpo -c -o libbsp_a-timer.o `test -f 'timer/timer.c' || echo '../../../../../../../../rtems/c/src/lib/libbsp/arm/lpc176x/'`timer/timer.c<br>
In file included from ../../../../../../../../rtems/c/src/lib/libbsp/arm/lpc176x/gpio/gpio.c:25:0:<br>
../../../../../.././lpc1768_mbed_ahb_ram_eth/lib/include/bsp/gpio.h:28:4: error: #error "BSP_GPIO_PIN_COUNT or BSP_GPIO_PINS_PER_BANK is not defined."<br>
#error "BSP_GPIO_PIN_COUNT or BSP_GPIO_PINS_PER_BANK is not defined."<br>
^<br>
../../../../../.././lpc1768_mbed_ahb_ram_eth/lib/include/bsp/gpio.h:32:4: error: #error "Invalid BSP_GPIO_PIN_COUNT or BSP_GPIO_PINS_PER_BANK."<br>
#error "Invalid BSP_GPIO_PIN_COUNT or BSP_GPIO_PINS_PER_BANK."<br>
^<br>
../../../../../.././lpc1768_mbed_ahb_ram_eth/lib/include/bsp/gpio.h:41:5: error: division by zero in #if<span class="HOEnZb"><font color="#888888"><br>
<br></font></span></blockquote><div><br></div><div>Certainly !</div><div><br></div><div>In /gpio/gpio.c the code </div><div><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre">#</span><span class="pl-k" style="color:rgb(167,29,93);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre">include</span><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre"> </span><span class="pl-s" style="color:rgb(24,54,145);font-family:Consolas,'Liberation Mono',Menlo,Courier,monospace;font-size:12px;line-height:16.7999992370605px;white-space:pre"><span class="pl-pds" style="box-sizing: border-box;"><</span>bsp/gpio.h<span class="pl-pds" style="box-sizing: border-box;">> </span></span></div><div>Now will point to generic GPIO API rather the bsp specific (/include/gpio.h) . </div><div><br></div><div>And Generic API will generate error if not found certain macros like "BSP_GPIO_PIN_COUNT" . </div><div><br></div><div>So, I think the solution would be to change the generic gpio api header file or bsp specific one (which looks not suitable) and give a try.</div><div><br></div><div>Best Regards,</div><div>Ketul </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="HOEnZb"><font color="#888888">
-- <br>
-- Joel Sherrill<br>
Ask me about RTEMS: a free RTOS<br>
Support and Training Available<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</font></span></blockquote></div><br></div></div>