Questions tagged [embedded]
For code that targets an embedded device or some severely resource-constrained environment.
19
questions
3
votes
0
answers
69
views
USB implementation of device that tests system latency on gaming computers - SysLat Cleanup #3
Here's my open source project: https://github.com/Skewjo/SysLat_Software.
The hardware controlled by this software can be found at https://syslat.com/. This is the 3rd question in a series of ...
2
votes
1
answer
115
views
Dialog that controls external USB device that tests the latency of gaming computers - SysLat Cleanup #4
I have several static variables in my dialog class that I'm declaring in the header and then defining immediately in the cpp file. They are being used in an application with 2 threads, and these ...
2
votes
1
answer
68
views
Tuning the data class for the SysLat System Latency Testing hardware for gaming computers - SysLat Cleanup #1
Here's my open source project for testing the latency of gaming computers : https://github.com/Skewjo/SysLat_Software
This software controls the hardware that tests the latency of a gaming computer ...
1
vote
1
answer
51
views
Turning a data class with too much functionality into a POD - SysLat Cleanup #2
This is a follow up question to Tuning the data class for the SysLat System Latency Testing hardware for gaming computers - SysLat Cleanup #1.
Since the program is too large and complex to put into ...
13
votes
1
answer
3k
views
FIFO for embedded systems
I wrote a simple FIFO based on pieces of code I found online.
It's intended for embedded systems with very restricted RAM.
It's supposed to be very simple and efficient.
The size is always power of 2 (...
6
votes
2
answers
540
views
Embedded IoT: local data storage when no network coverage
I am working on a part of an IoT project where I have been given a task to develop a mechanism to store data locally when there is no network coverage or if the network is down for some reason. Our ...
4
votes
3
answers
71
views
Embedded IoT: local data storage (Updated)
I have made most of the review changes based on feedback I have got from here. Now I am back here for a second review to further better my code. Before posting the changes, somethings I haven't ...
38
votes
5
answers
4k
views
Running Lights - Embedded "Hello World"
I'm getting my feet wet in embedded development, and like all those before me, my first task was to make an LED blink. I went a bit further than that and made a "runner" that lights up each led from 0 ...
20
votes
1
answer
3k
views
Spell Corrector in C
I recently stumbled across this article on how to write a spelling corrector, and figured I'd try to have a go at it in C (mainly because the link at the end of the page for the C code is broken).
...
15
votes
1
answer
1k
views
Compile-time data structure generator
In response to another recent question I mentioned that one mechanism to avoid runtime overhead for creating a data structure was to create it at compile time and use it directly. Since there was ...
12
votes
1
answer
318
views
Where it all begins: Khronos
This is the main.c file for Khronos, a personal project of mine. This is basically where the whole program is setup, run and then quit. I'll post the short ...
7
votes
1
answer
233
views
Lightweight LED library
One of the projects that have been on my to-do list since years involves controlling a number of Inter-Integrated Circuit (\$I^2C\$) peripherals. Lately I've been turning everything into it's own ...
6
votes
3
answers
2k
views
Basic Encoding Rules (BER) class for embedded system
I'm implementing a communications protocol in an embedded system and the protocol uses a subset of the ASN.1 BER (Basic Encoding Rules).
In a nutshell, this class simply represents a TLV triplet (...
6
votes
2
answers
2k
views
Very basic shell on microcontroller in C
Objective: A lightweight shell that runs on a microcontroller (MSP430) and parses incoming data into a command and additional
parameters.
Requirements:
Support of quoting in ...
5
votes
1
answer
321
views
Double-ended queue for Embedded Systems
Following my previous question about a FIFO for embedded systems and the very detailed answer I got, I made some modifications to convert a simple FIFO to double-ended queue for Embedded Systems.
It ...
3
votes
1
answer
709
views
Implementing PLC "Timer Pulse" function block in C++
I have been implementing a library of the PLC function blocks. One of the function blocks is the "Timer Pulse" function block which behavior is following:
I have implemented this function block in ...
2
votes
1
answer
897
views
Very basic shell on microcontroller in C - follow-up
This is a follow-up of: Very basic shell on microcontroller in C
A few days back I've asked for a review on a simple shell parser in c. Based on the answers, I've restructured my code to use a table-...
1
vote
3
answers
62
views
Embedded IoT: local data storage (Second Update)
I have made the review changes based on feedback I have got from here which was based on the feedback I got from this one. I am almost done and now looking for a final review with respect to any minor ...
0
votes
1
answer
313
views
Two over-complicated UART interrupt handlers for SIM900 GSM module [closed]
UARTIntHandler0 interfaces to the USB UART for debugging.
UARTIntHandler1 interfaces to the SIM900 GSM module.
The purpose of ...