no-OS
maxim_hal.h
Go to the documentation of this file.
1 /***************************************************************************/
40 #ifndef MAXIM_HAL_H_
41 #define MAXIM_HAL_H_
42 
43 #if TARGET_NUM == 32650
44 #include "max32650.h"
45 #elif TARGET_NUM == 32655
46 #include "max32655.h"
47 #elif TARGET_NUM == 32660
48 #include "max32660.h"
49 #elif TARGET_NUM == 32665
50 #include "max32665.h"
51 #elif TARGET_NUM == 32670
52 #include "max32670.h"
53 #elif TARGET_NUM == 32672
54 #include "max32672.h"
55 #elif TARGET_NUM == 32675
56 #include "max32675.h"
57 #elif TARGET_NUM == 32680
58 #include "max32680.h"
59 #elif TARGET_NUM == 32690
60 #include "max32690.h"
61 #elif TARGET_NUM == 78000
62 #include "max78000.h"
63 #elif TARGET_NUM == 78002
64 #include "max78002.h"
65 #endif
66 
67 #endif
NO_OS_PULL_DOWN
@ NO_OS_PULL_DOWN
Definition: no_os_gpio.h:76
GPIO0_IRQHandler
void GPIO0_IRQHandler()
Definition: maxim_gpio_irq.c:87
no_os_gpio_desc::extra
void * extra
Definition: no_os_gpio.h:112
no_os_list_desc
Structure storing the list and function wrapper for usual list types.
Definition: no_os_list.h:234
gpio_extra.h
Header file for maxim gpio specifics.
no_os_gpio_init_param
Structure holding the parameters for GPIO initialization.
Definition: no_os_gpio.h:85
NO_OS_GPIO_OUT
#define NO_OS_GPIO_OUT
Definition: no_os_gpio.h:53
max_gpio_irq_ops
const struct no_os_irq_platform_ops max_gpio_irq_ops
maxim specific GPIO IRQ platform ops structure
Definition: maxim_gpio_irq.c:371
no_os_gpio_init_param::pull
enum no_os_gpio_pull_up pull
Definition: no_os_gpio.h:91
no_os_list_read_find
int32_t no_os_list_read_find(struct no_os_list_desc *list_desc, void **data, void *cmp_data)
max_gpio_get_value
int32_t max_gpio_get_value(struct no_os_gpio_desc *desc, uint8_t *value)
Get the value of the specified GPIO.
Definition: maxim_gpio.c:320
NO_OS_GENMASK
#define NO_OS_GENMASK(h, l)
Definition: no_os_util.h:86
NO_OS_IRQ_LEVEL_HIGH
@ NO_OS_IRQ_LEVEL_HIGH
Definition: no_os_irq.h:79
no_os_callback_desc
Structure describing a callback to be registered.
Definition: no_os_irq.h:136
NO_OS_GPIO_HIGH_Z
@ NO_OS_GPIO_HIGH_Z
Definition: no_os_gpio.h:125
irq_action::ctx
void * ctx
Definition: irq_extra.h:131
irq_extra.h
Header file for maxim irq specifics.
no_os_irq.h
Header file of IRQ interface.
max_gpio_direction_output
int32_t max_gpio_direction_output(struct no_os_gpio_desc *desc, uint8_t value)
Enable the output direction of the specified GPIO.
Definition: maxim_gpio.c:223
NO_OS_IRQ_LEVEL_LOW
@ NO_OS_IRQ_LEVEL_LOW
Definition: no_os_irq.h:78
no_os_delay.h
Header file of Delay functions.
no_os_gpio_init_param::port
int32_t port
Definition: no_os_gpio.h:87
no_os_list_get_first
int32_t no_os_list_get_first(struct no_os_list_desc *list_desc, void **data)
NO_OS_GPIO_HIGH
@ NO_OS_GPIO_HIGH
Definition: no_os_gpio.h:123
no_os_gpio_init_param::number
int32_t number
Definition: no_os_gpio.h:89
no_os_irq_platform_ops::init
int32_t(* init)(struct no_os_irq_ctrl_desc **desc, const struct no_os_irq_init_param *param)
Definition: no_os_irq.h:166
no_os_udelay
void no_os_udelay(uint32_t usecs)
Generate microseconds delay.
Definition: maxim_delay.c:47
NO_OS_IRQ_EDGE_FALLING
@ NO_OS_IRQ_EDGE_FALLING
Definition: no_os_irq.h:80
NO_OS_GPIO_IN
#define NO_OS_GPIO_IN
Definition: no_os_gpio.h:54
NO_OS_PULL_NONE
@ NO_OS_PULL_NONE
Definition: no_os_gpio.h:72
no_os_irq_init_param::extra
void * extra
Definition: no_os_irq.h:112
no_os_gpio_init_param::platform_ops
const struct no_os_gpio_platform_ops * platform_ops
Definition: no_os_gpio.h:93
NO_OS_GPIO_LOW
@ NO_OS_GPIO_LOW
Definition: no_os_gpio.h:121
NO_OS_LIST_PRIORITY_LIST
@ NO_OS_LIST_PRIORITY_LIST
Definition: no_os_list.h:231
no_os_error.h
Error codes definition.
max_gpio_get
int32_t max_gpio_get(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Obtain the GPIO decriptor.
Definition: maxim_gpio.c:78
no_os_gpio_desc::platform_ops
const struct no_os_gpio_platform_ops * platform_ops
Definition: no_os_gpio.h:110
maxim_hal.h
Include chip specific peripheral macros.
gpio_irq_extra.h
Header file of GPIO IRQ interface for Maxim platform.
no_os_callback_desc::ctx
void * ctx
Definition: no_os_irq.h:148
max_gpio_ops
const struct no_os_gpio_platform_ops max_gpio_ops
maxim platform specific GPIO platform ops structure
Definition: maxim_gpio.c:343
no_os_irq_trig_level
no_os_irq_trig_level
Definition: no_os_irq.h:77
no_os_irq_init_param::irq_ctrl_id
uint32_t irq_ctrl_id
Definition: no_os_irq.h:105
irq_action::callback
void(* callback)(void *context)
Definition: irq_extra.h:129
no_os_irq_ctrl_desc::platform_ops
const struct no_os_irq_platform_ops * platform_ops
Definition: no_os_irq.h:123
N_PORTS
#define N_PORTS
Definition: gpio_extra.h:49
irq_action_cmp
int32_t irq_action_cmp(void *data1, void *data2)
Action comparator function.
Definition: aducm3029_irq.c:79
no_os_gpio_desc::port
int32_t port
Definition: no_os_gpio.h:104
irq_id
irq_id
Interrupts IDs supported by the irq driver.
Definition: irq_extra.h:68
N_PINS
#define N_PINS
Definition: gpio_extra.h:48
no_os_callback_desc::callback
void(* callback)(void *context)
Definition: no_os_irq.h:138
no_os_gpio_desc
Structure holding the GPIO descriptor.
Definition: no_os_gpio.h:102
irq_action::handle
void * handle
Definition: irq_extra.h:127
no_os_list_remove
int32_t no_os_list_remove(struct no_os_list_desc *list_desc)
irq_action::irq_id
uint32_t irq_id
Definition: irq_extra.h:125
max_gpio_init_param
Definition: gpio_extra.h:60
no_os_irq_platform_ops::remove
int32_t(* remove)(struct no_os_irq_ctrl_desc *desc)
Definition: no_os_irq.h:190
no_os_mdelay
void no_os_mdelay(uint32_t msecs)
Generate miliseconds delay.
Definition: maxim_delay.c:57
NO_OS_BIT
#define NO_OS_BIT(x)
Definition: no_os_util.h:51
irq_action
Struct used to store a (peripheral, callback) pair.
Definition: irq_extra.h:123
no_os_list.h
List library header.
no_os_gpio_desc::pull
enum no_os_gpio_pull_up pull
Definition: no_os_gpio.h:108
NULL
#define NULL
Definition: wrapper.h:64
no_os_irq_ctrl_desc::irq_ctrl_id
uint32_t irq_ctrl_id
Definition: no_os_irq.h:121
no_os_irq_init_param
Structure holding the initial parameters for Interrupt Request.
Definition: no_os_irq.h:103
NO_OS_IRQ_EDGE_RISING
@ NO_OS_IRQ_EDGE_RISING
Definition: no_os_irq.h:81
max_gpio_init_param::direction
uint32_t direction
Definition: gpio_extra.h:62
max_gpio_remove
int32_t max_gpio_remove(struct no_os_gpio_desc *desc)
Free the resources allocated by no_os_gpio_get().
Definition: maxim_gpio.c:184
max_gpio_get_direction
int32_t max_gpio_get_direction(struct no_os_gpio_desc *desc, uint8_t *direction)
Get the direction of the specified GPIO.
Definition: maxim_gpio.c:257
NO_OS_PULL_UP
@ NO_OS_PULL_UP
Definition: no_os_gpio.h:74
no_os_gpio_platform_ops
Structure holding gpio function pointers that point to the platform specific function.
Definition: no_os_gpio.h:133
no_os_gpio_init_param::extra
void * extra
Definition: no_os_gpio.h:95
no_os_gpio.h
Header file of GPIO Interface.
no_os_irq_platform_ops
Structure holding IRQ function pointers that point to the platform specific function.
Definition: no_os_irq.h:164
NO_OS_IRQ_EDGE_BOTH
@ NO_OS_IRQ_EDGE_BOTH
Definition: no_os_irq.h:82
no_os_list_add_last
int32_t no_os_list_add_last(struct no_os_list_desc *list_desc, void *data)
no_os_list_init
int32_t no_os_list_init(struct no_os_list_desc **list_desc, enum no_os_adapter_type type, f_cmp comparator)
no_os_util.h
Header file of utility functions.
no_os_gpio_platform_ops::gpio_ops_get
int32_t(* gpio_ops_get)(struct no_os_gpio_desc **, const struct no_os_gpio_init_param *)
Definition: no_os_gpio.h:135
no_os_irq_ctrl_desc
Definition: no_os_irq.h:119
max_gpio_get_optional
int32_t max_gpio_get_optional(struct no_os_gpio_desc **desc, const struct no_os_gpio_init_param *param)
Get the value of an optional GPIO.
Definition: maxim_gpio.c:168
max_gpio_set_value
int32_t max_gpio_set_value(struct no_os_gpio_desc *desc, uint8_t value)
Set the value of the specified GPIO.
Definition: maxim_gpio.c:283
no_os_irq_ctrl_desc::extra
void * extra
Definition: no_os_irq.h:128
no_os_gpio_desc::number
int32_t number
Definition: no_os_gpio.h:106
max_gpio_direction_input
int32_t max_gpio_direction_input(struct no_os_gpio_desc *desc)
Enable the input direction of the specified GPIO.
Definition: maxim_gpio.c:200
errno.h
Error macro definition for ARM Compiler.