Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: whitequark/glasgow
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 1d14e233e40f
Choose a base ref
...
head repository: whitequark/glasgow
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a4d2e564c680
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Dec 1, 2018

  1. firmware: fix an operator precedence issue.

    Introduced in 1966293.
    whitequark committed Dec 1, 2018
    Copy the full SHA
    a4d2e56 View commit details
Showing with 2 additions and 2 deletions.
  1. +2 −2 firmware/leds.c
4 changes: 2 additions & 2 deletions firmware/leds.c
Original file line number Diff line number Diff line change
@@ -2,8 +2,8 @@
#include "glasgow.h"

void leds_init() {
IOD = IOD | (1<<PIND_LED_CY) & ~((1<<PIND_LED_FPGA)|(1<<PIND_LED_ACT)|(1<<PIND_LED_ERR));
OED |= (1<<PIND_LED_CY) | (1<<PIND_LED_FPGA)|(1<<PIND_LED_ACT)|(1<<PIND_LED_ERR);
IOD = (IOD | (1<<PIND_LED_CY)) & ~((1<<PIND_LED_FPGA)|(1<<PIND_LED_ACT)|(1<<PIND_LED_ERR));
OED |= (1<<PIND_LED_CY) | (1<<PIND_LED_FPGA)|(1<<PIND_LED_ACT)|(1<<PIND_LED_ERR);
}

void led_fpga_set(bool on) {