Home
last modified time | relevance | path

Searched refs:pin_num (Results 1 – 12 of 12) sorted by relevance

/trusted-firmware-m-3.4.0/platform/ext/target/arm/musca_s1/Native_Driver/
Dgpio_cmsdk_drv.c102 gpio_cmsdk_pin_config(struct gpio_cmsdk_dev_t* dev, uint32_t pin_num, in gpio_cmsdk_pin_config() argument
106 uint32_t pin_mask = (1UL << pin_num); in gpio_cmsdk_pin_config()
108 if(pin_num >= GPIO_CMSDK_MAX_PIN_NUM) { in gpio_cmsdk_pin_config()
154 uint32_t pin_num, in gpio_cmsdk_pin_write() argument
164 if(pin_num >= GPIO_CMSDK_MAX_PIN_NUM) { in gpio_cmsdk_pin_write()
169 p_gpio_port->dataout |= (1UL << pin_num); in gpio_cmsdk_pin_write()
172 p_gpio_port->dataout &= ~(1UL << pin_num); in gpio_cmsdk_pin_write()
204 uint32_t pin_num, in gpio_cmsdk_pin_read() argument
211 if(pin_num >= GPIO_CMSDK_MAX_PIN_NUM) { in gpio_cmsdk_pin_read()
217 *data = (value >> pin_num) & 1UL; in gpio_cmsdk_pin_read()
[all …]
Dgpio_cmsdk_drv.h100 gpio_cmsdk_pin_config(struct gpio_cmsdk_dev_t* dev, uint32_t pin_num,
151 uint32_t pin_num,
184 gpio_cmsdk_pin_read(struct gpio_cmsdk_dev_t* dev, uint32_t pin_num,
214 gpio_cmsdk_set_pin_irq_cfg(struct gpio_cmsdk_dev_t* dev, uint32_t pin_num,
246 uint32_t pin_num, uint32_t* status);
275 uint8_t pin_num);
/trusted-firmware-m-3.4.0/platform/ext/target/arm/musca_b1/Native_Driver/
Dgpio_cmsdk_drv.c102 gpio_cmsdk_pin_config(struct gpio_cmsdk_dev_t* dev, uint32_t pin_num, in gpio_cmsdk_pin_config() argument
106 uint32_t pin_mask = (1UL << pin_num); in gpio_cmsdk_pin_config()
108 if(pin_num >= GPIO_CMSDK_MAX_PIN_NUM) { in gpio_cmsdk_pin_config()
154 uint32_t pin_num, in gpio_cmsdk_pin_write() argument
164 if(pin_num >= GPIO_CMSDK_MAX_PIN_NUM) { in gpio_cmsdk_pin_write()
169 p_gpio_port->dataout |= (1UL << pin_num); in gpio_cmsdk_pin_write()
172 p_gpio_port->dataout &= ~(1UL << pin_num); in gpio_cmsdk_pin_write()
204 uint32_t pin_num, in gpio_cmsdk_pin_read() argument
211 if(pin_num >= GPIO_CMSDK_MAX_PIN_NUM) { in gpio_cmsdk_pin_read()
217 *data = (value >> pin_num) & 1UL; in gpio_cmsdk_pin_read()
[all …]
Dgpio_cmsdk_drv.h100 gpio_cmsdk_pin_config(struct gpio_cmsdk_dev_t* dev, uint32_t pin_num,
151 uint32_t pin_num,
184 gpio_cmsdk_pin_read(struct gpio_cmsdk_dev_t* dev, uint32_t pin_num, uint32_t *data);
213 gpio_cmsdk_set_pin_irq_cfg(struct gpio_cmsdk_dev_t* dev, uint32_t pin_num,
245 uint32_t pin_num, uint32_t* status);
274 uint8_t pin_num);
Dmusca_b1_scc_drv.c336 uint32_t pin_num, in musca_b1_scc_set_default_in() argument
346 if ((altfunc >= GPIO_ALTFUNC_MAX) || (pin_num >= GPIO_ALTFUNC_MAX_PINS)) { in musca_b1_scc_set_default_in()
352 if (pin_num >= GPIO_UPPER_PINS_MIN_VALUE) { in musca_b1_scc_set_default_in()
353 pin_num -= GPIO_UPPER_PINS_MIN_VALUE; in musca_b1_scc_set_default_in()
362 pin_mask = (1U << pin_num); in musca_b1_scc_set_default_in()
363 default_in_mask = ((default_in_value ? 1U : 0U) << pin_num); in musca_b1_scc_set_default_in()
Dmusca_b1_scc_drv.h130 uint32_t pin_num,
/trusted-firmware-m-3.4.0/platform/ext/target/arm/musca_s1/services/include/
Dtfm_ioctl_api.h181 tfm_platform_gpio_pin_config(uint32_t pin_num, uint32_t direction,
194 tfm_platform_gpio_pin_write(uint32_t pin_num, uint32_t value, uint32_t *result);
206 tfm_platform_gpio_pin_read(uint32_t pin_num, uint32_t *data, uint32_t *result);
/trusted-firmware-m-3.4.0/platform/ext/target/arm/musca_b1/services/include/
Dtfm_ioctl_api.h181 tfm_platform_gpio_pin_config(uint32_t pin_num, uint32_t direction,
194 tfm_platform_gpio_pin_write(uint32_t pin_num, uint32_t value, uint32_t *result);
206 tfm_platform_gpio_pin_read(uint32_t pin_num, uint32_t *data, uint32_t *result);
/trusted-firmware-m-3.4.0/platform/ext/target/arm/musca_s1/services/src/
Dtfm_ioctl_ns_api.c130 tfm_platform_gpio_pin_config(uint32_t pin_num, uint32_t direction, in tfm_platform_gpio_pin_config() argument
140 args.u.gpio_config.pin_num_or_mask = pin_num; in tfm_platform_gpio_pin_config()
159 tfm_platform_gpio_pin_write(uint32_t pin_num, uint32_t value, uint32_t *result) in tfm_platform_gpio_pin_write() argument
168 args.u.gpio_write.pin_num_or_mask = pin_num; in tfm_platform_gpio_pin_write()
187 tfm_platform_gpio_pin_read(uint32_t pin_num, uint32_t *data, uint32_t *result) in tfm_platform_gpio_pin_read() argument
196 args.u.gpio_read.pin_num_or_mask = pin_num; in tfm_platform_gpio_pin_read()
Dtfm_ioctl_s_api.c141 tfm_platform_gpio_pin_config(uint32_t pin_num, uint32_t direction, in tfm_platform_gpio_pin_config() argument
151 args.u.gpio_config.pin_num_or_mask = pin_num; in tfm_platform_gpio_pin_config()
171 tfm_platform_gpio_pin_write(uint32_t pin_num, uint32_t value, uint32_t *result) in tfm_platform_gpio_pin_write() argument
180 args.u.gpio_write.pin_num_or_mask = pin_num; in tfm_platform_gpio_pin_write()
200 tfm_platform_gpio_pin_read(uint32_t pin_num, uint32_t *data, uint32_t *result) in tfm_platform_gpio_pin_read() argument
209 args.u.gpio_read.pin_num_or_mask = pin_num; in tfm_platform_gpio_pin_read()
/trusted-firmware-m-3.4.0/platform/ext/target/arm/musca_b1/services/src/
Dtfm_ioctl_ns_api.c130 tfm_platform_gpio_pin_config(uint32_t pin_num, uint32_t direction, in tfm_platform_gpio_pin_config() argument
140 args.u.gpio_config.pin_num_or_mask = pin_num; in tfm_platform_gpio_pin_config()
159 tfm_platform_gpio_pin_write(uint32_t pin_num, uint32_t value, uint32_t *result) in tfm_platform_gpio_pin_write() argument
168 args.u.gpio_write.pin_num_or_mask = pin_num; in tfm_platform_gpio_pin_write()
188 tfm_platform_gpio_pin_read(uint32_t pin_num, uint32_t *data, uint32_t *result) in tfm_platform_gpio_pin_read() argument
197 args.u.gpio_read.pin_num_or_mask = pin_num; in tfm_platform_gpio_pin_read()
Dtfm_ioctl_s_api.c140 tfm_platform_gpio_pin_config(uint32_t pin_num, uint32_t direction, in tfm_platform_gpio_pin_config() argument
150 args.u.gpio_config.pin_num_or_mask = pin_num; in tfm_platform_gpio_pin_config()
169 tfm_platform_gpio_pin_write(uint32_t pin_num, uint32_t value, uint32_t *result) in tfm_platform_gpio_pin_write() argument
178 args.u.gpio_write.pin_num_or_mask = pin_num; in tfm_platform_gpio_pin_write()
197 tfm_platform_gpio_pin_read(uint32_t pin_num, uint32_t *data, uint32_t *result) in tfm_platform_gpio_pin_read() argument
206 args.u.gpio_read.pin_num_or_mask = pin_num; in tfm_platform_gpio_pin_read()