background preloader

Narzedzia

Facebook Twitter

Programming STM32F10x I/O port pins. Previously we learned how to compile STM32VL Discovey projects that are included in package.

Programming STM32F10x I/O port pins

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.

10BASE-T FPGA interface - A recipe to send Ethernet traffic

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. Managing Scripts and Configurations on Github with a script. 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" 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.

Git Reference

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. About This Site // Think Like (a) Git. Welcome to Cloud Foundry. Lazy lists in Python. 3. Data model. 3.1.

3. Data model

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. 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. Some objects contain references to “external” resources such as open files or windows. Types affect almost all aspects of object behavior.

Js coffe jquery

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?

Useful YouTube URL Tricks

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.

Css

Source Code Formatter for Blogger, Blogspot , Blog & Blogging, Format Formatting Tool. Twitter bootstrap. Backbone.