Changes between Version 36 and Version 37 of WikiStart
- Timestamp:
- Oct 13, 2014, 11:35:14 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
WikiStart
v36 v37 10 10 11 11 Each driver xxx_driver define two low-level functions ''_xxx_get_register()'' and ''_xxx_set_register()'' 12 to access the peripheral addressable registers. These functions are in charge to compute the peripheral registers addresses, taking into account the peripheral base address, t eh register indesx, and the cluster coordinates:12 to access the peripheral addressable registers. These functions are in charge to compute the peripheral registers addresses, taking into account the peripheral base address, the register index, and the cluster coordinates: 13 13 14 * '''External peripherals''': A ccesses use virtual addresses if the MMU (Memory management Unit) is activated, or physical addresses if it is not. In this case, the physical address is computed as pbase = SEG_XXX_BASE + cluster_io << 32.14 * '''External peripherals''': All accesses use virtual addresses if the MMU (Memory management Unit) is activated, or physical addresses if it is not. In this case, the physical address is computed as pbase = SEG_XXX_BASE + cluster_io << 32. 15 15 16 * '''Internal peripherals''': A ccesses use virtual addresses, and the MMU must be activated. The peripheral virtual base address is computed as vbase = SEG_XXX_BASE + cluster_xy * PERI_CLUSTER_INCREMENT.16 * '''Internal peripherals''': All accesses use virtual addresses, and the MMU must be activated. The peripheral virtual base address is computed as vbase = SEG_XXX_BASE + cluster_xy * PERI_CLUSTER_INCREMENT. 17 17 18 18 The SEG_XXX_BASE , X_IO, Y_IO, and PERI_CLUSTER_INCREMENT variables must be defined in the ''hard_config.h" file.