Skip to content

Commit

Permalink
Adaptions for arm-none-eabi-gcc version 4.5.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Laurens Mackay committed Mar 2, 2011
1 parent 1a6808d commit 48fde04
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 8 deletions.
16 changes: 10 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -97,14 +97,18 @@ FORMAT = ihex
# ENABLE ONCE GCC 4.4.x is broadly used
#DEADCODESTRIP = -Wl,-static -fdata-sections -ffunction-sections -Wl,--gc-sections -Wl,-s

#define compiler name
CCNAME = -none-eabi
#CCNAME = -elf

# Define programs and commands.
CC = arm-elf-gcc
LD = arm-elf-gcc
CC = arm$(CCNAME)-gcc
LD = arm$(CCNAME)-gcc
SHELL = sh
OBJCOPY = arm-elf-objcopy
OBJDUMP = arm-elf-objdump
SIZE = arm-elf-size
NM = arm-elf-nm
OBJCOPY = arm$(CCNAME)-objcopy
OBJDUMP = arm$(CCNAME)-objdump
SIZE = arm$(CCNAME)-size
NM = arm$(CCNAME)-nm
REMOVE = rm -f
COPY = cp

Expand Down
2 changes: 1 addition & 1 deletion main/common_mainloop_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -689,7 +689,7 @@ void camera_shutter_handling(uint64_t loop_start_time)


/** @brief Low Battery alarm to be called for example with 1 Hz */
static inline void beep_on_low_voltage(void)
void beep_on_low_voltage(void)
{
if (global_data.battery_voltage < BATTERY_LOW_VOLTAGE_ALARM)
{
Expand Down
2 changes: 1 addition & 1 deletion main/common_mainloop_functions.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ void handle_eeprom_write_request(void);
uint8_t rc_to_255(int chan);

/** @brief Low Battery alarm to be called for example with 1 Hz */
static inline void beep_on_low_voltage(void);
void beep_on_low_voltage(void);

/** @brief Measures the peak CPU load */
uint16_t measure_peak_cpu_load(uint64_t loop_start_time, uint64_t loop_stop_time, uint64_t min_mainloop);
Expand Down

0 comments on commit 48fde04

Please sign in to comment.