Changeset 3046


Ignore:
Timestamp:
Jul 10, 2012, 9:16:44 PM (22 months ago)
Author:
wmb
Message:

ARM MMP2 - added io!@ routine for accessing slow IO registers that need to be read back after writing.

Location:
cpu/arm/mmp2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpu/arm/mmp2/mfpr.fth

    r3023 r3046  
    4747: no-update,  ( -- )  8 w,  ;  \ 8 is a reserved bit; the code skips these 
    4848: af@  ( gpio# -- function# )  gpio>mfpr io@  ; 
    49 : af!  ( function# gpio# -- )  gpio>mfpr io!  ; 
     49: af!  ( function# gpio# -- )  gpio>mfpr io!@  ; 
    5050 
    5151: +edge-clr     ( n -- n' )  h#   40 or  ; 
     52: +very-slow    ( n -- n' )  h# 0000 or  ; 
     53: +slow         ( n -- n' )  h# 0800 or  ; 
    5254: +medium       ( n -- n' )  h# 1000 or  ; 
    5355: +fast         ( n -- n' )  h# 1800 or  ; 
  • cpu/arm/mmp2/socregs.fth

    r2566 r3046  
    55: io!  ( value offset -- )  +io l!  ; 
    66: io@  ( offset -- value )  +io l@  ; 
     7: io!@  ( value offset -- )  tuck io! io@ drop  ;  \ For slow registers like MFPRs 
    78 
    89: +apbc  ( offset -- io-offset )  h# 01.5000 +  ;  \ APB Clock Unit 
Note: See TracChangeset for help on using the changeset viewer.