1 # libgram, the C companion for gram
3 libgram is the C library for gram core initialization.
7 Provide the CSV file from your LambdaSoC build to the Makefile:
10 make CSR_CSV_FILE=$SOC_BUILD/soc/soc_resources.csv
19 int err = gram_init();
21 /* insert something meaningful here */
27 Link it to this library and you should be good to go!
32 GRAM_ERR_NONE: No error happened (hardcoded to zero)
33 GRAM_ERR_UNDOCUMENTED: Undocumented error, shame on us lazy coders (take a look at the code)
34 GRAM_ERR_MEMTEST: Memtest failed