Update build to default to internal oscillator

This commit is contained in:
Ethan Zonca 2020-04-14 22:17:47 -04:00
parent 4e326a7759
commit 1b8f8b847b
2 changed files with 5 additions and 5 deletions

View File

@ -38,8 +38,8 @@ USB_INCLUDES += -IMiddlewares/ST/STM32_USB_Device_Library/Class/CDC/Inc
# USER_CFLAGS: user C flags (enable warnings, enable debug info)
USER_CFLAGS = -Wall -g -ffunction-sections -fdata-sections -Os
ifeq ($(INTERNAL_OSCILLATOR), 1)
USER_CFLAGS += -DINTERNAL_OSCILLATOR
ifneq ($(EXTERNAL_OSCILLATOR), 1)
USER_CFLAGS += -DINTERNAL_OSCILLATOR
endif
# USER_LDFLAGS: user LD flags

View File

@ -38,8 +38,8 @@ system and add the `bin` folder to your PATH.
Your Linux distribution may also have a prebuilt package for `arm-none-eabi-gcc`, check your distro's repositories to see if a build exists.
- If you have a CANable device, compile with `make INTERNAL_OSCILLATOR=1`.
- If you have a CANtact device, you can compile using `make`.
- If you have a CANable device, you can compile using `make`.
- If you have a CANtact or other device with external oscillator, you can compile using `make INTERNAL_OSCILLATOR=1`
## Flashing with the Bootloader
@ -57,7 +57,7 @@ With OpenOCD running, arm-none-eabi-gdb can be used to load code and debug.
## Contributors
- [Ethan Zonca](https://github.com/normaldotcom) - Makefile fixes and code size optimization, updates for CANable
- [Ethan Zonca](https://github.com/normaldotcom) - New features, HAL updates, Makefile fixes and code size optimization, updates for CANable
- [onejope](https://github.com/onejope) - Fixes to extended ID handling
- Phil Wise - Added dfu-util compatibility to Makefile