<commit_before>#include <stdio.h>
#include <msp430.h>
#include "rileyOS_config.h"
#include "task.h"
#include "scheduler.h"

void Task1();
void Task2();

int main(void) {
    WDTCTL = WDTPW | WDTHOLD;	// Stop watchdog timer

    P1DIR |= 0x01;
    P4DIR |= 0x01;

    initScheduler();

    addTask(Task1, INTERVAL_100ms);
    addTask(Task2, INTERVAL_1000ms);

	runScheduler();

	return 0;
}

void Task1() {
	//Flash LED P1.0
	P1OUT ^= 0x01;
}

void Task2() {
	//Flash LED P4.0
	P4OUT ^= 0x01;
}
<commit_msg>Made tasks loop infinitely, only way to switch tasks is to interrupt them<commit_after>#include <stdio.h>
#include <msp430.h>
#include "rileyOS_config.h"
#include "task.h"
#include "scheduler.h"

void Task1();
void Task2();

int main(void) {
    WDTCTL = WDTPW | WDTHOLD;	// Stop watchdog timer

    P1DIR |= 0x01;
    P4DIR |= 0x01;

    initScheduler();

    addTask(Task1, INTERVAL_100ms);
    addTask(Task2, INTERVAL_1000ms);

	runScheduler();

	return 0;
}

void Task1() {
	while(1) {
		//Flash LED P1.0
		P1OUT ^= 0x01;
	}
}

void Task2() {
	while(1) {
		//Flash LED P4.0
		P4OUT ^= 0x01;
	}
}

{'fraction_non_alphanumeric': 0.15099457504520797, 'fraction_numerical': 0.06871609403254973, 'mean_word_length': 3.375494071146245, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2412043', 'n_tokens_mistral': 534, 'n_tokens_neox': 471, 'n_words': 110}