Skip to content

Commit 5285902

Browse files
committed
Fixing naming convention to X2Cscope
1 parent 601ff3a commit 5285902

File tree

7 files changed

+5
-5
lines changed

7 files changed

+5
-5
lines changed

X2CScope/inc/Scope_Main.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@
2828

2929
#define SCOPE_MAIN_FUNCTIONS { SCOPE_MAIN_ID, \
3030
(void (*)(void*))Scope_Main_Update, \
31-
(void (*)(void*, uint16))Scope_Main_Init, \
31+
(void (*)(void*, void*, uint16))Scope_Main_Init, \
3232
(uint8 (*)(void*, uint8*))Scope_Main_Load, \
3333
(uint8 (*)(void*, uint8*, uint8))Scope_Main_Save, \
3434
(void* (*)(void*, uint16))Scope_Main_GetAddress }
3535

3636
/* public prototypes */
3737
void Scope_Main_Update(SCOPE_MAIN *pTScope);
38-
void Scope_Main_Init(SCOPE_MAIN *pTScope,void* scopeArray, uint16 scope_size);
38+
void Scope_Main_Init(SCOPE_MAIN *pTScope,void *scopeArray, uint16 scope_size);
3939
uint8 Scope_Main_Load(SCOPE_MAIN *pTScope,uint8 *ucData);
4040
uint8 Scope_Main_Save(SCOPE_MAIN *pTScope,uint8 *ucData, uint8 ucFRMlen);
4141
void* Scope_Main_GetAddress(const SCOPE_MAIN* block, uint16 elementId);

X2CScope/inc/X2C.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ extern const tParameterTable parameterIdTable[];
2727
/**********************************************************************************************************************/
2828
/** Prototypes **/
2929
/**********************************************************************************************************************/
30-
void X2C_Init(uint16 scopeSize);
30+
void X2C_Init(void* scopeArray, uint16 scopeSize);
3131
void X2C_Update(void);
3232

3333
#endif
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Copyright (c) [2012-2020] Microchip Technology Inc.
2424
#include "X2Cscope.h"
2525

2626
// SCOPE_SIZE is defined in X2Cscope.h, it is the size of the buffer that is sent to the host
27-
int8_t ScopeArray[SCOPE_SIZE];
27+
int8_t X2CscopeArray[X2CSCOPE_BUFFER_SIZE];
2828

2929
// compalitionDate_t is defined in X2Cscope.h
3030
// it can be read out by the Get Device Info X2Cscope service
@@ -33,5 +33,5 @@ compilationDate_t compilationDate = {__DATE__, __TIME__};
3333
void X2Cscope_Init(void)
3434
{
3535
X2Cscope_HookUARTFunctions(sendSerial, receiveSerial, isReceiveDataAvailable, isSendReady);
36-
X2Cscope_Initialise((void*)ScopeArray, SCOPE_SIZE, APP_VERSION, compilationDate);
36+
X2Cscope_Initialise((void*)X2CscopeArray, X2CSCOPE_BUFFER_SIZE, X2CSCOPE_APP_VERSION, compilationDate);
3737
}

0 commit comments

Comments
 (0)