Changeset 2d0383b in rtems
- Timestamp:
- 10/14/96 19:17:37 (27 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- 752cd8f
- Parents:
- 355c262c
- Location:
- c/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/exec/score/cpu/sparc/erc32.h
r355c262c r2d0383b 428 428 * 0 = hold scaler and counter 429 429 * 430 * D 2- Scaler Load430 * D3 - Scaler Load 431 431 * 1 = load scalar with preset value and restart 432 432 * 0 = no function … … 470 470 _control = _ERC32_MEC_Timer_Control_Mirror; \ 471 471 _control &= ERC32_MEC_TIMER_COUNTER_DEFINED_MASK << 8; \ 472 _ERC32_MEC_Timer_Control_Mirror = _control | _ value; \472 _ERC32_MEC_Timer_Control_Mirror = _control | __value; \ 473 473 _control &= (ERC32_MEC_TIMER_COUNTER_CURRENT_MODE_MASK << 8); \ 474 474 _control |= __value; \ … … 480 480 #define ERC32_MEC_Get_General_Purpose_Timer_Control( _value ) \ 481 481 do { \ 482 (_value) = _ERC32_MEC_Timer_Control_Mirror& 0xf; \482 (_value) = (_ERC32_MEC_Timer_Control_Mirror >> 8) & 0xf; \ 483 483 } while ( 0 ) 484 484 -
c/src/lib/libcpu/sparc/include/erc32.h
r355c262c r2d0383b 428 428 * 0 = hold scaler and counter 429 429 * 430 * D 2- Scaler Load430 * D3 - Scaler Load 431 431 * 1 = load scalar with preset value and restart 432 432 * 0 = no function … … 470 470 _control = _ERC32_MEC_Timer_Control_Mirror; \ 471 471 _control &= ERC32_MEC_TIMER_COUNTER_DEFINED_MASK << 8; \ 472 _ERC32_MEC_Timer_Control_Mirror = _control | _ value; \472 _ERC32_MEC_Timer_Control_Mirror = _control | __value; \ 473 473 _control &= (ERC32_MEC_TIMER_COUNTER_CURRENT_MODE_MASK << 8); \ 474 474 _control |= __value; \ … … 480 480 #define ERC32_MEC_Get_General_Purpose_Timer_Control( _value ) \ 481 481 do { \ 482 (_value) = _ERC32_MEC_Timer_Control_Mirror& 0xf; \482 (_value) = (_ERC32_MEC_Timer_Control_Mirror >> 8) & 0xf; \ 483 483 } while ( 0 ) 484 484
Note: See TracChangeset
for help on using the changeset viewer.