ref: ad1df2d2a01bd064e643287ff305673dfede3ce3
dir: /src/bsp.h/
/*============================================================================ * QP/C Real-Time Embedded Framework (RTEF) * Copyright (C) 2005 Quantum Leaps, LLC. All rights reserved. * * SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-QL-commercial * * This software is dual-licensed under the terms of the open source GNU * General Public License version 3 (or any later version), or alternatively, * under the terms of one of the closed source Quantum Leaps commercial * licenses. * * The terms of the open source GNU General Public License version 3 * can be found at: <www.gnu.org/licenses/gpl-3.0> * * The terms of the closed source Quantum Leaps commercial licenses * can be found at: <www.state-machine.com/licensing> * * Redistributions in source code must retain this top-level comment block. * Plagiarizing this software to sidestep the license obligations is illegal. * * Contact information: * <www.state-machine.com> * <info@state-machine.com> ============================================================================*/ /*! * @date Last updated on: 2022-08-24 * @version Last updated for: Zephyr 3.1.99 and @ref qpc_7_1_0 * * @file * @brief BSP for Zephyr, DPP example */ #ifndef BSP_H #define BSP_H #define BSP_TICKS_PER_SEC 1000U void BSP_init(void); void BSP_displayPaused(uint8_t paused); void BSP_displayPhilStat(uint8_t n, char const *stat); void BSP_terminate(int16_t result); void BSP_randomSeed(uint32_t seed); /* random seed */ uint32_t BSP_random(void); /* pseudo-random generator */ /* for testing... */ void BSP_wait4PB1(void); void BSP_ledOn(void); void BSP_ledOff(void); extern QTicker ticker0; #endif /* BSP_H */