## 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 <gram.h>
int main(void) {
- int err = gram_init();
-
- /* insert something meaningful here */
+ struct gramCtx ctx;
+ int err = gram_init(&ctx, 0x10000000, 0x00006000, 0x00005000);
return 0;
}
```
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
```