Loading...
Searching...
No Matches
states_internal.h File Reference

States internal interface. More...

Detailed Description

States internal interface.

Author
Gerson Fernando Budke nando.nosp@m.jve@.nosp@m.gmail.nosp@m..com

Definition in file states_internal.h.

#include <avr/io.h>
+ Include dependency graph for states_internal.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Internal flag which defines if uart state is stored on SRAM

#define AVR8_STATE_UART_USE_SRAM   1
 UART state using SRAM.
 

UART TX pending state

Note
The content must be changed using the pair avr8_uart_tx_set_pending and avr8_uart_tx_clear_pending methods and the state is stored on avr8_state_uart.

Contents:

7 6 5 4 3 2 1 0
+---+---+---+---+---+---+---+---+
|TX7|TX6|TX5|TX4|TX3|TX2|TX1|TX0|
+---+---+---+---+---+---+---+---+
Label Description
TX7 This bit is set when on UART7 TX is pending
TX6 This bit is set when on UART6 TX is pending
TX5 This bit is set when on UART5 TX is pending
TX4 This bit is set when on UART4 TX is pending
TX3 This bit is set when on UART3 TX is pending
TX2 This bit is set when on UART2 TX is pending
TX1 This bit is set when on UART1 TX is pending
TX0 This bit is set when on UART0 TX is pending
#define avr8_state_uart   GPIOR0
 Definition for GPIOR0.
 

Internal flag which defines if IRQ state is stored on SRAM

#define AVR8_STATE_IRQ_USE_SRAM   1
 IRQ state using GPIOR registers.
 

Global variable containing the current state of the MCU

Note
This variable is updated from IRQ context; access to it should be wrapped into irq_disable and irq_restore should be used.

Contents:

Label Description
IRQ This variable is incremented when in IRQ context
#define avr8_state_irq_count   GPIOR1
 Definition for GPIOR1.
 

Macro Definition Documentation

◆ avr8_state_irq_count

#define avr8_state_irq_count   GPIOR1

Definition for GPIOR1.

Definition at line 104 of file states_internal.h.

◆ AVR8_STATE_IRQ_USE_SRAM

#define AVR8_STATE_IRQ_USE_SRAM   1

IRQ state using GPIOR registers.

Definition at line 82 of file states_internal.h.

◆ avr8_state_uart

#define avr8_state_uart   GPIOR0

Definition for GPIOR0.

Definition at line 71 of file states_internal.h.

◆ AVR8_STATE_UART_USE_SRAM

#define AVR8_STATE_UART_USE_SRAM   1

UART state using SRAM.

Definition at line 36 of file states_internal.h.