File tree 2 files changed +13
-0
lines changed
variants/NANO_RP2040_CONNECT
2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change 2
2
"target_overrides" : {
3
3
"*" : {
4
4
"target.printf_lib" : " std" ,
5
+ "target.macros_add" : [ " MBEDTLS_ENTROPY_NV_SEED" ],
5
6
"platform.stdio-buffered-serial" : false ,
6
7
"platform.stdio-baud-rate" : 115200 ,
7
8
"platform.default-serial-baud-rate" : 115200 ,
Original file line number Diff line number Diff line change @@ -94,4 +94,16 @@ void _ontouch1200bps_() {
94
94
reset_usb_boot (1 << digitalPinToPinName (LED_BUILTIN), 0 );
95
95
}
96
96
97
+ // Provide stubs for mbedtls entropy source
98
+ // The functions may be implemented using ECCx06 crypto chip
99
+ extern " C" {
100
+ WEAK int mbedtls_platform_std_nv_seed_read ( unsigned char *buf, size_t buf_len ) {
101
+ return -1 ;
102
+ }
103
+
104
+ WEAK int mbedtls_platform_std_nv_seed_write ( unsigned char *buf, size_t buf_len ) {
105
+ return -1 ;
106
+ }
107
+ }
108
+
97
109
#endif
You can’t perform that action at this time.
0 commit comments