corrects UART base addr wrt. HW

This commit is contained in:
Eyck Jentzsch 2025-01-21 17:34:58 +01:00
parent 74b43d9bc1
commit fcf8543c06

View File

@ -13,22 +13,22 @@
#define APB_BUS #define APB_BUS
#include "ehrenberg/devices/gpio.h"
#include "ehrenberg/devices/uart.h"
#include "ehrenberg/devices/timer.h"
#include "ehrenberg/devices/aclint.h" #include "ehrenberg/devices/aclint.h"
#include "ehrenberg/devices/qspi.h"
#include "ehrenberg/devices/i2s.h"
#include "ehrenberg/devices/camera.h" #include "ehrenberg/devices/camera.h"
#include "ehrenberg/devices/dma.h" #include "ehrenberg/devices/dma.h"
#include "ehrenberg/devices/gpio.h"
#include "ehrenberg/devices/i2s.h"
#include "ehrenberg/devices/msg_if.h" #include "ehrenberg/devices/msg_if.h"
#include "ehrenberg/devices/qspi.h"
#include "ehrenberg/devices/timer.h"
#include "ehrenberg/devices/uart.h"
#define PERIPH(TYPE, ADDR) ((volatile TYPE *)(ADDR)) #define PERIPH(TYPE, ADDR) ((volatile TYPE *)(ADDR))
#define APB_BASE 0xF0000000 #define APB_BASE 0xF0000000
#define gpio PERIPH(gpio_t, APB_BASE + 0x0000) #define gpio PERIPH(gpio_t, APB_BASE + 0x0000)
#define uart PERIPH(uart_t, APB_BASE+0x10000) #define uart PERIPH(uart_t, APB_BASE + 0x01000)
#define timer PERIPH(timercounter_t, APB_BASE + 0x20000) #define timer PERIPH(timercounter_t, APB_BASE + 0x20000)
#define aclint PERIPH(aclint_t, APB_BASE + 0x30000) #define aclint PERIPH(aclint_t, APB_BASE + 0x30000)
// #define irq PERIPH(irq_t, APB_BASE+0x40000) // #define irq PERIPH(irq_t, APB_BASE+0x40000)
@ -38,7 +38,6 @@
#define dma PERIPH(dma_t, APB_BASE + 0xB0000) #define dma PERIPH(dma_t, APB_BASE + 0xB0000)
#define msgif PERIPH(msgif_t, APB_BASE + 0xC0000) #define msgif PERIPH(msgif_t, APB_BASE + 0xC0000)
#define XIP_START_LOC 0xE0040000 #define XIP_START_LOC 0xE0040000
#define RAM_START_LOC 0x80000000 #define RAM_START_LOC 0x80000000