Created a buffer implementation which uses the autopointer registers . #26
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit adds buffer support to the FX2. The steps to follow are similar to the other commits:
To run this first clone the repository, then cd to the fx2lib directory and checkout this particular branch.
After this run 2 commands:
git submodule init
git submodule update
make
After this , navigate to the examples/buffers directory and execute the following commands:
make
Now push the FX2 device inside the USB port(remove any udev rules you may have set up for Cypresse's VID and PID) and run
make fx2_download
Assuming you are using the exact same code with UART pins not modfied , the TX pin is connected to PA2. The baud rate is 115200. You can open a minicom terminal
sudo minicom -w config
and then load the program. (Generally the terminal must be open before loading the program.)
You should see the bytes on the minicom terminal
As per the previous commit , the following registers have been renamed
-__sfr __at 0x9A AUTOPTRH1; +__sfr __at 0x9A AUTOPTR1H;
-__sfr __at 0x9B AUTOPTRL1; +__sfr __at 0x9B AUTOPTR1L;
-__sfr __at 0x9D AUTOPTRH2; +__sfr __at 0x9D AUTOPTR2H;
-__sfr __at 0x9E AUTOPTRL2; -__sfr __at 0x9E AUTOPTR2L;
This causes the Travis build to fail. If you let me know whether you want to create another definition or not to maintain compatibility, I can make the required changes.