Changeset 61389eac in rtems
- Timestamp:
- 05/29/97 21:53:58 (27 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- b64905a
- Parents:
- 1ca853b2
- Location:
- doc/user
- Files:
-
- 22 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/user/c_user.texi
r1ca853b2 r61389eac 38 38 @c variable substitution info: 39 39 @c 40 @c @set RTEMS-LANGUAGE C 40 @set is-C 41 @clear is-Ada 42 @set RTEMS-LANGUAGE C 43 @set RTEMS-STRUCTURE structure 44 @set RTEMS-ROUTINE function 41 45 @c the language is @value{RTEMS-LANGUAGE} 42 46 @c NOTE: don't use underscore in the name -
doc/user/clock.t
r1ca853b2 r61389eac 70 70 and time structure for the native time and date format: 71 71 72 @ifset is-C 72 73 @example 73 74 struct rtems_tod_control @{ … … 83 84 typedef struct rtems_tod_control rtems_time_of_day; 84 85 @end example 86 @end ifset 87 88 @ifset is-Ada 89 @example 90 type Time_Of_Day is 91 record 92 Year : RTEMS.Unsigned32; -- year, A.D. 93 Month : RTEMS.Unsigned32; -- month, 1 .. 12 94 Day : RTEMS.Unsigned32; -- day, 1 .. 31 95 Hour : RTEMS.Unsigned32; -- hour, 0 .. 23 96 Minute : RTEMS.Unsigned32; -- minute, 0 .. 59 97 Second : RTEMS.Unsigned32; -- second, 0 .. 59 98 Ticks : RTEMS.Unsigned32; -- elapsed ticks between seconds 99 end record; 100 @end example 101 @end ifset 85 102 86 103 … … 92 109 following structure: 93 110 111 @ifset is-C 94 112 @example 95 113 @group … … 97 115 rtems_unsigned32 seconds; /* seconds since RTEMS epoch*/ 98 116 rtems_unsigned32 microseconds; /* since last second */ 99 @} rtems_clock_time_value _control;117 @} rtems_clock_time_value; 100 118 @end group 101 119 @end example 102 120 @end ifset 121 122 @ifset is-Ada 123 @example 124 type Clock_Time_Value is 125 record 126 Seconds : Unsigned32; 127 Microseconds : Unsigned32; 128 end record; 129 @end example 130 @end ifset 103 131 104 132 The seconds field in this structure is the number of … … 247 275 @subheading CALLING SEQUENCE: 248 276 277 @ifset is-C 249 278 @example 250 279 rtems_status_code rtems_clock_set( … … 252 281 ); 253 282 @end example 283 @end ifset 284 285 @ifset is-Ada 286 @example 287 procedure Clock_Set ( 288 Time_Buffer : in RTEMS.Time_Of_Day; 289 Result : out RTEMS.Status_Codes 290 ); 291 @end example 292 @end ifset 254 293 255 294 @subheading DIRECTIVE STATUS CODES: … … 289 328 @subheading CALLING SEQUENCE: 290 329 330 @ifset is-C 291 331 @example 292 332 rtems_status_code rtems_clock_get( … … 295 335 ); 296 336 @end example 337 @end ifset 338 339 @ifset is-Ada 340 @example 341 procedure Clock_Get ( 342 Option : in RTEMS.Clock_Get_Options; 343 Time_Buffer : in RTEMS.Address; 344 Result : out RTEMS.Status_Codes 345 ); 346 @end example 347 @end ifset 297 348 298 349 @subheading DIRECTIVE STATUS CODES: … … 330 381 @subheading CALLING SEQUENCE: 331 382 383 @ifset is-C 332 384 @example 333 385 rtems_status_code rtems_clock_tick( void ); 334 386 @end example 387 @end ifset 388 389 @ifset is-Ada 390 @example 391 procedure Clock_Tick ( 392 Result : out RTEMS.Status_Codes 393 ); 394 @end example 395 @end ifset 335 396 336 397 @subheading DIRECTIVE STATUS CODES: -
doc/user/concepts.t
r1ca853b2 r61389eac 84 84 85 85 @ifset use-ascii 86 ASCII87 86 @example 88 87 @group -
doc/user/conf.t
r1ca853b2 r61389eac 36 36 argument to the initialize_executive directive, which MUST be 37 37 the first RTEMS directive called. The RTEMS Configuration Table 38 is defined in the following C structure:38 is defined in the following @value{RTEMS-LANGUAGE} @value{RTEMS-STRUCTURE}: 39 39 40 40 @example … … 127 127 For example, the user can configure the maximum number of tasks for 128 128 this application. The RTEMS API Configuration Table is defined in 129 the following C structure:129 the following @value{RTEMS-LANGUAGE} @value{RTEMS-STRUCTURE}: 130 130 131 131 @example … … 197 197 For example, the user can configure the maximum number of threads for 198 198 this application. The POSIX API Configuration Table is defined in 199 the following C structure:199 the following @value{RTEMS-LANGUAGE} @value{RTEMS-STRUCTURE}: 200 200 201 201 @example … … 352 352 entries is defined in the number_of_device_drivers entry in the 353 353 Configuration Table. The format of each entry in the Device 354 Driver Table is defined in the following C structure: 354 Driver Table is defined in 355 the following @value{RTEMS-LANGUAGE} @value{RTEMS-STRUCTURE}: 355 356 356 357 @example … … 542 543 Multiprocessor Configuration Table will be provided in the 543 544 Multiprocessing chapter. The format of the Multiprocessor 544 Configuration Table is defined in the following C structure: 545 Configuration Table is defined in 546 the following @value{RTEMS-LANGUAGE} @value{RTEMS-STRUCTURE}: 545 547 546 548 @example … … 599 601 @section Multiprocessor Communications Interface Table 600 602 601 The format of this table is defined in the following C structure: 603 The format of this table is defined in 604 the following @value{RTEMS-LANGUAGE} @value{RTEMS-STRUCTURE}: 602 605 603 606 @example -
doc/user/dpmem.t
r1ca853b2 r61389eac 148 148 @subheading CALLING SEQUENCE: 149 149 150 @ifset is-C 150 151 @example 151 152 rtems_status_code rtems_port_create( … … 157 158 ); 158 159 @end example 160 @end ifset 161 162 @ifset is-Ada 163 @example 164 procedure Port_Create ( 165 Name : in RTEMS.Name; 166 Internal_Start : in RTEMS.Address; 167 External_Start : in RTEMS.Address; 168 Length : in RTEMS.Unsigned32; 169 ID : out RTEMS.ID; 170 Result : out RTEMS.Status_Codes 171 ); 172 @end example 173 @end ifset 159 174 160 175 @subheading DIRECTIVE STATUS CODES: … … 193 208 @subheading CALLING SEQUENCE: 194 209 210 @ifset is-C 195 211 @example 196 212 rtems_status_code rtems_port_ident( … … 199 215 ); 200 216 @end example 217 @end ifset 218 219 @ifset is-Ada 220 @example 221 procedure Port_Ident ( 222 Name : in RTEMS.Name; 223 ID : out RTEMS.ID; 224 Result : out RTEMS.Status_Codes 225 ); 226 @end example 227 @end ifset 201 228 202 229 @subheading DIRECTIVE STATUS CODES: … … 226 253 @subheading CALLING SEQUENCE: 227 254 255 @ifset is-C 228 256 @example 229 257 rtems_status_code rtems_port_delete( … … 231 259 ); 232 260 @end example 261 @end ifset 262 263 @ifset is-Ada 264 @example 265 procedure Port_Delete ( 266 ID : in RTEMS.ID; 267 Result : out RTEMS.Status_Codes 268 ); 269 @end example 270 @end ifset 233 271 234 272 @subheading DIRECTIVE STATUS CODES: … … 259 297 @subheading CALLING SEQUENCE: 260 298 299 @ifset is-C 261 300 @example 262 301 rtems_status_code rtems_port_external_to_internal( … … 266 305 ); 267 306 @end example 307 @end ifset 308 309 @ifset is-Ada 310 @example 311 procedure Port_External_To_Internal ( 312 ID : in RTEMS.ID; 313 External : in RTEMS.Address; 314 Internal : out RTEMS.Address; 315 Result : out RTEMS.Status_Codes 316 ); 317 @end example 318 @end ifset 268 319 269 320 @subheading DIRECTIVE STATUS CODES: … … 293 344 @subheading CALLING SEQUENCE: 294 345 346 @ifset is-C 295 347 @example 296 348 rtems_status_code rtems_port_internal_to_external( … … 300 352 ); 301 353 @end example 354 @end ifset 355 356 @ifset is-Ada 357 @example 358 procedure Port_Internal_To_External ( 359 ID : in RTEMS.ID; 360 Internal : in RTEMS.Address; 361 External : out RTEMS.Address; 362 Result : out RTEMS.Status_Codes 363 ); 364 @end example 365 @end ifset 302 366 303 367 @subheading DIRECTIVE STATUS CODES: … … 319 383 preempted. 320 384 321 322 323 324 -
doc/user/event.t
r1ca853b2 r61389eac 248 248 @subheading CALLING SEQUENCE: 249 249 250 @ifset is-C 250 251 @example 251 252 rtems_status_code rtems_event_send ( … … 254 255 ); 255 256 @end example 257 @end ifset 258 259 @ifset is-Ada 260 @example 261 procedure Event_Send ( 262 ID : in RTEMS.ID; 263 Event_In : in RTEMS.Event_Set; 264 Result : out RTEMS.Status_Codes 265 ); 266 @end example 267 @end ifset 256 268 257 269 @subheading DIRECTIVE STATUS CODES: … … 294 306 @subheading CALLING SEQUENCE: 295 307 308 @ifset is-C 296 309 @example 297 310 rtems_status_code rtems_event_receive ( … … 302 315 ); 303 316 @end example 317 @end ifset 318 319 @ifset is-Ada 320 @example 321 procedure Event_Receive ( 322 Event_In : in RTEMS.Event_Set; 323 Option_Set : in RTEMS.Option; 324 Ticks : in RTEMS.Interval; 325 Event_Out : out RTEMS.Event_Set; 326 Result : out RTEMS.Status_Codes 327 ); 328 @end example 329 @end ifset 304 330 305 331 @subheading DIRECTIVE STATUS CODES: -
doc/user/fatal.t
r1ca853b2 r61389eac 30 30 @item @code{fatal_error_occurred} - Invoke the fatal error handler 31 31 @end itemize 32 33 34 32 35 33 @ifinfo … … 149 147 @subheading CALLING SEQUENCE: 150 148 149 @ifset is-C 151 150 @example 152 151 void volatile rtems_fatal_error_occurred( … … 154 153 ); 155 154 @end example 155 @end ifset 156 157 @ifset is-Ada 158 @example 159 procedure Fatal_Error_Occurred ( 160 The_Error : in RTEMS.Unsigned32 161 ); 162 @end example 163 @end ifset 156 164 157 165 @subheading DIRECTIVE STATUS CODES -
doc/user/init.t
r1ca853b2 r61389eac 248 248 @subheading CALLING SEQUENCE: 249 249 250 @example 251 rtems_interrupt_level rtems_initialize_executive_early( 250 @ifset is-C 251 @example 252 void rtems_initialize_executive( 252 253 rtems_configuration_table *configuration_table, 253 254 rtems_cpu_table *cpu_table 254 255 ); 255 256 @end example 257 @end ifset 258 259 @ifset is-Ada 260 @example 261 procedure Initialize_Executive( 262 Configuration_Table : in RTEMS.Configuration_Table_Pointer; 263 CPU_Table : in RTEMS.CPU_Table 264 ); 265 @end example 266 @end ifset 256 267 257 268 @subheading DIRECTIVE STATUS CODES: … … 297 308 @subheading CALLING SEQUENCE: 298 309 310 @ifset is-C 299 311 @example 300 312 rtems_interrupt_level rtems_initialize_executive_early( … … 303 315 ); 304 316 @end example 317 @end ifset 318 319 @ifset is-Ada 320 @example 321 procedure rtems.initialize_executive_early( 322 Configuration_Table : in RTEMS.Configuration_Table_Pointer; 323 CPU_Table : in RTEMS.Cpu_Table; 324 Level : out RTEMS.ISR_Level 325 ); 326 @end example 327 @end ifset 305 328 306 329 @subheading DIRECTIVE STATUS CODES: … … 337 360 @subheading CALLING SEQUENCE: 338 361 362 @ifset is-C 339 363 @example 340 364 void rtems_initialize_executive_late( … … 342 366 ); 343 367 @end example 368 @end ifset 369 370 @ifset is-Ada 371 @example 372 procedure Initialize_Executive_Late( 373 BSP_Level : in RTEMS.ISR_Level 374 ); 375 @end example 376 @end ifset 344 377 345 378 @subheading DIRECTIVE STATUS CODES: … … 382 415 @subheading CALLING SEQUENCE: 383 416 417 @ifset is-C 384 418 @example 385 419 void rtems_shutdown_executive( … … 387 421 ); 388 422 @end example 423 @end ifset 424 425 @ifset is-Ada 426 @example 427 procedure Shutdown_Executive( 428 result : in RTEMS.Unsigned32 429 ); 430 @end example 431 @end ifset 389 432 390 433 @subheading DIRECTIVE STATUS CODES: -
doc/user/intr.t
r1ca853b2 r61389eac 57 57 interrupt occurs, the processor will automatically vector to 58 58 RTEMS. RTEMS saves and restores all registers which are not 59 preserved by the normal C calling convention for the target 59 preserved by the normal @value{RTEMS-LANGUAGE} calling convention 60 for the target 60 61 processor and invokes the user's ISR. The user's ISR is 61 62 responsible for processing the interrupt, clearing the interrupt … … 67 68 the following: 68 69 70 @ifset is-C 69 71 @example 70 72 rtems_isr user_isr( … … 72 74 ); 73 75 @end example 76 @end ifset 77 78 @ifset is-Ada 79 @example 80 procedure User_ISR ( 81 vector : in RTEMS.Vector_Number 82 ); 83 @end example 84 @end ifset 74 85 75 86 The vector number argument is provided by RTEMS to … … 100 111 proper task scheduling and dispatching is to be performed: 101 112 102 @itemize @ code{ }113 @itemize @b{ } 103 114 104 115 @item @b{The interrupt manager must be used for all ISRs which … … 120 131 without performing any dispatch processing. Only when the 121 132 outermost ISR terminates will the postponed dispatching occur. 122 123 124 133 125 134 @ifinfo … … 273 282 @subheading CALLING SEQUENCE: 274 283 284 @ifset is-C 275 285 @example 276 286 rtems_status_code rtems_interrupt_catch( … … 280 290 ); 281 291 @end example 292 @end ifset 293 294 @ifset is-Ada 295 @example 296 procedure Interrupt_Catch ( 297 New_ISR_handler : in RTEMS.Address; 298 Vector : in RTEMS.Vector_Number; 299 Old_ISR_Handler : out RTEMS.Address; 300 Result : out RTEMS.Status_Codes 301 ); 302 @end example 303 @end ifset 282 304 283 305 @subheading DIRECTIVE STATUS CODES: -
doc/user/io.t
r1ca853b2 r61389eac 150 150 compatible with the following prototype: 151 151 152 @ifset is-C 152 153 @example 153 154 rtems_device_driver io_entry( … … 157 158 ); 158 159 @end example 159 160 160 @end ifset 161 162 @ifset is-Ada 163 @example 164 function IO_Entry ( 165 Major : in RTEMS.Device_Major_Number; 166 Minor : in RTEMS.Device_Major_Number; 167 Argument_Block : in RTEMS.Address 168 ) return RTEMS.Status_Code; 169 @end example 170 @end ifset 161 171 162 172 The format and contents of the parameter block are … … 264 274 @subheading CALLING SEQUENCE: 265 275 276 @ifset is-C 266 277 @example 267 278 rtems_status_code rtems_io_initialize( … … 271 282 ); 272 283 @end example 284 @end ifset 285 286 @ifset is-Ada 287 @example 288 procedure IO_Initialize ( 289 Major : in RTEMS.Device_Major_Number; 290 Minor : in RTEMS.Device_Minor_Number; 291 Argument : in RTEMS.Address; 292 Return_Value : out RTEMS.Unsigned32; 293 Result : out RTEMS.Status_Codes 294 ); 295 @end example 296 @end ifset 273 297 274 298 @subheading DIRECTIVE STATUS CODES: … … 303 327 @subheading CALLING SEQUENCE: 304 328 329 @ifset is-C 305 330 @example 306 331 rtems_status_code rtems_io_register_name( … … 310 335 ); 311 336 @end example 337 @end ifset 338 339 @ifset is-Ada 340 @example 341 procedure IO_Register_Name ( 342 Name : in String; 343 Major : in RTEMS.Device_Major_Number; 344 Minor : in RTEMS.Device_Minor_Number; 345 Result : out RTEMS.Status_Codes 346 ); 347 @end example 348 @end ifset 312 349 313 350 @subheading DIRECTIVE STATUS CODES: … … 333 370 @subheading CALLING SEQUENCE: 334 371 335 @example 336 rtems_status_code rtems_io_lookup( 372 @ifset is-C 373 @example 374 rtems_status_code rtems_io_lookup_name( 337 375 const char *name, 338 376 rtems_driver_name_t **device_info 339 377 ); 340 378 @end example 379 @end ifset 380 381 @ifset is-Ada 382 @example 383 procedure IO_Lookup_Name ( 384 Name : in String; 385 Device_Info : out RTEMS.Driver_Name_t; 386 ); 387 @end example 388 @end ifset 341 389 342 390 @subheading DIRECTIVE STATUS CODES: … … 362 410 @subheading CALLING SEQUENCE: 363 411 412 @ifset is-C 364 413 @example 365 414 rtems_status_code rtems_io_open( … … 369 418 ); 370 419 @end example 420 @end ifset 421 422 @ifset is-Ada 423 @example 424 procedure IO_Open ( 425 Major : in RTEMS.Device_Major_Number; 426 Minor : in RTEMS.Device_Minor_Number; 427 Argument : in RTEMS.Address; 428 Return_Value : out RTEMS.Unsigned32; 429 Result : out RTEMS.Status_Codes 430 ); 431 @end example 432 @end ifset 371 433 372 434 @subheading DIRECTIVE STATUS CODES: … … 395 457 @subheading CALLING SEQUENCE: 396 458 459 @ifset is-C 397 460 @example 398 461 rtems_status_code rtems_io_close( … … 402 465 ); 403 466 @end example 467 @end ifset 468 469 @ifset is-Ada 470 @example 471 procedure IO_Close ( 472 Major : in RTEMS.Device_Major_Number; 473 Minor : in RTEMS.Device_Minor_Number; 474 Argument : in RTEMS.Address; 475 Return_Value : out RTEMS.Unsigned32; 476 Result : out RTEMS.Status_Codes 477 ); 478 @end example 479 @end ifset 404 480 405 481 @subheading DIRECTIVE STATUS CODES: … … 428 504 @subheading CALLING SEQUENCE: 429 505 506 @ifset is-C 430 507 @example 431 508 rtems_status_code rtems_io_read( … … 435 512 ); 436 513 @end example 514 @end ifset 515 516 @ifset is-Ada 517 @example 518 procedure IO_Read ( 519 Major : in RTEMS.Device_Major_Number; 520 Minor : in RTEMS.Device_Minor_Number; 521 Argument : in RTEMS.Address; 522 Return_Value : out RTEMS.Unsigned32; 523 Result : out RTEMS.Status_Codes 524 ); 525 @end example 526 @end ifset 437 527 438 528 @subheading DIRECTIVE STATUS CODES: … … 462 552 @subheading CALLING SEQUENCE: 463 553 554 @ifset is-C 464 555 @example 465 556 rtems_status_code rtems_io_write( … … 469 560 ); 470 561 @end example 562 @end ifset 563 564 @ifset is-Ada 565 @example 566 procedure IO_Write ( 567 Major : in RTEMS.Device_Major_Number; 568 Minor : in RTEMS.Device_Minor_Number; 569 Argument : in RTEMS.Address; 570 Return_Value : out RTEMS.Unsigned32; 571 Result : out RTEMS.Status_Codes 572 ); 573 @end example 574 @end ifset 471 575 472 576 @subheading DIRECTIVE STATUS CODES: … … 496 600 @subheading CALLING SEQUENCE: 497 601 602 @ifset is-C 498 603 @example 499 604 rtems_status_code rtems_io_control( … … 503 608 ); 504 609 @end example 610 @end ifset 611 612 @ifset is-Ada 613 @example 614 procedure IO_Control ( 615 Major : in RTEMS.Device_Major_Number; 616 Minor : in RTEMS.Device_Minor_Number; 617 Argument : in RTEMS.Address; 618 Return_Value : out RTEMS.Unsigned32; 619 Result : out RTEMS.Status_Codes 620 ); 621 @end example 622 @end ifset 505 623 506 624 @subheading DIRECTIVE STATUS CODES: -
doc/user/mp.t
r1ca853b2 r61389eac 341 341 following prototype: 342 342 343 @ifset is-C 343 344 @example 344 345 @group … … 348 349 @end group 349 350 @end example 351 @end ifset 352 353 @ifset is-Ada 354 @example 355 procedure User_MPCI_Initialization ( 356 Configuration : in RTEMS.Configuration_Table_Pointer 357 ); 358 @end example 359 @end ifset 350 360 351 361 where configuration is the address of the user's … … 372 382 following prototype: 373 383 384 @ifset is-C 374 385 @example 375 386 @group … … 379 390 @end group 380 391 @end example 392 @end ifset 393 394 @ifset is-Ada 395 @example 396 procedure User_MPCI_Get_Packet ( 397 Packet : access RTEMS.Packet_Prefix_Pointer 398 ); 399 @end example 400 @end ifset 381 401 382 402 where packet is the address of a pointer to a packet. … … 402 422 following prototype: 403 423 424 @ifset is-C 404 425 @example 405 426 @group … … 409 430 @end group 410 431 @end example 432 @end ifset 433 434 @ifset is-Ada 435 @example 436 procedure User_MPCI_Return_Packet ( 437 Packet : in RTEMS.Packet_Prefix_Pointer 438 ); 439 @end example 440 @end ifset 411 441 412 442 where packet is the address of a packet. If the … … 424 454 following prototype: 425 455 456 @ifset is-C 426 457 @example 427 458 @group … … 431 462 @end group 432 463 @end example 464 @end ifset 465 466 @ifset is-Ada 467 @example 468 procedure User_MPCI_Receive_Packet ( 469 Packet : access RTEMS.Packet_Prefix_Pointer 470 ); 471 @end example 472 @end ifset 433 473 434 474 where packet is a pointer to the address of a packet … … 448 488 following prototype: 449 489 490 @ifset is-C 450 491 @example 451 492 @group … … 456 497 @end group 457 498 @end example 499 @end ifset 500 501 @ifset is-Ada 502 @example 503 procedure User_MPCI_Send_Packet ( 504 Node : in RTEMS.Unsigned32; 505 Packet : access RTEMS.Packet_Prefix_Pointer 506 ); 507 @end example 508 @end ifset 458 509 459 510 where node is the node number of the destination and packet is the … … 604 655 @subheading CALLING SEQUENCE: 605 656 657 @ifset is-C 606 658 @example 607 659 void rtems_multiprocessing_announce( void ); 608 660 @end example 661 @end ifset 662 663 @ifset is-Ada 664 @example 665 procedure Multiprocessing_Announce; 666 @end example 667 @end ifset 609 668 610 669 @subheading DIRECTIVE STATUS CODES: -
doc/user/msg.t
r1ca853b2 r61389eac 294 294 @subheading CALLING SEQUENCE: 295 295 296 @ifset is-C 296 297 @example 297 298 rtems_status_code rtems_message_queue_create( … … 303 304 ); 304 305 @end example 306 @end ifset 307 308 @ifset is-Ada 309 @example 310 procedure Message_Queue_Create ( 311 Name : in RTEMS.Name; 312 Count : in RTEMS.Unsigned32; 313 Max_Message_Size : in RTEMS.Unsigned32; 314 Attribute_Set : in RTEMS.Attribute; 315 ID : out RTEMS.ID; 316 Result : out RTEMS.Status_Codes 317 ); 318 @end example 319 @end ifset 305 320 306 321 @subheading DIRECTIVE STATUS CODES: … … 367 382 @subheading CALLING SEQUENCE: 368 383 384 @ifset is-C 369 385 @example 370 386 rtems_status_code rtems_message_queue_ident( … … 374 390 ); 375 391 @end example 392 @end ifset 393 394 @ifset is-Ada 395 @example 396 procedure Message_Queue_Ident ( 397 Name : in RTEMS.Name; 398 Node : in RTEMS.Unsigned32; 399 ID : out RTEMS.ID; 400 Result : out RTEMS.Status_Codes 401 ); 402 @end example 403 @end ifset 376 404 377 405 @subheading DIRECTIVE STATUS CODES: … … 414 442 @subheading CALLING SEQUENCE: 415 443 444 @ifset is-C 416 445 @example 417 446 rtems_status_code rtems_message_queue_delete( … … 419 448 ); 420 449 @end example 450 @end ifset 451 452 @ifset is-Ada 453 @example 454 procedure Message_Queue_Delete ( 455 ID : in RTEMS.ID; 456 Result : out RTEMS.Status_Codes 457 ); 458 @end example 459 @end ifset 421 460 422 461 @subheading DIRECTIVE STATUS CODES: … … 467 506 @subheading CALLING SEQUENCE: 468 507 508 @ifset is-C 469 509 @example 470 510 rtems_status_code rtems_message_queue_send( … … 474 514 ); 475 515 @end example 516 @end ifset 517 518 @ifset is-Ada 519 @example 520 procedure Message_Queue_Send ( 521 ID : in RTEMS.ID; 522 Buffer : in RTEMS.Address; 523 Size : in RTEMS.Unsigned32; 524 Result : out RTEMS.Status_Codes 525 ); 526 @end example 527 @end ifset 476 528 477 529 @subheading DIRECTIVE STATUS CODES: … … 515 567 @subheading CALLING SEQUENCE: 516 568 569 @ifset is-C 517 570 @example 518 571 rtems_status_code rtems_message_queue_urgent( … … 522 575 ); 523 576 @end example 577 @end ifset 578 579 @ifset is-Ada 580 @example 581 procedure Message_Queue_Urgent ( 582 ID : in RTEMS.ID; 583 Buffer : in RTEMS.Address; 584 Size : in RTEMS.Unsigned32; 585 Result : out RTEMS.Status_Codes 586 ); 587 @end example 588 @end ifset 524 589 525 590 @subheading DIRECTIVE STATUS CODES: … … 564 629 @subheading CALLING SEQUENCE: 565 630 631 @ifset is-C 566 632 @example 567 633 rtems_status_code rtems_message_queue_broadcast( … … 572 638 ); 573 639 @end example 640 @end ifset 641 642 @ifset is-Ada 643 @example 644 procedure Message_Queue_Broadcast ( 645 ID : in RTEMS.ID; 646 Buffer : in RTEMS.Address; 647 Size : in RTEMS.Unsigned32; 648 Count : out RTEMS.Unsigned32; 649 Result : out RTEMS.Status_Codes 650 ); 651 @end example 652 @end ifset 574 653 575 654 @subheading DIRECTIVE STATUS CODES: … … 616 695 @subheading CALLING SEQUENCE: 617 696 697 @ifset is-C 618 698 @example 619 699 rtems_status_code rtems_message_queue_receive( … … 625 705 ); 626 706 @end example 707 @end ifset 708 709 @ifset is-Ada 710 @example 711 procedure Message_Queue_Receive ( 712 ID : in RTEMS.ID; 713 Buffer : in RTEMS.Address; 714 Option_Set : in RTEMS.Option; 715 Timeout : in RTEMS.Interval; 716 Size : out RTEMS.Unsigned32; 717 Result : out RTEMS.Status_Codes 718 ); 719 @end example 720 @end ifset 627 721 628 722 @subheading DIRECTIVE STATUS CODES: … … 687 781 @subheading CALLING SEQUENCE: 688 782 783 @ifset is-C 689 784 @example 690 785 rtems_status_code rtems_message_queue_flush( … … 693 788 ); 694 789 @end example 790 @end ifset 791 792 @ifset is-Ada 793 @example 794 procedure Message_Queue_Flush ( 795 ID : in RTEMS.ID; 796 Count : out RTEMS.Unsigned32; 797 Result : out RTEMS.Status_Codes 798 ); 799 @end example 800 @end ifset 695 801 696 802 @subheading DIRECTIVE STATUS CODES: -
doc/user/overview.t
r1ca853b2 r61389eac 55 55 56 56 This manual describes the usage of RTEMS for 57 applications written in the Cprogramming language. Those57 applications written in the @value{RTEMS-LANGUAGE} programming language. Those 58 58 implementation details that are processor dependent are provided 59 59 in the C Applications Supplement documents. A supplement … … 410 410 management as well as intertask communication and 411 411 synchronization. Since directives, user related data 412 structures, and examples are presented in C, a basic 413 understanding of the C programming language is required to fully 412 structures, and examples are presented in @value{RTEMS-LANGUAGE}, a basic 413 understanding of the @value{RTEMS-LANGUAGE} programming language 414 is required to fully 414 415 understand the material presented. However, because of the 415 416 similarity of the Ada and C RTEMS implementations, users will -
doc/user/part.t
r1ca853b2 r61389eac 195 195 @subheading CALLING SEQUENCE: 196 196 197 @ifset is-C 197 198 @example 198 199 rtems_status_code rtems_partition_create( … … 205 206 ); 206 207 @end example 208 @end ifset 209 210 @ifset is-Ada 211 @example 212 procedure Partition_Create ( 213 Name : in RTEMS.Name; 214 Starting_Address : in RTEMS.Address; 215 Length : in RTEMS.Unsigned32; 216 Buffer_Size : in RTEMS.Unsigned32; 217 Attribute_Set : in RTEMS.Attribute; 218 ID : out RTEMS.ID; 219 Result : out RTEMS.Status_Codes 220 ); 221 @end example 222 @end ifset 207 223 208 224 @subheading DIRECTIVE STATUS CODES: … … 268 284 @subheading CALLING SEQUENCE: 269 285 286 @ifset is-C 270 287 @example 271 288 rtems_status_code rtems_partition_ident( … … 275 292 ); 276 293 @end example 294 @end ifset 295 296 @ifset is-Ada 297 @example 298 procedure Partition_Ident ( 299 Name : in RTEMS.Name; 300 Node : in RTEMS.Unsigned32; 301 ID : out RTEMS.ID; 302 Result : out RTEMS.Status_Codes 303 ); 304 @end example 305 @end ifset 277 306 278 307 @subheading DIRECTIVE STATUS CODES: … … 315 344 @subheading CALLING SEQUENCE: 316 345 346 @ifset is-C 317 347 @example 318 348 rtems_status_code rtems_partition_delete( … … 320 350 ); 321 351 @end example 352 @end ifset 353 354 @ifset is-Ada 355 @example 356 procedure Partition_Delete ( 357 ID : in RTEMS.ID; 358 Result : out RTEMS.Status_Codes 359 ); 360 @end example 361 @end ifset 322 362 323 363 @subheading DIRECTIVE STATUS CODES: … … 358 398 @subheading CALLING SEQUENCE: 359 399 400 @ifset is-C 360 401 @example 361 402 rtems_status_code rtems_partition_get_buffer( … … 364 405 ); 365 406 @end example 407 @end ifset 408 409 @ifset is-Ada 410 @example 411 procedure Partition_Get_Buffer ( 412 ID : in RTEMS.ID; 413 Buffer : out RTEMS.Address; 414 Result : out RTEMS.Status_Codes 415 ); 416 @end example 417 @end ifset 366 418 367 419 @subheading DIRECTIVE STATUS CODES: … … 397 449 @subheading CALLING SEQUENCE: 398 450 451 @ifset is-C 399 452 @example 400 453 rtems_status_code rtems_partition_return_buffer( … … 403 456 ); 404 457 @end example 458 @end ifset 459 460 @ifset is-Ada 461 @example 462 procedure Partition_Return_Buffer ( 463 ID : in RTEMS.ID; 464 Buffer : in RTEMS.Address; 465 Result : out RTEMS.Status_Codes 466 ); 467 @end example 468 @end ifset 405 469 406 470 @subheading DIRECTIVE STATUS CODES: -
doc/user/preface.texi
r1ca853b2 r61389eac 147 147 Government owned, so no licensing fees are necessary. RTEMS has 148 148 been implemented in both the Ada and C programming languages. 149 It has been ported to the Motorola MC68xxx family, the Intel 150 i80386 and above, and the Intel i80960 family. Support for 151 other processor families, including RISC, CISC, and DSP, is 152 planned. Since almost all of RTEMS is written in a high level 153 language, ports to additional processor families require minimal 154 effort. 149 It has been ported to the following processor families: 150 151 @itemize @bullet 152 @item Intel i80386 and above 153 @item Intel i80960 154 @item Motorola MC68xxx 155 @item Motorola MC683xx 156 @item MIPS 157 @item PowerPC 158 @item SPARC 159 @item Hewlett Packard PA-RISC 160 @item AMD A29K 161 @item UNIX 162 @end itemize 163 164 Support for other processor families, including RISC, CISC, and DSP, is 165 planned. Since almost all of RTEMS is written in a high level language, 166 ports to additional processor families require minimal effort. 155 167 156 168 RTEMS multiprocessor support is capable of handling … … 170 182 functionally compliant real-time multiprocessor executive. It 171 183 describes the user interface and run-time behavior of Release 172 @value{RTEMS-RELEASE} of the C implementation of RTEMS. 184 @value{RTEMS-RELEASE} of the @value{RTEMS-LANGUAGE} interface 185 to RTEMS. 173 186 -
doc/user/region.t
r1ca853b2 r61389eac 295 295 @subheading CALLING SEQUENCE: 296 296 297 @ifset is-C 297 298 @example 298 299 rtems_status_code rtems_region_create( … … 305 306 ); 306 307 @end example 308 @end ifset 309 310 @ifset is-Ada 311 @example 312 procedure Region_Create ( 313 Name : in RTEMS.Name; 314 Starting_Address : in RTEMS.Address; 315 Length : in RTEMS.Unsigned32; 316 Page_Size : in RTEMS.Unsigned32; 317 Attribute_Set : in RTEMS.Attribute; 318 ID : out RTEMS.ID; 319 Result : out RTEMS.Status_Codes 320 ); 321 @end example 322 @end ifset 307 323 308 324 @subheading DIRECTIVE STATUS CODES: … … 360 376 @subheading CALLING SEQUENCE: 361 377 378 @ifset is-C 362 379 @example 363 380 rtems_status_code rtems_region_ident( … … 366 383 ); 367 384 @end example 385 @end ifset 386 387 @ifset is-Ada 388 @example 389 procedure Region_Ident ( 390 Name : in RTEMS.Name; 391 ID : out RTEMS.ID; 392 Result : out RTEMS.Status_Codes 393 ); 394 @end example 395 @end ifset 368 396 369 397 @subheading DIRECTIVE STATUS CODES: … … 393 421 @subheading CALLING SEQUENCE: 394 422 423 @ifset is-C 395 424 @example 396 425 rtems_status_code rtems_region_delete( … … 398 427 ); 399 428 @end example 429 @end ifset 430 431 @ifset is-Ada 432 @example 433 procedure Region_Delete ( 434 ID : in RTEMS.ID; 435 Result : out RTEMS.Status_Codes 436 ); 437 @end example 438 @end ifset 400 439 401 440 @subheading DIRECTIVE STATUS CODES: … … 428 467 @subheading CALLING SEQUENCE: 429 468 469 @ifset is-C 430 470 @example 431 471 rtems_status_code rtems_region_extend( … … 435 475 ); 436 476 @end example 477 @end ifset 478 479 @ifset is-Ada 480 @example 481 procedure Region_Extend ( 482 ID : in RTEMS.ID; 483 Starting_Address : in RTEMS.Address; 484 Length : in RTEMS.Unsigned32; 485 Result : out RTEMS.Status_Codes 486 ); 487 @end example 488 @end ifset 437 489 438 490 @subheading DIRECTIVE STATUS CODES: … … 463 515 @subheading CALLING SEQUENCE: 464 516 517 @ifset is-C 465 518 @example 466 519 rtems_status_code rtems_region_get_segment( … … 472 525 ); 473 526 @end example 527 @end ifset 528 529 @ifset is-Ada 530 @example 531 procedure Region_Get_Segment ( 532 ID : in RTEMS.ID; 533 Size : in RTEMS.Unsigned32; 534 Option_Set : in RTEMS.Option; 535 Timeout : in RTEMS.Interval; 536 Segment : out RTEMS.Address; 537 Result : out RTEMS.Status_Codes 538 ); 539 @end example 540 @end ifset 474 541 475 542 @subheading DIRECTIVE STATUS CODES: … … 532 599 @subheading CALLING SEQUENCE: 533 600 601 @ifset is-C 534 602 @example 535 603 rtems_status_code rtems_region_return_segment( … … 538 606 ); 539 607 @end example 608 @end ifset 609 610 @ifset is-Ada 611 @example 612 procedure Region_Return_Segment ( 613 ID : in RTEMS.ID; 614 Segment : in RTEMS.Address; 615 Result : out RTEMS.Status_Codes 616 ); 617 @end example 618 @end ifset 540 619 541 620 @subheading DIRECTIVE STATUS CODES: … … 576 655 @subheading CALLING SEQUENCE: 577 656 657 @ifset is-C 578 658 @example 579 659 rtems_status_code rtems_region_get_segment_size( … … 583 663 ); 584 664 @end example 665 @end ifset 666 667 @ifset is-Ada 668 @example 669 procedure Region_Get_Segment_Size ( 670 ID : in RTEMS.ID; 671 Segment : in RTEMS.Address; 672 Size : out RTEMS.Unsigned32; 673 Result : out RTEMS.Status_Codes 674 ); 675 @end example 676 @end ifset 585 677 586 678 @subheading DIRECTIVE STATUS CODES: -
doc/user/rtmon.t
r1ca853b2 r61389eac 937 937 @subheading CALLING SEQUENCE: 938 938 939 @ifset is-C 939 940 @example 940 941 rtems_status_code rtems_rate_monotonic_create( … … 943 944 ); 944 945 @end example 946 @end ifset 947 948 @ifset is-Ada 949 @example 950 procedure Rate_Monotonic_Create ( 951 Name : in RTEMS.Name; 952 ID : out RTEMS.ID; 953 Result : out RTEMS.Status_Codes 954 ); 955 @end example 956 @end ifset 945 957 946 958 @subheading DIRECTIVE STATUS CODES: … … 971 983 @subheading CALLING SEQUENCE: 972 984 985 @ifset is-C 973 986 @example 974 987 rtems_status_code rtems_rate_monotonic_ident( … … 977 990 ); 978 991 @end example 992 @end ifset 993 994 @ifset is-Ada 995 @example 996 procedure Rate_Monotonic_Ident ( 997 Name : in RTEMS.Name; 998 ID : out RTEMS.ID; 999 Result : out RTEMS.Status_Codes 1000 ); 1001 @end example 1002 @end ifset 979 1003 980 1004 @subheading DIRECTIVE STATUS CODES: … … 1004 1028 @subheading CALLING SEQUENCE: 1005 1029 1030 @ifset is-C 1006 1031 @example 1007 1032 rtems_status_code rtems_rate_monotonic_cancel( … … 1009 1034 ); 1010 1035 @end example 1036 @end ifset 1037 1038 @ifset is-Ada 1039 @example 1040 procedure Rate_Monotonic_Cancel ( 1041 ID : in RTEMS.ID; 1042 Result : out RTEMS.Status_Codes 1043 ); 1044 @end example 1045 @end ifset 1011 1046 1012 1047 @subheading DIRECTIVE STATUS CODES: … … 1037 1072 @subheading CALLING SEQUENCE: 1038 1073 1074 @ifset is-C 1039 1075 @example 1040 1076 rtems_status_code rtems_rate_monotonic_delete( … … 1042 1078 ); 1043 1079 @end example 1080 @end ifset 1081 1082 @ifset is-Ada 1083 @example 1084 procedure Rate_Monotonic_Delete ( 1085 ID : in RTEMS.ID; 1086 Result : out RTEMS.Status_Codes 1087 ); 1088 @end example 1089 @end ifset 1044 1090 1045 1091 @subheading DIRECTIVE STATUS CODES: … … 1069 1115 @subheading CALLING SEQUENCE: 1070 1116 1117 @ifset is-C 1071 1118 @example 1072 1119 rtems_status_code rtems_rate_monotonic_period( … … 1075 1122 ); 1076 1123 @end example 1124 @end ifset 1125 1126 @ifset is-Ada 1127 @example 1128 procedure Rate_Monotonic_Period ( 1129 ID : in RTEMS.ID; 1130 Length : in RTEMS.Interval; 1131 Result : out RTEMS.Status_Codes 1132 ); 1133 @end example 1134 @end ifset 1077 1135 1078 1136 @subheading DIRECTIVE STATUS CODES: … … 1110 1168 @subheading CALLING SEQUENCE: 1111 1169 1112 @example 1113 rtems_status_code rtems_rate_monotonic_period( 1170 @ifset is-C 1171 @example 1172 rtems_status_code rtems_rate_monotonic_get_status( 1114 1173 rtems_id id, 1115 1174 rtems_rate_monotonic_period_status *status 1116 1175 ); 1117 1176 @end example 1177 @end ifset 1178 1179 @ifset is-Ada 1180 @example 1181 procedure Rate_Monotonic_Get_Status ( 1182 ID : in RTEMS.ID; 1183 Status : out RTEMS.Rate_Monotonic_Period_Status; 1184 Result : out RTEMS.Status_Codes 1185 ); 1186 @end example 1187 @end ifset 1118 1188 1119 1189 @subheading DIRECTIVE STATUS CODES: … … 1127 1197 the rate monotonic period id in the following data structure: 1128 1198 1199 @ifset is-C 1129 1200 @example 1130 1201 typedef struct @{ … … 1134 1205 @} rtems_rate_monotonic_period_status; 1135 1206 @end example 1207 @end ifset 1208 1209 @ifset is-Ada 1210 @example 1211 type Rate_Monotonic_Period_Status is 1212 begin 1213 State : RTEMS.Rate_Monotonic_Period_States; 1214 Ticks_Since_Last_Period : RTEMS.Unsigned32; 1215 Ticks_Executed_Since_Last_Period : RTEMS.Unsigned32; 1216 end record; 1217 @end example 1218 @end ifset 1136 1219 1137 1220 If the period's state is RATE_MONOTONIC_INACTIVE, both -
doc/user/sem.t
r1ca853b2 r61389eac 427 427 @subheading CALLING SEQUENCE: 428 428 429 @ifset is-C 429 430 @example 430 431 rtems_status_code rtems_semaphore_create( … … 436 437 ); 437 438 @end example 439 @end ifset 440 441 @ifset is-Ada 442 @example 443 procedure Semaphore_Create ( 444 Name : in RTEMS.Name; 445 Count : in RTEMS.Unsigned32; 446 Attribute_Set : in RTEMS.Attribute; 447 ID : out RTEMS.ID; 448 Result : out RTEMS.Status_Codes 449 ); 450 @end example 451 @end ifset 438 452 439 453 @subheading DIRECTIVE STATUS CODES: … … 507 521 @subheading CALLING SEQUENCE: 508 522 523 @ifset is-C 509 524 @example 510 525 rtems_status_code rtems_semaphore_ident( … … 514 529 ); 515 530 @end example 531 @end ifset 532 533 @ifset is-Ada 534 @example 535 procedure Semaphore_Ident ( 536 Name : in RTEMS.Name; 537 Node : in RTEMS.Unsigned32; 538 ID : out RTEMS.ID; 539 Result : out RTEMS.Status_Codes 540 ); 541 @end example 542 @end ifset 516 543 517 544 @subheading DIRECTIVE STATUS CODES: … … 554 581 @subheading CALLING SEQUENCE: 555 582 583 @ifset is-C 556 584 @example 557 585 rtems_status_code rtems_semaphore_delete( … … 559 587 ); 560 588 @end example 589 @end ifset 590 591 @ifset is-Ada 592 @example 593 procedure Semaphore_Delete ( 594 ID : in RTEMS.ID; 595 Result : out RTEMS.Status_Codes 596 ); 597 @end example 598 @end ifset 561 599 562 600 @subheading DIRECTIVE STATUS CODES: … … 604 642 @subheading CALLING SEQUENCE: 605 643 644 @ifset is-C 606 645 @example 607 646 rtems_status_code rtems_semaphore_obtain( … … 611 650 ); 612 651 @end example 652 @end ifset 653 654 @ifset is-Ada 655 @example 656 procedure Semaphore_Obtain ( 657 ID : in RTEMS.ID; 658 Option_Set : in RTEMS.Option; 659 Timeout : in RTEMS.Interval; 660 Result : out RTEMS.Status_Codes 661 ); 662 @end example 663 @end ifset 613 664 614 665 @subheading DIRECTIVE STATUS CODES: … … 680 731 @subheading CALLING SEQUENCE: 681 732 733 @ifset is-C 682 734 @example 683 735 rtems_status_code rtems_semaphore_release( … … 685 737 ); 686 738 @end example 739 @end ifset 740 741 @ifset is-Ada 742 @example 743 procedure Semaphore_Release ( 744 ID : in RTEMS.ID; 745 Result : out RTEMS.Status_Codes 746 ); 747 @end example 748 @end ifset 687 749 688 750 @subheading DIRECTIVE STATUS CODES: -
doc/user/signal.t
r1ca853b2 r61389eac 232 232 limited to the meaning of the single argument passed to an ASR. 233 233 The ASR should have the following calling sequence and adhere to 234 C calling conventions: 235 234 @value{RTEMS-LANGUAGE} calling conventions: 235 236 @ifset is-C 236 237 @example 237 238 rtems_asr user_routine( … … 239 240 ); 240 241 @end example 242 @end ifset 243 244 @ifset is-Ada 245 @example 246 procedure User_Routine ( 247 Signals : in RTEMS.Signal_Set 248 ); 249 @end example 250 @end ifset 241 251 242 252 When the ASR returns to RTEMS the mode and execution … … 268 278 @subheading CALLING SEQUENCE: 269 279 280 @ifset is-C 270 281 @example 271 282 rtems_status_code rtems_signal_catch( … … 274 285 ); 275 286 @end example 287 @end ifset 288 289 @ifset is-Ada 290 @example 291 procedure Signal_Catch ( 292 ASR_Handler : in RTEMS.ASR_Handler; 293 Mode_Set : in RTEMS.Mode; 294 Result : out RTEMS.Status_Codes 295 ); 296 @end example 297 @end ifset 276 298 277 299 @subheading DIRECTIVE STATUS CODES: … … 315 337 @subheading CALLING SEQUENCE: 316 338 339 @ifset is-C 317 340 @example 318 341 rtems_status_code rtems_signal_send( … … 321 344 ); 322 345 @end example 346 @end ifset 347 348 @ifset is-Ada 349 @example 350 procedure Signal_Send ( 351 ID : in RTEMS.ID; 352 Signal_Set : in RTEMS.Signal_Set; 353 Result : out RTEMS.Status_Codes 354 ); 355 @end example 356 @end ifset 323 357 324 358 @subheading DIRECTIVE STATUS CODES: -
doc/user/task.t
r1ca853b2 r61389eac 255 255 argument is: 256 256 257 @ifset is-C 257 258 @example 258 259 rtems_task user_task( … … 260 261 ); 261 262 @end example 263 @end ifset 264 265 @ifset is-Ada 266 @example 267 procedure User_Task ( 268 Argument : in RTEMS.Task_Argument_Ptr 269 ); 270 @end example 271 @end ifset 262 272 263 273 Application tasks requiring more information may view this … … 673 683 674 684 @subheading CALLING SEQUENCE: 685 686 @ifset is-C 675 687 @example 676 688 rtems_status_code rtems_task_create( … … 683 695 ); 684 696 @end example 697 @end ifset 698 699 @ifset is-Ada 700 @example 701 procedure Task_Create ( 702 Name : in RTEMS.Name; 703 Initial_Priority : in RTEMS.Task_Priority; 704 Stack_Size : in RTEMS.Unsigned32; 705 Initial_Modes : in RTEMS.Mode; 706 Attribute_Set : in RTEMS.Attribute; 707 ID : out RTEMS.ID; 708 Result : out RTEMS.Status_Codes 709 ); 710 @end example 711 @end ifset 685 712 686 713 @subheading DIRECTIVE STATUS CODES: … … 764 791 765 792 @subheading CALLING SEQUENCE: 793 794 @ifset is-C 766 795 @example 767 796 rtems_status_code rtems_task_ident( … … 771 800 ); 772 801 @end example 802 @end ifset 803 804 @ifset is-Ada 805 @example 806 procedure Task_Ident ( 807 Name : in RTEMS.Name; 808 Node : in RTEMS.Node; 809 ID : out RTEMS.ID; 810 Result : out RTEMS.Status_Codes 811 ); 812 @end example 813 @end ifset 773 814 774 815 @subheading DIRECTIVE STATUS CODES: … … 808 849 809 850 @subheading CALLING SEQUENCE: 851 @ifset is-C 810 852 @example 811 853 rtems_status_code rtems_task_start( … … 815 857 ); 816 858 @end example 859 @end ifset 860 861 @ifset is-Ada 862 @example 863 procedure Task_Start ( 864 ID : in RTEMS.ID; 865 Entry_Point : in System.Address; 866 Argument : in RTEMS.Task_Argument_PTR; 867 Result : out RTEMS.Status_Codes 868 ); 869 @end example 870 @end ifset 817 871 818 872 @subheading DIRECTIVE STATUS CODES: … … 847 901 848 902 @subheading CALLING SEQUENCE: 903 @ifset is-C 849 904 @example 850 905 rtems_status_code rtems_task_restart( … … 853 908 ); 854 909 @end example 910 @end ifset 911 912 @ifset is-Ada 913 @example 914 procedure Task_Restart ( 915 ID : in RTEMS.ID; 916 Argument : in RTEMS.Task_Argument_PTR; 917 Result : out RTEMS.Status_Codes 918 ); 919 @end example 920 @end ifset 855 921 856 922 @subheading DIRECTIVE STATUS CODES: … … 896 962 897 963 @subheading CALLING SEQUENCE: 964 @ifset is-C 898 965 @example 899 966 rtems_status_code rtems_task_delete( … … 901 968 ); 902 969 @end example 970 @end ifset 971 972 @ifset is-Ada 973 @example 974 procedure Task_Delete ( 975 ID : in RTEMS.ID; 976 Result : out RTEMS.Status_Codes 977 ); 978 @end example 979 @end ifset 903 980 904 981 @subheading DIRECTIVE STATUS CODES: … … 944 1021 945 1022 @subheading CALLING SEQUENCE: 1023 @ifset is-C 946 1024 @example 947 1025 rtems_status_code rtems_task_suspend( … … 949 1027 ); 950 1028 @end example 1029 @end ifset 1030 1031 @ifset is-Ada 1032 @example 1033 procedure Task_Suspend ( 1034 ID : in RTEMS.ID; 1035 Result : out RTEMS.Status_Codes 1036 ); 1037 @end example 1038 @end ifset 951 1039 952 1040 @subheading DIRECTIVE STATUS CODES: … … 980 1068 981 1069 @subheading CALLING SEQUENCE: 1070 @ifset is-C 982 1071 @example 983 1072 rtems_status_code rtems_task_resume( … … 985 1074 ); 986 1075 @end example 1076 @end ifset 1077 1078 @ifset is-Ada 1079 @example 1080 procedure Task_Resume ( 1081 ID : in RTEMS.ID; 1082 Result : out RTEMS.Status_Codes 1083 ); 1084 @end example 1085 @end ifset 987 1086 988 1087 @subheading DIRECTIVE STATUS CODES: … … 1014 1113 1015 1114 @subheading CALLING SEQUENCE: 1115 @ifset is-C 1016 1116 @example 1017 1117 rtems_status_code rtems_task_set_priority( … … 1021 1121 ); 1022 1122 @end example 1123 @end ifset 1124 1125 @ifset is-Ada 1126 @example 1127 procedure Task_Set_Priority ( 1128 ID : in RTEMS.ID; 1129 New_Priority : in RTEMS.Task_Priority; 1130 Old_Priority : out RTEMS.Task_Priority; 1131 Result : out RTEMS.Status_Codes 1132 ); 1133 @end example 1134 @end ifset 1023 1135 1024 1136 @subheading DIRECTIVE STATUS CODES: … … 1063 1175 1064 1176 @subheading CALLING SEQUENCE: 1177 @ifset is-C 1065 1178 @example 1066 1179 rtems_status_code rtems_task_mode( … … 1070 1183 ); 1071 1184 @end example 1185 @end ifset 1186 1187 @ifset is-Ada 1188 @example 1189 procedure Task_Delete ( 1190 Mode_Set : in RTEMS.Mode; 1191 Mask : in RTEMS.Mode; 1192 Previous_Mode_Set : in RTEMS.Mode; 1193 Result : out RTEMS.Status_Codes 1194 ); 1195 @end example 1196 @end ifset 1072 1197 1073 1198 @subheading DIRECTIVE STATUS CODES: … … 1176 1301 1177 1302 @subheading CALLING SEQUENCE: 1303 @ifset is-C 1178 1304 @example 1179 1305 rtems_status_code rtems_task_get_note( … … 1183 1309 ); 1184 1310 @end example 1311 @end ifset 1312 1313 @ifset is-Ada 1314 @example 1315 procedure Task_Get_Note ( 1316 ID : in RTEMS.ID; 1317 Notepad : in RTEMS.Notepad_Index; 1318 Note : out RTEMS.Unsigned32; 1319 Result : out RTEMS.Status_Codes 1320 ); 1321 @end example 1322 @end ifset 1185 1323 1186 1324 @subheading DIRECTIVE STATUS CODES: … … 1217 1355 1218 1356 @subheading CALLING SEQUENCE: 1357 @ifset is-C 1219 1358 @example 1220 1359 rtems_status_code rtems_task_set_note( … … 1224 1363 ); 1225 1364 @end example 1365 @end ifset 1366 1367 @ifset is-Ada 1368 @example 1369 procedure Task_Set_Note ( 1370 ID : in RTEMS.ID; 1371 Notepad : in RTEMS.Notepad_Index; 1372 Note : in RTEMS.Unsigned32; 1373 Result : out RTEMS.Status_Codes 1374 ); 1375 @end example 1376 @end ifset 1226 1377 1227 1378 @subheading DIRECTIVE STATUS CODES: … … 1259 1410 1260 1411 @subheading CALLING SEQUENCE: 1412 @ifset is-C 1261 1413 @example 1262 1414 rtems_status_code rtems_task_wake_after( … … 1264 1416 ); 1265 1417 @end example 1418 @end ifset 1419 1420 @ifset is-Ada 1421 @example 1422 procedure Task_Wake_After ( 1423 Ticks : in RTEMS.Interval; 1424 Result : out RTEMS.Status_Codes 1425 ); 1426 @end example 1427 @end ifset 1266 1428 1267 1429 @subheading DIRECTIVE STATUS CODES: … … 1293 1455 @subheading CALLING SEQUENCE: 1294 1456 1457 @ifset is-C 1295 1458 @example 1296 1459 rtems_status_code rtems_task_wake_when( … … 1298 1461 ); 1299 1462 @end example 1463 @end ifset 1464 1465 @ifset is-Ada 1466 @example 1467 procedure Task_Wake_When ( 1468 Time_Buffer : in RTEMS.Time_Of_Day; 1469 Result : out RTEMS.Status_Codes 1470 ); 1471 @end example 1472 @end ifset 1300 1473 1301 1474 @subheading DIRECTIVE STATUS CODES: -
doc/user/timer.t
r1ca853b2 r61389eac 75 75 @subsection Timer Service Routines 76 76 77 The timer service routine should adhere to Ccalling77 The timer service routine should adhere to @value{RTEMS-LANGUAGE} calling 78 78 conventions and have a prototype similar to the following:: 79 79 80 @ifset is-C 80 81 @example 81 82 rtems_timer_service_routine user_routine( … … 84 85 ); 85 86 @end example 86 87 87 @end ifset 88 89 @ifset is-Ada 90 @example 91 procedure User_Routine( 92 Timer_ID : in RTEMS.ID; 93 User_Data : in System.Address 94 ); 95 @end example 96 @end ifset 88 97 89 98 Where the timer_id parameter is the RTEMS object ID … … 217 226 @subheading CALLING SEQUENCE: 218 227 228 @ifset is-C 219 229 @example 220 230 rtems_status_code rtems_timer_create( … … 223 233 ); 224 234 @end example 235 @end ifset 236 237 @ifset is-Ada 238 @example 239 procedure Timer_Create ( 240 Name : in RTEMS.Name; 241 ID : out RTEMS.ID; 242 Result : out RTEMS.Status_Codes 243 ); 244 @end example 245 @end ifset 225 246 226 247 @subheading DIRECTIVE STATUS CODES: … … 250 271 @subheading CALLING SEQUENCE: 251 272 273 @ifset is-C 252 274 @example 253 275 rtems_status_code rtems_timer_ident( … … 256 278 ); 257 279 @end example 280 @end ifset 281 282 @ifset is-Ada 283 @example 284 procedure Timer_Ident ( 285 Name : in RTEMS.Name; 286 ID : out RTEMS.ID; 287 Result : out RTEMS.Status_Codes 288 ); 289 @end example 290 @end ifset 258 291 259 292 @subheading DIRECTIVE STATUS CODES: … … 283 316 @subheading CALLING SEQUENCE: 284 317 318 @ifset is-C 285 319 @example 286 320 rtems_status_code rtems_timer_cancel( … … 288 322 ); 289 323 @end example 324 @end ifset 325 326 @ifset is-Ada 327 @example 328 procedure Timer_Cancel ( 329 ID : in RTEMS.ID; 330 Result : out RTEMS.Status_Codes 331 ); 332 @end example 333 @end ifset 290 334 291 335 @subheading DIRECTIVE STATUS CODES: … … 311 355 @subheading CALLING SEQUENCE: 312 356 357 @ifset is-C 313 358 @example 314 359 rtems_status_code rtems_timer_delete( … … 316 361 ); 317 362 @end example 363 @end ifset 364 365 @ifset is-Ada 366 @example 367 procedure Timer_Delete ( 368 ID : in RTEMS.ID; 369 Result : out RTEMS.Status_Codes 370 ); 371 @end example 372 @end ifset 318 373 319 374 @subheading DIRECTIVE STATUS CODES: … … 343 398 @subheading CALLING SEQUENCE: 344 399 400 @ifset is-C 345 401 @example 346 402 rtems_status_code rtems_timer_fire_after( … … 351 407 ); 352 408 @end example 409 @end ifset 410 411 @ifset is-Ada 412 @example 413 procedure Timer_Fire_After ( 414 ID : in RTEMS.ID; 415 Ticks : in RTEMS.Interval; 416 Routine : in RTEMS.Timer_Service_Routine; 417 User_Data : in RTEMS.Address; 418 Result : out RTEMS.Status_Codes 419 ); 420 @end example 421 @end ifset 353 422 354 423 @subheading DIRECTIVE STATUS CODES: … … 379 448 @subheading CALLING SEQUENCE: 380 449 450 @ifset is-C 381 451 @example 382 452 rtems_status_code rtems_timer_fire_when( … … 387 457 ); 388 458 @end example 459 @end ifset 460 461 @ifset is-Ada 462 @example 463 procedure Timer_Fire_When ( 464 ID : in RTEMS.ID; 465 Wall_Time : in RTEMS.Time_Of_Day; 466 Routine : in RTEMS.Timer_Service_Routine; 467 User_Data : in RTEMS.Address; 468 Result : out RTEMS.Status_Codes 469 ); 470 @end example 471 @end ifset 389 472 390 473 @subheading DIRECTIVE STATUS CODES: … … 416 499 @subheading CALLING SEQUENCE: 417 500 501 @ifset is-C 418 502 @example 419 503 rtems_status_code rtems_timer_reset( … … 421 505 ); 422 506 @end example 507 @end ifset 508 509 @ifset is-Ada 510 @example 511 procedure Timer_Reset ( 512 ID : in RTEMS.ID; 513 Result : out RTEMS.Status_Codes 514 ); 515 @end example 516 @end ifset 423 517 424 518 @subheading DIRECTIVE STATUS CODES: -
doc/user/userext.t
r1ca853b2 r61389eac 88 88 following structure: 89 89 90 @ifset is-C 90 91 @example 91 92 @group 92 93 typedef struct @{ 93 User_extensions_thread_create_extension thread_create;94 User_extensions_thread_start_extension thread_start;95 User_extensions_thread_restart_extension thread_restart;96 User_extensions_thread_delete_extension thread_delete;97 User_extensions_thread_switch_extension thread_switch;94 User_extensions_thread_create_extension thread_create; 95 User_extensions_thread_start_extension thread_start; 96 User_extensions_thread_restart_extension thread_restart; 97 User_extensions_thread_delete_extension thread_delete; 98 User_extensions_thread_switch_extension thread_switch; 98 99 User_extensions_thread_post_switch_extension thread_post_switch; 99 User_extensions_thread_begin_extension thread_begin;100 User_extensions_thread_exitted_extension thread_exitted;101 User_extensions_fatal_error_extension fatal;100 User_extensions_thread_begin_extension thread_begin; 101 User_extensions_thread_exitted_extension thread_exitted; 102 User_extensions_fatal_error_extension fatal; 102 103 @} User_extensions_Table; 103 104 @end group 104 105 @end example 106 @end ifset 107 108 @ifset is-Ada 109 @example 110 type Extensions_Table is 111 record 112 Task_Create : RTEMS.Task_Create_Extension; 113 Task_Start : RTEMS.Task_Start_Extension; 114 Task_Restart : RTEMS.Task_Restart_Extension; 115 Task_Delete : RTEMS.Task_Delete_Extension; 116 Task_Switch : RTEMS.Task_Switch_Extension; 117 Task_Post_Switch : RTEMS.Task_Post_Switch_Extension; 118 Task_Begin : RTEMS.Task_Begin_Extension; 119 Task_Exitted : RTEMS.Task_Exitted_Extension; 120 Fatal : RTEMS.Fatal_Error_Extension; 121 end record; 122 @end example 123 @end ifset 105 124 106 125 … … 180 199 of each extension. Each section will contain a prototype of a 181 200 function with the appropriate calling sequence for the 182 corresponding extension. The names given for the C function and 201 corresponding extension. The names given for the @value{RTEMS-LANGUAGE} 202 @value{RTEMS-ROUTINE} and 183 203 its arguments are all defined by the user. The names used in 184 204 the examples were arbitrarily chosen and impose no naming … … 197 217 following: 198 218 219 @ifset is-C 199 220 @example 200 221 rtems_extension user_task_create( … … 203 224 ); 204 225 @end example 226 @end ifset 227 228 @ifset is-Ada 229 @example 230 procedure User_Task_Create ( 231 Current_Task : in RTEMS.TCB_Pointer; 232 New_Task : in RTEMS.TCB_Pointer 233 ); 234 @end example 235 @end ifset 205 236 206 237 where current_task can be used to access the TCB for … … 223 254 following: 224 255 256 @ifset is-C 225 257 @example 226 258 rtems_extension user_task_start( … … 229 261 ); 230 262 @end example 263 @end ifset 264 265 @ifset is-Ada 266 @example 267 procedure User_Task_Start ( 268 Current_Task : in RTEMS.TCB_Pointer; 269 Started_Task : in RTEMS.TCB_Pointer 270 ); 271 @end example 272 @end ifset 231 273 232 274 where current_task can be used to access the TCB for … … 248 290 following: 249 291 292 @ifset is-C 250 293 @example 251 294 rtems_extension user_task_restart( … … 254 297 ); 255 298 @end example 299 @end ifset 300 301 @ifset is-Ada 302 @example 303 procedure User_Task_Restart ( 304 Current_Task : in RTEMS.TCB_Pointer; 305 Restarted_Task : in RTEMS.TCB_Pointer 306 ); 307 @end example 308 @end ifset 256 309 257 310 where current_task can be used to access the TCB for … … 274 327 following: 275 328 329 @ifset is-C 276 330 @example 277 331 rtems_extension user_task_delete( … … 280 334 ); 281 335 @end example 336 @end ifset 337 338 @ifset is-Ada 339 @example 340 procedure User_Task_Delete ( 341 Current_Task : in RTEMS.TCB_Pointer; 342 Deleted_Task : in RTEMS.TCB_Pointer 343 ); 344 @end example 345 @end ifset 282 346 283 347 where current_task can be used to access the TCB for … … 302 366 following: 303 367 368 @ifset is-C 304 369 @example 305 370 rtems_extension user_task_switch( … … 308 373 ); 309 374 @end example 375 @end ifset 376 377 @ifset is-Ada 378 @example 379 procedure User_Task_Switch ( 380 Current_Task : in RTEMS.TCB_Pointer; 381 Heir_Task : in RTEMS.TCB_Pointer 382 ); 383 @end example 384 @end ifset 310 385 311 386 where current_task can be used to access the TCB for … … 329 404 to the following: 330 405 406 @ifset is-C 331 407 @example 332 408 rtems_extension user_task_post_switch( … … 334 410 ); 335 411 @end example 412 @end ifset 413 414 @ifset is-Ada 415 @example 416 procedure User_Task_Post_Switch ( 417 Current_Task : in RTEMS.TCB_Pointer 418 ); 419 @end example 420 @end ifset 336 421 337 422 where current_task can be used to access the TCB for … … 352 437 This user extension have a prototype similar to the following: 353 438 439 @ifset is-C 354 440 @example 355 441 rtems_extension user_task_begin( … … 357 443 ); 358 444 @end example 445 @end ifset 446 447 @ifset is-Ada 448 @example 449 procedure User_Task_Begin ( 450 Current_Task : in RTEMS.TCB_Pointer 451 ); 452 @end example 453 @end ifset 359 454 360 455 where current_task can be used to access the TCB for … … 376 471 prototype similar to the following: 377 472 473 @ifset is-C 378 474 @example 379 475 rtems_extension user_task_exitted( … … 381 477 ); 382 478 @end example 479 @end ifset 480 481 @ifset is-Ada 482 @example 483 procedure User_Task_Exitted ( 484 Current_Task : in RTEMS.TCB_Pointer 485 ); 486 @end example 487 @end ifset 383 488 384 489 where current_task can be used to access the TCB for … … 407 512 This extension should have a prototype similar to the following: 408 513 409 @example 410 rtems_extension user_fatal_error_extension( 514 @ifset is-C 515 @example 516 rtems_extension user_fatal_error( 411 517 Internal_errors_Source the_source, 412 518 rtems_boolean is_internal, … … 414 520 ); 415 521 @end example 522 @end ifset 523 524 @ifset is-Ada 525 @example 526 procedure User_Fatal_Error ( 527 Error : in RTEMS.Unsigned32 528 ); 529 @end example 530 @end ifset 416 531 417 532 where the_error is the error code passed to the … … 550 665 @subheading CALLING SEQUENCE: 551 666 667 @ifset is-C 552 668 @example 553 669 rtems_status_code rtems_extension_create( … … 557 673 ); 558 674 @end example 675 @end ifset 676 677 @ifset is-Ada 678 @example 679 procedure Extension_Create ( 680 Name : in RTEMS.Name; 681 Table : in RTEMS.Extensions_Table_Pointer; 682 ID : out RTEMS.ID; 683 Result : out RTEMS.Status_Codes 684 ); 685 @end example 686 @end ifset 559 687 560 688 @subheading DIRECTIVE STATUS CODES: … … 585 713 @subheading CALLING SEQUENCE: 586 714 715 @ifset is-C 587 716 @example 588 717 rtems_status_code rtems_extension_ident( … … 591 720 ); 592 721 @end example 722 @end ifset 723 724 @ifset is-Ada 725 @example 726 procedure Extension_Ident ( 727 Name : in RTEMS.Name; 728 ID : out RTEMS.ID; 729 Result : out RTEMS.Status_Codes 730 ); 731 @end example 732 @end ifset 593 733 594 734 @subheading DIRECTIVE STATUS CODES: … … 619 759 @subheading CALLING SEQUENCE: 620 760 761 @ifset is-C 621 762 @example 622 763 rtems_status_code rtems_extension_delete( … … 624 765 ); 625 766 @end example 767 @end ifset 768 769 @ifset is-Ada 770 @example 771 procedure Extension_Delete ( 772 ID : in RTEMS.ID; 773 Result : out RTEMS.Status_Codes 774 ); 775 @end example 776 @end ifset 626 777 627 778 @subheading DIRECTIVE STATUS CODES:
Note: See TracChangeset
for help on using the changeset viewer.