mirror of
https://github.com/AmbiML/sparrow-kata-full.git
synced 2025-08-24 15:58:23 +00:00
Merge "kata:VectorCoreDriver: Use HW register header."
GitOrigin-RevId: 7b10748eb801311b291aeba25cc0535f4e0b09d4
This commit is contained in:
parent
6d41c07085
commit
6b25d6fea0
@ -74,7 +74,10 @@ DeclareCAmkESComponent(SeL4Debug
|
||||
)
|
||||
|
||||
DeclareCAmkESComponent(VectorCoreDriver
|
||||
SOURCES components/VectorCoreDriver/src/driver.c
|
||||
SOURCES
|
||||
components/VectorCoreDriver/src/driver.c
|
||||
INCLUDES
|
||||
vc_top-gen/include
|
||||
)
|
||||
|
||||
DeclareCAmkESRootserver(system.camkes)
|
||||
|
@ -1,8 +1,9 @@
|
||||
#include <camkes.h>
|
||||
#include <stdint.h>
|
||||
|
||||
// TODO: Set offsets into memory based on `csr`.
|
||||
#define CTRL (csr + 0x0)
|
||||
#include "vc_top/vc_top.h"
|
||||
|
||||
#define CTRL (csr + VC_TOP_CTRL_REG_OFFSET)
|
||||
|
||||
void vctop_set_ctrl(uint32_t ctrl) {
|
||||
*((volatile uint32_t*)CTRL) = ctrl;
|
||||
|
Loading…
Reference in New Issue
Block a user