<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>arch on Shylock Hg</title>
    <link>/tags/arch/</link>
    <description>Recent content in arch on Shylock Hg</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Sun, 25 Feb 2018 00:00:00 +0000</lastBuildDate>
    
	<atom:link href="/tags/arch/index.xml" rel="self" type="application/rss+xml" />
    
    
    <item>
      <title>Tips of Constructing Environment for xtensa-esp32-elf</title>
      <link>/post/2018/02/25/tips-of-constructing-environment-for-xtensa-esp32-elf/</link>
      <pubDate>Sun, 25 Feb 2018 00:00:00 +0000</pubDate>
      
      <guid>/post/2018/02/25/tips-of-constructing-environment-for-xtensa-esp32-elf/</guid>
      <description>1.Environment 1.x86_64 Linux 4.14.14-1-ARCH
2.Tips of build cross-toolchain 1.Need to build xtensa-esp32-elf toolchain locally.
2.If build fail for mistake of scm_ports.o interface.Then change the value of CT_GDB_CROSS_EXTRA_CONFIG_ARRAY to &amp;rdquo;&amp;ndash;with-guile=guile-2.0&amp;rdquo; in file crosstool-NG/.config.
3.The tookchain built included in crosstool-NG/builds/xtensa-esp32-elf/bin.
3.Tips of ESP-IDF ESP-IDF:The specific API/lib of esp-32.</description>
    </item>
    
    <item>
      <title>Implement FSM by c language in a special apply</title>
      <link>/post/2018/01/23/implement-fsm-by-c-language-in-a-special-apply/</link>
      <pubDate>Tue, 23 Jan 2018 00:00:00 +0000</pubDate>
      
      <guid>/post/2018/01/23/implement-fsm-by-c-language-in-a-special-apply/</guid>
      <description>1.Arch of AD602_G1S1 project. 2.FSM description 2.1Behavior abstract In this project,I abstract program to [states,events] matrix.So the main work of program is handle various events in states.
2.2Top map of FSM There is a simple top map of states switch below.
3.Implement by c language. 3.1 FSM arch definition /*!********** state id enum ***********/ typedef enum state_id { STATE_0_0, STATE_0_1, //!&amp;lt; more state id reserved } state_id_t; /*!********** state struct def ***********/ t ypedef const struct state { const state_id_t idx; const struct state * next; const struct state * back; const struct state * ex0; const struct state * ex1; void (*handler)(events_user_t * e_user, events_server_t * e_server); } state_t;  3.</description>
    </item>
    
  </channel>
</rss>