<p>Harald Welte has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/10609">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">owhw: Fix cardem GPIO initialization pointer value<br><br>This fixes a bug, identified by the below compiler warning:<br><br>libboard/owhw/source/owhw.c: In function 'cardsim_gpio_init':<br>libboard/owhw/source/owhw.c:39:16: warning: passing argument 1 of 'PIO_Configure' from incompatible pointer type [-Wincompatible-pointer-types]<br>  PIO_Configure(&pins_cardsim, ARRAY_SIZE(pins_cardsim));<br>                ^<br>In file included from ./atmel_softpack_libraries/libchip_sam3s/chip.h:45:0,<br>                 from libboard/owhw/source/owhw.c:20:<br>./atmel_softpack_libraries/libchip_sam3s/include/pio.h:189:16: note: expected 'const Pin * {aka const struct _Pin *}' but argument is of type 'const Pin (*)[2] {aka const struct _Pin (*)[2]}'<br> extern uint8_t PIO_Configure( const Pin *list, uint32_t size ) ;<br>                ^~~~~~~~~~~~~<br><br>Change-Id: I4c1de66c0b8475bb355b1d128f6ec88b2f2a7fcf<br>---<br>M firmware/libboard/owhw/source/owhw.c<br>1 file changed, 1 insertion(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/simtrace2 refs/changes/09/10609/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/firmware/libboard/owhw/source/owhw.c b/firmware/libboard/owhw/source/owhw.c</span><br><span>index c5cbf7b..2cfa8c6 100644</span><br><span>--- a/firmware/libboard/owhw/source/owhw.c</span><br><span>+++ b/firmware/libboard/owhw/source/owhw.c</span><br><span>@@ -36,5 +36,5 @@</span><br><span> </span><br><span> void cardsim_gpio_init(void)</span><br><span> {</span><br><span style="color: hsl(0, 100%, 40%);">-  PIO_Configure(&pins_cardsim, ARRAY_SIZE(pins_cardsim));</span><br><span style="color: hsl(120, 100%, 40%);">+   PIO_Configure(pins_cardsim, ARRAY_SIZE(pins_cardsim));</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/10609">change 10609</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/10609"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: simtrace2 </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>
<div style="display:none"> Gerrit-Change-Id: I4c1de66c0b8475bb355b1d128f6ec88b2f2a7fcf </div>
<div style="display:none"> Gerrit-Change-Number: 10609 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Harald Welte <laforge@gnumonks.org> </div>