<commit_before>/*******************************************************************************/
/**
*      @file : gpio.h
*   @version : 0
*      @date : April 17, 2017
*    @author : <NAME>, <NAME>, <NAME>, <NAME>
* @copyright : Copyright (c) 2017 <NAME>, <NAME>, <NAME>, S. DOTHEE
*              MIT License (MIT)
*******************************************************************************/

/*******************************    LIBRARYS    *******************************/
#include <stdint.h>
#include "xparameters.h"

#ifndef GPIO_H_
#define GPIO_H_

/*******************************     MACROS     *******************************/
/**** GPIO ****/
#define GPIO_0  (axi_gpio_t *)XPAR_GPIO_0_BASEADDR
#define GPIO_1  (axi_gpio_t *)XPAR_GPIO_1_BASEADDR
#define GPIO_2  (axi_gpio_t *)XPAR_GPIO_2_BASEADDR
#define GPIO_3  (axi_gpio_t *)XPAR_GPIO_3_BASEADDR

#define GPIO_SW				GPIO_1
#define GPIO_BTN			GPIO_2
#define GPIO_MPU9250_INT	GPIO_3

/**** GIE ****/
#define GPIO_GIE_GIE 0X8000  /* Global Interrupt Enable */
/* [30:0] Reserved */

/**** IP_IER ****/
/* [31:2] Reserved */
#define GPIO_IP_IER_CH2 0x0002  /* Enable Channel 2 Interrupt */
#define GPIO_IP_IER_CH1 0x0001  /* Enable Channel 1 Interrupt */

/**** IP_ISR ****/
/* [31:2] Reserved */
#define GPIO_IP_ISR_CH2 0x0002  /* Channel 2 Interrupt Status */
#define GPIO_IP_ISR_CH1 0x0001  /* Channel 1 Interrupt Status */

/*******************************     TYPES      *******************************/
typedef struct
{<commit_msg>moved GPIO_SW et GPIO_BTN to the switch.h library and button.h library<commit_after>/*******************************************************************************/
/**
*      @file : gpio.h
*   @version : 0
*      @date : April 17, 2017
*    @author : <NAME>, <NAME>, <NAME>, <NAME>
* @copyright : Copyright (c) 2017 <NAME>, <NAME>, <NAME>, S. DOTHEE
*              MIT License (MIT)
*******************************************************************************/

/*******************************    LIBRARYS    *******************************/
#include <stdint.h>
#include "xparameters.h"

#ifndef GPIO_H_
#define GPIO_H_

/*******************************     MACROS     *******************************/
/**** GPIO ****/
#define GPIO_0  (axi_gpio_t *)XPAR_GPIO_0_BASEADDR
#define GPIO_1  (axi_gpio_t *)XPAR_GPIO_1_BASEADDR
#define GPIO_2  (axi_gpio_t *)XPAR_GPIO_2_BASEADDR
#define GPIO_3  (axi_gpio_t *)XPAR_GPIO_3_BASEADDR

#define GPIO_MPU9250_INT	GPIO_3

/**** GIE ****/
#define GPIO_GIE_GIE 0X8000  /* Global Interrupt Enable */
/* [30:0] Reserved */

/**** IP_IER ****/
/* [31:2] Reserved */
#define GPIO_IP_IER_CH2 0x0002  /* Enable Channel 2 Interrupt */
#define GPIO_IP_IER_CH1 0x0001  /* Enable Channel 1 Interrupt */

/**** IP_ISR ****/
/* [31:2] Reserved */
#define GPIO_IP_ISR_CH2 0x0002  /* Channel 2 Interrupt Status */
#define GPIO_IP_ISR_CH1 0x0001  /* Channel 1 Interrupt Status */

/*******************************     TYPES      *******************************/
typedef struct
{
{'fraction_non_alphanumeric': 0.34521826057980676, 'fraction_numerical': 0.04465178273908697, 'mean_word_length': 4.7072243346007605, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, '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': '1492463', 'n_tokens_mistral': 1073, 'n_tokens_neox': 945, 'n_words': 220}