Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
In Part-3, set the RPI_SYSTIMER_BASE address depending on the type of…
… platform (RPI2).

Setting up RPI_SYSTIME_BASE to 0x3f003000 if platform is RPI2.
  • Loading branch information
ark76r committed Mar 18, 2016
1 parent 2e8f4ac commit 4ed02a3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions part-3/arm011/rpi-systimer.h
Expand Up @@ -6,8 +6,11 @@

#include "rpi-base.h"

#define RPI_SYSTIMER_BASE 0x20003000

#ifdef RPI2
#define RPI_SYSTIMER_BASE 0x3f003000
#else
#define RPI_SYSTIMER_BASE 0x20003000
#endif

typedef struct {
volatile uint32_t control_status;
Expand Down
7 changes: 5 additions & 2 deletions part-3/arm012/rpi-systimer.h
Expand Up @@ -6,8 +6,11 @@

#include "rpi-base.h"

#define RPI_SYSTIMER_BASE 0x20003000

#ifdef RPI2
#define RPI_SYSTIMER_BASE 0x3f003000
#else
#define RPI_SYSTIMER_BASE 0x20003000
#endif

typedef struct {
volatile uint32_t control_status;
Expand Down

0 comments on commit 4ed02a3

Please sign in to comment.