<ahref="pal_8c.html">Go to the documentation of this file.</a><divclass="fragment"><preclass="fragment"><aname="l00001"></a>00001 <spanclass="comment">/*</span>
<aname="l00035"></a>00035 <spanclass="preprocessor">#include "<aclass="code"href="ch_8h.html"title="ChibiOS/RT main include file.">ch.h</a>"</span>
<aname="l00069"></a><aclass="code"href="group___p_a_l.html#gac464cacee6890a3eab2e2db1b7d8d6f9">00069</a><aclass="code"href="group___p_a_l___l_l_d.html#ga6115967a8db28246105e03741ff5eb18"title="Digital I/O port sized unsigned type.">ioportmask_t</a><aclass="code"href="group___p_a_l.html#gac464cacee6890a3eab2e2db1b7d8d6f9"title="Read from an I/O bus.">palReadBus</a>(<aclass="code"href="struct_i_o_bus.html"title="I/O bus descriptor.">IOBus</a> *bus) {
<aname="l00072"></a>00072 (bus-><aclass="code"href="struct_i_o_bus.html#a50c155a7f9aa5b254faa372f0619286a"title="Offset, within the port, of the least significant bit of the bus.">bus_offset</a>><aclass="code"href="group___p_a_l___l_l_d.html#ga20ffc1985d583352e179f5f2c3fa700e"title="Width, in bits, of an I/O port.">PAL_IOPORTS_WIDTH</a>), <spanclass="stringliteral">"palReadBus"</span>);
<aname="l00073"></a>00073
<aname="l00074"></a>00074 <spanclass="keywordflow">return</span><aclass="code"href="group___p_a_l.html#gad286cfdb9f088a7c8e5085d19ac728d3"title="Reads a group of bits.">palReadGroup</a>(bus-><aclass="code"href="struct_i_o_bus.html#a79c1372324fc1d9d2c571ac6d47163f9"title="Port identifier.">bus_portid</a>, bus-><aclass="code"href="struct_i_o_bus.html#ab2efb4f2a7504ac2e737de26c1e4f33a"title="Bus mask aligned to port bit 0.">bus_mask</a>, bus-><aclass="code"href="struct_i_o_bus.html#a50c155a7f9aa5b254faa372f0619286a"title="Offset, within the port, of the least significant bit of the bus.">bus_offset</a>);
<aname="l00092"></a><aclass="code"href="group___p_a_l.html#ga486b5ab6062e6a8f9d5efdd7a8908a79">00092</a><spanclass="keywordtype">void</span><aclass="code"href="group___p_a_l.html#ga486b5ab6062e6a8f9d5efdd7a8908a79"title="Write to an I/O bus.">palWriteBus</a>(<aclass="code"href="struct_i_o_bus.html"title="I/O bus descriptor.">IOBus</a> *bus, <aclass="code"href="group___p_a_l___l_l_d.html#ga6115967a8db28246105e03741ff5eb18"title="Digital I/O port sized unsigned type.">ioportmask_t</a> bits) {
<aname="l00095"></a>00095 (bus-><aclass="code"href="struct_i_o_bus.html#a50c155a7f9aa5b254faa372f0619286a"title="Offset, within the port, of the least significant bit of the bus.">bus_offset</a>><aclass="code"href="group___p_a_l___l_l_d.html#ga20ffc1985d583352e179f5f2c3fa700e"title="Width, in bits, of an I/O port.">PAL_IOPORTS_WIDTH</a>), <spanclass="stringliteral">"palWriteBus"</span>);
<aname="l00096"></a>00096
<aname="l00097"></a>00097 <aclass="code"href="group___p_a_l.html#gacb25ee0b16d9fb701e3fd21e5dbb990a"title="Writes a group of bits.">palWriteGroup</a>(bus-><aclass="code"href="struct_i_o_bus.html#a79c1372324fc1d9d2c571ac6d47163f9"title="Port identifier.">bus_portid</a>, bus-><aclass="code"href="struct_i_o_bus.html#ab2efb4f2a7504ac2e737de26c1e4f33a"title="Bus mask aligned to port bit 0.">bus_mask</a>, bus-><aclass="code"href="struct_i_o_bus.html#a50c155a7f9aa5b254faa372f0619286a"title="Offset, within the port, of the least significant bit of the bus.">bus_offset</a>, bits);
<aname="l00113"></a><aclass="code"href="group___p_a_l.html#ga25ef645e442638716008408357f4ea59">00113</a><spanclass="keywordtype">void</span><aclass="code"href="group___p_a_l.html#ga25ef645e442638716008408357f4ea59"title="Programs a bus with the specified mode.">palSetBusMode</a>(<aclass="code"href="struct_i_o_bus.html"title="I/O bus descriptor.">IOBus</a> *bus, <aclass="code"href="group___s_t_m8___c_o_r_e.html#gad0fca8b15c218d2c687f8c373a71d228">uint_fast8_t</a> mode) {
<aname="l00116"></a>00116 (bus-><aclass="code"href="struct_i_o_bus.html#a50c155a7f9aa5b254faa372f0619286a"title="Offset, within the port, of the least significant bit of the bus.">bus_offset</a>><aclass="code"href="group___p_a_l___l_l_d.html#ga20ffc1985d583352e179f5f2c3fa700e"title="Width, in bits, of an I/O port.">PAL_IOPORTS_WIDTH</a>), <spanclass="stringliteral">"palSetBusMode"</span>);
<aname="l00117"></a>00117
<aname="l00118"></a>00118 <aclass="code"href="group___p_a_l.html#ga24789efd90288773d2f928458d1dc6e5"title="Pads group mode setup.">palSetGroupMode</a>(bus-><aclass="code"href="struct_i_o_bus.html#a79c1372324fc1d9d2c571ac6d47163f9"title="Port identifier.">bus_portid</a>, bus-><aclass="code"href="struct_i_o_bus.html#ab2efb4f2a7504ac2e737de26c1e4f33a"title="Bus mask aligned to port bit 0.">bus_mask</a>, mode);
Generated on Sun Nov 28 2010 14:09:49 for ChibiOS/RT by <ahref="http://www.doxygen.org/index.html"><imgsrc="doxygen.png"alt="doxygen"align="middle"border="0"></a> 1.7.1</small></address>