Trident IoT SDK
 
Loading...
Searching...
No Matches
tr_hal_platform.h
Go to the documentation of this file.
1
10
11#ifndef TR_HAL_PLATFORM_H_
12#define TR_HAL_PLATFORM_H_
13
14#include "tr_hal_common.h"
15#include "cm33.h"
16
17
18
23typedef struct
24{
25 uint32_t pin;
26
28
29
34typedef enum
35{
36 // DO NOT use pri 0, this will cause problems
37 // this is what the INT system uses
38 //TR_HAL_INTERRUPT_PRIORITY_0 = 0,
39
50
54
55
56// ****************************************************************************
57// include Trident HAL platform specific headers
58//
59// this is done so the platform-inspecific headers don't include platform specific headers
60//
61// NOTE these need to be included AFTER the definition of tr_hal_gpio_pin_t
62//
63// TODO: we will want a way to control which of these drivers get included in a
64// project so we dont force every project to have every driver. Maybe we
65// can add ifdefs around the includes and use the generated code to determine
66// which peripheral is included.
67// ****************************************************************************
68#include "T32CZ20_gpio.h"
69#include "T32CZ20_power.h"
70#include "T32CZ20_uart.h"
71#include "T32CZ20_timers.h"
72#include "T32CZ20_spi.h"
73#include "T32CZ20_rtc.h"
74#include "T32CZ20_wdog.h"
75#include "T32CZ20_trng.h"
76
77
78
79#endif //TR_HAL_PLATFORM_H_
tr_hal_int_pri_t
values and a range checking function for setting the interrupt priority in the Trident HAL APIs
Definition tr_hal_platform.h:34
@ TR_HAL_INTERRUPT_PRIORITY_2
Definition tr_hal_platform.h:41
@ TR_HAL_INTERRUPT_PRIORITY_3
Definition tr_hal_platform.h:42
@ TR_HAL_INTERRUPT_PRIORITY_4
Definition tr_hal_platform.h:43
@ TR_HAL_INTERRUPT_PRIORITY_1
Definition tr_hal_platform.h:40
@ TR_HAL_INTERRUPT_PRIORITY_5
Definition tr_hal_platform.h:44
@ TR_HAL_INTERRUPT_PRIORITY_6
Definition tr_hal_platform.h:45
tr_hal_int_pri_t
Definition tr_hal_platform.h:35
@ TR_HAL_INTERRUPT_PRIORITY_7
Definition tr_hal_platform.h:47
@ TR_HAL_INTERRUPT_PRIORITY_HIGHEST
Definition tr_hal_platform.h:40
@ TR_HAL_INTERRUPT_PRIORITY_LOWEST
Definition tr_hal_platform.h:48
tr_hal_status_t tr_hal_check_interrupt_priority(tr_hal_int_pri_t interrupt_priority)
This is the chip specific include file for T32CZ20 GPIO Driver note that there is a common include fi...
This is the chip specific include file for T32CZ20 Power Management note that there is a common inclu...
This is the chip specific include file for T32CZ20 RTC Driver note that there is a common include fil...
This is the chip specific include file for T32CZ20 SPI Driver note that there is a common include fil...
This is the chip specific include file for T32CZ20 Timers Driver note that there is a common include ...
This is the chip specific include file for T32CZ20 True Random Number Generator (TRNG)....
This is the chip specific include file for T32CZ20 UART Driver. note that there is a common include f...
This is the chip specific include file for T32CZ20 Watchdog Driver note that there is a common includ...
tr_hal_status_t
Definition tr_hal_common.h:25
pin type
Definition tr_hal_platform.h:23
This is the common include file for the Trident HAL.