Structure describing a callback to be registered.
Definition: no_os_irq.h:142
Header file of IRQ interface.
int32_t no_os_irq_register_callback(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, struct no_os_callback_desc *callback_desc)
Register a callback to handle the irq events.
Definition: no_os_irq.c:92
void reset_gpio_low_flag_state(void)
Reset GPIO low flag value.
Definition: inter.c:114
void reset_gpio_opto_out2_flag_state(void)
Reset GPIO Opto_out2 low flag value.
Definition: inter.c:154
#define pr_err(fmt, args...)
Definition: no_os_print_log.h:88
Structure for Stout machine.
Definition: state_machine.h:185
int get_gpio_opto1_flag_state(void)
int get_gpio_opto2_flag_state(void)
int32_t no_os_gpio_direction_input(struct no_os_gpio_desc *desc)
Enable the input direction of the specified GPIO.
Definition: no_os_gpio.c:124
@ NO_OS_IRQ_EDGE_FALLING
Definition: no_os_irq.h:79
int32_t no_os_irq_set_priority(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, uint32_t priority_level)
Set the priority for an interrupt.
Definition: no_os_irq.c:216
struct no_os_irq_ctrl_desc * stout_nvic_desc
Definition: main.c:45
GPIO interrupt phase interface file.
void * ctx
Definition: no_os_irq.h:146
uint32_t irq_ctrl_id
Definition: no_os_irq.h:109
int32_t no_os_gpio_remove(struct no_os_gpio_desc *desc)
Free the resources allocated by no_os_gpio_get().
Definition: no_os_gpio.c:104
int32_t no_os_irq_ctrl_init(struct no_os_irq_ctrl_desc **desc, const struct no_os_irq_init_param *param)
Initialize the IRQ interrupts.
Definition: no_os_irq.c:45
void reset_gpio_opto1_flag_state(void)
int get_gpio_opto_out2_flag_state(void)
Get GPIO Opto_out2 flag value.
Definition: inter.c:144
void(* callback)(void *context)
Definition: no_os_irq.h:144
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:96
void reset_gpio_opto_out1_flag_state(void)
Reset GPIO Opto_out1 flag value.
Definition: inter.c:134
STOUT state machine header file.
int32_t no_os_gpio_get(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Obtain the GPIO decriptor.
Definition: no_os_gpio.c:49
struct no_os_gpio_init_param gpio_ip
Definition: common_data.c:46
void reset_gpio_low_flag_state(void)
Reset GPIO low flag value.
Definition: inter.c:114
int get_gpio_flag_state(void)
Get GPIO flag value.
Definition: inter.c:104
#define NULL
Definition: wrapper.h:64
int inter_init(struct stout *stout)
Initialize inter phase.
Definition: inter.c:164
@ NO_OS_EVT_GPIO
Definition: no_os_irq.h:62
Structure holding the initial parameters for Interrupt Request.
Definition: no_os_irq.h:107
void reset_gpio_opto2_flag_state(void)
int inter_init(struct stout *stout)
Initialize inter phase.
Definition: inter.c:164
int32_t no_os_irq_ctrl_remove(struct no_os_irq_ctrl_desc *desc)
Free the resources allocated by no_os_irq_ctrl_init().
Definition: no_os_irq.c:71
int32_t no_os_irq_enable(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id)
Enable specific interrupt.
Definition: no_os_irq.c:181
@ NO_OS_GPIO_IRQ
Definition: no_os_irq.h:85
int get_gpio_flag_state(void)
Get GPIO flag value.
Definition: inter.c:104
int32_t no_os_irq_trigger_level_set(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id, enum no_os_irq_trig_level trig)
Set interrupt trigger level.
Definition: no_os_irq.c:162
int32_t no_os_irq_disable(struct no_os_irq_ctrl_desc *desc, uint32_t irq_id)
Disable specific interrupt.
Definition: no_os_irq.c:198
Definition: no_os_irq.h:123
const struct no_os_irq_platform_ops max_gpio_irq_ops
maxim platform specific gpio irq platform ops structure
Definition: maxim_gpio_irq.c:375
int get_gpio_opto_out1_flag_state(void)
Get GPIO Opto_out1 flag value.
Definition: inter.c:124