Skip to content

Commit 0a7a517

Browse files
committed
Changed PHYS_TO_BUS_OFFSET so it corresponds to the change of GPIO
base address.
1 parent f4471d6 commit 0a7a517

File tree

1 file changed

+4
-1
lines changed
  • autosar/src/core/arch/arm/arm_v7/drivers

1 file changed

+4
-1
lines changed

autosar/src/core/arch/arm/arm_v7/drivers/bcm2835.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,10 @@ typedef unsigned long irqmask;
4242
* bus address range starting at 0x7E000000. Sometimes, there is a need to
4343
* convert from physical to bus addresses (for example when using DMA).
4444
*/
45-
#define PHYS_TO_BUS_OFFSET (0x5E000000)
45+
//#define PHYS_TO_BUS_OFFSET (0x5E000000)
46+
// 0x7E - 0x20 = 0x5E
47+
// 0x7E - 0x3F = 0x3F
48+
#define PHYS_TO_BUS_OFFSET (0x3F000000)
4649
#define MAP_TO_BUSADDRESS(x) ((uint32)&(x) + PHYS_TO_BUS_OFFSET)
4750

4851
/// This means pin HIGH, true, 3.3volts on a pin.

0 commit comments

Comments
 (0)