{"version":"1.0","type":"rich","published":"2020-04-14 10:18:41","height":"190","categories":["\u30de\u30a4\u30b3\u30f3"],"url":"https://lipoyang.hatenablog.com/entry/2020/04/14/101841","provider_url":"https://hatena.blog","title":"\u30e1\u30e2\uff1aMBED_COMPILER_BARRIER\u3067\u30d3\u30eb\u30c9\u30a8\u30e9\u30fc","description":"Mbed OS5 \u304b\u3089SW4STM32\u306b\u30a8\u30af\u30dd\u30fc\u30c8\u3057\u3066\u30d3\u30eb\u30c9\u3059\u308b\u3068\u3001mbed_toolchain.h\u306e\u4e0b\u8a18\u306e\u884c\u3067\u300c'asm' undeclared\u300d\u3068\u3044\u3046\u30a8\u30e9\u30fc\u304c\u767a\u751f\u3059\u308b\u3002 #define MBED_COMPILER_BARRIER() asm volatile(\"\" : : : \"memory\") \u30d3\u30eb\u30c9\u306b\u7528\u3044\u308b\u30b3\u30f3\u30d1\u30a4\u30e9\u306e\u9055\u3044\u306b\u3088\u308b\u3082\u306e\u3067\u3042\u308b\u3002\u4e0b\u8a18\u306e\u3088\u3046\u306b\u4fee\u6b63\u3059\u308b\u3068\u30d3\u30eb\u30c9\u304c\u901a\u308b\u3088\u3046\u306b\u306a\u308b\u3002 #define MBED_COMPILER_BARRIER() __asm__ __volatile__(\"\" : : : \"memory\") \u3010\u30cd\u30bf\u5143\u3011mbed os5 \u304b\u3089SW4STM32\u306b\u30a8\u30af\u30dd\u30fc\u2026","blog_title":"\u6ef4\u4e86\u5eb5\u65e5\u9332","author_url":"https://blog.hatena.ne.jp/licheng/","blog_url":"https://lipoyang.hatenablog.com/","width":"100%","image_url":null,"author_name":"licheng","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Flipoyang.hatenablog.com%2Fentry%2F2020%2F04%2F14%2F101841\" title=\"\u30e1\u30e2\uff1aMBED_COMPILER_BARRIER\u3067\u30d3\u30eb\u30c9\u30a8\u30e9\u30fc - \u6ef4\u4e86\u5eb5\u65e5\u9332\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}