<commit_before>/*
 * delay.c
 *
 *  Created on: 27 de ago. de 2016
 *      Author: <NAME>, <NAME> y <NAME>
 *
 *  Subrutinas de retraso
 *
 */

#if defined(NO_BOARD_LIB)
#include "chip.h"
#else
#include "board.h"
#endif

/* usar el TIMER3 para hacer los retrasos */
#define _LPC_TIMER LPC_TIMER3
#define _TIMER_IRQn TIMER3_IRQn
#define _SYSCTL_PCLK_TIMER SYSCTL_PCLK_TIMER3
#define _TIMER_IRQHandler TIMER3_IRQHandler

static bool delay_enabled;
static uint32_t timer_clock;
static uint32_t ticks;

/**<commit_msg>esta variable tiene que ser volatile<commit_after>/*
 * delay.c
 *
 *  Created on: 27 de ago. de 2016
 *      Author: <NAME>, <NAME> y <NAME>
 *
 *  Subrutinas de retraso
 *
 */

#if defined(NO_BOARD_LIB)
#include "chip.h"
#else
#include "board.h"
#endif

/* usar el TIMER3 para hacer los retrasos */
#define _LPC_TIMER LPC_TIMER3
#define _TIMER_IRQn TIMER3_IRQn
#define _SYSCTL_PCLK_TIMER SYSCTL_PCLK_TIMER3
#define _TIMER_IRQHandler TIMER3_IRQHandler

volatile static bool delay_enabled;
static uint32_t timer_clock;
static uint32_t ticks;

/**
{'fraction_non_alphanumeric': 0.09811320754716982, 'fraction_numerical': 0.02830188679245283, 'mean_word_length': 4.613756613756614, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, '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': '1750394', 'n_tokens_mistral': 446, 'n_tokens_neox': 414, 'n_words': 112}