diff options
| author | James Young <xxiinophobia@yahoo.com> | 2020-02-29 12:00:00 -0800 |
|---|---|---|
| committer | James Young <xxiinophobia@yahoo.com> | 2020-02-29 11:59:30 -0800 |
| commit | 26eef35f07698d23aafae90e1c230b52e100a334 (patch) | |
| tree | eb8e43fc58ca55788e6e89430af0db55ea79e324 /drivers/boards/GENERIC_STM32_F072XB/board.h | |
| parent | 85041ff05bf0e5f4ff4535caf6e638491a5614c8 (diff) | |
| download | qmk_firmware-26eef35f07698d23aafae90e1c230b52e100a334.tar.gz qmk_firmware-26eef35f07698d23aafae90e1c230b52e100a334.zip | |
2020 February 29 Breaking Changes Update (#8064)
Diffstat (limited to 'drivers/boards/GENERIC_STM32_F072XB/board.h')
| -rw-r--r-- | drivers/boards/GENERIC_STM32_F072XB/board.h | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/drivers/boards/GENERIC_STM32_F072XB/board.h b/drivers/boards/GENERIC_STM32_F072XB/board.h index c625a4330..87570e62d 100644 --- a/drivers/boards/GENERIC_STM32_F072XB/board.h +++ b/drivers/boards/GENERIC_STM32_F072XB/board.h | |||
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio | 2 | ChibiOS - Copyright (C) 2006..2018 Giovanni Di Sirio |
| 3 | 3 | ||
| 4 | Licensed under the Apache License, Version 2.0 (the "License"); | 4 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | you may not use this file except in compliance with the License. | 5 | you may not use this file except in compliance with the License. |
| @@ -22,6 +22,10 @@ | |||
| 22 | #ifndef BOARD_H | 22 | #ifndef BOARD_H |
| 23 | #define BOARD_H | 23 | #define BOARD_H |
| 24 | 24 | ||
| 25 | /*===========================================================================*/ | ||
| 26 | /* Driver constants. */ | ||
| 27 | /*===========================================================================*/ | ||
| 28 | |||
| 25 | /* | 29 | /* |
| 26 | * Setup for Generic STM32_F072 Board | 30 | * Setup for Generic STM32_F072 Board |
| 27 | */ | 31 | */ |
| @@ -167,11 +171,9 @@ | |||
| 167 | #define LINE_USB_DP PAL_LINE(GPIOA, 12U) | 171 | #define LINE_USB_DP PAL_LINE(GPIOA, 12U) |
| 168 | #define LINE_SWDIO PAL_LINE(GPIOA, 13U) | 172 | #define LINE_SWDIO PAL_LINE(GPIOA, 13U) |
| 169 | #define LINE_SWCLK PAL_LINE(GPIOA, 14U) | 173 | #define LINE_SWCLK PAL_LINE(GPIOA, 14U) |
| 170 | |||
| 171 | #define LINE_SPI2_SCK PAL_LINE(GPIOB, 13U) | 174 | #define LINE_SPI2_SCK PAL_LINE(GPIOB, 13U) |
| 172 | #define LINE_SPI2_MISO PAL_LINE(GPIOB, 14U) | 175 | #define LINE_SPI2_MISO PAL_LINE(GPIOB, 14U) |
| 173 | #define LINE_SPI2_MOSI PAL_LINE(GPIOB, 15U) | 176 | #define LINE_SPI2_MOSI PAL_LINE(GPIOB, 15U) |
| 174 | |||
| 175 | #define LINE_MEMS_CS PAL_LINE(GPIOC, 0U) | 177 | #define LINE_MEMS_CS PAL_LINE(GPIOC, 0U) |
| 176 | #define LINE_LED_RED PAL_LINE(GPIOC, 6U) | 178 | #define LINE_LED_RED PAL_LINE(GPIOC, 6U) |
| 177 | #define LINE_LED_BLUE PAL_LINE(GPIOC, 7U) | 179 | #define LINE_LED_BLUE PAL_LINE(GPIOC, 7U) |
| @@ -179,10 +181,25 @@ | |||
| 179 | #define LINE_LED_GREEN PAL_LINE(GPIOC, 9U) | 181 | #define LINE_LED_GREEN PAL_LINE(GPIOC, 9U) |
| 180 | #define LINE_OSC32_IN PAL_LINE(GPIOC, 14U) | 182 | #define LINE_OSC32_IN PAL_LINE(GPIOC, 14U) |
| 181 | #define LINE_OSC32_OUT PAL_LINE(GPIOC, 15U) | 183 | #define LINE_OSC32_OUT PAL_LINE(GPIOC, 15U) |
| 182 | |||
| 183 | #define LINE_OSC_IN PAL_LINE(GPIOF, 0U) | 184 | #define LINE_OSC_IN PAL_LINE(GPIOF, 0U) |
| 184 | #define LINE_OSC_OUT PAL_LINE(GPIOF, 1U) | 185 | #define LINE_OSC_OUT PAL_LINE(GPIOF, 1U) |
| 185 | 186 | ||
| 187 | /*===========================================================================*/ | ||
| 188 | /* Driver pre-compile time settings. */ | ||
| 189 | /*===========================================================================*/ | ||
| 190 | |||
| 191 | /*===========================================================================*/ | ||
| 192 | /* Derived constants and error checks. */ | ||
| 193 | /*===========================================================================*/ | ||
| 194 | |||
| 195 | /*===========================================================================*/ | ||
| 196 | /* Driver data structures and types. */ | ||
| 197 | /*===========================================================================*/ | ||
| 198 | |||
| 199 | /*===========================================================================*/ | ||
| 200 | /* Driver macros. */ | ||
| 201 | /*===========================================================================*/ | ||
| 202 | |||
| 186 | /* | 203 | /* |
| 187 | * I/O ports initial setup, this configuration is established soon after reset | 204 | * I/O ports initial setup, this configuration is established soon after reset |
| 188 | * in the initialization code. | 205 | * in the initialization code. |
| @@ -373,6 +390,10 @@ | |||
| 373 | #define VAL_GPIOF_AFRL (PIN_AFIO_AF(GPIOF_OSC_IN, 0U) | PIN_AFIO_AF(GPIOF_OSC_OUT, 0U) | PIN_AFIO_AF(GPIOF_PIN2, 0U) | PIN_AFIO_AF(GPIOF_PIN3, 0U) | PIN_AFIO_AF(GPIOF_PIN4, 0U) | PIN_AFIO_AF(GPIOF_PIN5, 0U) | PIN_AFIO_AF(GPIOF_PIN6, 0U) | PIN_AFIO_AF(GPIOF_PIN7, 0U)) | 390 | #define VAL_GPIOF_AFRL (PIN_AFIO_AF(GPIOF_OSC_IN, 0U) | PIN_AFIO_AF(GPIOF_OSC_OUT, 0U) | PIN_AFIO_AF(GPIOF_PIN2, 0U) | PIN_AFIO_AF(GPIOF_PIN3, 0U) | PIN_AFIO_AF(GPIOF_PIN4, 0U) | PIN_AFIO_AF(GPIOF_PIN5, 0U) | PIN_AFIO_AF(GPIOF_PIN6, 0U) | PIN_AFIO_AF(GPIOF_PIN7, 0U)) |
| 374 | #define VAL_GPIOF_AFRH (PIN_AFIO_AF(GPIOF_PIN8, 0U) | PIN_AFIO_AF(GPIOF_PIN9, 0U) | PIN_AFIO_AF(GPIOF_PIN10, 0U) | PIN_AFIO_AF(GPIOF_PIN11, 0U) | PIN_AFIO_AF(GPIOF_PIN12, 0U) | PIN_AFIO_AF(GPIOF_PIN13, 0U) | PIN_AFIO_AF(GPIOF_PIN14, 0U) | PIN_AFIO_AF(GPIOF_PIN15, 0U)) | 391 | #define VAL_GPIOF_AFRH (PIN_AFIO_AF(GPIOF_PIN8, 0U) | PIN_AFIO_AF(GPIOF_PIN9, 0U) | PIN_AFIO_AF(GPIOF_PIN10, 0U) | PIN_AFIO_AF(GPIOF_PIN11, 0U) | PIN_AFIO_AF(GPIOF_PIN12, 0U) | PIN_AFIO_AF(GPIOF_PIN13, 0U) | PIN_AFIO_AF(GPIOF_PIN14, 0U) | PIN_AFIO_AF(GPIOF_PIN15, 0U)) |
| 375 | 392 | ||
| 393 | /*===========================================================================*/ | ||
| 394 | /* External declarations. */ | ||
| 395 | /*===========================================================================*/ | ||
| 396 | |||
| 376 | #if !defined(_FROM_ASM_) | 397 | #if !defined(_FROM_ASM_) |
| 377 | # ifdef __cplusplus | 398 | # ifdef __cplusplus |
| 378 | extern "C" { | 399 | extern "C" { |
