Skip to content

Commit

Permalink
Changed makefile so that CFLAGS can be put in config.mk
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbeanton committed Sep 3, 2015
1 parent e655163 commit 04c8844
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ PROCESSOR = -mcpu=cortex-m0 -mthumb
NRF= -DNRF51
PROGRAM=cf2_nrf

CFLAGS=$(PROCESSOR) $(NRF) $(PERSONAL_DEFINES) $(INCLUDES) -g3 -O0 -Wall# -fdata-sections
CFLAGS+=$(PROCESSOR) $(NRF) $(PERSONAL_DEFINES) $(INCLUDES) -g3 -O0 -Wall# -fdata-sections
CFLAGS+= -fsingle-precision-constant -ffast-math
# --specs=nano.specs -flto
ASFLAGS=$(PROCESSOR)
Expand Down
4 changes: 4 additions & 0 deletions src/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,11 @@ static void pmRunSystem(bool enable)

// Enable RF power amplifier
nrf_gpio_cfg_output(RADIO_PAEN_PIN);
#ifdef DISABLE_PA
nrf_gpio_pin_clear(RADIO_PAEN_PIN);
#else
nrf_gpio_pin_set(RADIO_PAEN_PIN);
#endif

// Sink battery divider
nrf_gpio_cfg_output(PM_VBAT_SINK_PIN);
Expand Down
2 changes: 2 additions & 0 deletions src/uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ char uartGetc()
if (!isInit)
return c;

// TODO: Add overrun check

if (head!=tail) {
c = rxq[tail++];
if (tail >= Q_LENGTH) tail = 0;
Expand Down

0 comments on commit 04c8844

Please sign in to comment.