forked from emsec/ChameleonMini
-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from aveao/rrg-cm-ceresfix
Port ISO15693 codec and applications updates by ceres-c to the right branch
- Loading branch information
Showing
27 changed files
with
406 additions
and
277 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
d4a7926
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ave: Following up from discord.
It looks to me like you have added
extern
variables forResponseByteCount
andUid
already. So I have a couple of suggestions to fix what you observed happened in the transition from this build to the currently highlighted build. This is a dry read of the source changes. I hope the second pair of eyes on the code helps you to debug:uint16_t ResponseByteCount
, remove the prefixuint16_t
. The difference is that with the type specifier, you are creating a local variable with the same name as the global one you want to save, but this doesn't explicitly set the global variable you created.uint16_t TITagitstandardAppProcess(uint8_t *FrameBuf, uint16_t FrameBytes)
, you probably still want to keep the lineTITagitstandardGetUid(Uid);
.void EM4233SetUid(ConfigurationUidType NewUid)
, I think it makes more sense to writeMemoryWriteBlock(Uid, EM4233_MEM_UID_ADDRESS, ActiveConfiguration.UidSize)
.uint16_t EM4233AppProcess(uint8_t *FrameBuf, uint16_t FrameBytes)
, I think you want to keepEM4233GetUid(Uid)
?EM4233AppProcess(uint8_t *FrameBuf, uint16_t FrameBytes)
, sometimes you need to be careful about braces in switch statements when declaring local variables. So I might try adding the following just to be sure:uint16_t EM4233AppProcess(uint8_t *FrameBuf, uint16_t FrameBytes)
, do you want to keepAnd similarly for the deleted lines in
uint16_t TITagitstandardAppProcess(uint8_t *FrameBuf, uint16_t FrameBytes)
and inuint16_t VicinityAppProcess(uint8_t *FrameBuf, uint16_t FrameBytes)
.There are still some diffs I will take a look over in the file
Firmware/Chameleon-Mini/Codec/ISO15693.c
.d4a7926
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Woah, quite a lot went into this PR.
ChameleonMini/Firmware/Chameleon-Mini/Application/TITagitstandard.c
Line 212 in d4a7926
MemoryWriteBlock
must be fed withNewUid
.State
to be local: that piece of code updates the globalState
variable if particular conditions are met.ChameleonMini/Firmware/Chameleon-Mini/Codec/ISO15693.c
Line 663 in d4a7926