From c933f29f4068e9a67a918c72ecbbc9ba0f41b155 Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Tue, 9 Jun 2020 16:49:41 +0200 Subject: [PATCH] Update README according to the current API --- libgram/README.md | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) 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 ``` -- 2.30.2