diff options
| author | fauxpark <fauxpark@gmail.com> | 2019-09-08 01:24:19 +1000 |
|---|---|---|
| committer | Drashna Jaelre <drashna@live.com> | 2019-09-07 08:24:19 -0700 |
| commit | 490a13a02e0e247d07644a64f6df7e4ec9a628a3 (patch) | |
| tree | bac64a2f4056360c28d15a9022c4d576e2bf58ee | |
| parent | 0d94730da05c9ba1375357cebedd54648463b0b8 (diff) | |
| download | qmk_firmware-490a13a02e0e247d07644a64f6df7e4ec9a628a3.tar.gz qmk_firmware-490a13a02e0e247d07644a64f6df7e4ec9a628a3.zip | |
Add 328P to mcu_selection.mk (#6682)
| -rw-r--r-- | keyboards/gingham/rules.mk | 47 | ||||
| -rw-r--r-- | keyboards/handwired/hnah40/rules.mk | 39 | ||||
| -rw-r--r-- | keyboards/plaid/rules.mk | 43 | ||||
| -rw-r--r-- | quantum/mcu_selection.mk | 15 |
4 files changed, 15 insertions, 129 deletions
diff --git a/keyboards/gingham/rules.mk b/keyboards/gingham/rules.mk index 83f424ba0..9afbd0964 100644 --- a/keyboards/gingham/rules.mk +++ b/keyboards/gingham/rules.mk | |||
| @@ -3,42 +3,6 @@ SRC = matrix.c \ | |||
| 3 | 3 | ||
| 4 | # MCU name | 4 | # MCU name |
| 5 | MCU = atmega328p | 5 | MCU = atmega328p |
| 6 | PROTOCOL = VUSB | ||
| 7 | |||
| 8 | # Processor frequency. | ||
| 9 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
| 10 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
| 11 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
| 12 | # automatically to create a 32-bit value in your source code. | ||
| 13 | # | ||
| 14 | # This will be an integer division of F_USB below, as it is sourced by | ||
| 15 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
| 16 | # does not *change* the processor frequency - it should merely be updated to | ||
| 17 | # reflect the processor speed set externally so that the code can use accurate | ||
| 18 | # software delays. | ||
| 19 | F_CPU = 16000000 | ||
| 20 | |||
| 21 | # | ||
| 22 | # LUFA specific | ||
| 23 | # | ||
| 24 | # Target architecture (see library "Board Types" documentation). | ||
| 25 | ARCH = AVR8 | ||
| 26 | |||
| 27 | # Input clock frequency. | ||
| 28 | # This will define a symbol, F_USB, in all source code files equal to the | ||
| 29 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
| 30 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
| 31 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
| 32 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
| 33 | # at the end, this will be done automatically to create a 32-bit value in your | ||
| 34 | # source code. | ||
| 35 | # | ||
| 36 | # If no clock division is performed on the input clock inside the AVR (via the | ||
| 37 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
| 38 | F_USB = $(F_CPU) | ||
| 39 | |||
| 40 | # Interrupt driven control endpoint task(+60) | ||
| 41 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
| 42 | 6 | ||
| 43 | # Bootloader selection | 7 | # Bootloader selection |
| 44 | # Teensy halfkay | 8 | # Teensy halfkay |
| @@ -51,14 +15,6 @@ OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | |||
| 51 | # This uses usbaspbootloader | 15 | # This uses usbaspbootloader |
| 52 | BOOTLOADER = USBasp | 16 | BOOTLOADER = USBasp |
| 53 | 17 | ||
| 54 | # If you don't know the bootloader type, then you can specify the | ||
| 55 | # Boot Section Size in *bytes* by uncommenting out the OPT_DEFS line | ||
| 56 | # Teensy halfKay 512 | ||
| 57 | # Teensy++ halfKay 1024 | ||
| 58 | # Atmel DFU loader 4096 | ||
| 59 | # LUFA bootloader 4096 | ||
| 60 | # USBaspLoader 2048 | ||
| 61 | |||
| 62 | # Flash program via avrdude, but default command is not suitable. | 18 | # Flash program via avrdude, but default command is not suitable. |
| 63 | # You can use plaid:default:program | 19 | # You can use plaid:default:program |
| 64 | PROGRAM_CMD = avrdude -c usbasp -p m328p -U flash:w:$(BUILD_DIR)/$(TARGET).hex | 20 | PROGRAM_CMD = avrdude -c usbasp -p m328p -U flash:w:$(BUILD_DIR)/$(TARGET).hex |
| @@ -87,7 +43,4 @@ AUDIO_ENABLE = no # Audio output on port C6 | |||
| 87 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | 43 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches |
| 88 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) | 44 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) |
| 89 | 45 | ||
| 90 | # unsupported features for now | ||
| 91 | NO_UART = yes | ||
| 92 | NO_SUSPEND_POWER_DOWN = yes | ||
| 93 | CUSTOM_MATRIX = yes | 46 | CUSTOM_MATRIX = yes |
diff --git a/keyboards/handwired/hnah40/rules.mk b/keyboards/handwired/hnah40/rules.mk index efd11bfa5..341b8d03d 100644 --- a/keyboards/handwired/hnah40/rules.mk +++ b/keyboards/handwired/hnah40/rules.mk | |||
| @@ -1,42 +1,5 @@ | |||
| 1 | # MCU name | 1 | # MCU name |
| 2 | MCU = atmega328p | 2 | MCU = atmega328p |
| 3 | PROTOCOL = VUSB | ||
| 4 | |||
| 5 | # Processor frequency. | ||
| 6 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
| 7 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
| 8 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
| 9 | # automatically to create a 32-bit value in your source code. | ||
| 10 | # | ||
| 11 | # This will be an integer division of F_USB below, as it is sourced by | ||
| 12 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
| 13 | # does not *change* the processor frequency - it should merely be updated to | ||
| 14 | # reflect the processor speed set externally so that the code can use accurate | ||
| 15 | # software delays. | ||
| 16 | F_CPU = 16000000 | ||
| 17 | |||
| 18 | |||
| 19 | # | ||
| 20 | # LUFA specific | ||
| 21 | # | ||
| 22 | # Target architecture (see library "Board Types" documentation). | ||
| 23 | ARCH = AVR8 | ||
| 24 | |||
| 25 | # Input clock frequency. | ||
| 26 | # This will define a symbol, F_USB, in all source code files equal to the | ||
| 27 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
| 28 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
| 29 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
| 30 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
| 31 | # at the end, this will be done automatically to create a 32-bit value in your | ||
| 32 | # source code. | ||
| 33 | # | ||
| 34 | # If no clock division is performed on the input clock inside the AVR (via the | ||
| 35 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
| 36 | F_USB = $(F_CPU) | ||
| 37 | |||
| 38 | # Interrupt driven control endpoint task(+60) | ||
| 39 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
| 40 | 3 | ||
| 41 | BOOTLOADER = bootloadHID | 4 | BOOTLOADER = bootloadHID |
| 42 | 5 | ||
| @@ -69,5 +32,3 @@ BLUETOOTH_ENABLE = no # Enable Bluetooth with the Adafruit EZ-Key HID | |||
| 69 | AUDIO_ENABLE = no # Audio output on port C6 | 32 | AUDIO_ENABLE = no # Audio output on port C6 |
| 70 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | 33 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches |
| 71 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) | 34 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) |
| 72 | NO_UART = yes | ||
| 73 | NO_SUSPEND_POWER_DOWN = yes \ No newline at end of file | ||
diff --git a/keyboards/plaid/rules.mk b/keyboards/plaid/rules.mk index c54b1ea58..755a4f899 100644 --- a/keyboards/plaid/rules.mk +++ b/keyboards/plaid/rules.mk | |||
| @@ -1,43 +1,5 @@ | |||
| 1 | # MCU name | 1 | # MCU name |
| 2 | MCU = atmega328p | 2 | MCU = atmega328p |
| 3 | PROTOCOL = VUSB | ||
| 4 | |||
| 5 | # Processor frequency. | ||
| 6 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
| 7 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
| 8 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
| 9 | # automatically to create a 32-bit value in your source code. | ||
| 10 | # | ||
| 11 | # This will be an integer division of F_USB below, as it is sourced by | ||
| 12 | # F_USB after it has run through any CPU prescalers. Note that this value | ||
| 13 | # does not *change* the processor frequency - it should merely be updated to | ||
| 14 | # reflect the processor speed set externally so that the code can use accurate | ||
| 15 | # software delays. | ||
| 16 | F_CPU = 16000000 | ||
| 17 | |||
| 18 | |||
| 19 | # | ||
| 20 | # LUFA specific | ||
| 21 | # | ||
| 22 | # Target architecture (see library "Board Types" documentation). | ||
| 23 | ARCH = AVR8 | ||
| 24 | |||
| 25 | # Input clock frequency. | ||
| 26 | # This will define a symbol, F_USB, in all source code files equal to the | ||
| 27 | # input clock frequency (before any prescaling is performed) in Hz. This value may | ||
| 28 | # differ from F_CPU if prescaling is used on the latter, and is required as the | ||
| 29 | # raw input clock is fed directly to the PLL sections of the AVR for high speed | ||
| 30 | # clock generation for the USB and other AVR subsections. Do NOT tack on a 'UL' | ||
| 31 | # at the end, this will be done automatically to create a 32-bit value in your | ||
| 32 | # source code. | ||
| 33 | # | ||
| 34 | # If no clock division is performed on the input clock inside the AVR (via the | ||
| 35 | # CPU clock adjust registers or the clock division fuses), this will be equal to F_CPU. | ||
| 36 | F_USB = $(F_CPU) | ||
| 37 | |||
| 38 | # Interrupt driven control endpoint task(+60) | ||
| 39 | OPT_DEFS += -DINTERRUPT_CONTROL_ENDPOINT | ||
| 40 | |||
| 41 | 3 | ||
| 42 | # Bootloader selection | 4 | # Bootloader selection |
| 43 | # Teensy halfkay | 5 | # Teensy halfkay |
| @@ -91,10 +53,5 @@ AUDIO_ENABLE = no # Audio output on port C6 | |||
| 91 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches | 53 | FAUXCLICKY_ENABLE = no # Use buzzer to emulate clicky switches |
| 92 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) | 54 | HD44780_ENABLE = no # Enable support for HD44780 based LCDs (+400) |
| 93 | 55 | ||
| 94 | # unsupported features for now | ||
| 95 | NO_UART = yes | ||
| 96 | NO_SUSPEND_POWER_DOWN = yes | ||
| 97 | |||
| 98 | |||
| 99 | LAYOUTS = ortho_4x12 planck_mit | 56 | LAYOUTS = ortho_4x12 planck_mit |
| 100 | LAYOUTS_HAS_RGB = no | 57 | LAYOUTS_HAS_RGB = no |
diff --git a/quantum/mcu_selection.mk b/quantum/mcu_selection.mk index 1af0123e2..5102010c7 100644 --- a/quantum/mcu_selection.mk +++ b/quantum/mcu_selection.mk | |||
| @@ -91,3 +91,18 @@ ifneq (,$(filter $(MCU),atmega32a)) | |||
| 91 | # Programming options | 91 | # Programming options |
| 92 | PROGRAM_CMD ?= ./util/atmega32a_program.py $(TARGET).hex | 92 | PROGRAM_CMD ?= ./util/atmega32a_program.py $(TARGET).hex |
| 93 | endif | 93 | endif |
| 94 | |||
| 95 | ifneq (,$(filter $(MCU),atmega328p)) | ||
| 96 | PROTOCOL = VUSB | ||
| 97 | |||
| 98 | # Processor frequency. | ||
| 99 | # This will define a symbol, F_CPU, in all source code files equal to the | ||
| 100 | # processor frequency in Hz. You can then use this symbol in your source code to | ||
| 101 | # calculate timings. Do NOT tack on a 'UL' at the end, this will be done | ||
| 102 | # automatically to create a 32-bit value in your source code. | ||
| 103 | F_CPU ?= 16000000 | ||
| 104 | |||
| 105 | # unsupported features for now | ||
| 106 | NO_UART ?= yes | ||
| 107 | NO_SUSPEND_POWER_DOWN ?= yes | ||
| 108 | endif | ||
