Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpu/avr8_common: Prepare for rework ISR #19777

Merged
merged 6 commits into from
Jul 11, 2023

Commits on Jul 5, 2023

  1. cpu/avr8_common: Split avr8_state

    The avr8_state store state information used to determine scheduling
    and uart irq. This move all uart irq states to avr8_state_uart
    variable. It introduce the use of General Purpose IO Register 0
    (GPIOR0) when available and now all uarts from xmega can be used.
    
    This is a preparation for future scheduling and irq optimizations.
    
    Signed-off-by: Gerson Fernando Budke <[email protected]>
    nandojve committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    b787301 View commit details
    Browse the repository at this point in the history
  2. cpu/avr8_common: Rework avr8_state variable

    The avr8_state variable uses bit operation to set/clear the state. This
    rework avr8_state to use increment/decrement instead. It introduce the
    use of General Purpose IO Register 1 (GPIOR1) when available.
    
    This is a preparation for future scheduling and irq optimizations.
    
    Signed-off-by: Gerson Fernando Budke <[email protected]>
    nandojve committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    93aa10c View commit details
    Browse the repository at this point in the history
  3. cpu/avr8_common: Drop useless ret instruction

    The thread_yield_higher is a normal functions. However it has a non
    regular return instruction which is useless. This remove the useless
    return on thread_yield_higher to save flash bytes.
    
    Signed-off-by: Gerson Fernando Budke <[email protected]>
    nandojve committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    ceb414f View commit details
    Browse the repository at this point in the history
  4. cpu/avr8_common: Add AVR8_ISR macro

    The current ISR implementation for AVR8 requires use of
    avr8_[enter/exit]_isr pair which add some boilerplate on code.
    This add AVR8_ISR which clean-up the code and make it simpler
    and hides any schedule detail from the user perspective.
    
    This is a preparation for future scheduling and irq optimizations.
    
    Signed-off-by: Gerson Fernando Budke <[email protected]>
    nandojve committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    783afbc View commit details
    Browse the repository at this point in the history
  5. cpu: atmega_common: rtt: Fix vera warnings

    Signed-off-by: Gerson Fernando Budke <[email protected]>
    nandojve committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    f87cb3f View commit details
    Browse the repository at this point in the history
  6. drivers: at86rf2xx: at86rf2xx_netdev: Fix vera warnings

    Signed-off-by: Gerson Fernando Budke <[email protected]>
    nandojve committed Jul 5, 2023
    Configuration menu
    Copy the full SHA
    1e23730 View commit details
    Browse the repository at this point in the history