資源簡介
在ESP32下,使用mbedtls庫,測試sha1和sha256/224 aes_ecb、aes_cbc的簡單DEMO
代碼片段和文件信息
/*?blink?Example
???This?example?code?is?in?the?Public?Domain?(or?CC0?licensed?at?your?option.)
???Unless?required?by?applicable?law?or?agreed?to?in?writing?this
???software?is?distributed?on?an?“AS?IS“?BASIS?WITHOUT?WARRANTIES?OR
???CONDITIONS?OF?ANY?KIND?either?express?or?implied.
*/
#include?
#include?“freertos/FreeRTOS.h“
#include?“freertos/task.h“
#include?“driver/gpio.h“
#include?“sdkconfig.h“
/*?Can?run?‘make?menuconfig‘?to?choose?the?GPIO?to?blink
???or?you?can?edit?the?following?line?and?set?a?number?here.
*/
#define?blink_GPIO?CONFIG_blink_GPIO
void?blink_task(void?*pvParameter)
{
????/*?Configure?the?IOMUX?register?for?pad?blink_GPIO?(some?pads?are
???????muxed?to?GPIO?on?reset?already?but?some?default?to?other
???????functions?and?need?to?be?switched?to?GPIO.?Consult?the
???????Technical?Reference?for?a?list?of?pads?and?their?default
???????functions.)
????*/
????gpio_pad_select_gpio(blink_GPIO);
????/*?Set?the?GPIO?as?a?push/pull?output?*/
????gpio_set_direction(blink_GPIO?GPIO_MODE_OUTPUT);
????while(1)?{
????????/*?blink?off?(output?low)?*/
????????gpio_set_level(blink_GPIO?0);
????????vTaskDelay(1000?/?portTICK_PERIOD_MS);
????????/*?blink?on?(output?high)?*/
????????gpio_set_level(blink_GPIO?1);
????????vTaskDelay(1000?/?portTICK_PERIOD_MS);
????}
}
void?app_main()
{
????xTaskCreate(&blink_task?“blink_task“?configMINIMAL_STACK_SIZE?NULL?5?NULL);
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件?????????202??2019-08-03?10:56??README.md
?????目錄???????????0??2019-08-06?10:47??bl
?????文件?????????234??2019-08-03?10:56??bl
?????文件?????????177??2019-08-03?10:56??bl
?????文件?????????157??2019-08-03?10:56??bl
?????目錄???????????0??2019-08-06?10:47??bl
?????文件??????????87??2019-08-03?10:56??bl
?????文件?????????313??2019-08-03?10:56??bl
?????文件????????1415??2019-08-03?10:56??bl
?????文件?????????145??2019-08-03?10:56??bl
?????文件???????????3??2019-08-03?10:56??bl
?????目錄???????????0??2019-08-06?10:49??hello_world\
?????文件?????????235??2019-08-03?10:56??hello_world\CMakeLists.txt
?????文件?????????183??2019-08-03?10:56??hello_world\Makefile
?????文件?????????170??2019-08-03?10:56??hello_world\README.md
?????目錄???????????0??2019-08-06?11:16??hello_world\build\
?????目錄???????????0??2019-08-06?10:49??hello_world\build\app_trace\
?????文件???????17374??2019-08-06?10:49??hello_world\build\app_trace\app_trace.d
?????文件????????2016??2019-08-06?10:49??hello_world\build\app_trace\app_trace.o
?????文件???????14923??2019-08-06?10:49??hello_world\build\app_trace\app_trace_util.d
?????文件???????16148??2019-08-06?10:49??hello_world\build\app_trace\app_trace_util.o
?????文件?????????289??2019-08-06?10:49??hello_world\build\app_trace\component_project_vars.mk
?????目錄???????????0??2019-08-06?10:49??hello_world\build\app_trace\gcov\
?????文件???????15871??2019-08-06?10:49??hello_world\build\app_trace\gcov\gcov_rtio.d
?????文件????????2024??2019-08-06?10:49??hello_world\build\app_trace\gcov\gcov_rtio.o
?????文件???????14743??2019-08-06?10:49??hello_world\build\app_trace\host_file_io.d
?????文件????????2020??2019-08-06?10:49??hello_world\build\app_trace\host_file_io.o
?????文件???????22804??2019-08-06?10:49??hello_world\build\app_trace\libapp_trace.a
?????目錄???????????0??2019-08-06?10:49??hello_world\build\app_update\
?????文件?????????294??2019-08-06?10:49??hello_world\build\app_update\component_project_vars.mk
?????文件???????18286??2019-08-06?10:49??hello_world\build\app_update\esp_ota_ops.d
............此處省略1968個文件信息
評論
共有 條評論