亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? 75x_smi.c

?? freertosV4.40 是一種small的嵌入式系統。利于嵌入式開好者入門學習嵌入式操作系統。通過對于源碼的學習可以很好的掌握freertos的運行機制。
?? C
?? 第 1 頁 / 共 2 頁
字號:
*                  This function is used in Hardware mode only.
* Input          : None
* Output         : None
* Return         : None
*******************************************************************************/
void SMI_SendWENCmd(void)
{
  SMI->CR2 |= SMI_WEN_Mask;
}

/*******************************************************************************
* Function Name  : SMI_SendRSRCmd
* Description    : Sends a Read Status Register Command to the selected memory
*                  Bank.
* Input          : None
* Output         : None
* Return         : None
*******************************************************************************/
void SMI_SendRSRCmd(void)
{
  SMI->CR2 |= SMI_RSR_Mask;
}

/*******************************************************************************
* Function Name  : SMI_SendCmd
* Description    : Sends command to the selected memory Bank. This function is
*                  used in Software mode only.
* Input          : - Command: specifies the command to send to the external memory.
* Output         : None
* Return         : None
*******************************************************************************/
void SMI_SendCmd(u32 Command)
{
  /* Load the command in the Transmit Register */
  SMI->TR = Command;

  /* Start transfer */    
  SMI->CR2 |= SMI_SEND_Mask;
}

/*******************************************************************************
* Function Name  : SMI_FastReadConfig
* Description    : Enables or disables the Fast Read Mode.
* Input          : - SMI_FastRead: specifies whether the Fast Read Mode is
*                    enabled or disabled.
*                    This parameter can be one of the following values:
*                          - SMI_FastRead_Disable : Fast Read Mode disabled
*                          - SMI_FastRead_Enable : Fast Read Mode enabled
* Output         : None
* Return         : None
*******************************************************************************/
void SMI_FastReadConfig(u32 SMI_FastRead)
{
  if(SMI_FastRead == SMI_FastRead_Enable)
  {
    SMI->CR1 |= SMI_FastRead_Enable;
  }
  else
  {
    SMI->CR1 &= SMI_FastRead_Disable;
  }
}

/*******************************************************************************
* Function Name  : SMI_WriteBurstConfig
* Description    : Enables or disables the Write Burst Mode.
* Input          : - SMI_WriteBurst: specifies whether the Write Burst Mode is
*                    enabled or disabled.
*                    This parameter can be one of the following values:
*                          - SMI_WriteBurst_Disable : Write Burst Mode disabled
*                          - SMI_WriteBurst_Enable : Write Burst Mode enabled
* Output         : None
* Return         : None
*******************************************************************************/
void SMI_WriteBurstConfig(u32 SMI_WriteBurst)
{
  if(SMI_WriteBurst == SMI_WriteBurst_Enable)
  {
    SMI->CR1 |= SMI_WriteBurst_Enable;
  }
  else
  {
    SMI->CR1 &= SMI_WriteBurst_Disable;
  }
}

/*******************************************************************************
* Function Name  : SMI_WriteByte
* Description    : Writes a Byte to the selected memory Bank. This function is
*                  used in Hardware mode only.
*                  Before calling this function, send a Write Enable command to 
*                  the selected memory Bank using SMI_SendWENCmd() function.
* Input          : - WriteAddr: external memory address from which the data will
*                    be written.
*                  - Data: data to be written to the external memory.
* Output         : None
* Return         : None
*******************************************************************************/
void SMI_WriteByte(u32 WriteAddr, u8 Data)
{
  /* Transfer data to the memory */
  *(u8 *) WriteAddr = Data;
}

/*******************************************************************************
* Function Name  : SMI_WriteHalfWord
* Description    : Writes a Half Word to the selected memory Bank. This function
*                  is used in Hardware mode only.
*                  Before calling this function, send a Write Enable command to 
*                  the selected memory Bank using SMI_SendWENCmd() function.
* Input          : - WriteAddr: external memory address from which the data will
*                    be written.
*                  - Data: data to be written to the external memory.
* Output         : None
* Return         : None
*******************************************************************************/
void SMI_WriteHalfWord(u32 WriteAddr, u16 Data)
{
  /* Transfer data to the memory */
  *(u16 *) WriteAddr = Data;
}

