mirror of
https://github.com/cwyark/ameba-sdk-gcc-make.git
synced 2026-07-13 19:25:37 +00:00
first commit and add gitignore, README.md
This commit is contained in:
commit
760756ba2c
1861 changed files with 709236 additions and 0 deletions
38
component/common/mbed/targets/hal/rtl8195a/efuse3_api.c
Executable file
38
component/common/mbed/targets/hal/rtl8195a/efuse3_api.c
Executable file
|
|
@ -0,0 +1,38 @@
|
|||
/* mbed Microcontroller Library
|
||||
*******************************************************************************
|
||||
* Copyright (c) 2014, Realtek Semiconductor Corp.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This module is a confidential and proprietary property of RealTek and
|
||||
* possession or use of this module requires written permission of RealTek.
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
||||
#include "rtl8195a.h"
|
||||
#ifdef CONFIG_PWM_EN
|
||||
|
||||
extern VOID ReadEfuseContant3(OUT u8 *pContant);
|
||||
extern u8 WriteEfuseContant3(IN u8 CodeWordNum, IN u8 WordEnable, IN u8 *pContant);
|
||||
|
||||
|
||||
/**
|
||||
* @brief Read efuse contant of specified user
|
||||
* @param data: Specified the address to save the readback data.
|
||||
*/
|
||||
void efuse_user_data_read3(uint8_t * data)
|
||||
{
|
||||
ReadEfuseContant3(data);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Write user's contant to efuse
|
||||
* @param codewordnum: Specifies the number of the codeword to be programmed.
|
||||
* @param worden: Specifies the word enable of the codeword.
|
||||
* @param data: Specified the data to be programmed.
|
||||
* @retval status: Success:1 or Failure: Others.
|
||||
*/
|
||||
int efuse_user_data_write3(uint8_t codewordnum, uint8_t worden, uint8_t *data)
|
||||
{
|
||||
return WriteEfuseContant3(codewordnum,worden,data);
|
||||
}
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue