Skip to content

Commit f02c535

Browse files
committed
KPSDK In/out declaration removal
1 parent 8c88e09 commit f02c535

File tree

2 files changed

+0
-36
lines changed

2 files changed

+0
-36
lines changed

libraries/mbed/targets/hal/TARGET_Freescale/KPSDK/drivers/gpio/fsl_gpio_driver.h

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,6 @@
8282
#define GPIO_PINS_OUT_OF_RANGE (0xFFFFFFFFU)
8383
#define GPIO_PORT_SHIFT 12
8484

85-
/*!
86-
* @brief gpio pin lookup table defined by user.
87-
*
88-
* This array is a n*2 array to save actual port and pin number. Must be declared
89-
* exactly as "const uint8_t gpioPinLookupTable[][2]" in user's file.
90-
* Column 1 are port instances (eg, HW_GPIOA), column 2 are pin numbers between
91-
* 0 to 31 in corresponding port instance.
92-
*/
93-
extern const uint8_t gpioPinLookupTable[][2];
94-
9585
/*!
9686
* @brief gpio input pin configuration structure.
9787
*
@@ -150,13 +140,6 @@ typedef struct gpioOutputPin {
150140
gpio_output_pin_config_t config;/*!< Input pin configuration structure.*/
151141
} gpio_output_pin_t;
152142

153-
typedef struct gpioInputOutputPin {
154-
uint32_t pinName; /*!< Virtual pin name from enum defined by user.*/
155-
gpio_input_pin_config_t in_config; /*!< Input pin configuration structure.*/
156-
gpio_output_pin_config_t out_config; /*!< Input pin configuration structure.*/
157-
bool isOutput; /*!< Input/Output */
158-
} gpio_input_output_pin_t;
159-
160143
/*! @brief gpio ISR callback function*/
161144
typedef void (*gpio_isr_callback_t)(void);
162145

@@ -207,8 +190,6 @@ void sdk_gpio_input_pin_init(const gpio_input_pin_t *inputPin);
207190

208191
void sdk_gpio_output_pin_init(const gpio_output_pin_t *outputPin);
209192

210-
void sdk_gpio_inout_pin_init(const gpio_input_output_pin_t *pin);
211-
212193
void sdk_gpio_set_pin_direction(uint32_t pinName, gpio_pin_direction_t direction);
213194

214195
/* @} */

libraries/mbed/targets/hal/TARGET_Freescale/KPSDK/drivers/gpio/src/fsl_gpio_driver.c

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
/*******************************************************************************
3636
* Definitions
3737
******************************************************************************/
38-
uint32_t gpioPinCount;
3938
extern IRQn_Type gpio_irq_ids[HW_PORT_INSTANCE_COUNT];
4039

4140
/*******************************************************************************
@@ -140,22 +139,6 @@ void sdk_gpio_output_pin_init(const gpio_output_pin_t *outputPin)
140139
sdk_gpio_output_pin_config(&outputPin->config, gpioInstance, pin);
141140
}
142141

143-
void sdk_gpio_inout_pin_init(const gpio_input_output_pin_t *inoutPin)
144-
{
145-
/* Get actual port and pin number.*/
146-
uint32_t gpioInstance = inoutPin->pinName >> GPIO_PORT_SHIFT;
147-
uint32_t pin = inoutPin->pinName & 0xFF;
148-
149-
if (inoutPin->isOutput)
150-
{
151-
sdk_gpio_output_pin_config(&inoutPin->out_config, gpioInstance, pin);
152-
}
153-
else
154-
{
155-
sdk_gpio_input_pin_config(&inoutPin->in_config, gpioInstance, pin);
156-
}
157-
}
158-
159142
/*FUNCTION**********************************************************************
160143
*
161144
* Function Name : gpio_get_pin_direction

0 commit comments

Comments
 (0)