Quantcast
Channel: Polisoft Design » Drivers
Browsing latest articles
Browse All 5 View Live

Image may be NSFW.
Clik here to view.

A Matter of Interrupts and Mutual Exclusion – Part 1

Aside form programming skills the embedded developer has to think of solving problems in a different mindset than the average PC programmer. A good example is the interrupt handling that the embedded...

View Article



Image may be NSFW.
Clik here to view.

A Matter of Interrupts and Mutual Exclusion – Part 2

Without doubt, the presence of the FIFO buffer helps (as we have seen before). The pieces of software that are needed to handle the FIFO are: the producer: Rx ISR (the receive interrupt service...

View Article

A Matter of Interrupts and Mutual Exclusion – Part 3

Studying the implementation of the FIFO buffer from my previous posting some may have realized already that the code does not address few important things: The example does not give the reader any...

View Article

A Matter of Interrupts and Mutual Exclusion – Part 4

Today I will modify the code to support FIFO empty/full checking. Having the rx_counter to keep track of the actual content of the buffer it will make this task easy: BOOL Com_IsRxBufEmpty...

View Article

Image may be NSFW.
Clik here to view.

A Matter of Interrupts and Mutual Exclusion – Part 5

One of the most delicate problems in embedded programming is to ensure that the asynchronous access to a common resource (variable, object, peripheral) does not lead the system to unpredictable...

View Article

Browsing latest articles
Browse All 5 View Live




Latest Images