Added register offsets.

git-svn-id: https://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk@38 b68d4a1b-bc3d-0410-92ed-d4ac073336b7
master
Marcel Telka 23 years ago
parent 6e63946d01
commit f487006a05

@ -32,14 +32,13 @@
#ifndef SA11X0_GPIO_H
#define SA11X0_GPIO_H
#ifndef uint32_t
typedef unsigned int uint32_t;
#endif
#include <common.h>
/* GPIO Registers */
#define GPIO_BASE 0x90040000
#if LANGUAGE == C
typedef volatile struct GPIO_registers {
uint32_t gplr;
uint32_t gpdr;
@ -63,5 +62,15 @@ typedef volatile struct GPIO_registers {
#define GFER GPIO_pointer->gfer
#define GEDR GPIO_pointer->gedr
#define GAFR GPIO_pointer->gafr
#endif /* LANGUAGE == C */
#define GPLR_OFFSET 0x00
#define GPDR_OFFSET 0x04
#define GPSR_OFFSET 0x08
#define GPCR_OFFSET 0x0C
#define GRER_OFFSET 0x10
#define GFER_OFFSET 0x14
#define GEDR_OFFSET 0x18
#define GAFR_OFFSET 0x1C
#endif /* SA11X0_GPIO_H */

Loading…
Cancel
Save