mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-25 22:20:49 +08:00
update CMSIS-pack to 7.16
This commit is contained in:
parent
fbee9e4bb6
commit
428fc43cef
@ -469,8 +469,8 @@
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
</component>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.13.0">
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.13.0"/>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.16.0">
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
@ -561,8 +561,8 @@
|
||||
</file>
|
||||
<file attr="config" category="header" name="Mongoose\config\mongoose_config.h" version="1.0.0">
|
||||
<instance index="0">RTE\Network_Library\mongoose_config.h</instance>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.13.0"/>
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.13.0"/>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.16.0"/>
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
|
@ -12,13 +12,14 @@ uint64_t mg_millis(void) { // Let Mongoose use our uptime function
|
||||
return (uint64_t) HAL_GetTick(); // Return number of milliseconds since boot
|
||||
}
|
||||
|
||||
void mg_random(void *buf, size_t len) { // Use on-board RNG
|
||||
bool mg_random(void *buf, size_t len) { // Use on-board RNG
|
||||
extern RNG_HandleTypeDef hrng;
|
||||
for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
|
||||
uint32_t r;
|
||||
HAL_RNG_GenerateRandomNumber(&hrng, &r);
|
||||
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
static void timer_fn(void *arg) {
|
||||
|
@ -508,8 +508,8 @@
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
</component>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.13.0">
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.13.0"/>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.16.0">
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
@ -658,8 +658,8 @@
|
||||
</file>
|
||||
<file attr="config" category="header" name="Mongoose\config\mongoose_config.h" version="1.0.0">
|
||||
<instance index="0">RTE\Network_Library\mongoose_config.h</instance>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.13.0"/>
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.13.0"/>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.16.0"/>
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
|
@ -21,13 +21,14 @@ void SysTick_Handler (void) {
|
||||
xPortSysTickHandler();
|
||||
}
|
||||
|
||||
void mg_random(void *buf, size_t len) { // Use on-board RNG
|
||||
bool mg_random(void *buf, size_t len) { // Use on-board RNG
|
||||
extern RNG_HandleTypeDef hrng;
|
||||
for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
|
||||
uint32_t r;
|
||||
HAL_RNG_GenerateRandomNumber(&hrng, &r);
|
||||
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
static void server(void *args) {
|
||||
|
@ -533,8 +533,8 @@
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
</component>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.13.0">
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.13.0"/>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.16.0">
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
@ -619,8 +619,8 @@
|
||||
</file>
|
||||
<file attr="config" category="header" name="Mongoose\config\mongoose_config.h" version="1.0.0">
|
||||
<instance index="0">RTE\Network_Library\mongoose_config.h</instance>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.13.0"/>
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.13.0"/>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.16.0"/>
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
|
@ -18,12 +18,13 @@ void SysTick_Handler (void) {
|
||||
xPortSysTickHandler();
|
||||
}
|
||||
|
||||
void mg_random(void *buf, size_t len) { // Use on-board RNG
|
||||
bool mg_random(void *buf, size_t len) { // Use on-board RNG
|
||||
for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
|
||||
uint32_t r;
|
||||
HAL_RNG_GenerateRandomNumber(&hrng, &r);
|
||||
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
static void server(void *args) {
|
||||
|
@ -490,8 +490,8 @@
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
</component>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.13.0">
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.13.0"/>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.16.0">
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
@ -582,8 +582,8 @@
|
||||
</file>
|
||||
<file attr="config" category="header" name="Mongoose\config\mongoose_config.h" version="1.0.0">
|
||||
<instance index="0">RTE\Network_Library\mongoose_config.h</instance>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.13.0"/>
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.13.0"/>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.16.0"/>
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
|
@ -17,13 +17,14 @@ void SysTick_Handler(void) {
|
||||
xPortSysTickHandler();
|
||||
}
|
||||
|
||||
void mg_random(void *buf, size_t len) { // Use on-board RNG
|
||||
bool mg_random(void *buf, size_t len) { // Use on-board RNG
|
||||
extern RNG_HandleTypeDef hrng;
|
||||
for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
|
||||
uint32_t r;
|
||||
HAL_RNG_GenerateRandomNumber(&hrng, &r);
|
||||
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
static void timer_fn(void *arg) {
|
||||
|
@ -532,8 +532,8 @@
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
</component>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.13.0">
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.13.0"/>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.16.0">
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
@ -688,8 +688,8 @@
|
||||
</file>
|
||||
<file attr="config" category="header" name="Mongoose\config\mongoose_config.h" version="1.0.0">
|
||||
<instance index="0">RTE\Network_Library\mongoose_config.h</instance>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.13.0"/>
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.13.0"/>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.16.0"/>
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
|
@ -14,13 +14,14 @@
|
||||
#define BLINK_PERIOD_MS 1000 // LED blinking period in millis
|
||||
|
||||
|
||||
void mg_random(void *buf, size_t len) { // Use on-board RNG
|
||||
bool mg_random(void *buf, size_t len) { // Use on-board RNG
|
||||
extern RNG_HandleTypeDef hrng;
|
||||
for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
|
||||
uint32_t r;
|
||||
HAL_RNG_GenerateRandomNumber(&hrng, &r);
|
||||
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
static void server(void *args) {
|
||||
|
@ -514,8 +514,8 @@
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
</component>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.13.0">
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.13.0"/>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.16.0">
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
@ -612,8 +612,8 @@
|
||||
</file>
|
||||
<file attr="config" category="header" name="Mongoose\config\mongoose_config.h" version="1.0.0">
|
||||
<instance index="0">RTE\Network_Library\mongoose_config.h</instance>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.13.0"/>
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.13.0"/>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.16.0"/>
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
|
@ -9,13 +9,14 @@
|
||||
|
||||
#define BLINK_PERIOD_MS 1000 // LED blinking period in millis
|
||||
|
||||
void mg_random(void *buf, size_t len) { // Use on-board RNG
|
||||
bool mg_random(void *buf, size_t len) { // Use on-board RNG
|
||||
extern RNG_HandleTypeDef hrng;
|
||||
for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
|
||||
uint32_t r;
|
||||
HAL_RNG_GenerateRandomNumber(&hrng, &r);
|
||||
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
static void timer_fn(void *arg) {
|
||||
|
@ -499,8 +499,8 @@
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
</component>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.13.0">
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.13.0"/>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.16.0">
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
@ -687,8 +687,8 @@
|
||||
</file>
|
||||
<file attr="config" category="header" name="Mongoose\config\mongoose_config.h" version="1.0.0">
|
||||
<instance index="0">RTE\Network_Library\mongoose_config.h</instance>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.13.0"/>
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.13.0"/>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.16.0"/>
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
|
@ -10,13 +10,14 @@
|
||||
#define BLINK_PERIOD_MS 1000 // LED blinking period in millis
|
||||
|
||||
|
||||
void mg_random(void *buf, size_t len) { // Use on-board RNG
|
||||
bool mg_random(void *buf, size_t len) { // Use on-board RNG
|
||||
extern RNG_HandleTypeDef hrng;
|
||||
for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
|
||||
uint32_t r;
|
||||
HAL_RNG_GenerateRandomNumber(&hrng, &r);
|
||||
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
static void server(const void *args) {
|
||||
|
@ -481,8 +481,8 @@
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
</component>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.13.0">
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.13.0"/>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.16.0">
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
@ -587,8 +587,8 @@
|
||||
</file>
|
||||
<file attr="config" category="header" name="Mongoose\config\mongoose_config.h" version="1.0.0">
|
||||
<instance index="0">RTE\Network_Library\mongoose_config.h</instance>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.13.0"/>
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.13.0"/>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.16.0"/>
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
|
@ -9,13 +9,14 @@
|
||||
|
||||
#define BLINK_PERIOD_MS 1000 // LED blinking period in millis
|
||||
|
||||
void mg_random(void *buf, size_t len) { // Use on-board RNG
|
||||
bool mg_random(void *buf, size_t len) { // Use on-board RNG
|
||||
extern RNG_HandleTypeDef hrng;
|
||||
for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
|
||||
uint32_t r;
|
||||
HAL_RNG_GenerateRandomNumber(&hrng, &r);
|
||||
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
static void timer_fn(void *arg) {
|
||||
|
@ -499,8 +499,8 @@
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
</component>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.13.0">
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.13.0"/>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.16.0">
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
@ -671,8 +671,8 @@
|
||||
</file>
|
||||
<file attr="config" category="header" name="Mongoose\config\mongoose_config.h" version="1.0.0">
|
||||
<instance index="0">RTE\Network_Library\mongoose_config.h</instance>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.13.0"/>
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.13.0"/>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.16.0"/>
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
|
@ -14,13 +14,14 @@
|
||||
#define BLINK_PERIOD_MS 1000 // LED blinking period in millis
|
||||
|
||||
|
||||
void mg_random(void *buf, size_t len) { // Use on-board RNG
|
||||
bool mg_random(void *buf, size_t len) { // Use on-board RNG
|
||||
extern RNG_HandleTypeDef hrng;
|
||||
for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
|
||||
uint32_t r;
|
||||
HAL_RNG_GenerateRandomNumber(&hrng, &r);
|
||||
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
static void server(void *args) {
|
||||
|
@ -499,8 +499,8 @@
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
</component>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.13.0">
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.13.0"/>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.16.0">
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
@ -695,8 +695,8 @@
|
||||
</file>
|
||||
<file attr="config" category="header" name="Mongoose\config\mongoose_config.h" version="1.0.0">
|
||||
<instance index="0">RTE\Network_Library\mongoose_config.h</instance>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.13.0"/>
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.13.0"/>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.16.0"/>
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
|
@ -10,13 +10,14 @@
|
||||
#define BLINK_PERIOD_MS 1000 // LED blinking period in millis
|
||||
|
||||
|
||||
void mg_random(void *buf, size_t len) { // Use on-board RNG
|
||||
bool mg_random(void *buf, size_t len) { // Use on-board RNG
|
||||
extern RNG_HandleTypeDef hrng;
|
||||
for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
|
||||
uint32_t r;
|
||||
HAL_RNG_GenerateRandomNumber(&hrng, &r);
|
||||
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
static void server(void *args) {
|
||||
|
@ -481,8 +481,8 @@
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
</component>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.13.0">
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.13.0"/>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.16.0">
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
@ -595,8 +595,8 @@
|
||||
</file>
|
||||
<file attr="config" category="header" name="Mongoose\config\mongoose_config.h" version="1.0.0">
|
||||
<instance index="0">RTE\Network_Library\mongoose_config.h</instance>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.13.0"/>
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.13.0"/>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="7.16.0"/>
|
||||
<package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
|
||||
<targetInfos>
|
||||
<targetInfo name="Target 1"/>
|
||||
</targetInfos>
|
||||
|
@ -9,13 +9,14 @@
|
||||
|
||||
#define BLINK_PERIOD_MS 1000 // LED blinking period in millis
|
||||
|
||||
void mg_random(void *buf, size_t len) { // Use on-board RNG
|
||||
bool mg_random(void *buf, size_t len) { // Use on-board RNG
|
||||
extern RNG_HandleTypeDef hrng;
|
||||
for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
|
||||
uint32_t r;
|
||||
HAL_RNG_GenerateRandomNumber(&hrng, &r);
|
||||
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
static void timer_fn(void *arg) {
|
||||
|
@ -9,8 +9,8 @@
|
||||
<license>License.txt</license>
|
||||
<repository type="git">https://github.com/cesanta/mongoose.git</repository>
|
||||
<releases>
|
||||
<release version="7.13.0" date="2024-02-28" tag="7.13">
|
||||
See https://github.com/cesanta/mongoose/releases/tag/7.13
|
||||
<release version="7.16.0" date="2024-11-20" tag="7.16">
|
||||
See https://github.com/cesanta/mongoose/releases/tag/7.16
|
||||
</release>
|
||||
</releases>
|
||||
|
||||
@ -29,12 +29,12 @@
|
||||
</taxonomy>
|
||||
|
||||
<components>
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cversion="7.13.0">
|
||||
<component Cclass="Network Library" Cgroup="Mongoose" Cversion="7.16.0">
|
||||
<description>Mongoose HTTP/MQTT/Websocket Library</description>
|
||||
<files>
|
||||
<file category="header" name="Mongoose/mongoose.h"/>
|
||||
<file category="source" name="Mongoose/mongoose.c"/>
|
||||
<file category="header" name="Mongoose/config/mongoose_custom.h" attr="config" version="1.0.0"/>
|
||||
<file category="header" name="Mongoose/config/mongoose_config.h" attr="config" version="1.0.0"/>
|
||||
</files>
|
||||
</component>
|
||||
</components>
|
||||
|
Loading…
x
Reference in New Issue
Block a user