/*******************************************************************************
* Function Name  : SMI_WriteWord
* Description    : Writes a Word to the selected memory Bank. This function is
*                  used in Hardware mode only.
*                  Before calling this function, send a Write Enable command to 
*                  the selected memory Bank using SMI_SendWENCmd() function.
* Input          : - WriteAddr: external memory address from which the data will
*                    be written.
*                  - Data: data to be written to the external memory.
* Output         : None
* Return         : None
*******************************************************************************/
void SMI_WriteWord(u32 WriteAddr, u32 Data)
{
  /* Transfer data to the memory */
  *(u32 *) WriteAddr = Data;
}

/*******************************************************************************
* Function Name  : SMI_ReadByte
* Description    : Reads a Byte from the selected memory Bank. This function is
*                  used in Hardware mode only.
* Input          : - ReadAddr: external memory address to read from.
* Output         : None
* Return         : Data read from the external memory.
*******************************************************************************/
u8 SMI_ReadByte(u32 ReadAddr)
{
  return(*(u8 *) ReadAddr);
}

/*******************************************************************************
* Function Name  : SMI_ReadHalfWord
* Description    : Reads a Half Word from the selected memory Bank. This function
*                  is used in Hardware mode only.
* Input          : - ReadAddr: external memory address to read from.
* Output         : None
* Return         : Data read from the external memory.
*******************************************************************************/
u16 SMI_ReadHalfWord(u32 ReadAddr)
{
  return(*(u16 *) ReadAddr);
}

/*******************************************************************************
* Function Name  : SMI_ReadWord
* Description    : Reads a Word from the selected memory Bank. This function is
*                  used in Hardware mode only.
* Input          : - ReadAddr: external memory address to read from.
* Output         : None
* Return         : Data read from the external memory.
*******************************************************************************/
u32 SMI_ReadWord(u32 ReadAddr)
{
  return(*(u32 *) ReadAddr);
}

/*******************************************************************************
* Function Name  : SMI_ReadMemoryStatusRegister
* Description    : Reads the status register of the memory connected to the
*                  selected Bank.
* Input          : None
* Output         : None
* Return         : External memory status register value.
*******************************************************************************/
u8 SMI_ReadMemoryStatusRegister(void)
{
 return((u8) (SMI->SR & SMI_STATUSREGISTER_Mask));
}

/*******************************************************************************
* Function Name  : SMI_GetFlagStatus
* Description    : Checks whether the specified SMI flag is set or not.
* Input          : - SMI_FLAG: specifies the flag to check.
*                    This parameter can be one of the following values:
*                          - SMI_FLAG_Bank3_WM : Memory Bank3 Write Mode flag
*                          - SMI_FLAG_Bank2_WM : Memory Bank2 Write Mode flag
*                          - SMI_FLAG_Bank1_WM : Memory Bank1 Write Mode flag
*                          - SMI_FLAG_Bank0_WM : Memory Bank0 Write Mode flag
*                          - SMI_FLAG_ERF2 : Error Flag 2: Forbidden Write Request
*                          - SMI_FLAG_ERF1 : Error Flag 1: Forbidden Access
*                          - SMI_FLAG_WC : Write Complete flag
*                          - SMI_FLAG_TF : Transfer Finished flag
* Output         : None
* Return         : The new state of SMI_FLAG (SET or RESET).
*******************************************************************************/
FlagStatus SMI_GetFlagStatus(u32 SMI_FLAG)
{
  if((SMI->SR & SMI_FLAG) != RESET)
  {
    return SET;
  }
  else
  {
    return RESET;
  }
}

/*******************************************************************************
* Function Name  : SMI_ClearFlag
* Description    : Clears the SMI抯 pending flags.
* Input          : - SMI_FLAG: specifies the flag to clear.
*                    This parameter can be any combination of the following values:
*                          - SMI_FLAG_ERF2 : Error Flag 2: Forbidden Write Request
*                          - SMI_FLAG_ERF1 : Error Flag 1: Forbidden Access
*                          - SMI_FLAG_WC : Write Complete flag
*                          - SMI_FLAG_TF : Transfer Finished flag
* Output         : None
* Return         : None
*******************************************************************************/
void SMI_ClearFlag(u32 SMI_FLAG)
{
  SMI->SR &= ~SMI_FLAG;
}

