Skip to content

Commit

Permalink
ESP32C3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
rojer committed Jul 30, 2022
1 parent d7517f2 commit 1b24df9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
15 changes: 15 additions & 0 deletions include/esp32c3/mbedtls_platform_config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*
* Copyright (c) 2014-2018 Cesanta Software Limited
* All rights reserved
*/

#pragma once

// TODO(rojer): Enable hardware crypto acceleration.
//#define MBEDTLS_AES_ALT
//#define MBEDTLS_MPI_MUL_MPI_ALT
//#define MBEDTLS_MPI_EXP_MOD_ALT

#define MBEDTLS_CIPHER_MODE_XTS

/* no_extern_c_check */
8 changes: 8 additions & 0 deletions mos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,14 @@ conds:
includes:
- include/cc32xx

- when: mos.platform == "esp32c3"
apply:
build_vars:
# TODO(rojer): Enable hardware crypto acceleration.
ESP_IDF_SDKCONFIG_OPTS: >
${build_vars.ESP_IDF_SDKCONFIG_OPTS}
CONFIG_MBEDTLS_HARDWARE_MPI=n
- when: build_vars.MGOS_MBEDTLS_ENABLE_ATCA == "1"
apply:
libs:
Expand Down

0 comments on commit 1b24df9

Please sign in to comment.