update CMSIS-pack to 7.16

This commit is contained in:
Sergio R. Caprile 2024-11-20 14:51:29 -03:00
parent fbee9e4bb6
commit 428fc43cef
24 changed files with 70 additions and 59 deletions

View File

@ -469,8 +469,8 @@
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>
</component> </component>
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="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.13.0"/> <package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
<targetInfos> <targetInfos>
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>
@ -561,8 +561,8 @@
</file> </file>
<file attr="config" category="header" name="Mongoose\config\mongoose_config.h" version="1.0.0"> <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> <instance index="0">RTE\Network_Library\mongoose_config.h</instance>
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="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.13.0"/> <package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
<targetInfos> <targetInfos>
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>

View File

@ -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 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; extern RNG_HandleTypeDef hrng;
for (size_t n = 0; n < len; n += sizeof(uint32_t)) { for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
uint32_t r; uint32_t r;
HAL_RNG_GenerateRandomNumber(&hrng, &r); HAL_RNG_GenerateRandomNumber(&hrng, &r);
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r)); memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
} }
return true;
} }
static void timer_fn(void *arg) { static void timer_fn(void *arg) {

View File

@ -508,8 +508,8 @@
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>
</component> </component>
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="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.13.0"/> <package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
<targetInfos> <targetInfos>
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>
@ -658,8 +658,8 @@
</file> </file>
<file attr="config" category="header" name="Mongoose\config\mongoose_config.h" version="1.0.0"> <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> <instance index="0">RTE\Network_Library\mongoose_config.h</instance>
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="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.13.0"/> <package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
<targetInfos> <targetInfos>
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>

View File

@ -21,13 +21,14 @@ void SysTick_Handler (void) {
xPortSysTickHandler(); 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; extern RNG_HandleTypeDef hrng;
for (size_t n = 0; n < len; n += sizeof(uint32_t)) { for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
uint32_t r; uint32_t r;
HAL_RNG_GenerateRandomNumber(&hrng, &r); HAL_RNG_GenerateRandomNumber(&hrng, &r);
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r)); memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
} }
return true;
} }
static void server(void *args) { static void server(void *args) {

View File

@ -533,8 +533,8 @@
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>
</component> </component>
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="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.13.0"/> <package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
<targetInfos> <targetInfos>
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>
@ -619,8 +619,8 @@
</file> </file>
<file attr="config" category="header" name="Mongoose\config\mongoose_config.h" version="1.0.0"> <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> <instance index="0">RTE\Network_Library\mongoose_config.h</instance>
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="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.13.0"/> <package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
<targetInfos> <targetInfos>
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>

View File

@ -18,12 +18,13 @@ void SysTick_Handler (void) {
xPortSysTickHandler(); 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)) { for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
uint32_t r; uint32_t r;
HAL_RNG_GenerateRandomNumber(&hrng, &r); HAL_RNG_GenerateRandomNumber(&hrng, &r);
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r)); memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
} }
return true;
} }
static void server(void *args) { static void server(void *args) {

View File

@ -490,8 +490,8 @@
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>
</component> </component>
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="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.13.0"/> <package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
<targetInfos> <targetInfos>
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>
@ -582,8 +582,8 @@
</file> </file>
<file attr="config" category="header" name="Mongoose\config\mongoose_config.h" version="1.0.0"> <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> <instance index="0">RTE\Network_Library\mongoose_config.h</instance>
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="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.13.0"/> <package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
<targetInfos> <targetInfos>
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>

View File

@ -17,13 +17,14 @@ void SysTick_Handler(void) {
xPortSysTickHandler(); 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; extern RNG_HandleTypeDef hrng;
for (size_t n = 0; n < len; n += sizeof(uint32_t)) { for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
uint32_t r; uint32_t r;
HAL_RNG_GenerateRandomNumber(&hrng, &r); HAL_RNG_GenerateRandomNumber(&hrng, &r);
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r)); memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
} }
return true;
} }
static void timer_fn(void *arg) { static void timer_fn(void *arg) {

View File

@ -532,8 +532,8 @@
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>
</component> </component>
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="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.13.0"/> <package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
<targetInfos> <targetInfos>
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>
@ -688,8 +688,8 @@
</file> </file>
<file attr="config" category="header" name="Mongoose\config\mongoose_config.h" version="1.0.0"> <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> <instance index="0">RTE\Network_Library\mongoose_config.h</instance>
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="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.13.0"/> <package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
<targetInfos> <targetInfos>
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>

View File

@ -14,13 +14,14 @@
#define BLINK_PERIOD_MS 1000 // LED blinking period in millis #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; extern RNG_HandleTypeDef hrng;
for (size_t n = 0; n < len; n += sizeof(uint32_t)) { for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
uint32_t r; uint32_t r;
HAL_RNG_GenerateRandomNumber(&hrng, &r); HAL_RNG_GenerateRandomNumber(&hrng, &r);
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r)); memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
} }
return true;
} }
static void server(void *args) { static void server(void *args) {

View File

@ -514,8 +514,8 @@
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>
</component> </component>
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="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.13.0"/> <package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
<targetInfos> <targetInfos>
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>
@ -612,8 +612,8 @@
</file> </file>
<file attr="config" category="header" name="Mongoose\config\mongoose_config.h" version="1.0.0"> <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> <instance index="0">RTE\Network_Library\mongoose_config.h</instance>
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="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.13.0"/> <package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
<targetInfos> <targetInfos>
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>

View File

@ -9,13 +9,14 @@
#define BLINK_PERIOD_MS 1000 // LED blinking period in millis #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; extern RNG_HandleTypeDef hrng;
for (size_t n = 0; n < len; n += sizeof(uint32_t)) { for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
uint32_t r; uint32_t r;
HAL_RNG_GenerateRandomNumber(&hrng, &r); HAL_RNG_GenerateRandomNumber(&hrng, &r);
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r)); memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
} }
return true;
} }
static void timer_fn(void *arg) { static void timer_fn(void *arg) {

View File

@ -499,8 +499,8 @@
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>
</component> </component>
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="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.13.0"/> <package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
<targetInfos> <targetInfos>
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>
@ -687,8 +687,8 @@
</file> </file>
<file attr="config" category="header" name="Mongoose\config\mongoose_config.h" version="1.0.0"> <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> <instance index="0">RTE\Network_Library\mongoose_config.h</instance>
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="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.13.0"/> <package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
<targetInfos> <targetInfos>
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>

View File

@ -10,13 +10,14 @@
#define BLINK_PERIOD_MS 1000 // LED blinking period in millis #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; extern RNG_HandleTypeDef hrng;
for (size_t n = 0; n < len; n += sizeof(uint32_t)) { for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
uint32_t r; uint32_t r;
HAL_RNG_GenerateRandomNumber(&hrng, &r); HAL_RNG_GenerateRandomNumber(&hrng, &r);
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r)); memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
} }
return true;
} }
static void server(const void *args) { static void server(const void *args) {

View File

@ -481,8 +481,8 @@
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>
</component> </component>
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="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.13.0"/> <package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
<targetInfos> <targetInfos>
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>
@ -587,8 +587,8 @@
</file> </file>
<file attr="config" category="header" name="Mongoose\config\mongoose_config.h" version="1.0.0"> <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> <instance index="0">RTE\Network_Library\mongoose_config.h</instance>
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="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.13.0"/> <package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
<targetInfos> <targetInfos>
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>

View File

@ -9,13 +9,14 @@
#define BLINK_PERIOD_MS 1000 // LED blinking period in millis #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; extern RNG_HandleTypeDef hrng;
for (size_t n = 0; n < len; n += sizeof(uint32_t)) { for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
uint32_t r; uint32_t r;
HAL_RNG_GenerateRandomNumber(&hrng, &r); HAL_RNG_GenerateRandomNumber(&hrng, &r);
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r)); memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
} }
return true;
} }
static void timer_fn(void *arg) { static void timer_fn(void *arg) {

View File

@ -499,8 +499,8 @@
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>
</component> </component>
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="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.13.0"/> <package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
<targetInfos> <targetInfos>
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>
@ -671,8 +671,8 @@
</file> </file>
<file attr="config" category="header" name="Mongoose\config\mongoose_config.h" version="1.0.0"> <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> <instance index="0">RTE\Network_Library\mongoose_config.h</instance>
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="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.13.0"/> <package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
<targetInfos> <targetInfos>
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>

View File

@ -14,13 +14,14 @@
#define BLINK_PERIOD_MS 1000 // LED blinking period in millis #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; extern RNG_HandleTypeDef hrng;
for (size_t n = 0; n < len; n += sizeof(uint32_t)) { for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
uint32_t r; uint32_t r;
HAL_RNG_GenerateRandomNumber(&hrng, &r); HAL_RNG_GenerateRandomNumber(&hrng, &r);
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r)); memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
} }
return true;
} }
static void server(void *args) { static void server(void *args) {

View File

@ -499,8 +499,8 @@
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>
</component> </component>
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="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.13.0"/> <package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
<targetInfos> <targetInfos>
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>
@ -695,8 +695,8 @@
</file> </file>
<file attr="config" category="header" name="Mongoose\config\mongoose_config.h" version="1.0.0"> <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> <instance index="0">RTE\Network_Library\mongoose_config.h</instance>
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="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.13.0"/> <package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
<targetInfos> <targetInfos>
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>

View File

@ -10,13 +10,14 @@
#define BLINK_PERIOD_MS 1000 // LED blinking period in millis #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; extern RNG_HandleTypeDef hrng;
for (size_t n = 0; n < len; n += sizeof(uint32_t)) { for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
uint32_t r; uint32_t r;
HAL_RNG_GenerateRandomNumber(&hrng, &r); HAL_RNG_GenerateRandomNumber(&hrng, &r);
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r)); memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
} }
return true;
} }
static void server(void *args) { static void server(void *args) {

View File

@ -481,8 +481,8 @@
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>
</component> </component>
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="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.13.0"/> <package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
<targetInfos> <targetInfos>
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>
@ -595,8 +595,8 @@
</file> </file>
<file attr="config" category="header" name="Mongoose\config\mongoose_config.h" version="1.0.0"> <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> <instance index="0">RTE\Network_Library\mongoose_config.h</instance>
<component Cclass="Network Library" Cgroup="Mongoose" Cvendor="Cesanta" Cversion="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.13.0"/> <package name="Mongoose" schemaVersion="1.7.2" url="https://mongoose.ws/downloads/armpack/" vendor="Cesanta" version="7.16.0"/>
<targetInfos> <targetInfos>
<targetInfo name="Target 1"/> <targetInfo name="Target 1"/>
</targetInfos> </targetInfos>

View File

@ -9,13 +9,14 @@
#define BLINK_PERIOD_MS 1000 // LED blinking period in millis #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; extern RNG_HandleTypeDef hrng;
for (size_t n = 0; n < len; n += sizeof(uint32_t)) { for (size_t n = 0; n < len; n += sizeof(uint32_t)) {
uint32_t r; uint32_t r;
HAL_RNG_GenerateRandomNumber(&hrng, &r); HAL_RNG_GenerateRandomNumber(&hrng, &r);
memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r)); memcpy((char *) buf + n, &r, n + sizeof(r) > len ? len - n : sizeof(r));
} }
return true;
} }
static void timer_fn(void *arg) { static void timer_fn(void *arg) {

View File

@ -9,8 +9,8 @@
<license>License.txt</license> <license>License.txt</license>
<repository type="git">https://github.com/cesanta/mongoose.git</repository> <repository type="git">https://github.com/cesanta/mongoose.git</repository>
<releases> <releases>
<release version="7.13.0" date="2024-02-28" tag="7.13"> <release version="7.16.0" date="2024-11-20" tag="7.16">
See https://github.com/cesanta/mongoose/releases/tag/7.13 See https://github.com/cesanta/mongoose/releases/tag/7.16
</release> </release>
</releases> </releases>
@ -29,12 +29,12 @@
</taxonomy> </taxonomy>
<components> <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> <description>Mongoose HTTP/MQTT/Websocket Library</description>
<files> <files>
<file category="header" name="Mongoose/mongoose.h"/> <file category="header" name="Mongoose/mongoose.h"/>
<file category="source" name="Mongoose/mongoose.c"/> <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> </files>
</component> </component>
</components> </components>