/*******************************************************************************
* Function Name  : SMI_GetITStatus
* Description    : Checks whether the specified SMI interrupt has occurred or not.
* Input          : - SMI_FLAG: specifies the interrupt source to check.
*                    This parameter can be one of the following values:
*                          - SMI_IT_WC : Write Complete Interrupt
*                          - SMI_IT_TF : Transfer Finished Interrupt
* Output         : None
* Return         : The new state of SMI_IT (SET or RESET).
*******************************************************************************/
ITStatus SMI_GetITStatus(u32 SMI_IT)
{
  if(((SMI->CR2 & SMI_IT) != RESET) && ((SMI->SR & SMI_IT) != RESET))
  {
    return SET;
  }
  else
  {
    return RESET;
  }
}

/*******************************************************************************
* Function Name  : SMI_ClearITPendingBit
* Description    : Clears the SMI抯 interrupt pending bits.
* Input          : - SMI_FLAG: specifies the interrupts sources to clear.
*                    This parameter can be any combination of the following values:
*                          - SMI_IT_WC : Write Complete Interrupt
*                          - SMI_IT_TF : Transfer Finished Interrupt
* Output         : None
* Return         : None
*******************************************************************************/
void SMI_ClearITPendingBit(u32 SMI_IT)
{
  SMI->SR &= ~SMI_IT;
}

