We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4471d6 commit 0a7a517Copy full SHA for 0a7a517
autosar/src/core/arch/arm/arm_v7/drivers/bcm2835.h
@@ -42,7 +42,10 @@ typedef unsigned long irqmask;
42
* bus address range starting at 0x7E000000. Sometimes, there is a need to
43
* convert from physical to bus addresses (for example when using DMA).
44
*/
45
-#define PHYS_TO_BUS_OFFSET (0x5E000000)
+//#define PHYS_TO_BUS_OFFSET (0x5E000000)
46
+// 0x7E - 0x20 = 0x5E
47
+// 0x7E - 0x3F = 0x3F
48
+#define PHYS_TO_BUS_OFFSET (0x3F000000)
49
#define MAP_TO_BUSADDRESS(x) ((uint32)&(x) + PHYS_TO_BUS_OFFSET)
50
51
/// This means pin HIGH, true, 3.3volts on a pin.
0 commit comments