Skip to content

Commit 90dec6c

Browse files
committed
Add dummy implementations so that project compiles, and add Warning to tell user to contact Microchip to get Crypto Authentication Library
1 parent 08739f8 commit 90dec6c

File tree

5 files changed

+70
-9
lines changed

5 files changed

+70
-9
lines changed

dspic33ck-canfd-ta100/boot.X/mcc_generated_files/CryptoAuth_init.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
TERMS.
2121
*/
2222

23+
#include <stdbool.h>
2324
#include "CryptoAuth_init.h"
2425

2526
struct atca_command _gmyCommand;
@@ -29,9 +30,6 @@ struct atca_device _gMyDevice = {&_gmyCommand, &_gmyIface};
2930
ATCAIfaceCfg secureCfg = {
3031
.iface_type = ATCA_SPI_IFACE,
3132
.devtype = TA100,
32-
.atcai2c.slave_address = 0x2E,
33-
.atcai2c.bus = 2,
34-
.atcai2c.baud = 100000,
3533
.wake_delay = 1560,
3634
.rx_retries = 20
3735
};
Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,17 @@
1-
// This file intentionally cleared. To obtain the original source contact Microchip.
1+
// This file intentionally cleared. To obtain the original source contact Microchip.
2+
#include "cryptoauthlib.h"
3+
4+
ATCA_STATUS atcab_init( void* i)
5+
{
6+
return !ATCA_SUCCESS;
7+
}
8+
9+
void atcab_lock_data_slot(int i)
10+
{
11+
return;
12+
}
13+
14+
ATCA_STATUS atcab_verify_extern(uint8_t *a, uint8_t *b, const uint8_t *c, bool *d)
15+
{
16+
return !ATCA_SUCCESS;
17+
}
Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,50 @@
1-
// This file intentionally cleared. To obtain the original source contact Microchip.
1+
// This file intentionally cleared. To obtain the original source contact Microchip.
2+
#include <stdint.h>
3+
#include <stdbool.h>
4+
5+
#warning "TA100 FUNCTIONALITY DISABLED!!!! Contact Microchip to get Crypto Authentication Library support"
6+
7+
typedef struct
8+
{
9+
}ATCAIface;
10+
11+
typedef struct
12+
{
13+
uint16_t iface_type;
14+
uint16_t devtype;
15+
uint16_t wake_delay;
16+
uint16_t rx_retries;
17+
} ATCAIfaceCfg;
18+
19+
typedef struct atca_command
20+
{
21+
}atca_command;
22+
23+
typedef struct atca_iface
24+
{
25+
}atca_iface;
26+
27+
typedef struct atca_device
28+
{
29+
atca_command *a;
30+
atca_iface *b;
31+
}atca_device;
32+
33+
typedef enum
34+
{
35+
ATCA_SUCCESS = 0x00,
36+
ATCA_COMM_FAIL = 0x00,
37+
ATCA_UNIMPLEMENTED = 0x00,
38+
} ATCA_STATUS;
39+
40+
#define ATCA_TRACE(s, m) s
41+
#define ATCA_SPI_IFACE 0
42+
#define TA100 0
43+
#define ATCA_MAIN_PROCESSOR_RD_CSR 0
44+
#define ATCA_FAST_CRYPTO_RD_FSR 0
45+
#define ATCA_RX_FAIL 0
46+
#define ATCA_SMALL_BUFFER 0
47+
48+
ATCA_STATUS atcab_init( void* i);
49+
void atcab_lock_data_slot(int i);
50+
ATCA_STATUS atcab_verify_extern(uint8_t *a, uint8_t *b, const uint8_t *c, bool *d);
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
// This file intentionally cleared. To obtain the original source contact Microchip.
1+
// This file intentionally cleared. To obtain the original source contact Microchip.
2+
#include "atca_basic.h"

dspic33ck-canfd-ta100/boot.X/nbproject/configurations.xml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,6 @@
292292
<makeCustomizationNormalizeHexFile>false</makeCustomizationNormalizeHexFile>
293293
</makeCustomizationType>
294294
<C30>
295-
<property key="appendMe" value=""/>
296295
<property key="code-model" value="default"/>
297296
<property key="const-model" value="default"/>
298297
<property key="data-model" value="default"/>
@@ -361,7 +360,6 @@
361360
</C30-CO>
362361
<C30-LD>
363362
<property key="additional-options-use-response-files" value="false"/>
364-
<property key="appendMe" value=""/>
365363
<property key="boot-eeprom" value="no_eeprom"/>
366364
<property key="boot-flash" value="no_flash"/>
367365
<property key="boot-ram" value="no_ram"/>
@@ -470,7 +468,6 @@
470468
value="Press to browse for a specific firmware version"/>
471469
<property key="ToolFirmwareOption.UseLatestFirmware" value="true"/>
472470
<property key="debugoptions.useswbreakpoints" value="false"/>
473-
<property key="firmware.download.all" value="false"/>
474471
<property key="hwtoolclock.frcindebug" value="false"/>
475472
<property key="memories.aux" value="false"/>
476473
<property key="memories.bootflash" value="false"/>

0 commit comments

Comments
 (0)