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

Header file of platform configuration. More...

#include "no_os_gpio.h"
#include "no_os_uart.h"
#include "no_os_irq.h"
#include "maxim_gpio.h"
#include "maxim_irq.h"
#include "maxim_uart.h"
Include dependency graph for platform.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GPIO_IRQ_OPS   &max_gpio_irq_ops
 
#define GPIO_CTRL_IRQ_ID   0
 
#define GPIO_IRQ_EXTRA   &max_gpio_extra_ip
 
#define NVIC_GPIO_IRQ   GPIO2_IRQn
 
#define GNSS_RESET_PORT   2
 
#define GNSS_RESET_PIN   7
 
#define GNSS_LED_PORT   2
 
#define GNSS_LED_PIN   1
 
#define GPIO_IRQ_PORT   2
 
#define GPIO_IRQ_PIN   9
 

Functions

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

Variables

struct no_os_gpio_init_param gnss_gpio_irq_ip
 
struct no_os_irq_init_param gnss_gpio_int_ip
 

Detailed Description

Header file of platform configuration.

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.

Macro Definition Documentation

◆ GNSS_LED_PIN

#define GNSS_LED_PIN   1

◆ GNSS_LED_PORT

#define GNSS_LED_PORT   2

◆ GNSS_RESET_PIN

#define GNSS_RESET_PIN   7

◆ GNSS_RESET_PORT

#define GNSS_RESET_PORT   2

◆ GPIO_CTRL_IRQ_ID

#define GPIO_CTRL_IRQ_ID   0

◆ GPIO_IRQ_EXTRA

#define GPIO_IRQ_EXTRA   &max_gpio_extra_ip

◆ GPIO_IRQ_OPS

#define GPIO_IRQ_OPS   &max_gpio_irq_ops

◆ GPIO_IRQ_PIN

#define GPIO_IRQ_PIN   9

◆ GPIO_IRQ_PORT

#define GPIO_IRQ_PORT   2

◆ NVIC_GPIO_IRQ

#define NVIC_GPIO_IRQ   GPIO2_IRQn

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
extern

◆ gnss_gpio_irq_ip

struct no_os_gpio_init_param gnss_gpio_irq_ip
extern