Programming STM32F10x I/O port pins. Previously we learned how to compile STM32VL Discovey projects that are included in package. But in order to understand how to write own programs we need to get to some basics. I think best place to start is input and output system (I/O). Before we begin to write some code lets go through whats in side STM32 ports. I you look in to STM32 reference manual you’ll find that I/O system is pretty flexible. Port pins are able to work in several modes: Input floating;Input pull-up;Input pull-down;Analog;Output open drain;Output push-pull;Alternate function push-pull;Alternate function open drain. Pins are organized as 16 bit ports that have their names like PORTA, PORTB, PORC, PORTD… Despite the fact that ports are 16-bit wide they are controlled with 32-bit words.
Each port has several special GPIO registers. According to this, port output register can be written as word wide (16-bit) register but also it is possible atomic bit manipulation with set/reset and reset registers. Read. VHDL Modules, Cores, Components. 10BASE-T FPGA interface - A recipe to send Ethernet traffic. 10BASE-T FPGA interface - A recipe to send Ethernet traffic Here we demonstrate how to send Ethernet traffic directly from an FPGA to a PC. For this recipe, you'll need: An FPGA development board, with 2 free IOs and a 20MHz clock.A PC with an Ethernet card, and the TCP-IP stack installed (if you can browse the Internet, you're good).Optionally, a network hub or switch. 1. Connect the FPGA board to the Ethernet network Here's a view of a typical test setup, using an Ethernet hub or switch. Using a hub or switch allows the PC to stay connected to your regular network (if you have one) while doing this experiment.
Connect two IOs from the FPGA board to an Ethernet cable. If the cable's other end connects to a hub or switch (like on the picture above), use pin 1 and 2 of the Ethernet cable.If the cable's other end connects directly to the PC, use pin 3 and 6. For the pin numbers, get help from this picture: 2. Type "ipconfig /all" on the command-line. 3. Compile the following Verilog HDL code. 4. Managing Scripts and Configurations on Github with a script | Linux Tidbits. Errol Schwartz. Sublime Text 2 – If you haven’t tried it yet you’re missing out » Piero Toffanin's Blog.
Gist with Blogger's "Dynamic Views" | Moski Doski's blog. Web Graphics by jg. Create a new Fiddle - jsFiddle. Gist. Git Reference. Git reset is probably the most confusing command written by humans, but it can be very useful once you get the hang of it. There are three specific invocations of it that are generally helpful. git reset HEAD unstage files from index and reset pointer to HEAD First, you can use it to unstage something that has been accidentally staged.
Let's say that you have modified two files and want to record them into two different commits. You should stage and commit one, then stage and commit the other. Let's see what it looks like to unstage something. . $ git status -s M README M hello.rb $ git add .$ git status -sM README M hello.rb $ git reset HEAD -- hello.rb Unstaged changes after reset: M hello.rb $ git status -sM README M hello.rb Now you can run a git commit which will just record the changes to the README file, not the now unstaged hello.rb.
If you want to be able to just run git unstage, you can easily setup an alias in Git. About This Site // Think Like (a) Git. Welcome to Cloud Foundry. Lazy lists in Python. 3. Data model. 3.1. Objects, values and types Objects are Python’s abstraction for data. All data in a Python program is represented by objects or by relations between objects. (In a sense, and in conformance to Von Neumann’s model of a “stored program computer,” code is also represented by objects.) Every object has an identity, a type and a value. An object’s identity never changes once it has been created; you may think of it as the object’s address in memory. Objects are never explicitly destroyed; however, when they become unreachable they may be garbage-collected.
CPython implementation detail: CPython currently uses a reference-counting scheme with (optional) delayed detection of cyclically linked garbage, which collects most objects as soon as they become unreachable, but is not guaranteed to collect garbage containing circular references. Note that the use of the implementation’s tracing or debugging facilities may keep objects alive that would normally be collectable. 3.3. 3.4. 3.4.1. Object.
Html workflow. App engine. Useful YouTube URL Tricks. Ever wanted to share a YouTube video with someone but want to share just a certain part of it without having them start from the beginning? Need to have a video automatically loop? YouTube URLs can be modified with various query string parameters to change certain features and how to video player works. In most cases, parameters follow the video URL with an ampersand (&). The most commonly seen parameter is probably &feature=related which shows that the video was found through clicking on a Related Video. This parameter basically does absolutely nothing for the actual user though.
This guide is outdated. Useful YouTube Player Parameters There are many URL parameters you can add to YouTube video URLs as well as the embed codes. Click here to jump to the Embedded Video URL Parameters. Video URL Parameters There are parameters to add to the URL of a YouTube video. High Quality Videos YouTube supports up to HD quality videos, but some videos might not have an HD format available.
Loop Video.
Source Code Formatter for Blogger, Blogspot , Blog & Blogging, Format Formatting Tool. Twitter bootstrap. Backbone.