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 "cm3_mcu.h"
13#include "tr_hal_gpio.h"
14#include "tr_hal_uart.h"
15#include "tr_hal_timers.h"
16#include "tr_hal_spi.h"
17#include "tr_hal_rtc.h"
18#include "tr_hal_wdog.h"
19
20#define UART_DBG_PORT_ID 0
21#define GPIO_UART_DBG_RX (tr_hal_gpio_pin_t){ 16 }
22#define GPIO_UART_DBG_TX (tr_hal_gpio_pin_t){ 17 }
23
24#define GPIO_BUTTON1 (tr_hal_gpio_pin_t){ 4 }
25#define GPIO_BUTTON2 (tr_hal_gpio_pin_t){ 5 }
26
27#define GPIO_LED_RED (tr_hal_gpio_pin_t){ 1 }
28#define GPIO_LED_GREEN (tr_hal_gpio_pin_t){ 30 }
29#define GPIO_LED_BLUE (tr_hal_gpio_pin_t){ 31 }
30
31#define LED_ON 0
32#define LED_OFF 1
33
34#define TR_WEAK __attribute__((weak))
35
36
37void tr_hal_init(void);
38void tr_hal_button_interrupt_cb(tr_hal_gpio_pin_t pin,
39 tr_hal_gpio_event_t event);
40
41
42#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)