| 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_spi.h" |
| 8 |
#include "r_sci_uart.h" |
| 9 |
#include "r_uart_api.h" |
| 10 |
#include "r_agt.h" |
| 11 |
#include "r_timer_api.h" |
| 12 |
#include "r_dac.h" |
| 13 |
#include "r_dac_api.h" |
| 14 |
#include "r_adc.h" |
| 15 |
#include "r_adc_api.h" |
| 16 |
#include "r_iic_master.h" |
| 17 |
#include "r_i2c_master_api.h" |
| 18 |
#include "r_usb_basic.h" |
| 19 |
#include "r_usb_basic_api.h" |
| 20 |
#include "r_usb_pcdc_api.h" |
| 21 |
#include "r_rtc.h" |
| 22 |
#include "r_rtc_api.h" |
| 23 |
#include "r_flash_hp.h" |
| 24 |
#include "r_flash_api.h" |
| 25 |
#include "r_lpm.h" |
| 26 |
#include "r_lpm_api.h" |
| 27 |
FSP_HEADER |
| 28 |
/** SPI on SPI Instance. */ |
| 29 |
extern const spi_instance_t g_spi1; |
| 30 |
|
| 31 |
/** Access the SPI instance using these structures when calling API functions directly (::p_api is not used). */ |
| 32 |
extern spi_instance_ctrl_t g_spi1_ctrl; |
| 33 |
extern const spi_cfg_t g_spi1_cfg; |
| 34 |
|
| 35 |
/** Callback used by SPI Instance. */ |
| 36 |
#ifndef spi_callback |
| 37 |
void spi_callback(spi_callback_args_t *p_args); |
| 38 |
#endif |
| 39 |
|
| 40 |
#define RA_NOT_DEFINED (1) |
| 41 |
#if (RA_NOT_DEFINED == RA_NOT_DEFINED) |
| 42 |
#define g_spi1_P_TRANSFER_TX (NULL) |
| 43 |
#else |
| 44 |
#define g_spi1_P_TRANSFER_TX (&RA_NOT_DEFINED) |
| 45 |
#endif |
| 46 |
#if (RA_NOT_DEFINED == RA_NOT_DEFINED) |
| 47 |
#define g_spi1_P_TRANSFER_RX (NULL) |
| 48 |
#else |
| 49 |
#define g_spi1_P_TRANSFER_RX (&RA_NOT_DEFINED) |
| 50 |
#endif |
| 51 |
#undef RA_NOT_DEFINED |
| 52 |
/** UART on SCI Instance. */ |
| 53 |
extern const uart_instance_t g_uart8; |
| 54 |
|
| 55 |
/** Access the UART instance using these structures when calling API functions directly (::p_api is not used). */ |
| 56 |
extern sci_uart_instance_ctrl_t g_uart8_ctrl; |
| 57 |
extern const uart_cfg_t g_uart8_cfg; |
| 58 |
extern const sci_uart_extended_cfg_t g_uart8_cfg_extend; |
| 59 |
|
| 60 |
#ifndef user_uart_callback |
| 61 |
void user_uart_callback(uart_callback_args_t *p_args); |
| 62 |
#endif |
| 63 |
/** AGT Timer Instance */ |
| 64 |
extern const timer_instance_t g_timer1; |
| 65 |
|
| 66 |
/** Access the AGT instance using these structures when calling API functions directly (::p_api is not used). */ |
| 67 |
extern agt_instance_ctrl_t g_timer1_ctrl; |
| 68 |
extern const timer_cfg_t g_timer1_cfg; |
| 69 |
|
| 70 |
#ifndef NULL |
| 71 |
void NULL(timer_callback_args_t *p_args); |
| 72 |
#endif |
| 73 |
/** AGT Timer Instance */ |
| 74 |
extern const timer_instance_t g_timer0; |
| 75 |
|
| 76 |
/** Access the AGT instance using these structures when calling API functions directly (::p_api is not used). */ |
| 77 |
extern agt_instance_ctrl_t g_timer0_ctrl; |
| 78 |
extern const timer_cfg_t g_timer0_cfg; |
| 79 |
|
| 80 |
#ifndef NULL |
| 81 |
void NULL(timer_callback_args_t *p_args); |
| 82 |
#endif |
| 83 |
/** DAC on DAC Instance. */ |
| 84 |
extern const dac_instance_t g_dac1; |
| 85 |
|
| 86 |
/** Access the DAC instance using these structures when calling API functions directly (::p_api is not used). */ |
| 87 |
extern dac_instance_ctrl_t g_dac1_ctrl; |
| 88 |
extern const dac_cfg_t g_dac1_cfg; |
| 89 |
/** DAC on DAC Instance. */ |
| 90 |
extern const dac_instance_t g_dac0; |
| 91 |
|
| 92 |
/** Access the DAC instance using these structures when calling API functions directly (::p_api is not used). */ |
| 93 |
extern dac_instance_ctrl_t g_dac0_ctrl; |
| 94 |
extern const dac_cfg_t g_dac0_cfg; |
| 95 |
/** ADC on ADC Instance. */ |
| 96 |
extern const adc_instance_t g_adc0; |
| 97 |
|
| 98 |
/** Access the ADC instance using these structures when calling API functions directly (::p_api is not used). */ |
| 99 |
extern adc_instance_ctrl_t g_adc0_ctrl; |
| 100 |
extern const adc_cfg_t g_adc0_cfg; |
| 101 |
extern const adc_channel_cfg_t g_adc0_channel_cfg; |
| 102 |
|
| 103 |
#ifndef NULL |
| 104 |
void NULL(adc_callback_args_t *p_args); |
| 105 |
#endif |
| 106 |
|
| 107 |
#ifndef NULL |
| 108 |
#define ADC_DMAC_CHANNELS_PER_BLOCK_NULL 0 |
| 109 |
#endif |
| 110 |
/* I2C Master on IIC Instance. */ |
| 111 |
extern const i2c_master_instance_t g_i2c_master0; |
| 112 |
|
| 113 |
/** Access the I2C Master instance using these structures when calling API functions directly (::p_api is not used). */ |
| 114 |
extern iic_master_instance_ctrl_t g_i2c_master0_ctrl; |
| 115 |
extern const i2c_master_cfg_t g_i2c_master0_cfg; |
| 116 |
|
| 117 |
#ifndef NULL |
| 118 |
void NULL(i2c_master_callback_args_t *p_args); |
| 119 |
#endif |
| 120 |
/* Basic on USB Instance. */ |
| 121 |
extern const usb_instance_t g_basic0; |
| 122 |
|
| 123 |
/** Access the USB instance using these structures when calling API functions directly (::p_api is not used). */ |
| 124 |
extern usb_instance_ctrl_t g_basic0_ctrl; |
| 125 |
extern const usb_cfg_t g_basic0_cfg; |
| 126 |
|
| 127 |
#ifndef NULL |
| 128 |
void NULL(void *); |
| 129 |
#endif |
| 130 |
|
| 131 |
#if 2 == BSP_CFG_RTOS |
| 132 |
#ifndef NULL |
| 133 |
void NULL(usb_event_info_t *, usb_hdl_t, usb_onoff_t); |
| 134 |
#endif |
| 135 |
#endif |
| 136 |
/** CDC Driver on USB Instance. */ |
| 137 |
/* RTC Instance. */ |
| 138 |
extern const rtc_instance_t g_rtc0; |
| 139 |
|
| 140 |
/** Access the RTC instance using these structures when calling API functions directly (::p_api is not used). */ |
| 141 |
extern rtc_instance_ctrl_t g_rtc0_ctrl; |
| 142 |
extern const rtc_cfg_t g_rtc0_cfg; |
| 143 |
|
| 144 |
#ifndef NULL |
| 145 |
void NULL(rtc_callback_args_t *p_args); |
| 146 |
#endif |
| 147 |
/** UART on SCI Instance. */ |
| 148 |
extern const uart_instance_t g_uart9; |
| 149 |
|
| 150 |
/** Access the UART instance using these structures when calling API functions directly (::p_api is not used). */ |
| 151 |
extern sci_uart_instance_ctrl_t g_uart9_ctrl; |
| 152 |
extern const uart_cfg_t g_uart9_cfg; |
| 153 |
extern const sci_uart_extended_cfg_t g_uart9_cfg_extend; |
| 154 |
|
| 155 |
#ifndef user_uart_callback |
| 156 |
void user_uart_callback(uart_callback_args_t *p_args); |
| 157 |
#endif |
| 158 |
/* Flash on Flash HP Instance */ |
| 159 |
extern const flash_instance_t g_flash0; |
| 160 |
|
| 161 |
/** Access the Flash HP instance using these structures when calling API functions directly (::p_api is not used). */ |
| 162 |
extern flash_hp_instance_ctrl_t g_flash0_ctrl; |
| 163 |
extern const flash_cfg_t g_flash0_cfg; |
| 164 |
|
| 165 |
#ifndef NULL |
| 166 |
void NULL(flash_callback_args_t *p_args); |
| 167 |
#endif |
| 168 |
/** lpm Instance */ |
| 169 |
extern const lpm_instance_t g_lpm0; |
| 170 |
|
| 171 |
/** Access the LPM instance using these structures when calling API functions directly (::p_api is not used). */ |
| 172 |
extern lpm_instance_ctrl_t g_lpm0_ctrl; |
| 173 |
extern const lpm_cfg_t g_lpm0_cfg; |
| 174 |
void hal_entry(void); |
| 175 |
void g_hal_init(void); |
| 176 |
FSP_FOOTER |
| 177 |
#endif /* HAL_DATA_H_ */ |