Skip to content

Commit

Permalink
Merged CoreTimer source code version 2.4.101.
Browse files Browse the repository at this point in the history
  • Loading branch information
p-owens committed Jul 3, 2023
2 parents 574247e + 67e24fe commit 29e01b3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 42 deletions.
13 changes: 7 additions & 6 deletions drivers/fpga_ip/CoreTimer/core_timer.c
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
/*******************************************************************************
* (c) Copyright 2007-2022 Microchip FPGA Embedded Systems Solutions.
* (c) Copyright 2007-2018 Microsemi SoC Products Group. All rights reserved.
*
* @file core_timer.c
* @author Microchip FPGA Embedded Systems Solutions
* @brief CoreTimer driver implementation. See file "core_timer.h" for
* description of the functions implemented in this file.
* CoreTimer driver implementation.
*
* SVN $Revision$
* SVN $Date$
*/

#include "core_timer.h"
#include "coretimer_regs.h"
#include "hal.h"
#include "hal_assert.h"

#ifndef NDEBUG
static timer_instance_t* NULL_timer_instance;
Expand Down
38 changes: 6 additions & 32 deletions drivers/fpga_ip/CoreTimer/core_timer.h
Original file line number Diff line number Diff line change
@@ -1,41 +1,15 @@
/*******************************************************************************
* (c) Copyright 2007-2022 Microchip FPGA Embedded Systems Solutions.
* (c) Copyright 2007-2018 Microsemi SoC Products Group. All rights reserved.
*
* SPDX-License-Identifier: MIT
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to
* deal in the Software without restriction, including without limitation the
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
* sell copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
* FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
* IN THE SOFTWARE.
*
* @file core_timer.h
* @author Microchip FPGA Embedded Systems Solutions
* @brief This file contains the application programming interface for the
* CoreTimer bare metal driver.
*
* CoreTimer public API.
*
* SVN $Revision$
* SVN $Date$
*/
#ifndef CORE_TIMER_H_
#define CORE_TIMER_H_

#ifndef LEGACY_DIR_STRUCTURE
#include "hal/hal.h"

#else
#include "hal.h"
#endif
#include "cpu_types.h"

/***************************************************************************//**
* The following definitions are used to select the CoreTimer driver operating
Expand Down
8 changes: 4 additions & 4 deletions drivers/fpga_ip/CoreTimer/coretimer_regs.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
/*******************************************************************************
* (c) Copyright 2007-2022 Microchip FPGA Embedded Systems Solutions.
* (c) Copyright 2007-2018 Microsemi SoC Products Group. All rights reserved.
*
* @file coretimer_regs.h
* @author Microchip FPGA Embedded Systems Solutions
* @brief CoreTimer register definitions
* SVN $Revision$
* SVN $Date$
*/

#ifndef __CORE_TIMER_REGISTERS
#define __CORE_TIMER_REGISTERS 1

Expand Down

0 comments on commit 29e01b3

Please sign in to comment.