mirror of
https://github.com/fhgwright/SCSI2SD.git
synced 2024-06-13 03:29:31 +00:00
66 lines
1.8 KiB
C
66 lines
1.8 KiB
C
/*******************************************************************************
|
|
* File Name: NOR_CTL.c
|
|
* Version 1.80
|
|
*
|
|
* Description:
|
|
* This file contains API to enable firmware control of a Control Register.
|
|
*
|
|
* Note:
|
|
*
|
|
********************************************************************************
|
|
* Copyright 2008-2015, Cypress Semiconductor Corporation. All rights reserved.
|
|
* You may use this file only in accordance with the license, terms, conditions,
|
|
* disclaimers, and limitations in the end user license agreement accompanying
|
|
* the software package with which this file was provided.
|
|
*******************************************************************************/
|
|
|
|
#include "NOR_CTL.h"
|
|
|
|
/* Check for removal by optimization */
|
|
#if !defined(NOR_CTL_Sync_ctrl_reg__REMOVED)
|
|
|
|
|
|
/*******************************************************************************
|
|
* Function Name: NOR_CTL_Write
|
|
********************************************************************************
|
|
*
|
|
* Summary:
|
|
* Write a byte to the Control Register.
|
|
*
|
|
* Parameters:
|
|
* control: The value to be assigned to the Control Register.
|
|
*
|
|
* Return:
|
|
* None.
|
|
*
|
|
*******************************************************************************/
|
|
void NOR_CTL_Write(uint8 control)
|
|
{
|
|
NOR_CTL_Control = control;
|
|
}
|
|
|
|
|
|
/*******************************************************************************
|
|
* Function Name: NOR_CTL_Read
|
|
********************************************************************************
|
|
*
|
|
* Summary:
|
|
* Reads the current value assigned to the Control Register.
|
|
*
|
|
* Parameters:
|
|
* None.
|
|
*
|
|
* Return:
|
|
* Returns the current value in the Control Register.
|
|
*
|
|
*******************************************************************************/
|
|
uint8 NOR_CTL_Read(void)
|
|
{
|
|
return NOR_CTL_Control;
|
|
}
|
|
|
|
#endif /* End check for removal by optimization */
|
|
|
|
|
|
/* [] END OF FILE */
|