<commit_before>/*
 * =====================================================================================
 *
 *       Filename:  chaser.h
 *
 *    Description:  
 *
 *        Version:  1.0
 *        Created:  28/11/14 05:29:54
 *       Revision:  none
 *       Compiler:  gcc
 *
 *         Author:  <NAME> (foxiepaws), <EMAIL>
 *   Organization:  
 *
 * =====================================================================================
 */

/* Function Prototypes */
uint8_t scanKeys(void);
void initIO(void);
static void __inline__ brief_pause(register unsigned int n);
void delayMs(uint32_t);

/* Definitions */
#define MODESW_MASK 0xC0
//port 2 definitions
#define LED_HEARTBEAT BIT6
#define BTN_PROGRA	BIT8
// port 1 definitions
#define EN_CH1	BIT0
#define EN_CH2	BIT1
#define EN_CH3	BIT2
#define EN_CH4	BIT3
#define BTNR1	BIT4
#define BTNR2	BIT5
#define BTNR3	BIT6
#define BTNC1	0x80;
//const int BTNC1 = BIT7;

/* macro to help us toggle bits on ports */
#define _togglePort(port,bit) P##port##OUT^= bit
#define _setPort(port,bit) P##port##OUT |= bit
#define _clearPort(port,bit) P##port##OUT &= ~bit

/* general bit manipulations */
#define _toggleBit(reg,bit) reg ^= bit  
#define _setBit(reg,bit) reg |= bit
#define _clearBit(reg,bit) reg &= ~##bit
<commit_msg>enforcement of style on chaser.h<commit_after>/*
 * =====================================================================================
 *
 *       Filename:  chaser.h
 *
 *    Description:  header file for chaser.c
 *
 *        Changed: 2014-11-28
 *
 *         Author:  <NAME> (cirvinfox)
 *                  <NAME> (foxiepaws), <EMAIL>
 *
 * =====================================================================================
 */

/* Function Prototypes */
uint8_t scanKeys(void);
void initIO(void);
static void __inline__ brief_pause(register unsigned int n);
void delayMs(uint32_t);

/* Definitions */
#define MODESW_MASK 0xC0
/* port 2 definitions */
#define LED_HEARTBEAT BIT6
#define BTN_PROGRA	BIT8
/* port 1 definitions */
#define EN_CH1	BIT0
#define EN_CH2	BIT1
#define EN_CH3	BIT2
#define EN_CH4	BIT3
#define BTNR1	BIT4
#define BTNR2	BIT5
#define BTNR3	BIT6
#define BTNC1	0x80;
/* const int BTNC1 = BIT7; */

/* macro to help us toggle bits on ports */
#define _togglePort(port,bit) P##port##OUT^= bit
#define _setPort(port,bit) P##port##OUT |= bit
#define _clearPort(port,bit) P##port##OUT &= ~bit

/* general bit manipulations */
#define _toggleBit(reg,bit) reg ^= bit  
#define _setBit(reg,bit) reg |= bit
#define _clearBit(reg,bit) reg &= ~##bit

{'fraction_non_alphanumeric': 0.24714679260133807, 'fraction_numerical': 0.03148366784730421, 'mean_word_length': 4.340336134453781, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, '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': '7597597', 'n_tokens_mistral': 889, 'n_tokens_neox': 834, 'n_words': 226}