protothreadsã¨ã¯ çµã¿è¾¼ã¿æ©å¨ã§ããã°ã©ã ãä½ãæ¹æ³ã«ã¯ã大ãã2ã¤ã®æ¹æ³ãããã¾ãã RTOSã使ã(ã¹ã¬ããåããã°ã©ãã³ã°) RTOSã使ããªã(ãã¼ãªã³ã°åããã°ã©ãã³ã°) protothreadsã¯ãå¾è ã®RTOSã使ããªãå ´åã®ããã°ã©ãã³ã°ãç°¡åã«ããããã®ææ³ã§ãã ã¾ããRTOSã使ãå ´åã¨ä½¿ããªãå ´åã®ããã°ã©ãã³ã°æ¹æ³ã®èª¬æããã¾ãã RTOSã使ãå ´åã®ããã°ã©ãã³ã° RTOSã使ã£ãå ´åã«ã¯ãè¤æ°ã®ã¹ã¬ãããåå¨ããããããã®ã¹ã¬ããã¯å¾ ã¡ã«å ¥ãäºãã§ãã¾ãã void threadA(void) { MSG msg; for (;;) { msg.key = wait_keyboard_msg(); /* å¾ ã¡ã«å ¥ã(ãã¼ãã¼ãå ¥åå¾ ã¡) */ send_msg(msg); /* threadBã¸ã¡ãã»ã¼ã¸ãéã */ } } void threa
{{#tags}}- {{label}}
{{/tags}}