diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-05-12 15:00:54 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-05-12 15:00:54 +0200 |
commit | dfc09d8b14d15015b4afa5d674786ec74f616772 (patch) | |
tree | b3c5955ecb2f970c306a2c0441c19d518547ebd2 /1/config.h | |
parent | 480640799470b4465d62348aaf73154423ddb896 (diff) |
get pin 19 working
Diffstat (limited to '1/config.h')
-rw-r--r-- | 1/config.h | 15 |
1 files changed, 13 insertions, 2 deletions
@@ -9,7 +9,18 @@ typedef uint32_t ti_am335x_word_t; // p. 180: "Control Module" -#define TI_AM335X_CM_ADDR ((ti_am335x_word_t*) 0x44E1_0000) +#define TI_AM335X_CM_ADDR 0x44E10000 +// p. 182: "GPIO1" +#define TI_AM335X_GPIO1_ADDR 0x4804C000 // p. 1459: "conf_gpmc_a3" -#define TI_AM335X_CM_GPMC_A3_ADDR ((ti_am335x_word_t*) TI_AM3358_CM_ADDR + 0x84Ch) +#define TI_AM335X_CM_GPMC_A3_ADDR (TI_AM335X_CM_ADDR + 0x84C) +// p. 4990, variable names copied as-is +#define GPIO_OE (0x134 / (sizeof(ti_am335x_word_t))) +#define GPIO_DATAIN (0x138 / (sizeof(ti_am335x_word_t))) +#define GPIO_CLEARDATAOUT (0x190 / (sizeof(ti_am335x_word_t))) +#define GPIO_SETDATAOUT (0x194 / (sizeof(ti_am335x_word_t))) +// total size of GPIO registers from p. 4990 (in bytes) +#define GPIO_REG_SIZE 0x198 + +#define PIN 19 |