python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Embedded system, How to define or calculate a time period
For designing embedded systems, one of the steps is scheduling.
I know the execution time can be measured by using some functions. For example, I can use micro() in Arduino to measure the time betwee...
TaiwaneseFoodIsTheBest
Votes: 0
Answers: 2
How to make an object take and store an Array of arbitrary, but compile-time known size?
Background
For an embedded project, I want a class that takes a list of structs. This list is known at compile-time, so I shouldn't have to resort to dynamic memory allocation for this.
However, how d...
Compizfox
Votes: 0
Answers: 2
Seemingly pointless operations in a macro
The following macro is from an MCAL source of a microcontroller and it converts timer ticks to milliseconds.
#define TICKS2MS(x) ( (uint64) (((((uint64)(x)) * 1) + 0) / 100000) )
Could you plea...

m43dr3
Votes: 0
Answers: 2
Will semaphore corrupt data transmission of peripherals like UART in a microcontroller?
Semaphore disables interrupts and so will this cause other operations like receiving data on SPI to get corrupt?

Joseph Stephen
Votes: 0
Answers: 2