Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Created a buffer implementation which uses the autopointer registers . #26

Open
wants to merge 1 commit into
base: linux-descriptors
Choose a base branch
from

Conversation

RacingTornado
Copy link

@RacingTornado RacingTornado commented Jul 11, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants