mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-28 00:35:42 +00:00
added bzero for embedded systems
This commit is contained in:
parent
2f6c30e14b
commit
856c7144e5
@ -177,6 +177,7 @@ uint8_t crc8_calc(uint8_t *data, uint16_t len)
|
|||||||
return 0xFF - crc8(data, len);
|
return 0xFF - crc8(data, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef EMBEDDED
|
||||||
/*-----------------------------------------------------------------------------------*/
|
/*-----------------------------------------------------------------------------------*/
|
||||||
// ad-hoc implemenation for embedded targets
|
// ad-hoc implemenation for embedded targets
|
||||||
void bzero(void *s, uint32_t n){
|
void bzero(void *s, uint32_t n){
|
||||||
@ -185,3 +186,4 @@ void bzero(void *s, uint32_t n){
|
|||||||
*data++ = 0;
|
*data++ = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user