Added info about exmples

This commit is contained in:
Germain Haugou 2020-01-14 17:19:46 +01:00
parent af8452d703
commit 0856338ea0
3 changed files with 20 additions and 2 deletions

View file

@ -46,3 +46,20 @@ environment variable must point to the folder where the platform was installed (
$ 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

View file

@ -34,7 +34,7 @@ typedef enum {
PI_FREQ_DOMAIN_PERIPH = 2
} pi_freq_domain_e;
void cluster_start(int cid, int (*entry)(void *));
void cluster_start(int cid, int (*entry)());
int cluster_wait(int cid);
@ -45,6 +45,7 @@ void _start();
#define get_core_id hal_core_id
#define rt_core_id hal_core_id
#define rt_cluster_id hal_cluster_id
#define get_cluster_id hal_cluster_id
#ifdef ARCHI_CLUSTER_NB_PE
static inline int get_core_num() { return ARCHI_CLUSTER_NB_PE; }

View file

@ -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
cluster_entry = entry;