FIxed wrong size of pos_freq_domains

This commit is contained in:
Germain Haugou 2020-03-05 15:56:56 +01:00
parent 280f5755ed
commit 42c768b523
8 changed files with 6 additions and 15 deletions

View file

@ -25,6 +25,4 @@
#define PULP_CHIP_STR marsellus
#define PULP_CHIP_FAMILY_STR marsellus
#define PERIPH_FREQUENCY 50000000
#endif

View file

@ -22,7 +22,7 @@
#define POS_FLL_PERIPH 1
#define POS_FLL_FC 0
extern int pos_freq_domains[ARCHI_NB_FLL];
extern int pos_freq_domains[PI_FREQ_NB_DOMAINS];
void pos_soc_init();

View file

@ -25,6 +25,4 @@
#define PULP_CHIP_STR pulp
#define PULP_CHIP_FAMILY_STR pulp
#define PERIPH_FREQUENCY 50000000
#endif

View file

@ -22,7 +22,7 @@
#define POS_FLL_PERIPH 1
#define POS_FLL_FC 0
extern int pos_freq_domains[ARCHI_NB_FLL];
extern int pos_freq_domains[PI_FREQ_NB_DOMAINS];
void pos_soc_init();

View file

@ -25,10 +25,4 @@
#define PULP_CHIP_STR pulpissimo
#define PULP_CHIP_FAMILY_STR pulpissimo
#if __PLATFORM__ == ARCHI_PLATFORM_FPGA
#define PERIPH_FREQUENCY 5000000
#else
#define PERIPH_FREQUENCY 50000000
#endif
#endif

View file

@ -22,7 +22,7 @@
#define POS_FLL_PERIPH 1
#define POS_FLL_FC 0
extern int pos_freq_domains[ARCHI_NB_FLL];
extern int pos_freq_domains[PI_FREQ_NB_DOMAINS];
void pos_soc_init();

View file

@ -31,7 +31,8 @@
typedef enum {
PI_FREQ_DOMAIN_FC = 0,
PI_FREQ_DOMAIN_CL = 1,
PI_FREQ_DOMAIN_PERIPH = 2
PI_FREQ_DOMAIN_PERIPH = 2,
PI_FREQ_NB_DOMAINS = 3
} pi_freq_domain_e;
#ifdef ARCHI_HAS_CLUSTER

View file

@ -18,7 +18,7 @@
#include <pulp.h>
int pos_freq_domains[ARCHI_NB_FLL];
int pos_freq_domains[PI_FREQ_NB_DOMAINS];