pulp-runtime/include/chips/pulpissimo/soc.h

45 lines
1 KiB
C
Raw Normal View History

2019-12-15 13:12:22 +00:00
/*
* Copyright (C) 2019 ETH Zurich, University of Bologna
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef __POS_CHIPS_PULP_SOC_H__
#define __POS_CHIPS_PULP_SOC_H__
#define POS_FLL_CL 2
#define POS_FLL_PERIPH 1
#define POS_FLL_FC 0
2020-03-05 14:56:56 +00:00
extern int pos_freq_domains[PI_FREQ_NB_DOMAINS];
2019-12-15 13:12:22 +00:00
void pos_soc_init();
static inline int pos_freq_get_fll(int domain)
{
switch (domain)
{
case PI_FREQ_DOMAIN_FC:
return POS_FLL_FC;
case PI_FREQ_DOMAIN_PERIPH:
default:
return POS_FLL_PERIPH;
}
}
#endif