Trident IoT Zigbee SDK
 
Loading...
Searching...
No Matches
tr_hal_config.h File Reference

pin definitions for Trident Perseus board More...

#include "cm3_mcu.h"
#include "tr_hal_gpio.h"
#include "tr_hal_uart.h"
#include "tr_hal_timers.h"
#include "tr_hal_spi.h"
#include "tr_hal_rtc.h"
#include "tr_hal_wdog.h"
+ Include dependency graph for tr_hal_config.h:

Go to the source code of this file.

Macros

#define UART_DBG_PORT_ID   0
 
#define GPIO_UART_DBG_RX   (tr_hal_gpio_pin_t){ 16 }
 
#define GPIO_UART_DBG_TX   (tr_hal_gpio_pin_t){ 17 }
 
#define GPIO_BUTTON1   (tr_hal_gpio_pin_t){ 14 }
 
#define GPIO_BUTTON2   (tr_hal_gpio_pin_t){ 9 }
 
#define GPIO_LED_RED   (tr_hal_gpio_pin_t){ 15 }
 
#define GPIO_LED_GREEN   (tr_hal_gpio_pin_t){ 22 }
 
#define GPIO_LED_BLUE   (tr_hal_gpio_pin_t){ 23 }
 
#define LED_ON   0
 
#define LED_OFF   1
 
#define TR_WEAK   __attribute__((weak))
 

Functions

void tr_hal_init (void)
 
void tr_hal_button_interrupt_cb (tr_hal_gpio_pin_t pin, tr_hal_gpio_event_t event)
 

Detailed Description

pin definitions for Trident Perseus board


SPDX-License-Identifier: LicenseRef-TridentMSLA SPDX-FileCopyrightText: 2025 Trident IoT, LLC https://www.tridentiot.com


Macro Definition Documentation

◆ GPIO_BUTTON1

#define GPIO_BUTTON1   (tr_hal_gpio_pin_t){ 14 }

◆ GPIO_BUTTON2

#define GPIO_BUTTON2   (tr_hal_gpio_pin_t){ 9 }

◆ GPIO_LED_BLUE

#define GPIO_LED_BLUE   (tr_hal_gpio_pin_t){ 23 }

◆ GPIO_LED_GREEN

#define GPIO_LED_GREEN   (tr_hal_gpio_pin_t){ 22 }

◆ GPIO_LED_RED

#define GPIO_LED_RED   (tr_hal_gpio_pin_t){ 15 }

◆ GPIO_UART_DBG_RX

#define GPIO_UART_DBG_RX   (tr_hal_gpio_pin_t){ 16 }

◆ GPIO_UART_DBG_TX

#define GPIO_UART_DBG_TX   (tr_hal_gpio_pin_t){ 17 }

◆ LED_OFF

#define LED_OFF   1

◆ LED_ON

#define LED_ON   0

◆ TR_WEAK

#define TR_WEAK   __attribute__((weak))

◆ UART_DBG_PORT_ID

#define UART_DBG_PORT_ID   0

Function Documentation

◆ tr_hal_button_interrupt_cb()

void tr_hal_button_interrupt_cb ( tr_hal_gpio_pin_t pin,
tr_hal_gpio_event_t event )

◆ tr_hal_init()

void tr_hal_init ( void )