<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Renesas Solution Starter Kit for RX23E-A: enable GPIO FIT module (HAL)</title><link>/technologies/embedded/b/blog/posts/renesas-solution-starter-kit-for-rx23e-a-enable-gpio-fit-module-hal</link><description>In e&amp;sup2; studio, when you install the support for Road test: Renesas Solution Starter Kit for RX23E-A , the FIT directory does not include the smart configurator module r_gpio_rx. For non-Renesas developers: this is the HAL API for GPIO. easter...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Renesas Solution Starter Kit for RX23E-A: enable GPIO FIT module (HAL)</title><link>https://community.element14.com/technologies/embedded/b/blog/posts/renesas-solution-starter-kit-for-rx23e-a-enable-gpio-fit-module-hal</link><pubDate>Fri, 14 Jul 2023 22:34:11 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:bc552c74-67bf-46ff-a91e-978b51842189</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;A nice&amp;nbsp;e&amp;sup2; studio extension is the eclipse IO Registers view&lt;/p&gt;
&lt;p&gt;&lt;img height="159" src="/resized-image/__size/1424x318/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-bc552c74-67bf-46ff-a91e-978b51842189/pastedimage1689373920449v1.png" width="712" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;I can pause the program,&amp;nbsp;then write to the register. I can switch the LED on or off by&amp;nbsp;flipping its write bit&lt;/p&gt;
&lt;p&gt;&lt;img height="150" src="/resized-image/__size/492x300/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-bc552c74-67bf-46ff-a91e-978b51842189/pastedimage1689374030105v2.png" width="246" alt=" " /&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=26491&amp;AppID=7&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Renesas Solution Starter Kit for RX23E-A: enable GPIO FIT module (HAL)</title><link>https://community.element14.com/technologies/embedded/b/blog/posts/renesas-solution-starter-kit-for-rx23e-a-enable-gpio-fit-module-hal</link><pubDate>Fri, 14 Jul 2023 09:58:07 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:bc552c74-67bf-46ff-a91e-978b51842189</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;The r_gpio_rx API is function based.&amp;nbsp;The Config_PORT FIT uses&amp;nbsp;structures to wrap around registers.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Example code using the r_gpio_rx API:&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;R_GPIO_PinWrite(LED1, GPIO_LEVEL_LOW);&lt;br /&gt; bool state = false;&lt;br /&gt; do {&lt;br /&gt; state = !state;&lt;br /&gt; R_GPIO_PinWrite(LED1, state ? GPIO_LEVEL_HIGH : GPIO_LEVEL_LOW);&lt;br /&gt;&lt;br /&gt;// silly wait&lt;br /&gt; for (int i = 0; i &amp;lt; 10000000; i++) {};&lt;br /&gt;&lt;br /&gt;} while (1);&lt;/pre&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Example using the Config_PORT structures:&lt;/strong&gt;&lt;/p&gt;
&lt;pre&gt;#define LED_ON (0)&lt;br /&gt;#define LED_OFF (1)&lt;br /&gt;#define SET_LED(LED_STATE) (PORT7.PODR.BIT.B0 = (LED_STATE))&lt;br /&gt;&lt;br /&gt;SET_LED(LED_OFF);&lt;br /&gt; bool state = false;&lt;br /&gt; do {&lt;br /&gt; state = !state;&lt;br /&gt; SET_LED(state ? LED_ON : LED_OFF);&lt;br /&gt;&lt;br /&gt;// silly wait&lt;br /&gt; for (int i = 0; i &amp;lt; 10000000; i++) {};&lt;br /&gt;&lt;br /&gt;} while (1);&lt;/pre&gt;&lt;img src="https://community.element14.com/aggbug?PostID=26491&amp;AppID=7&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>