From: Jean THOMAS Date: Tue, 16 Jun 2020 08:32:28 +0000 (+0200) Subject: Reformulate GRAM_RW_FUNC section X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=19f0ce8e92b4d087bbfd3488b66a3541ef737947;p=gram.git Reformulate GRAM_RW_FUNC section --- diff --git a/libgram/README.md b/libgram/README.md index b7b3f81..3346b4e 100644 --- a/libgram/README.md +++ b/libgram/README.md @@ -26,9 +26,9 @@ GRAM_ERR_NONE: No error happened (hardcoded to zero) GRAM_ERR_UNDOCUMENTED: Undocumented error, shame on us lazy coders (take a look at the code) ``` -## Using libgram when you can't directly access the bus +## Using libgram outside the SoC -Compile libgram with `CFLAGS="-DGRAM_RW_FUNC"` (run `make clean` beforehand) then define the following functions: +Compile libgram with `CFLAGS="-DGRAM_RW_FUNC"` (run `make clean` beforehand) and define the following bus access functions: ```c uint32_t gram_read(struct gramCtx *ctx, void *addr);