Received: from PCH.mit.edu (18.7.21.50) by mail.efplus.com (192.168.0.8) with Microsoft SMTP Server (TLS) id 8.3.485.1; Tue, 16 Feb 2021 02:20:48 -0800 Received: from PCH.MIT.EDU (localhost.localdomain [127.0.0.1]) by PCH.mit.edu (8.14.7/8.12.8) with ESMTP id 11GA9ncY016950; Tue, 16 Feb 2021 05:10:58 -0500 Received: from outgoing-exchange-3.mit.edu (OUTGOING-EXCHANGE-3.MIT.EDU [18.9.28.13]) by PCH.mit.edu (8.14.7/8.12.8) with ESMTP id 11GA9lta016943 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Tue, 16 Feb 2021 05:09:48 -0500 Received: from oc11exedge2.exchange.mit.edu (OC11EXEDGE2.EXCHANGE.MIT.EDU [18.9.3.18]) by outgoing-exchange-3.mit.edu (8.14.7/8.12.4) with ESMTP id 11GA9lZ3006507 for ; Tue, 16 Feb 2021 05:09:47 -0500 Received: from w92expo11.exchange.mit.edu (18.7.74.65) by oc11exedge2.exchange.mit.edu (18.9.3.18) with Microsoft SMTP Server (TLS) id 15.0.1293.2; Tue, 16 Feb 2021 05:09:41 -0500 Received: from oc11exhyb3.exchange.mit.edu (18.9.1.99) by w92expo11.exchange.mit.edu (18.7.74.65) with Microsoft SMTP Server (TLS) id 15.0.1365.1; Tue, 16 Feb 2021 05:09:46 -0500 Received: from NAM02-BL2-obe.outbound.protection.outlook.com (104.47.38.54) by oc11exhyb3.exchange.mit.edu (18.9.1.99) with Microsoft SMTP Server (TLS) id 15.0.1395.4 via Frontend Transport; Tue, 16 Feb 2021 05:09:46 -0500 Received: from CO2PR04CA0134.namprd04.prod.outlook.com (2603:10b6:104::12) by CO1PR01MB6630.prod.exchangelabs.com (2603:10b6:303:d5::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.31; Tue, 16 Feb 2021 10:09:45 +0000 Received: from CO1NAM11FT020.eop-nam11.prod.protection.outlook.com (2603:10b6:104:0:cafe::f) by CO2PR04CA0134.outlook.office365.com (2603:10b6:104::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.27 via Frontend Transport; Tue, 16 Feb 2021 10:09:45 +0000 Received: from mail-lf1-f48.google.com (209.85.167.48) by CO1NAM11FT020.mail.protection.outlook.com (10.13.174.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3846.25 via Frontend Transport; Tue, 16 Feb 2021 10:09:44 +0000 Received: by mail-lf1-f48.google.com with SMTP id z11so14847465lfb.9 for ; Tue, 16 Feb 2021 02:09:44 -0800 (PST) From: RussellMc To: Microcontroller discussion list - Public. CC: ApptechNZ Sender: "piclist-bounces@mit.edu" Date: Tue, 16 Feb 2021 02:09:04 -0800 Subject: [EE]:: Simple Task Scheduler written in C Thread-Topic: [EE]:: Simple Task Scheduler written in C Thread-Index: AdcETWWFHBwsOEGNSieBXGRj2vXsFQ== Message-ID: List-Help: List-Subscribe: , List-Unsubscribe: , Reply-To: Microcontroller discussion list - Public. Accept-Language: en-US X-MS-Exchange-Organization-AuthAs: Anonymous X-MS-Exchange-Organization-AuthSource: TS500.efplus4.local X-MS-Has-Attach: X-Auto-Response-Suppress: All X-MS-Exchange-Organization-SenderIdResult: Pass X-MS-Exchange-Organization-PRD: mit.edu X-MS-TNEF-Correlator: received-spf: Pass (protection.outlook.com: domain of gmail.com designates 209.85.167.48 as permitted sender) receiver=protection.outlook.com; client-ip=209.85.167.48; helo=mail-lf1-f48.google.com; dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=loSce52wFQkQVoTIwgm1GTuaZjHL7MQNS6pSS9Nu9bg=; b=Tb2W4wgrWnTjeSRA1DqUSFJ54gvTIbGIIvB8eVDkqAjRipBAplcui/dZ+r1KTEFCAI T10iHp7Bdn4bER4De+W26c54uJ9AZAZtHqJedc1OSM1oAOJ7ODz156JqMwPcW8XM0Rea 8uns0vsY7AHUMSg1LALbXN/gJ9Y63OpLrFyDYZrj3HGGjluBU+54tMnUy5kuV+rWYht7 AwrmZeNLtRf30OF5lwKY65zz9dZPSvS5FrGuivttNLwrOoWdkj75PPkdSxqOijdliQ0k q0Gz3ilAQgzgCNENLS2uE/1POA3t0zryglbHWlrr1rfPk9uZm1oGXB4u7WrNYH+lR1eL agdg== authentication-results: spf=pass (sender IP is 209.85.167.48) smtp.mailfrom=gmail.com; mit.edu; dkim=pass (signature was verified) header.d=gmail.com; mit.edu; dmarc=pass action=none header.from=gmail.com; errors-to: piclist-bounces@mit.edu list-id: "Microcontroller discussion list - Public." list-post: x-beenthere: piclist@mit.edu x-mailman-version: 2.1.6 x-received: by 2002:a19:500a:: with SMTP id e10mr10687827lfb.241.1613470182604; Tue, 16 Feb 2021 02:09:42 -0800 (PST) x-topics: [EE] x-content-filtered-by: Mailman/MimeDel 2.1.6 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Merit thereof unknown. 2012 https://www.cs.ucr.edu/~vahid/rios/ Code for pre-emptive version absent. ____________________________ RIOS is a task scheduler written entirely in C that: - Is simple and understandable for the beginning embedded programmer - Can provide basic non-preemptive or preemptive multitasking capabilities for cooperative tasks - Requires only a few dozen lines of C code. Reduces need for RTOS (real-time operating system). VersionsRIOS comes in three versions. A non-preemptive version with either simple or state-machine based tasks. Simple examples for each version is available below for you to copy/paste. Each example targets the RIMS software (Programming Embedded Systems ). By copying/pasting, downloading, or using the code in any way, you are agreeing to the EULA . --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .