mirror of
https://github.com/Fishwaldo/bl_mcu_sdk.git
synced 2025-07-23 13:18:59 +00:00
[sync] sync from internal repo
* use nuttx libc, disable system libc * use tlsf as default * update lhal flash driver * add example readme * add flash ini for new flash tool * add fw header for new flash tool
This commit is contained in:
parent
89592fc9a3
commit
356f258e83
554 changed files with 79150 additions and 46596 deletions
|
@ -119,6 +119,7 @@
|
|||
#define GPIO_FUNC_PWM0 (16 << GPIO_FUNC_SHIFT)
|
||||
#define GPIO_FUNC_AUDAC_PWM (25 << GPIO_FUNC_SHIFT)
|
||||
#define GPIO_FUNC_JTAG (26 << GPIO_FUNC_SHIFT)
|
||||
#define GPIO_FUNC_PEC (27 << GPIO_FUNC_SHIFT)
|
||||
#define GPIO_FUNC_CLKOUT (31 << GPIO_FUNC_SHIFT)
|
||||
#elif defined(BL606P) || defined(BL808)
|
||||
#define GPIO_FUNC_SDH (0 << GPIO_FUNC_SHIFT)
|
||||
|
@ -156,6 +157,7 @@
|
|||
#define GPIO_FUNC_PWM0 (16 << GPIO_FUNC_SHIFT)
|
||||
#define GPIO_FUNC_DBI_B (22 << GPIO_FUNC_SHIFT)
|
||||
#define GPIO_FUNC_DBI_C (23 << GPIO_FUNC_SHIFT)
|
||||
#define GPIO_FUNC_PEC (27 << GPIO_FUNC_SHIFT)
|
||||
#define GPIO_FUNC_CLKOUT (31 << GPIO_FUNC_SHIFT)
|
||||
#endif
|
||||
|
||||
|
@ -282,6 +284,38 @@ void bflb_gpio_reset(struct bflb_device_s *dev, uint8_t pin);
|
|||
*/
|
||||
bool bflb_gpio_read(struct bflb_device_s *dev, uint8_t pin);
|
||||
|
||||
/**
|
||||
* @brief Write gpio pin 0~31.
|
||||
*
|
||||
* @param [in] dev device handle
|
||||
* @param [in] val gpio pin 0~31 value
|
||||
*/
|
||||
void bflb_gpio_pin0_31_write(struct bflb_device_s *dev, uint32_t val);
|
||||
|
||||
/**
|
||||
* @brief Write gpio pin 32~63.
|
||||
*
|
||||
* @param [in] dev device handle
|
||||
* @param [in] val gpio pin 32~63 value
|
||||
*/
|
||||
void bflb_gpio_pin32_63_write(struct bflb_device_s *dev, uint32_t val);
|
||||
|
||||
/**
|
||||
* @brief Read level from gpio pin 0~31.
|
||||
*
|
||||
* @param [in] dev device handle
|
||||
* @return level of gpio pin 0~31
|
||||
*/
|
||||
uint32_t bflb_gpio_pin0_31_read(struct bflb_device_s *dev);
|
||||
|
||||
/**
|
||||
* @brief Read level from gpio pin 32~63.
|
||||
*
|
||||
* @param [in] dev device handle
|
||||
* @return level of gpio pin32~63
|
||||
*/
|
||||
uint32_t bflb_gpio_pin32_63_read(struct bflb_device_s *dev);
|
||||
|
||||
/**
|
||||
* @brief Config gpio pin interrupt.
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue