diff --git a/env/ehrenberg/platform.h b/env/ehrenberg/platform.h index cec65bd..fb0005c 100644 --- a/env/ehrenberg/platform.h +++ b/env/ehrenberg/platform.h @@ -18,14 +18,14 @@ #define PERIPH(TYPE, ADDR) ((volatile TYPE*) (ADDR)) #define APB_BASE 0xF0000000 -#define TIMER_BASE (APB_BASE+0x30000) +#define TIMER_BASE (APB_BASE+0x20000) -#define gpio_a PERIPH(gpio_t, APB_BASE+0x00000) +#define gpio_a PERIPH(gpio_t, APB_BASE+0x0000) //#define gpio_b PERIPH(gpio_t, APB_BASE+0x10000) -#define uart PERIPH(uart_t, APB_BASE+0x10000) +#define uart PERIPH(uart_t, APB_BASE+0x1000) #define prescaler PERIPH(uart_t, TIMER_BASE+0x0) -#define timer_a PERIPH(uart_t, TIMER_BASE+0x10) -#define timer_b PERIPH(uart_t, TIMER_BASE+0x20) +#define timer_a PERIPH(uart_t, TIMER_BASE+0x4) +#define timer_b PERIPH(uart_t, TIMER_BASE+0x10) #define mtimer PERIPH(mtimer_t, APB_BASE+0x30000) #define irq PERIPH(irq_t, APB_BASE+0x40000) #define qspi PERIPH(qspi_t, APB_BASE+0x50000)