spinnaker_tools 3.4.0
SpiNNaker API, sark, sc&mp, bmp firmware and build tools
Loading...
Searching...
No Matches
scamp_spin1_sync.h
1/*
2 * Copyright (c) 2019 The University of Manchester
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * https://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
19#define DRIFT_FP_BITS 17U
20#define DRIFT_INT_MASK (((1U << (32 - DRIFT_FP_BITS)) - 1) << DRIFT_FP_BITS)
21#define DRIFT_FRAC_MASK ((1U << DRIFT_FP_BITS) - 1)
22#define DRIFT_ONE (1U << DRIFT_FP_BITS)
23#define TIME_BETWEEN_SYNC_US 2000000U // !< The time between sync signals in us
25static const int DRIFT_FP_FACTOR = 1 << DRIFT_FP_BITS;
26static const int TIME_BETWEEN_SYNC_INT = TIME_BETWEEN_SYNC_US;
27static const int DRIFT_HALF = 1 << (DRIFT_FP_BITS - 1);