Changeset 342 for asp3_tinet_ecnl_rx/trunk/asp3_dcre
- Timestamp:
- Apr 27, 2018, 2:26:14 PM (6 years ago)
- Location:
- asp3_tinet_ecnl_rx/trunk/asp3_dcre
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
asp3_tinet_ecnl_rx/trunk/asp3_dcre/Debug/Makefile
r337 r342 369 369 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 370 370 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 371 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)371 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 372 372 373 373 # -
asp3_tinet_ecnl_rx/trunk/asp3_dcre/DebugCitrus/Makefile
r337 r342 369 369 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 370 370 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 371 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)371 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 372 372 373 373 # -
asp3_tinet_ecnl_rx/trunk/asp3_dcre/arch/rx630_gcc/prc_kernel_impl.c
r337 r342 39 39 * の責任を負わない. 40 40 * 41 * @(#) $Id $41 * @(#) $Id: prc_kernel_impl.c 1518 2018-04-24 00:37:16Z coas-nagasima $ 42 42 */ 43 43 … … 237 237 #endif /* OMIT_DEFAULT_EXC_HANDLER */ 238 238 239 void _start_c(char **args); 240 241 void 242 _sta_ker() 243 { 244 const char *const args[] = { 245 1, 246 "asp3", 247 0, 248 "TZ=JST-9", 249 0 250 }; 251 _start_c(args); 252 } 253 254 //#include <errno.h> 255 #define ENOSYS 38 256 257 __attribute__((weak)) 258 long SYS_poll() 259 { 260 return -ENOSYS; 261 } 262 263 __attribute__((weak)) 264 long SYS_open() 265 { 266 return -ENOSYS; 267 } 268 269 __attribute__((weak)) 270 void SYS_set_tid_address() 271 { 272 return 0;//-ENOSYS; 273 } 274 275 __attribute__((weak)) 276 void SYS_mmap2() 277 { 278 return 0;//-ENOSYS; 279 } 280 281 __attribute__((weak)) 282 void SYS_exit_group() 283 { 284 ext_ker(); 285 } 286 287 __attribute__((weak)) 288 void SYS_exit() 289 { 290 ext_ker(); 291 } -
asp3_tinet_ecnl_rx/trunk/asp3_dcre/arch/rx630_gcc/start.S
r337 r342 144 144 ; 145 145 kernel_link: 146 bra.a _ sta_ker ; -->_sta_ker()146 bra.a __sta_ker ; --> __sta_ker() 147 147 148 148 .end -
asp3_tinet_ecnl_rx/trunk/asp3_dcre/include/t_syslog.h
r337 r342 140 140 141 141 #ifndef TOPPERS_OMIT_SYSLOG 142 #ifdef TOPPERS_OMIT_TECS143 #define tSysLog_eSysLog_write syslog_wri_log144 #endif145 142 146 143 /* -
asp3_tinet_ecnl_rx/trunk/asp3_dcre/sample/Makefile
r337 r342 362 362 tecs $(TECSGEN_SRCS) $(TECS_HEADERS): $(TECSGEN_TIMESTAMP) ; 363 363 $(TECSGEN_TIMESTAMP): $(APPL_CDL) $(TECS_IMPORTS) 364 $(TECSGEN) $< -R $(INCLUDES) --cpp "$( TECS_CPP)" -g $(TECSGENDIR)364 $(TECSGEN) $< -R $(INCLUDES) --cpp "$(subst ", \", $(TECS_CPP))" -g $(TECSGENDIR) 365 365 366 366 # -
asp3_tinet_ecnl_rx/trunk/asp3_dcre/syssvc/tSerialPortMain.c
r337 r342 504 504 pk_rpor->reacnt = VAR_receiveCount; 505 505 pk_rpor->wricnt = VAR_sendCount; 506 pk_rpor->wbufsz = ATTR_sendBufferSize; 506 507 return(E_OK); 507 508 } -
asp3_tinet_ecnl_rx/trunk/asp3_dcre/tinet/net/ethernet.c
r337 r342 29 29 * 接的または間接的に生じたいかなる損害に関しても,その責任を負わない. 30 30 * 31 * @(#) $Id $31 * @(#) $Id: ethernet.c 1524 2018-04-25 13:48:23Z coas-nagasima $ 32 32 */ 33 33 … … 195 195 196 196 /** 197 * Called by a driver when its link goes up 198 */ 199 void ether_set_link_up() 200 { 201 if (!(ether_ifnet.flags & IF_FLAG_LINK_UP)) { 202 ether_ifnet.flags |= IF_FLAG_LINK_UP; 203 204 if (ether_ifnet.flags & IF_FLAG_UP) { 205 #if LWIP_ARP 206 /* For Ethernet network interfaces, we would like to send a "gratuitous ARP" */ 207 if (ether_ifnet.flags & IF_FLAG_ETHARP) { 208 etharp_gratuitous(ðer_ifnet); 209 } 210 #endif /* LWIP_ARP */ 211 212 #if LWIP_IGMP 213 /* resend IGMP memberships */ 214 if (ether_ifnet._flags & IF_FLAG_IGMP) { 215 igmp_report_groups(ðer_ifnet); 216 } 217 #endif /* LWIP_IGMP */ 218 } 219 if (ether_ifnet.link_callback) { 220 (ether_ifnet.link_callback)(ðer_ifnet); 221 } 222 } 223 } 197 * ether_set_link_up -- リンクしたときにNICから呼び出される 198 */ 199 void 200 ether_set_link_up() 201 { 202 if (!(ether_ifnet.flags & IF_FLAG_LINK_UP)) { 203 ether_ifnet.flags |= IF_FLAG_LINK_UP; 204 205 if (ether_ifnet.flags & IF_FLAG_UP) { 206 #if defined(_IP4_CFG) && defined(SUPPORT_ETHER) 207 /* ARP再構築? */ 208 #endif /* #if defined(_IP4_CFG) && defined(SUPPORT_ETHER) */ 209 210 #ifdef SUPPORT_IGMP 211 /* IGMP参加 */ 212 #endif /* #ifdef SUPPORT_IGMP */ 213 } 214 if (ether_ifnet.link_callback) { 215 (ether_ifnet.link_callback)(ðer_ifnet); 216 } 217 } 218 } 224 219 225 220 /** 226 * Called by a driver when its link goes down 227 */ 228 void ether_set_link_down() 229 { 230 if (ether_ifnet.flags & IF_FLAG_LINK_UP) { 231 ether_ifnet.flags &= ~IF_FLAG_LINK_UP; 232 if (ether_ifnet.link_callback) { 233 (ether_ifnet.link_callback)(ðer_ifnet); 234 } 235 } 236 } 237 238 void ether_set_up() 239 { 240 if (!(ether_ifnet.flags & IF_FLAG_UP)) { 241 ether_ifnet.flags |= IF_FLAG_UP; 242 if (ether_ifnet.link_callback) { 243 (ether_ifnet.link_callback)(ðer_ifnet); 244 } 245 } 246 } 247 248 void ether_set_down() 249 { 250 if (ether_ifnet.flags & IF_FLAG_UP) { 251 ether_ifnet.flags &= ~IF_FLAG_UP; 252 if (ether_ifnet.link_callback) { 253 (ether_ifnet.link_callback)(ðer_ifnet); 254 } 255 } 256 } 257 258 /** 259 * Set callback to be called when link is brought up/down 260 */ 261 void ether_set_link_callback(ether_status_callback_fn link_callback) 221 * ether_set_link_up -- リンクが切断したときにNICから呼び出される 222 */ 223 void 224 ether_set_link_down() 225 { 226 if (ether_ifnet.flags & IF_FLAG_LINK_UP) { 227 ether_ifnet.flags &= ~IF_FLAG_LINK_UP; 228 if (ether_ifnet.link_callback) { 229 (ether_ifnet.link_callback)(ðer_ifnet); 230 } 231 } 232 } 233 234 /* 235 * ether_set_up -- DHCPでアドレスが設定されたとき呼び出される 236 */ 237 238 void 239 ether_set_up() 240 { 241 if (!(ether_ifnet.flags & IF_FLAG_UP)) { 242 ether_ifnet.flags |= IF_FLAG_UP; 243 if (ether_ifnet.link_callback) { 244 (ether_ifnet.link_callback)(ðer_ifnet); 245 } 246 } 247 } 248 249 /* 250 * ether_set_down -- DHCPでアドレスが解放されたとき呼び出される 251 */ 252 253 void 254 ether_set_down() 255 { 256 if (ether_ifnet.flags & IF_FLAG_UP) { 257 ether_ifnet.flags &= ~IF_FLAG_UP; 258 if (ether_ifnet.link_callback) { 259 (ether_ifnet.link_callback)(ðer_ifnet); 260 } 261 } 262 } 263 264 /* 265 * ether_set_link_callback -- リンク状態変化時のコールバック登録 266 */ 267 268 void 269 ether_set_link_callback(ether_status_callback_fn link_callback) 262 270 { 263 271 ether_ifnet.link_callback = link_callback; 264 } 272 if (ether_ifnet.link_callback) { 273 (ether_ifnet.link_callback)(ðer_ifnet); 274 } 275 } 265 276 266 277 /* -
asp3_tinet_ecnl_rx/trunk/asp3_dcre/tinet/net/ethernet.h
r337 r342 29 29 * 接的または間接的に生じたいかなる損害に関しても,その責任を負わない. 30 30 * 31 * @(#) $Id $31 * @(#) $Id: ethernet.h 1524 2018-04-25 13:48:23Z coas-nagasima $ 32 32 */ 33 33 … … 311 311 extern uint32_t ether_srand (void); 312 312 313 /** Function prototype for netif status- or link-callback functions. */314 313 typedef void (*ether_status_callback_fn)(T_IFNET *ether); 315 314 extern void ether_set_link_callback(ether_status_callback_fn link_callback); -
asp3_tinet_ecnl_rx/trunk/asp3_dcre/tinet/netapp/dhcp4_cli_var.h
r340 r342 165 165 ER_UINT error; /* エラー・データ長 */ 166 166 ID tskid; /* タスクID */ 167 ID cepid; /* CEP ID */167 ID cepid; /* CEP ID */ 168 168 uint32_t xid; /* トランザクション ID */ 169 169 uint16_t flags; /* 各種フラグ */
Note:
See TracChangeset
for help on using the changeset viewer.