Questions tagged [macro]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
6
votes
1answer
1k views

How to get rid of shift and logical operations

I am trying to upgrade an old firmware of a 32-bit MCU. The fw has many macros in it which uses various operations eg., logical shift etc. I want to replace these shift and logical operations. An ...
1
vote
2answers
73 views

Non-reentrant Functions as Macros for utilities used in both Main and Interrupts

When compiling software with xc8 for a PIC which has functions which are called in both interrupts and in the main function the compiler gives an advisory: ...
1
vote
1answer
68 views

Macroscopic physical significance of Thermal Voltage in Diodes

Everywhere I search, the thermal voltage in diodes is described either as the microscopic property related to the average energy of electrons due to thermal motion The constant in the ideal diode ...
1
vote
1answer
215 views

How to create unique label on macro definition on AVR GNU assembler?

On AVR GNU assembler I'm trying to create a label inside a macro definition. I would like to create a macro, which has a private lable, or unique label inside - just to be able to jump inside macro ...
0
votes
2answers
1k views

Is there anything macro-like, in VHDL?

I have a little piece of code, that applies again and again, in different places. The places are too irregular, the code is too small, and the input and varies too much to be able to use an entity. ...