TMPM4G(1) Group Peripheral Driver User Manual  V1.0.0.0
txz_smif_include.h
Go to the documentation of this file.
1 
13 /*------------------------------------------------------------------------------*/
14 /* Define to prevent recursive inclusion */
15 /*------------------------------------------------------------------------------*/
16 #ifndef __SMIF_INCLUDE_H
17 #define __SMIF_INCLUDE_H 1
18 
19 #ifdef __cplusplus
20 extern "C" {
21 #endif
22 
23 /*------------------------------------------------------------------------------*/
24 /* Includes */
25 /*------------------------------------------------------------------------------*/
26 #include "txz_driver_def.h"
27 
37 /*------------------------------------------------------------------------------*/
38 /* Macro Definition */
39 /*------------------------------------------------------------------------------*/
50 #define SMIF_NULL ((void *)0) /* End of group SMIF_NullPointer */
54 
60 #define SMIF_TIMER_INTERVAL (100) /* End of group SMIF_Timer_Interval */
64 
70 #define SMIF_PARAM_OK ((int32_t)1)
71 #define SMIF_PARAM_NG ((int32_t)0) /* End of group SMIF_ParameterResult */
75 
81 #define SMIF_E_SFLASH_OK ((int32_t)0)
82 #define SMIF_E_SFLASH_BUSY ((int32_t)-1)
83 #define SMIF_E_SFLASH_ABORT ((int32_t)-2)
84 #define SMIF_E_SFLASH_TIMEOUT ((int32_t)-3)
85 #define SMIF_E_SFLASH_ERROR ((int32_t)-4) /* End of group SMIF_Check_Result */
89 
95 #define SMIF_SFLASH_POLLING_NO_TIME (0)
96 #define SMIF_SFLASH_POLLING_TIME_QUAD (100)
97 #define SMIF_SFLASH_POLLING_TIME_WRITE (100)
98 #define SMIF_SFLASH_POLLING_TIME_ERASE (5000) /* End of group SMIF_Polling_Time */
102 
108 #define SMIF_SFLASH_TIMEOUT_US (300)
109 #define SMIF_SFLASH_TIMEOUT_QUAD (3000)
110 #define SMIF_SFLASH_TIMEOUT_WRITE (3)
111 #define SMIF_SFLASH_TIMEOUT_ERASE (3000)
112 #define SMIF_SFLASH_TIMEOUT_CHIP_ERASE (500000) /* End of group SMIF_Busy_Time_Out */
116 
117  /* End of group SMIF_Private_define */
121 
122 
123 /*------------------------------------------------------------------------------*/
124 /* Enumerated Type Definition */
125 /*------------------------------------------------------------------------------*/
131 /* no define */
132  /* End of group SMIF_Private_define */
136 
137 
138 /*------------------------------------------------------------------------------*/
139 /* Structure Definition */
140 /*------------------------------------------------------------------------------*/
146 /* no define */
147  /* End of group SMIF_Private_typedef */
151 
156 extern TXZ_Result smif_timer_initialize(void);
157 extern TXZ_Result smif_timer_finalize(void);
158 extern TXZ_Result smif_timer_start(void);
159 extern TXZ_Result smif_timer_stop(void);
160 extern uint32_t SysOpe_GetTime(void);
161 extern uint32_t SysOpe_GetElapseTime(uint32_t baseTime);
162 extern void BusyCheckTimer(void); /* End of group SMIF_Private_functions */
167  /* End of group SMIF */
171  /* End of group Periph_Driver */
175 
176 #ifdef __cplusplus
177 }
178 #endif /* __cplusplus */
179 #endif /* __SMIF_INCLUDE_H */
180 
181 
uint32_t SysOpe_GetTime(void)
Get base time.
Definition: txz_smif_timer.c:370
TXZ_Result
Definition: txz_driver_def.h:43
uint32_t SysOpe_GetElapseTime(uint32_t baseTime)
Get Elapse time.
Definition: txz_smif_timer.c:382
TXZ_Result smif_timer_stop(void)
Stop.
Definition: txz_smif_timer.c:341
All common macro and definition for TXZ peripheral drivers.
void BusyCheckTimer(void)
TXZ_Result smif_timer_initialize(void)
Initialize.
Definition: txz_smif_timer.c:182
TXZ_Result smif_timer_finalize(void)
Definition: txz_smif_timer.c:288
TXZ_Result smif_timer_start(void)
Start.
Definition: txz_smif_timer.c:311