/******************* (C) COPYRIGHT 2006 STMicroelectronics *****END OF FILE****/

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
丝袜a∨在线一区二区三区不卡| 亚洲欧美日韩国产综合在线| 精品剧情v国产在线观看在线| 久久影院午夜论| 亚洲免费av高清| 久久成人综合网| 91免费观看视频在线| 制服丝袜成人动漫| 国产欧美一区二区精品久导航| 亚洲人精品午夜| 国产在线播放一区| 国产在线播放一区三区四| 激情综合色播激情啊| 色丁香久综合在线久综合在线观看| 日本乱人伦aⅴ精品| 久久嫩草精品久久久精品一| 亚洲综合视频网| 国产在线精品一区二区不卡了 | 国产精品久久久久永久免费观看| 亚洲成人免费视频| 91在线云播放| 国产精品视频第一区| 久久久久久久综合日本| 奇米四色…亚洲| 欧美自拍偷拍午夜视频| 亚洲男人天堂av网| 99re6这里只有精品视频在线观看 99re8在线精品视频免费播放 | 欧美一区二区在线免费观看| 一区二区不卡在线播放| www.日韩在线| 欧美理论片在线| 国产成人免费av在线| 国产精品久久久久久久久久久免费看| 国内一区二区视频| 亚洲精品福利视频网站| 日韩你懂的在线播放| av不卡在线观看| 另类综合日韩欧美亚洲| 最新欧美精品一区二区三区| 91精品国模一区二区三区| 成人免费黄色大片| 秋霞影院一区二区| 亚洲五码中文字幕| 中文字幕的久久| 欧美一级黄色片| 欧美日本一区二区三区四区| 成人免费黄色大片| 国产盗摄精品一区二区三区在线| 国产欧美一区二区三区在线看蜜臀| 99久久久精品| 久久精品免费观看| 一区二区三区av电影| 26uuu精品一区二区在线观看| 色婷婷综合久久久久中文一区二区| 美女网站色91| 91免费视频网址| 日韩成人免费看| 亚洲欧美一区二区三区极速播放| 精品人在线二区三区| 色噜噜狠狠成人网p站| 欧美亚洲综合网| 99久免费精品视频在线观看 | 成人一区二区在线观看| 日韩中文字幕区一区有砖一区 | 一区二区在线观看视频在线观看| 久久久亚洲国产美女国产盗摄| 欧美日韩高清一区| 91福利小视频| 91福利国产成人精品照片| 不卡视频一二三四| 正在播放亚洲一区| 日韩av一区二| 成人激情黄色小说| 粉嫩一区二区三区在线看| 高清不卡在线观看| 成人伦理片在线| 在线免费视频一区二区| 在线观看日韩国产| 欧美性色aⅴ视频一区日韩精品| 欧美视频三区在线播放| 欧美绝品在线观看成人午夜影视| 欧美日韩另类一区| 日韩天堂在线观看| 国产三级一区二区| 亚洲欧洲国产日韩| 亚洲成人免费影院| 激情综合网av| 石原莉奈在线亚洲二区| 久久99精品久久久久久国产越南| 国产一区二区视频在线播放| 高清不卡一区二区在线| 在线亚洲高清视频| 日韩西西人体444www| 国产视频一区二区在线观看| 一区二区三区鲁丝不卡| 男男成人高潮片免费网站| 国产成人免费在线| 欧美精品高清视频| 国产清纯白嫩初高生在线观看91 | 色婷婷综合五月| 亚洲欧洲av在线| 日韩一区二区精品葵司在线| 国产精品久久影院| 日韩va亚洲va欧美va久久| 色综合网色综合| 国产亚洲自拍一区| 日本午夜精品一区二区三区电影| 国产高清久久久| 久久―日本道色综合久久| 天堂一区二区在线免费观看| 91丨porny丨在线| 亚洲天堂久久久久久久| 丁香婷婷综合网| 亚洲欧洲一区二区在线播放| 国产99一区视频免费 | 午夜电影一区二区三区| 日韩福利电影在线| 91视视频在线直接观看在线看网页在线看| 一本一道久久a久久精品综合蜜臀| 51精品视频一区二区三区| 亚洲成人激情综合网| 中文字幕精品在线不卡| 人人狠狠综合久久亚洲| 欧美日韩视频第一区| 午夜国产不卡在线观看视频| 欧美又粗又大又爽| 亚洲一二三区在线观看| 欧美日韩国产123区| 亚洲制服欧美中文字幕中文字幕| 色嗨嗨av一区二区三区| 亚洲精品免费播放| 777奇米四色成人影色区| 日韩精品一二三| 国产欧美一二三区| 欧美日韩中文精品| 精品一区二区久久| 99久久亚洲一区二区三区青草| 在线一区二区三区做爰视频网站| 亚洲制服丝袜av| 精品日韩av一区二区| 欧美色区777第一页| 韩国v欧美v亚洲v日本v| 亚洲欧美欧美一区二区三区| 日韩午夜在线播放| 欧洲精品在线观看| 风流少妇一区二区| 亚洲大片精品永久免费| 国产三级三级三级精品8ⅰ区| 欧美性大战久久久久久久蜜臀| 久久99精品国产.久久久久| 亚洲国产日产av| 国产精品久久久一本精品| 日韩免费观看2025年上映的电影| 日本高清免费不卡视频| 美女久久久精品| 1区2区3区精品视频| 国产午夜精品在线观看| 精品蜜桃在线看| 欧美一级xxx| 日韩欧美电影一二三| 欧美日韩成人综合在线一区二区| 91亚洲资源网| 99久久99久久综合| www.色综合.com| 不卡av电影在线播放| 成a人片亚洲日本久久| 91麻豆免费看| 欧美在线999| 日韩欧美三级在线| 久久先锋影音av鲁色资源网| 精品国产一二三区| 久久99九九99精品| 337p粉嫩大胆噜噜噜噜噜91av| 欧美一级欧美三级在线观看| 91精品啪在线观看国产60岁| 日韩欧美国产电影| 欧美国产亚洲另类动漫| 国产精品福利影院| 一区二区三区在线视频免费观看| 婷婷开心激情综合| 国产激情偷乱视频一区二区三区| caoporn国产精品| 欧美日韩中文一区| 国产天堂亚洲国产碰碰| 亚洲免费在线视频| 寂寞少妇一区二区三区| 国产99久久久国产精品免费看| 欧美午夜一区二区三区免费大片| 欧美一区二区视频在线观看2020| 国产人成亚洲第一网站在线播放| 一区二区在线观看不卡| 亚洲影视在线观看| 午夜久久久久久| 成人美女视频在线观看18| 91精品国产91久久久久久最新毛片 | 国产高清不卡二三区| 欧美精品丝袜中出| 亚洲视频中文字幕| 久久99精品国产.久久久久久| 欧美自拍偷拍午夜视频|