no-OS
Loading...
Searching...
No Matches
platform.c File Reference

Platform configuration for eval-ublox-gnss project. More...

#include "platform.h"
#include "common_data.h"
#include "no_os_gpio.h"
#include "no_os_error.h"
Include dependency graph for platform.c:

Functions

int platform_toggle_led (struct no_os_gpio_desc *gpio_desc)
 Toggle LED GPIO.
 

Variables

struct max_gpio_init_param max_gpio_extra_ip
 
struct max_uart_init_param max_uart_extra_ip
 
struct no_os_irq_init_param gnss_nvic_ip
 
struct no_os_uart_init_param uart_console_ip
 
struct no_os_uart_init_param uart_gnss_ip
 
struct no_os_gpio_init_param gpio_gnss_reset_ip
 
struct no_os_gpio_init_param gpio_led_ip
 
struct no_os_gpio_init_param gnss_gpio_irq_ip
 
struct no_os_irq_init_param gnss_gpio_int_ip
 

Detailed Description

Platform configuration for eval-ublox-gnss project.

Author
Radu Etz (radu..nosp@m.etz@.nosp@m.analo.nosp@m.g.co.nosp@m.m)

Copyright 2025(c) Analog Devices, Inc.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

  1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  3. Neither the name of Analog Devices, Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY ANALOG DEVICES, INC. "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL ANALOG DEVICES, INC. BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

Function Documentation

◆ platform_toggle_led()

int platform_toggle_led ( struct no_os_gpio_desc * gpio_desc)

Toggle LED GPIO.

Parameters
gpio_desc- GPIO descriptor
Returns
0 in case of success, negative error code otherwise
Here is the caller graph for this function:

Variable Documentation

◆ gnss_gpio_int_ip

struct no_os_irq_init_param gnss_gpio_int_ip
Initial value:
= {
.platform_ops = GPIO_IRQ_OPS,
.irq_ctrl_id = GPIO_CTRL_IRQ_ID,
.extra = GPIO_IRQ_EXTRA,
}
#define GPIO_IRQ_EXTRA
Definition parameters.h:79
#define GPIO_IRQ_OPS
Definition parameters.h:77
#define GPIO_CTRL_IRQ_ID
Definition parameters.h:78

◆ gnss_gpio_irq_ip

struct no_os_gpio_init_param gnss_gpio_irq_ip
Initial value:
= {
.port = GPIO_IRQ_PORT,
.number = GPIO_IRQ_PIN,
.pull = NO_OS_PULL_NONE,
.platform_ops = &max_gpio_ops,
.extra = &max_gpio_extra_ip,
}
#define GPIO_IRQ_PIN
Definition platform.h:60
#define GPIO_IRQ_PORT
Definition platform.h:59
struct max_gpio_init_param max_gpio_extra_ip
Definition platform.c:39
const struct no_os_gpio_platform_ops max_gpio_ops
maxim platform specific GPIO platform ops structure
Definition maxim_gpio.c:316
@ NO_OS_PULL_NONE
Definition no_os_gpio.h:54

◆ gnss_nvic_ip

struct no_os_irq_init_param gnss_nvic_ip
Initial value:
= {
.platform_ops = &max_irq_ops
}
const struct no_os_irq_platform_ops max_irq_ops
maxim specific IRQ platform ops structure
Definition maxim_irq.c:649

◆ gpio_gnss_reset_ip

struct no_os_gpio_init_param gpio_gnss_reset_ip
Initial value:
= {
.port = GNSS_RESET_PORT,
.number = GNSS_RESET_PIN,
.pull = NO_OS_PULL_NONE,
.extra = &max_gpio_extra_ip,
.platform_ops = &max_gpio_ops
}
#define GNSS_RESET_PORT
Definition platform.h:55
#define GNSS_RESET_PIN
Definition platform.h:56

◆ gpio_led_ip

struct no_os_gpio_init_param gpio_led_ip
Initial value:
= {
.port = GNSS_LED_PORT,
.number = GNSS_LED_PIN,
.pull = NO_OS_PULL_NONE,
.extra = &max_gpio_extra_ip,
.platform_ops = &max_gpio_ops
}
#define GNSS_LED_PORT
Definition platform.h:59
#define GNSS_LED_PIN
Definition platform.h:60

◆ max_gpio_extra_ip

struct max_gpio_init_param max_gpio_extra_ip
Initial value:
= {
.vssel = MXC_GPIO_VSSEL_VDDIOH,
}

◆ max_uart_extra_ip

struct max_uart_init_param max_uart_extra_ip
Initial value:
= {
}
@ MAX_UART_FLOW_DIS
Definition maxim_uart.h:47

◆ uart_console_ip

struct no_os_uart_init_param uart_console_ip
Initial value:
= {
.device_id = CONSOLE_UART_DEVICE_ID,
.baud_rate = CONSOLE_UART_BAUDRATE,
.size = NO_OS_UART_CS_8,
.extra = &max_uart_extra_ip,
.platform_ops = &max_uart_ops
}
struct max_uart_init_param max_uart_extra_ip
Definition platform.c:36
#define CONSOLE_UART_BAUDRATE
Definition common_data.h:55
#define CONSOLE_UART_PARITY
Definition common_data.h:56
#define CONSOLE_UART_DEVICE_ID
Definition common_data.h:54
#define CONSOLE_UART_STOP
Definition common_data.h:57
const struct no_os_uart_platform_ops max_uart_ops
Maxim platform specific UART platform ops structure.
Definition maxim_uart.c:467
@ NO_OS_UART_CS_8
Definition no_os_uart.h:54

◆ uart_gnss_ip

struct no_os_uart_init_param uart_gnss_ip
Initial value:
= {
.device_id = GNSS_UART_DEVICE_ID,
.baud_rate = GNSS_UART_BAUDRATE,
.size = NO_OS_UART_CS_8,
.parity = GNSS_UART_PARITY,
.stop = GNSS_UART_STOP,
.extra = &max_uart_extra_ip,
.platform_ops = &max_uart_ops
}
#define GNSS_UART_STOP
Definition common_data.h:63
#define GNSS_UART_PARITY
Definition common_data.h:62
#define GNSS_UART_BAUDRATE
Definition common_data.h:61
#define GNSS_UART_DEVICE_ID
Definition common_data.h:60