| 1 |
/* generated HAL header file - do not edit */ |
| 2 |
#ifndef HAL_DATA_H_ |
| 3 |
#define HAL_DATA_H_ |
| 4 |
#include <stdint.h> |
| 5 |
#include "bsp_api.h" |
| 6 |
#include "common_data.h" |
| 7 |
#include "r_dtc.h" |
| 8 |
#include "r_transfer_api.h" |
| 9 |
#include "r_sdhi.h" |
| 10 |
#include "r_sdmmc_api.h" |
| 11 |
#include "r_qspi.h" |
| 12 |
#include "r_spi_flash_api.h" |
| 13 |
#include "r_iic_master.h" |
| 14 |
#include "r_i2c_master_api.h" |
| 15 |
#include "r_adc.h" |
| 16 |
#include "r_adc_api.h" |
| 17 |
#include "r_lpm.h" |
| 18 |
#include "r_lpm_api.h" |
| 19 |
#include "r_spi.h" |
| 20 |
#include "r_agt.h" |
| 21 |
#include "r_timer_api.h" |
| 22 |
#include "r_flash_hp.h" |
| 23 |
#include "r_flash_api.h" |
| 24 |
#include "r_rtc.h" |
| 25 |
#include "r_rtc_api.h" |
| 26 |
#include "r_sci_uart.h" |
| 27 |
#include "r_uart_api.h" |
| 28 |
FSP_HEADER |
| 29 |
/* Transfer on DTC Instance. */ |
| 30 |
extern const transfer_instance_t g_transfer2; |
| 31 |
|
| 32 |
/** Access the DTC instance using these structures when calling API functions directly (::p_api is not used). */ |
| 33 |
extern dtc_instance_ctrl_t g_transfer2_ctrl; |
| 34 |
extern const transfer_cfg_t g_transfer2_cfg; |
| 35 |
/** SDMMC on SDMMC Instance. */ |
| 36 |
extern const sdmmc_instance_t g_sdmmc0; |
| 37 |
|
| 38 |
/** Access the SDMMC instance using these structures when calling API functions directly (::p_api is not used). */ |
| 39 |
extern sdhi_instance_ctrl_t g_sdmmc0_ctrl; |
| 40 |
extern sdmmc_cfg_t g_sdmmc0_cfg; |
| 41 |
|
| 42 |
#ifndef sdhi_ISR |
| 43 |
void sdhi_ISR(sdmmc_callback_args_t *p_args); |
| 44 |
#endif |
| 45 |
extern const spi_flash_instance_t g_qspi0; |
| 46 |
extern qspi_instance_ctrl_t g_qspi0_ctrl; |
| 47 |
extern const spi_flash_cfg_t g_qspi0_cfg; |
| 48 |
/* I2C Master on IIC Instance. */ |
| 49 |
extern const i2c_master_instance_t g_i2c_master2; |
| 50 |
|
| 51 |
/** Access the I2C Master instance using these structures when calling API functions directly (::p_api is not used). */ |
| 52 |
extern iic_master_instance_ctrl_t g_i2c_master2_ctrl; |
| 53 |
extern const i2c_master_cfg_t g_i2c_master2_cfg; |
| 54 |
|
| 55 |
#ifndef callback_iic |
| 56 |
void callback_iic(i2c_master_callback_args_t *p_args); |
| 57 |
#endif |
| 58 |
/** ADC on ADC Instance. */ |
| 59 |
extern const adc_instance_t g_adc1; |
| 60 |
|
| 61 |
/** Access the ADC instance using these structures when calling API functions directly (::p_api is not used). */ |
| 62 |
extern adc_instance_ctrl_t g_adc1_ctrl; |
| 63 |
extern const adc_cfg_t g_adc1_cfg; |
| 64 |
extern const adc_channel_cfg_t g_adc1_channel_cfg; |
| 65 |
|
| 66 |
#ifndef NULL |
| 67 |
void NULL(adc_callback_args_t *p_args); |
| 68 |
#endif |
| 69 |
|
| 70 |
#ifndef NULL |
| 71 |
#define ADC_DMAC_CHANNELS_PER_BLOCK_NULL 0 |
| 72 |
#endif |
| 73 |
/** ADC on ADC Instance. */ |
| 74 |
extern const adc_instance_t g_adc0; |
| 75 |
|
| 76 |
/** Access the ADC instance using these structures when calling API functions directly (::p_api is not used). */ |
| 77 |
extern adc_instance_ctrl_t g_adc0_ctrl; |
| 78 |
extern const adc_cfg_t g_adc0_cfg; |
| 79 |
extern const adc_channel_cfg_t g_adc0_channel_cfg; |
| 80 |
|
| 81 |
#ifndef NULL |
| 82 |
void NULL(adc_callback_args_t *p_args); |
| 83 |
#endif |
| 84 |
|
| 85 |
#ifndef NULL |
| 86 |
#define ADC_DMAC_CHANNELS_PER_BLOCK_NULL 0 |
| 87 |
#endif |
| 88 |
/** lpm Instance */ |
| 89 |
extern const lpm_instance_t g_lpm0; |
| 90 |
|
| 91 |
/** Access the LPM instance using these structures when calling API functions directly (::p_api is not used). */ |
| 92 |
extern lpm_instance_ctrl_t g_lpm0_ctrl; |
| 93 |
extern const lpm_cfg_t g_lpm0_cfg; |
| 94 |
/* Transfer on DTC Instance. */ |
| 95 |
extern const transfer_instance_t g_transfer1; |
| 96 |
|
| 97 |
/** Access the DTC instance using these structures when calling API functions directly (::p_api is not used). */ |
| 98 |
extern dtc_instance_ctrl_t g_transfer1_ctrl; |
| 99 |
extern const transfer_cfg_t g_transfer1_cfg; |
| 100 |
/* Transfer on DTC Instance. */ |
| 101 |
extern const transfer_instance_t g_transfer0; |
| 102 |
|
| 103 |
/** Access the DTC instance using these structures when calling API functions directly (::p_api is not used). */ |
| 104 |
extern dtc_instance_ctrl_t g_transfer0_ctrl; |
| 105 |
extern const transfer_cfg_t g_transfer0_cfg; |
| 106 |
/** SPI on SPI Instance. */ |
| 107 |
extern const spi_instance_t g_spi0; |
| 108 |
|
| 109 |
/** Access the SPI instance using these structures when calling API functions directly (::p_api is not used). */ |
| 110 |
extern spi_instance_ctrl_t g_spi0_ctrl; |
| 111 |
extern const spi_cfg_t g_spi0_cfg; |
| 112 |
|
| 113 |
/** Callback used by SPI Instance. */ |
| 114 |
#ifndef spi_callback |
| 115 |
void spi_callback(spi_callback_args_t *p_args); |
| 116 |
#endif |
| 117 |
|
| 118 |
#define RA_NOT_DEFINED (1) |
| 119 |
#if (RA_NOT_DEFINED == g_transfer0) |
| 120 |
#define g_spi0_P_TRANSFER_TX (NULL) |
| 121 |
#else |
| 122 |
#define g_spi0_P_TRANSFER_TX (&g_transfer0) |
| 123 |
#endif |
| 124 |
#if (RA_NOT_DEFINED == g_transfer1) |
| 125 |
#define g_spi0_P_TRANSFER_RX (NULL) |
| 126 |
#else |
| 127 |
#define g_spi0_P_TRANSFER_RX (&g_transfer1) |
| 128 |
#endif |
| 129 |
#undef RA_NOT_DEFINED |
| 130 |
/** AGT Timer Instance */ |
| 131 |
extern const timer_instance_t g_timer1; |
| 132 |
|
| 133 |
/** Access the AGT instance using these structures when calling API functions directly (::p_api is not used). */ |
| 134 |
extern agt_instance_ctrl_t g_timer1_ctrl; |
| 135 |
extern const timer_cfg_t g_timer1_cfg; |
| 136 |
|
| 137 |
#ifndef callback_agt |
| 138 |
void callback_agt(timer_callback_args_t *p_args); |
| 139 |
#endif |
| 140 |
/** AGT Timer Instance */ |
| 141 |
extern const timer_instance_t g_timer0; |
| 142 |
|
| 143 |
/** Access the AGT instance using these structures when calling API functions directly (::p_api is not used). */ |
| 144 |
extern agt_instance_ctrl_t g_timer0_ctrl; |
| 145 |
extern const timer_cfg_t g_timer0_cfg; |
| 146 |
|
| 147 |
#ifndef callback_agt |
| 148 |
void callback_agt(timer_callback_args_t *p_args); |
| 149 |
#endif |
| 150 |
/* Flash on Flash HP Instance */ |
| 151 |
extern const flash_instance_t g_flash0; |
| 152 |
|
| 153 |
/** Access the Flash HP instance using these structures when calling API functions directly (::p_api is not used). */ |
| 154 |
extern flash_hp_instance_ctrl_t g_flash0_ctrl; |
| 155 |
extern const flash_cfg_t g_flash0_cfg; |
| 156 |
|
| 157 |
#ifndef NULL |
| 158 |
void NULL(flash_callback_args_t *p_args); |
| 159 |
#endif |
| 160 |
/* RTC Instance. */ |
| 161 |
extern const rtc_instance_t g_rtc0; |
| 162 |
|
| 163 |
/** Access the RTC instance using these structures when calling API functions directly (::p_api is not used). */ |
| 164 |
extern rtc_instance_ctrl_t g_rtc0_ctrl; |
| 165 |
extern const rtc_cfg_t g_rtc0_cfg; |
| 166 |
|
| 167 |
#ifndef NULL |
| 168 |
void NULL(rtc_callback_args_t *p_args); |
| 169 |
#endif |
| 170 |
/** UART on SCI Instance. */ |
| 171 |
extern const uart_instance_t g_uart9; |
| 172 |
|
| 173 |
/** Access the UART instance using these structures when calling API functions directly (::p_api is not used). */ |
| 174 |
extern sci_uart_instance_ctrl_t g_uart9_ctrl; |
| 175 |
extern const uart_cfg_t g_uart9_cfg; |
| 176 |
extern const sci_uart_extended_cfg_t g_uart9_cfg_extend; |
| 177 |
|
| 178 |
#ifndef user_uart_callback |
| 179 |
void user_uart_callback(uart_callback_args_t *p_args); |
| 180 |
#endif |
| 181 |
/** UART on SCI Instance. */ |
| 182 |
extern const uart_instance_t g_uart7; |
| 183 |
|
| 184 |
/** Access the UART instance using these structures when calling API functions directly (::p_api is not used). */ |
| 185 |
extern sci_uart_instance_ctrl_t g_uart7_ctrl; |
| 186 |
extern const uart_cfg_t g_uart7_cfg; |
| 187 |
extern const sci_uart_extended_cfg_t g_uart7_cfg_extend; |
| 188 |
|
| 189 |
#ifndef user_uart_callback |
| 190 |
void user_uart_callback(uart_callback_args_t *p_args); |
| 191 |
#endif |
| 192 |
/** UART on SCI Instance. */ |
| 193 |
extern const uart_instance_t g_uart6; |
| 194 |
|
| 195 |
/** Access the UART instance using these structures when calling API functions directly (::p_api is not used). */ |
| 196 |
extern sci_uart_instance_ctrl_t g_uart6_ctrl; |
| 197 |
extern const uart_cfg_t g_uart6_cfg; |
| 198 |
extern const sci_uart_extended_cfg_t g_uart6_cfg_extend; |
| 199 |
|
| 200 |
#ifndef user_uart_callback |
| 201 |
void user_uart_callback(uart_callback_args_t *p_args); |
| 202 |
#endif |
| 203 |
void g_hal_init(void); |
| 204 |
FSP_FOOTER |
| 205 |
#endif /* HAL_DATA_H_ */ |