Trident IoT Zigbee SDK
Loading...
Searching...
No Matches
tr_hal_config.h
Go to the documentation of this file.
1
10#ifndef TR_HAL_CONFIG_H
11#define TR_HAL_CONFIG_H
12#include <stdio.h>
13#include <stdint.h>
14#include "tr_hal.h"
15#include "tr_printf.h"
16
17#define UART_BUFFER_MAX_LENGTH 256
18
19#define UART_DBG_PORT_ID 0
20#define GPIO_UART_DBG_RX (tr_hal_gpio_pin_t){ 16 }
21#define GPIO_UART_DBG_TX (tr_hal_gpio_pin_t){ 17 }
22
23#define GPIO_BUTTON1 (tr_hal_gpio_pin_t){ 14 }
24#define GPIO_BUTTON2 (tr_hal_gpio_pin_t){ 9 }
25
26#define GPIO_LED_RED (tr_hal_gpio_pin_t){ 15 }
27#define GPIO_LED_GREEN (tr_hal_gpio_pin_t){ 22 }
28#define GPIO_LED_BLUE (tr_hal_gpio_pin_t){ 23 }
29
30#define LED_ON 0
31#define LED_OFF 1
32
33#define TR_WEAK __attribute__((weak))
34
35
36void tr_hal_init(void);
37void tr_hal_button_interrupt_cb(tr_hal_gpio_pin_t pin,
38 tr_hal_gpio_event_t event);
39void app_uart0_receive_handler(uint8_t received_byte);
40
41#endif /* TR_HAL_CONFIG_H */
void tr_hal_init(void)
void tr_hal_button_interrupt_cb(tr_hal_gpio_pin_t pin, tr_hal_gpio_event_t event)
void app_uart0_receive_handler(uint8_t received_byte)
zb_uint8_t pin[TR_DOOR_LOCK_SERVER_MAX_PIN_LEN+1]
Definition tr_door_lock_server.h:28