From: Jean THOMAS Date: Tue, 9 Jun 2020 14:49:41 +0000 (+0200) Subject: Update README according to the current API X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c933f29f4068e9a67a918c72ecbbc9ba0f41b155;p=gram.git Update README according to the current API --- diff --git a/libgram/README.md b/libgram/README.md index f7db922..965c663 100644 --- a/libgram/README.md +++ b/libgram/README.md @@ -4,21 +4,14 @@ libgram is the C library for gram core initialization. ## HowTo -Provide the CSV file from your LambdaSoC build to the Makefile: - -```bash -make CSR_CSV_FILE=$SOC_BUILD/soc/soc_resources.csv -``` - -In your firmware: +Build libgram with make. In your firmware: ```C #include int main(void) { - int err = gram_init(); - - /* insert something meaningful here */ + struct gramCtx ctx; + int err = gram_init(&ctx, 0x10000000, 0x00006000, 0x00005000); return 0; } @@ -31,5 +24,4 @@ Link it to this library and you should be good to go! ``` 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) -GRAM_ERR_MEMTEST: Memtest failed ```