<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>XWLUA on XWOS</title>
    <link>/en/categories/XWLUA/</link>
    <description>Recent content in XWLUA on XWOS</description>
    <generator>Hugo</generator>
    <language>en</language>
    <atom:link href="/en/categories/XWLUA/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Lua Language</title>
      <link>/en/Docs/TechRefManual/Lua/</link>
      <pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate>
      <guid>/en/Docs/TechRefManual/Lua/</guid>
      <description>&lt;p&gt;Modern MCUs have sufficient performance to run interpreted languages. XWOS integrates the Lua language — a lightweight, compact scripting language. The port of Lua in XWOS is called &lt;strong&gt;XWLUA&lt;/strong&gt;. &lt;strong&gt;XWLUA&lt;/strong&gt; has the following features:&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Interactive REPL: an independent thread, users can run Lua functions online through a serial terminal, or run scripts in the file system;&lt;/li&gt;&#xA;&lt;li&gt;Multithreading: Lua does not natively support multithreading. XWLUA extends Lua to implement multithreading functionality;&lt;/li&gt;&#xA;&lt;li&gt;Lock mechanisms: supports mutex, spinlock, and seqlock;&lt;/li&gt;&#xA;&lt;li&gt;Synchronization mechanisms: supports semaphore, condition variable, event flag, signal selector, and thread barrier;&lt;/li&gt;&#xA;&lt;li&gt;Driver library: encapsulation of some drivers has been completed.&#xA;&lt;ul&gt;&#xA;&lt;li&gt;GPIO&lt;/li&gt;&#xA;&lt;li&gt;I2C&lt;/li&gt;&#xA;&lt;li&gt;SPI&lt;/li&gt;&#xA;&lt;li&gt;UART&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;figure class=&#34;card rounded p-2 td-post-card mb-4 mt-4&#34; style=&#34;max-width: 780px&#34;&gt;&#xA;&lt;img class=&#34;card-img-top&#34; src=&#34;/en/Docs/TechRefManual/Lua/xwlua-repl_hu5063848350667976902.png&#34; width=&#34;770&#34; height=&#34;623&#34;&gt;&#xA;&lt;figcaption class=&#34;card-body px-0 pt-2 pb-0 text-center&#34;&gt;&#xA;&lt;p class=&#34;card-text&#34;&gt;&#xA;&#xA;&#xA;XWLUA interactive REPL&#xA;&#xA;&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
