- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello, I want to write from my aplication in eCos only a bit, or led in the I/O ports in Nios II for mesure the timing latency. Can someone help me please? I don't know do this, and I don't find any documentation about.
Thanks, GuillemLink Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For my test I use :
# include <cyg/hal/io.h> unsigned char ledpio; myfunct() { IOWR(LED_PIO_BASE,0, 1); // 1 for bit 0 ................. IOWR(LED_PIO_BASE,0, 0); // or ledpio = ledpio|4; // 4 for bit 2 IOWR_8DIRECT(LED_PIO_BASE , 0, ledpio); .............. ledpio = ledpio&~4; IOWR_8DIRECT(LED_PIO_BASE , 0, ledpio); } LED_PIO_BASE is defined in cyg/hal/system.h for my project
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page