mirror of
https://github.com/saymrwulf/pulp-runtime.git
synced 2026-11-16 08:38:32 +00:00
Added info about exmples
This commit is contained in:
parent
af8452d703
commit
0856338ea0
3 changed files with 20 additions and 2 deletions
17
README.md
17
README.md
|
|
@ -46,3 +46,20 @@ environment variable must point to the folder where the platform was installed (
|
||||||
|
|
||||||
$ export VSIM_PATH=<pulpissimo root folder>/sim
|
$ export VSIM_PATH=<pulpissimo root folder>/sim
|
||||||
|
|
||||||
|
### Examples
|
||||||
|
|
||||||
|
Some examples can be found here: git@github.com:pulp-platform/pulp-runtime-examples.git
|
||||||
|
|
||||||
|
### Useful options
|
||||||
|
|
||||||
|
The vsim gui can be opened with this option:
|
||||||
|
|
||||||
|
$ make run gui=1
|
||||||
|
|
||||||
|
The uart can be selected for the printf with this option:
|
||||||
|
|
||||||
|
$ make all run io=uart
|
||||||
|
|
||||||
|
The baudrate can also be specified with:
|
||||||
|
|
||||||
|
$ make all run io=uart CONFIG_IO_UART_BAUDRATE=9600
|
||||||
|
|
@ -34,7 +34,7 @@ typedef enum {
|
||||||
PI_FREQ_DOMAIN_PERIPH = 2
|
PI_FREQ_DOMAIN_PERIPH = 2
|
||||||
} pi_freq_domain_e;
|
} pi_freq_domain_e;
|
||||||
|
|
||||||
void cluster_start(int cid, int (*entry)(void *));
|
void cluster_start(int cid, int (*entry)());
|
||||||
|
|
||||||
int cluster_wait(int cid);
|
int cluster_wait(int cid);
|
||||||
|
|
||||||
|
|
@ -45,6 +45,7 @@ void _start();
|
||||||
#define get_core_id hal_core_id
|
#define get_core_id hal_core_id
|
||||||
#define rt_core_id hal_core_id
|
#define rt_core_id hal_core_id
|
||||||
#define rt_cluster_id hal_cluster_id
|
#define rt_cluster_id hal_cluster_id
|
||||||
|
#define get_cluster_id hal_cluster_id
|
||||||
|
|
||||||
#ifdef ARCHI_CLUSTER_NB_PE
|
#ifdef ARCHI_CLUSTER_NB_PE
|
||||||
static inline int get_core_num() { return ARCHI_CLUSTER_NB_PE; }
|
static inline int get_core_num() { return ARCHI_CLUSTER_NB_PE; }
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ void cluster_entry_stub()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void cluster_start(int cid, int (*entry)(void *))
|
void cluster_start(int cid, int (*entry)())
|
||||||
{
|
{
|
||||||
// Store cluster entry point, ctr0 will jump here
|
// Store cluster entry point, ctr0 will jump here
|
||||||
cluster_entry = entry;
|
cluster_entry = entry;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue