This file contains hidden or 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
| ---------------------------------------------------------------------------------- | |
| -- Company: | |
| -- Engineer: | |
| -- | |
| -- Create Date: 03.07.2021 21:17:08 | |
| -- Design Name: | |
| -- Module Name: quadrature_decoder - Behavioral | |
| -- Project Name: | |
| -- Target Devices: | |
| -- Tool Versions: |
This file contains hidden or 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
| --********************************************************************** | |
| -- Copyright (c) 2011-2014 by XESS Corp <http://www.xess.com>. | |
| -- All rights reserved. | |
| -- | |
| -- This library is free software; you can redistribute it and/or | |
| -- modify it under the terms of the GNU Lesser General Public | |
| -- License as published by the Free Software Foundation; either | |
| -- version 3.0 of the License, or (at your option) any later version. | |
| -- | |
| -- This library is distributed in the hope that it will be useful, |
This file contains hidden or 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
| library IEEE; | |
| use IEEE.STD_LOGIC_1164.all; | |
| use IEEE.NUMERIC_STD.all; | |
| use IEEE.math_real.all; | |
| package TYPES_PKG is | |
| type BOOLEAN_VECTOR is array(NATURAL range <>) of BOOLEAN; -- this type is already defined in VHDL-2008, use only for VHDL-93 implementations | |
| type INTEGER_VECTOR is array(NATURAL range <>) of INTEGER; -- this type is already defined in VHDL-2008, use only for VHDL-93 implementations | |
| type UNSIGNED_VECTOR is array(INTEGER range <>) of UNSIGNED; -- works only in VHDL-2008 | |
| type SIGNED_VECTOR is array(INTEGER range <>) of SIGNED; -- works only in VHDL-2008 |
This file contains hidden or 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
| #include <SPI.h> | |
| #include <Ethernet.h> | |
| void setup() { | |
| /* https://www.arduino.cc/en/Guide/MKRETHShield | |
| * As the W5500 and SD card share the SPI bus, | |
| * only one at a time can be active. | |
| * If you are using both peripherals in your program, this should be taken care of by the corresponding libraries. | |
| * If you're not using one of the peripherals in your program, however, you'll need to explicitly deselect it. | |
| * To do this with the SD card, set pin 4 as an output and write a high to it. |
This file contains hidden or 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
| #!/bin/bash | |
| PRU_STEPPER_link="$(readlink -f /home/debian/bin/bb_PRU_STEPPER.out)" | |
| fw0_link=${PRU_STEPPER_link} |
This file contains hidden or 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
| // Based on LAB 6: Blinking LEDs with RPMsg from Linux User Space. | |
| // http://processors.wiki.ti.com/index.php/PRU_Training:_Hands-on_Labs#LAB_6:_Blinking_LEDs_with_RPMsg_from_Linux_User_Space | |
| /* | |
| * Copyright (C) 2016-2018 Texas Instruments Incorporated - http://www.ti.com/ | |
| * | |
| * | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted provided that the following conditions | |
| * are met: |
This file contains hidden or 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
| /* | |
| * Copyright (C) 2015 Texas Instruments Incorporated - http://www.ti.com/ | |
| * | |
| * | |
| * Redistribution and use in source and binary forms, with or without | |
| * modification, are permitted provided that the following conditions | |
| * are met: | |
| * | |
| * * Redistributions of source code must retain the above copyright | |
| * notice, this list of conditions and the following disclaimer. |
This file contains hidden or 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
| #include <scpiparser.h> | |
| #include <Arduino.h> | |
| #define NUMBEROFCHANNELS 2 | |
| struct scpi_parser_context ctx; | |
| scpi_error_t identify(struct scpi_parser_context* context, struct scpi_token* command); | |
| scpi_error_t reset(struct scpi_parser_context* context, struct scpi_token* command); | |
| scpi_error_t get_digital_1(struct scpi_parser_context* context, struct scpi_token* command); |
This file contains hidden or 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
| #include <SPI.h> | |
| #include <LCD_screen.h> | |
| #include <LCD_screen_font.h> | |
| #include <LCD_utilities.h> | |
| #include <Screen_HX8353E.h> | |
| #include <Terminal12e.h> | |
| #include <Terminal6e.h> | |
| #include <Terminal8e.h> |