diff --git a/README.md b/README.md index c2d1951..149747d 100755 --- a/README.md +++ b/README.md @@ -46,3 +46,20 @@ environment variable must point to the folder where the platform was installed ( $ export VSIM_PATH=/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 \ No newline at end of file diff --git a/include/pulp.h b/include/pulp.h index 4df143c..bf97959 100755 --- a/include/pulp.h +++ b/include/pulp.h @@ -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; } diff --git a/kernel/cluster.c b/kernel/cluster.c index 2e9a756..ff02de2 100644 --- a/kernel/cluster.c +++ b/kernel/cluster.c @@ -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;