[update][lhal] update lhal

* update lhal api comments
* add cam driver
* add efuse driver
* add iso11898 driver
This commit is contained in:
jzlv 2022-12-21 20:20:33 +08:00
parent 185805cbbe
commit a77b0dc866
60 changed files with 8782 additions and 429 deletions

View file

@ -3,19 +3,67 @@
#include "bflb_core.h"
/** @addtogroup LHAL
* @{
*/
/** @addtogroup TRNG
* @{
*/
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Read trng data.
*
* @param [in] dev device handle
* @param [in] data pointer to trng data
* @return A negated errno value on failure.
*/
int bflb_trng_read(struct bflb_device_s *dev, uint8_t data[32]);
/**
* @brief Read trng data with custom length.
*
* @param [in] data pointer to trng data
* @param [in] len length to read
* @return A negated errno value on failure.
*/
int bflb_trng_readlen(uint8_t *data, uint32_t len);
/**
* @brief Get trng data.
*
* @return trng data with word
*/
long random(void);
/**
* @brief Enable trng in group0.
*
* @param [in] dev device handle
*/
void bflb_group0_request_trng_access(struct bflb_device_s *dev);
/**
* @brief Disable trng in group0.
*
* @param [in] dev device handle
*/
void bflb_group0_release_trng_access(struct bflb_device_s *dev);
#ifdef __cplusplus
}
#endif
/**
* @}
*/
/**
* @}
*/
#endif