adds missing ehrenberg devices
This commit is contained in:
parent
231366cc94
commit
daa1ed184d
1
.gitignore
vendored
1
.gitignore
vendored
@ -151,3 +151,4 @@ compile_commands.json
|
||||
CTestTestfile.cmake
|
||||
*.dump
|
||||
|
||||
/doc/
|
||||
|
7
env/ehrenberg/platform.h
vendored
7
env/ehrenberg/platform.h
vendored
@ -18,6 +18,9 @@
|
||||
#include "ehrenberg/devices/timer.h"
|
||||
#include "ehrenberg/devices/aclint.h"
|
||||
#include "ehrenberg/devices/qspi.h"
|
||||
#include "ehrenberg/devices/i2s.h"
|
||||
#include "ehrenberg/devices/camera.h"
|
||||
#include "ehrenberg/devices/dma.h"
|
||||
|
||||
#define PERIPH(TYPE, ADDR) ((volatile TYPE*) (ADDR))
|
||||
|
||||
@ -29,6 +32,10 @@
|
||||
#define aclint PERIPH(aclint_t, APB_BASE+0x30000)
|
||||
#define irq PERIPH(irq_t, APB_BASE+0x40000)
|
||||
#define qspi PERIPH(qspi_t, APB_BASE+0x50000)
|
||||
#define i2s PERIPH(i2s_t, APB_BASE+0x90000)
|
||||
#define camera PERIPH(camera_t, APB_BASE+0xA0000)
|
||||
#define sdma PERIPH(simpledma_t, APB_BASE+0xB0000)
|
||||
|
||||
|
||||
#define XIP_START_LOC 0xE0040000
|
||||
|
||||
|
6
include/ehrenberg/devices/camera.h
Normal file
6
include/ehrenberg/devices/camera.h
Normal file
@ -0,0 +1,6 @@
|
||||
#ifndef _BSP_CAM_H
|
||||
#define _BSP_CAM_H
|
||||
|
||||
#include "gen/camera.h"
|
||||
|
||||
#endif /* _BSP_CAM_H */
|
6
include/ehrenberg/devices/dma.h
Normal file
6
include/ehrenberg/devices/dma.h
Normal file
@ -0,0 +1,6 @@
|
||||
#ifndef _BSP_DMA_H
|
||||
#define _BSP_DMA_H
|
||||
|
||||
#include "gen/simpledma.h"
|
||||
|
||||
#endif /* _BSP_DMA_H */
|
6
include/ehrenberg/devices/i2s.h
Normal file
6
include/ehrenberg/devices/i2s.h
Normal file
@ -0,0 +1,6 @@
|
||||
#ifndef _BSP_IIS_H
|
||||
#define _BSP_IIS_H
|
||||
|
||||
#include "gen/i2s.h"
|
||||
|
||||
#endif /* _BSP_IIS_H */
|
@ -2,13 +2,10 @@
|
||||
#define _BSP_INTERRUPT_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include "gen/Apb3IrqCtrl.h"
|
||||
|
||||
#define irq_t apb3irqctrl_t
|
||||
#define irq_t void*
|
||||
|
||||
inline void irq_init(irq_t* reg){
|
||||
set_irq_masksReg(reg, 0);
|
||||
set_irq_pendingsReg(reg, 0xff);
|
||||
inline void irq_init(volatile irq_t* reg){
|
||||
}
|
||||
|
||||
#endif /* _BSP_INTERRUPT_H */
|
||||
|
Loading…
Reference in New Issue
Block a user