mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-21 10:13:10 +00:00
338fc3afea
* Updated stack to 1.17.0 * hal: ble: Fixed stack config * Bumped stack version in config * scripts: added validation of copro stack version in update bundles * Copro: update to 1.17.2 * FuriHal: adjust tick frequency for HSE as sys clk * FuriHal: adjust systick reload on sys clock change * Sync api and format sources * scripts: updated ob.data for newer stack * FuriHal: return core2 hse pll transition on deep sleep * FuriHal: cleanup ble glue * FuriHal: rework ble glue, allow shci_send in critical section * FuriHal: sync api symbols * FuriHal: cleanup BLE glue, remove unused garbage and duplicate declarations * FuriHal: BLE glue cleanup, 2nd iteration * FuriHal: hide tick drift reports under FURI_HAL_OS_DEBUG * Lib: sync stm32wb_copro with latest dev * FuriHal: ble-glue, slightly less editable device name and duplicate definition cleanup * FuriHal: update ble config options, enable some optimizations and ext adv * FuriHal: update clock switch method documentation * FuriHal: better SNBRSA bug workaround fix * FuriHal: complete comment about tick skew * FuriHal: proper condition in clock hsi2hse transition * FuriHal: move PLL start to hse2pll routine, fix lockup caused by core2 switching to HSE before us * FuriHal: explicit HSE start before switch * FuriHal: fix documentation and move flash latency change to later stage, remove duplicate LL_RCC_SetRFWKPClockSource call --------- Co-authored-by: hedger <hedger@nanode.su> Co-authored-by: hedger <hedger@users.noreply.github.com>
40 lines
1.1 KiB
C
40 lines
1.1 KiB
C
#pragma once
|
|
|
|
/**
|
|
* This function copies size number of bytes from a
|
|
* memory location pointed by src to a destination
|
|
* memory location pointed by dest
|
|
*
|
|
* @param[in] dest Destination address
|
|
* @param[in] src Source address
|
|
* @param[in] size size in the bytes
|
|
*
|
|
* @return Address of the destination
|
|
*/
|
|
|
|
extern void* Osal_MemCpy(void* dest, const void* src, unsigned int size);
|
|
|
|
/**
|
|
* This function sets first number of bytes, specified
|
|
* by size, to the destination memory pointed by ptr
|
|
* to the specified value
|
|
*
|
|
* @param[in] ptr Destination address
|
|
* @param[in] value Value to be set
|
|
* @param[in] size Size in the bytes
|
|
*
|
|
* @return Address of the destination
|
|
*/
|
|
|
|
extern void* Osal_MemSet(void* ptr, int value, unsigned int size);
|
|
|
|
/**
|
|
* This function compares n bytes of two regions of memory
|
|
*
|
|
* @param[in] s1 First buffer to compare.
|
|
* @param[in] s2 Second buffer to compare.
|
|
* @param[in] size Number of bytes to compare.
|
|
*
|
|
* @return 0 if the two buffers are equal, 1 otherwise
|
|
*/
|
|
extern int Osal_MemCmp(const void* s1, const void* s2, unsigned int size);
|