<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>licheng</author_name>
  <author_url>https://blog.hatena.ne.jp/licheng/</author_url>
  <blog_title>滴了庵日録</blog_title>
  <blog_url>https://lipoyang.hatenablog.com/</blog_url>
  <categories>
    <anon>組み込み系</anon>
  </categories>
  <description>Arduinoでタイマ割り込みを使おうとすると、CPUアーキテクチャごとにやり方が違って不便に感じる。もっとも、Arduonoでタイマ割り込みなど使おうというのは筋が悪いのかもしれないが。 ESP8266の場合 // ミリ秒をクロック数に換算 (@80MHz) #define MSEC2CLOCK(ms) (ms * 80000L) // タイマ割り込みハンドラ void timer0_ISR (void) { timer0_write(ESP.getCycleCount() + MSEC2CLOCK(10) ); // 10msec // TODO 割り込み処理をここに } void set…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Flipoyang.hatenablog.com%2Fentry%2F20161205%2Fp1&quot; title=&quot;ESP8266でタイマ割り込み - 滴了庵日録&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2016-12-05 00:00:00</published>
  <title>ESP8266でタイマ割り込み</title>
  <type>rich</type>
  <url>https://lipoyang.hatenablog.com/entry/20161205/p1</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
