<commit_before>
#include "main.h"
#include <msp430.h>

#include "led_driver.h"

int main(void)
{
	WDTCTL = WDTPW + WDTHOLD;

	led_initialize((led_addresses_s*)P1IN_);
	
	P1DIR = 0x04;
	P1SEL = 0x06;
	
	UCA0CTL0 = 0x00;
	UCA0CTL1 = UCSSEL_3;
	UCA0BR0 = 104;
	UCA0BR1 = 0x00;
	UCA0MCTL = 0x03 << 4;
	
	set_led_color(LED_GREEN);
	
	while(1)
	{
		if(UCA0STAT & 0x01 == 0x00)
		{
			UCA0TXBUF = 0x5a;
		}
	}
}<commit_msg>Send '0x5A' across UART continuously.<commit_after>
#include "main.h"
#include <msp430.h>

#include "led_driver.h"

void main(void)
{
	WDTCTL = WDTPW + WDTHOLD;
	
	//Set clock to 1MHz
	BCSCTL1 = CALBC1_1MHZ;
	DCOCTL = CALDCO_1MHZ;

	led_initialize((led_addresses_s*)P1IN_);
	
	P1DIR |= 0x04;
	P1SEL |= 0x06;
	P1SEL2 |= 0x06;
	
	UCA0CTL0 |= 0x00;
	UCA0CTL1 |= UCSSEL_2;
	UCA0BR0 = 104;
	UCA0BR1 = 0x00;
	UCA0MCTL = UCBRS0;
	
	UCA0CTL1 &= ~UCSWRST;
	
	set_led_color(LED_GREEN);

	while(1)
	{

		if((IFG2 & UCA0TXIFG) == UCA0TXIFG)
		{
			UCA0TXBUF = 0x5a;
		}
		
		//IE2 |= UCA0TXIE;                                 // Enable USCI_A0 TX interrupt
		//__bis_SR_register(LPM0_bits + GIE); // Enter LPM0, interrupts enabled
	}
}

#pragma vector=USCIAB0TX_VECTOR
__interrupt void TX_Ready(void)
{
	if((IFG2 & UCA0TXIFG) == UCA0TXIFG)
	{
		UCA0TXBUF = 0x5a;
	}
}
{'fraction_non_alphanumeric': 0.13611329661683713, 'fraction_numerical': 0.08733280881195908, 'mean_word_length': 3.311864406779661, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4131375', 'n_tokens_mistral': 729, 'n_tokens_neox': 642, 'n_words': 107}