Revision 6a5c36eb
| modules/DiWheelDrive_1-1/board.c | ||
|---|---|---|
| 26 | 26 |
|
| 27 | 27 |
#include <hal.h> |
| 28 | 28 |
|
| 29 |
/*===========================================================================*/ |
|
| 30 |
/* Driver local definitions. */ |
|
| 31 |
/*===========================================================================*/ |
|
| 32 |
|
|
| 33 |
/*===========================================================================*/ |
|
| 34 |
/* Driver exported variables. */ |
|
| 35 |
/*===========================================================================*/ |
|
| 36 |
|
|
| 37 |
/*===========================================================================*/ |
|
| 38 |
/* Driver local variables and types. */ |
|
| 39 |
/*===========================================================================*/ |
|
| 40 |
|
|
| 29 | 41 |
#if HAL_USE_PAL || defined(__DOXYGEN__) |
| 30 | 42 |
/** |
| 31 | 43 |
* @brief PAL setup. |
| ... | ... | |
| 57 | 69 |
}; |
| 58 | 70 |
#endif |
| 59 | 71 |
|
| 72 |
/*===========================================================================*/ |
|
| 73 |
/* Driver local functions. */ |
|
| 74 |
/*===========================================================================*/ |
|
| 75 |
|
|
| 76 |
/*===========================================================================*/ |
|
| 77 |
/* Driver interrupt handlers. */ |
|
| 78 |
/*===========================================================================*/ |
|
| 79 |
|
|
| 80 |
/*===========================================================================*/ |
|
| 81 |
/* Driver exported functions. */ |
|
| 82 |
/*===========================================================================*/ |
|
| 83 |
|
|
| 60 | 84 |
/** |
| 61 | 85 |
* @brief Early initialization code. |
| 62 | 86 |
* @details This initialization must be performed just after stack setup |
| modules/DiWheelDrive_1-1/board.h | ||
|---|---|---|
| 27 | 27 |
#ifndef BOARD_H |
| 28 | 28 |
#define BOARD_H |
| 29 | 29 |
|
| 30 |
/*===========================================================================*/ |
|
| 31 |
/* Driver constants. */ |
|
| 32 |
/*===========================================================================*/ |
|
| 33 |
|
|
| 30 | 34 |
/* |
| 31 | 35 |
* Setup for AMiRo DiWheelDrive v1.1 board. |
| 32 | 36 |
*/ |
| ... | ... | |
| 232 | 236 |
#define LINE_OSC_OUT PAL_LINE(GPIOD, GPIOD_OSC_OUT) |
| 233 | 237 |
#define LINE_SYS_WARMRST_N PAL_LINE(GPIOD, GPIOD_SYS_WARMRST_N) |
| 234 | 238 |
|
| 239 |
/*===========================================================================*/ |
|
| 240 |
/* Driver pre-compile time settings. */ |
|
| 241 |
/*===========================================================================*/ |
|
| 242 |
|
|
| 243 |
/*===========================================================================*/ |
|
| 244 |
/* Derived constants and error checks. */ |
|
| 245 |
/*===========================================================================*/ |
|
| 246 |
|
|
| 247 |
/*===========================================================================*/ |
|
| 248 |
/* Driver data structures and types. */ |
|
| 249 |
/*===========================================================================*/ |
|
| 250 |
|
|
| 251 |
/*===========================================================================*/ |
|
| 252 |
/* Driver macros. */ |
|
| 253 |
/*===========================================================================*/ |
|
| 254 |
|
|
| 235 | 255 |
/* |
| 236 | 256 |
* I/O ports initial setup, this configuration is established soon after reset |
| 237 | 257 |
* in the initialization code. |
| ... | ... | |
| 632 | 652 |
PIN_ODR_LOW(GPIOG_PIN14) | \ |
| 633 | 653 |
PIN_ODR_LOW(GPIOG_PIN15)) |
| 634 | 654 |
|
| 655 |
/*===========================================================================*/ |
|
| 656 |
/* External declarations. */ |
|
| 657 |
/*===========================================================================*/ |
|
| 658 |
|
|
| 635 | 659 |
#if !defined(_FROM_ASM_) |
| 636 | 660 |
#ifdef __cplusplus |
| 637 | 661 |
extern "C" {
|
| modules/DiWheelDrive_1-2/board.c | ||
|---|---|---|
| 26 | 26 |
|
| 27 | 27 |
#include <hal.h> |
| 28 | 28 |
|
| 29 |
/*===========================================================================*/ |
|
| 30 |
/* Driver local definitions. */ |
|
| 31 |
/*===========================================================================*/ |
|
| 32 |
|
|
| 33 |
/*===========================================================================*/ |
|
| 34 |
/* Driver exported variables. */ |
|
| 35 |
/*===========================================================================*/ |
|
| 36 |
|
|
| 37 |
/*===========================================================================*/ |
|
| 38 |
/* Driver local variables and types. */ |
|
| 39 |
/*===========================================================================*/ |
|
| 40 |
|
|
| 29 | 41 |
#if HAL_USE_PAL || defined(__DOXYGEN__) |
| 30 | 42 |
/** |
| 31 | 43 |
* @brief PAL setup. |
| ... | ... | |
| 57 | 69 |
}; |
| 58 | 70 |
#endif |
| 59 | 71 |
|
| 72 |
/*===========================================================================*/ |
|
| 73 |
/* Driver local functions. */ |
|
| 74 |
/*===========================================================================*/ |
|
| 75 |
|
|
| 76 |
/*===========================================================================*/ |
|
| 77 |
/* Driver interrupt handlers. */ |
|
| 78 |
/*===========================================================================*/ |
|
| 79 |
|
|
| 80 |
/*===========================================================================*/ |
|
| 81 |
/* Driver exported functions. */ |
|
| 82 |
/*===========================================================================*/ |
|
| 83 |
|
|
| 60 | 84 |
/** |
| 61 | 85 |
* @brief Early initialization code. |
| 62 | 86 |
* @details This initialization must be performed just after stack setup |
| modules/DiWheelDrive_1-2/board.h | ||
|---|---|---|
| 27 | 27 |
#ifndef BOARD_H |
| 28 | 28 |
#define BOARD_H |
| 29 | 29 |
|
| 30 |
/*===========================================================================*/ |
|
| 31 |
/* Driver constants. */ |
|
| 32 |
/*===========================================================================*/ |
|
| 33 |
|
|
| 30 | 34 |
/* |
| 31 | 35 |
* Setup for AMiRo DiWheelDrive v1.2 board. |
| 32 | 36 |
*/ |
| ... | ... | |
| 228 | 232 |
#define LINE_OSC_OUT PAL_LINE(GPIOD, GPIOD_OSC_OUT) |
| 229 | 233 |
#define LINE_SYS_WARMRST_N PAL_LINE(GPIOD, GPIOD_SYS_WARMRST_N) |
| 230 | 234 |
|
| 235 |
/*===========================================================================*/ |
|
| 236 |
/* Driver pre-compile time settings. */ |
|
| 237 |
/*===========================================================================*/ |
|
| 238 |
|
|
| 239 |
/*===========================================================================*/ |
|
| 240 |
/* Derived constants and error checks. */ |
|
| 241 |
/*===========================================================================*/ |
|
| 242 |
|
|
| 243 |
/*===========================================================================*/ |
|
| 244 |
/* Driver data structures and types. */ |
|
| 245 |
/*===========================================================================*/ |
|
| 246 |
|
|
| 247 |
/*===========================================================================*/ |
|
| 248 |
/* Driver macros. */ |
|
| 249 |
/*===========================================================================*/ |
|
| 250 |
|
|
| 231 | 251 |
/* |
| 232 | 252 |
* I/O ports initial setup, this configuration is established soon after reset |
| 233 | 253 |
* in the initialization code. |
| ... | ... | |
| 628 | 648 |
PIN_ODR_LOW(GPIOG_PIN14) | \ |
| 629 | 649 |
PIN_ODR_LOW(GPIOG_PIN15)) |
| 630 | 650 |
|
| 651 |
/*===========================================================================*/ |
|
| 652 |
/* External declarations. */ |
|
| 653 |
/*===========================================================================*/ |
|
| 654 |
|
|
| 631 | 655 |
#if !defined(_FROM_ASM_) |
| 632 | 656 |
#ifdef __cplusplus |
| 633 | 657 |
extern "C" {
|
| modules/LightRing_1-0/board.c | ||
|---|---|---|
| 26 | 26 |
|
| 27 | 27 |
#include <hal.h> |
| 28 | 28 |
|
| 29 |
/*===========================================================================*/ |
|
| 30 |
/* Driver local definitions. */ |
|
| 31 |
/*===========================================================================*/ |
|
| 32 |
|
|
| 33 |
/*===========================================================================*/ |
|
| 34 |
/* Driver exported variables. */ |
|
| 35 |
/*===========================================================================*/ |
|
| 36 |
|
|
| 37 |
/*===========================================================================*/ |
|
| 38 |
/* Driver local variables and types. */ |
|
| 39 |
/*===========================================================================*/ |
|
| 40 |
|
|
| 29 | 41 |
#if HAL_USE_PAL || defined(__DOXYGEN__) |
| 30 | 42 |
/** |
| 31 | 43 |
* @brief PAL setup. |
| ... | ... | |
| 57 | 69 |
}; |
| 58 | 70 |
#endif |
| 59 | 71 |
|
| 72 |
/*===========================================================================*/ |
|
| 73 |
/* Driver local functions. */ |
|
| 74 |
/*===========================================================================*/ |
|
| 75 |
|
|
| 76 |
/*===========================================================================*/ |
|
| 77 |
/* Driver interrupt handlers. */ |
|
| 78 |
/*===========================================================================*/ |
|
| 79 |
|
|
| 80 |
/*===========================================================================*/ |
|
| 81 |
/* Driver exported functions. */ |
|
| 82 |
/*===========================================================================*/ |
|
| 83 |
|
|
| 60 | 84 |
/** |
| 61 | 85 |
* @brief Early initialization code. |
| 62 | 86 |
* @details This initialization must be performed just after stack setup |
| modules/LightRing_1-0/board.h | ||
|---|---|---|
| 27 | 27 |
#ifndef BOARD_H |
| 28 | 28 |
#define BOARD_H |
| 29 | 29 |
|
| 30 |
/*===========================================================================*/ |
|
| 31 |
/* Driver constants. */ |
|
| 32 |
/*===========================================================================*/ |
|
| 33 |
|
|
| 30 | 34 |
/* |
| 31 | 35 |
* Setup for AMiRo LightRing v1.0 board. |
| 32 | 36 |
*/ |
| ... | ... | |
| 216 | 220 |
|
| 217 | 221 |
#define LINE_SYS_INT_N PAL_LINE(GPIOD, GPIOD_SYS_INT_N) |
| 218 | 222 |
|
| 223 |
/*===========================================================================*/ |
|
| 224 |
/* Driver pre-compile time settings. */ |
|
| 225 |
/*===========================================================================*/ |
|
| 226 |
|
|
| 227 |
/*===========================================================================*/ |
|
| 228 |
/* Derived constants and error checks. */ |
|
| 229 |
/*===========================================================================*/ |
|
| 230 |
|
|
| 231 |
/*===========================================================================*/ |
|
| 232 |
/* Driver data structures and types. */ |
|
| 233 |
/*===========================================================================*/ |
|
| 234 |
|
|
| 235 |
/*===========================================================================*/ |
|
| 236 |
/* Driver macros. */ |
|
| 237 |
/*===========================================================================*/ |
|
| 238 |
|
|
| 219 | 239 |
/* |
| 220 | 240 |
* I/O ports initial setup, this configuration is established soon after reset |
| 221 | 241 |
* in the initialization code. |
| ... | ... | |
| 615 | 635 |
PIN_ODR_LOW(GPIOG_PIN14) | \ |
| 616 | 636 |
PIN_ODR_LOW(GPIOG_PIN15)) |
| 617 | 637 |
|
| 638 |
/*===========================================================================*/ |
|
| 639 |
/* External declarations. */ |
|
| 640 |
/*===========================================================================*/ |
|
| 641 |
|
|
| 618 | 642 |
#if !defined(_FROM_ASM_) |
| 619 | 643 |
#ifdef __cplusplus |
| 620 | 644 |
extern "C" {
|
| modules/LightRing_1-2/board.c | ||
|---|---|---|
| 26 | 26 |
|
| 27 | 27 |
#include <hal.h> |
| 28 | 28 |
|
| 29 |
/*===========================================================================*/ |
|
| 30 |
/* Driver local definitions. */ |
|
| 31 |
/*===========================================================================*/ |
|
| 32 |
|
|
| 33 |
/*===========================================================================*/ |
|
| 34 |
/* Driver exported variables. */ |
|
| 35 |
/*===========================================================================*/ |
|
| 36 |
|
|
| 37 |
/*===========================================================================*/ |
|
| 38 |
/* Driver local variables and types. */ |
|
| 39 |
/*===========================================================================*/ |
|
| 40 |
|
|
| 29 | 41 |
#if HAL_USE_PAL || defined(__DOXYGEN__) |
| 30 | 42 |
/** |
| 31 | 43 |
* @brief PAL setup. |
| ... | ... | |
| 57 | 69 |
}; |
| 58 | 70 |
#endif |
| 59 | 71 |
|
| 72 |
/*===========================================================================*/ |
|
| 73 |
/* Driver local functions. */ |
|
| 74 |
/*===========================================================================*/ |
|
| 75 |
|
|
| 76 |
/*===========================================================================*/ |
|
| 77 |
/* Driver interrupt handlers. */ |
|
| 78 |
/*===========================================================================*/ |
|
| 79 |
|
|
| 80 |
/*===========================================================================*/ |
|
| 81 |
/* Driver exported functions. */ |
|
| 82 |
/*===========================================================================*/ |
|
| 83 |
|
|
| 60 | 84 |
/** |
| 61 | 85 |
* @brief Early initialization code. |
| 62 | 86 |
* @details This initialization must be performed just after stack setup |
| modules/LightRing_1-2/board.h | ||
|---|---|---|
| 27 | 27 |
#ifndef BOARD_H |
| 28 | 28 |
#define BOARD_H |
| 29 | 29 |
|
| 30 |
/*===========================================================================*/ |
|
| 31 |
/* Driver constants. */ |
|
| 32 |
/*===========================================================================*/ |
|
| 33 |
|
|
| 30 | 34 |
/* |
| 31 | 35 |
* Setup for AMiRo LightRing v1.2 board. |
| 32 | 36 |
*/ |
| ... | ... | |
| 245 | 249 |
|
| 246 | 250 |
#define LINE_SYS_INT_N PAL_LINE(GPIOD, GPIOD_SYS_INT_N) |
| 247 | 251 |
|
| 252 |
/*===========================================================================*/ |
|
| 253 |
/* Driver pre-compile time settings. */ |
|
| 254 |
/*===========================================================================*/ |
|
| 255 |
|
|
| 256 |
/*===========================================================================*/ |
|
| 257 |
/* Derived constants and error checks. */ |
|
| 258 |
/*===========================================================================*/ |
|
| 259 |
|
|
| 260 |
/*===========================================================================*/ |
|
| 261 |
/* Driver data structures and types. */ |
|
| 262 |
/*===========================================================================*/ |
|
| 263 |
|
|
| 264 |
/*===========================================================================*/ |
|
| 265 |
/* Driver macros. */ |
|
| 266 |
/*===========================================================================*/ |
|
| 267 |
|
|
| 248 | 268 |
/* |
| 249 | 269 |
* I/O ports initial setup, this configuration is established soon after reset |
| 250 | 270 |
* in the initialization code. |
| ... | ... | |
| 644 | 664 |
PIN_ODR_LOW(GPIOG_PIN14) | \ |
| 645 | 665 |
PIN_ODR_LOW(GPIOG_PIN15)) |
| 646 | 666 |
|
| 667 |
/*===========================================================================*/ |
|
| 668 |
/* External declarations. */ |
|
| 669 |
/*===========================================================================*/ |
|
| 670 |
|
|
| 647 | 671 |
#if !defined(_FROM_ASM_) |
| 648 | 672 |
#ifdef __cplusplus |
| 649 | 673 |
extern "C" {
|
| modules/PowerManagement_1-1/board.c | ||
|---|---|---|
| 27 | 27 |
#include <hal.h> |
| 28 | 28 |
#include <stm32_gpio.h> |
| 29 | 29 |
|
| 30 |
/** |
|
| 31 |
* @brief GPIO initialization. |
|
| 32 |
* |
|
| 33 |
* @param[in] gpiop GPIO register block. |
|
| 34 |
* @param[in] config GPIO configuration. |
|
| 35 |
*/ |
|
| 30 |
/*===========================================================================*/ |
|
| 31 |
/* Driver local definitions. */ |
|
| 32 |
/*===========================================================================*/ |
|
| 36 | 33 |
|
| 34 |
/*===========================================================================*/ |
|
| 35 |
/* Driver exported variables. */ |
|
| 36 |
/*===========================================================================*/ |
|
| 37 | 37 |
|
| 38 |
/*===========================================================================*/ |
|
| 39 |
/* Driver local variables and types. */ |
|
| 40 |
/*===========================================================================*/ |
|
| 41 |
|
|
| 42 |
/*===========================================================================*/ |
|
| 43 |
/* Driver local functions. */ |
|
| 44 |
/*===========================================================================*/ |
|
| 38 | 45 |
|
| 39 | 46 |
/** |
| 40 | 47 |
* @brief GPIO initialization. |
| ... | ... | |
| 114 | 121 |
#endif |
| 115 | 122 |
} |
| 116 | 123 |
|
| 124 |
/*===========================================================================*/ |
|
| 125 |
/* Driver interrupt handlers. */ |
|
| 126 |
/*===========================================================================*/ |
|
| 127 |
|
|
| 128 |
/*===========================================================================*/ |
|
| 129 |
/* Driver exported functions. */ |
|
| 130 |
/*===========================================================================*/ |
|
| 131 |
|
|
| 117 | 132 |
/** |
| 118 | 133 |
* @brief Early initialization code. |
| 119 | 134 |
* @details This initialization must be performed just after stack setup |
| modules/PowerManagement_1-1/board.h | ||
|---|---|---|
| 27 | 27 |
#ifndef BOARD_H |
| 28 | 28 |
#define BOARD_H |
| 29 | 29 |
|
| 30 |
/*===========================================================================*/ |
|
| 31 |
/* Driver constants. */ |
|
| 32 |
/*===========================================================================*/ |
|
| 33 |
|
|
| 30 | 34 |
/* |
| 31 | 35 |
* Setup for AMiRo PowerManagement v1.1 board. |
| 32 | 36 |
*/ |
| ... | ... | |
| 308 | 312 |
#define LINE_OSC_IN PAL_LINE(GPIOH, 0U) |
| 309 | 313 |
#define LINE_OSC_OUT PAL_LINE(GPIOH, 1U) |
| 310 | 314 |
|
| 315 |
/*===========================================================================*/ |
|
| 316 |
/* Driver pre-compile time settings. */ |
|
| 317 |
/*===========================================================================*/ |
|
| 318 |
|
|
| 319 |
/*===========================================================================*/ |
|
| 320 |
/* Derived constants and error checks. */ |
|
| 321 |
/*===========================================================================*/ |
|
| 322 |
|
|
| 323 |
/*===========================================================================*/ |
|
| 324 |
/* Driver data structures and types. */ |
|
| 325 |
/*===========================================================================*/ |
|
| 326 |
|
|
| 327 |
/*===========================================================================*/ |
|
| 328 |
/* Driver macros. */ |
|
| 329 |
/*===========================================================================*/ |
|
| 330 |
|
|
| 311 | 331 |
/* |
| 312 | 332 |
* I/O ports initial setup, this configuration is established soon after reset |
| 313 | 333 |
* in the initialization code. |
| ... | ... | |
| 1383 | 1403 |
PIN_AFIO_AF(GPIOI_PIN14, STM32F4xx_AF_system) | \ |
| 1384 | 1404 |
PIN_AFIO_AF(GPIOI_PIN15, STM32F4xx_AF_system)) |
| 1385 | 1405 |
|
| 1406 |
/*===========================================================================*/ |
|
| 1407 |
/* External declarations. */ |
|
| 1408 |
/*===========================================================================*/ |
|
| 1409 |
|
|
| 1386 | 1410 |
#if !defined(_FROM_ASM_) |
| 1387 | 1411 |
#ifdef __cplusplus |
| 1388 | 1412 |
extern "C" {
|
| modules/PowerManagement_1-2/board.c | ||
|---|---|---|
| 27 | 27 |
#include <hal.h> |
| 28 | 28 |
#include <stm32_gpio.h> |
| 29 | 29 |
|
| 30 |
/** |
|
| 31 |
* @brief GPIO initialization. |
|
| 32 |
* |
|
| 33 |
* @param[in] gpiop GPIO register block. |
|
| 34 |
* @param[in] config GPIO configuration. |
|
| 35 |
*/ |
|
| 30 |
/*===========================================================================*/ |
|
| 31 |
/* Driver local definitions. */ |
|
| 32 |
/*===========================================================================*/ |
|
| 36 | 33 |
|
| 34 |
/*===========================================================================*/ |
|
| 35 |
/* Driver exported variables. */ |
|
| 36 |
/*===========================================================================*/ |
|
| 37 | 37 |
|
| 38 |
/*===========================================================================*/ |
|
| 39 |
/* Driver local variables and types. */ |
|
| 40 |
/*===========================================================================*/ |
|
| 41 |
|
|
| 42 |
/*===========================================================================*/ |
|
| 43 |
/* Driver local functions. */ |
|
| 44 |
/*===========================================================================*/ |
|
| 38 | 45 |
|
| 39 | 46 |
/** |
| 40 | 47 |
* @brief GPIO initialization. |
| ... | ... | |
| 114 | 121 |
#endif |
| 115 | 122 |
} |
| 116 | 123 |
|
| 124 |
/*===========================================================================*/ |
|
| 125 |
/* Driver interrupt handlers. */ |
|
| 126 |
/*===========================================================================*/ |
|
| 127 |
|
|
| 128 |
/*===========================================================================*/ |
|
| 129 |
/* Driver exported functions. */ |
|
| 130 |
/*===========================================================================*/ |
|
| 131 |
|
|
| 117 | 132 |
/** |
| 118 | 133 |
* @brief Early initialization code. |
| 119 | 134 |
* @details This initialization must be performed just after stack setup |
| modules/PowerManagement_1-2/board.h | ||
|---|---|---|
| 27 | 27 |
#ifndef BOARD_H |
| 28 | 28 |
#define BOARD_H |
| 29 | 29 |
|
| 30 |
/*===========================================================================*/ |
|
| 31 |
/* Driver constants. */ |
|
| 32 |
/*===========================================================================*/ |
|
| 33 |
|
|
| 30 | 34 |
/* |
| 31 | 35 |
* Setup for AMiRo PowerManagement v1.2 board. |
| 32 | 36 |
*/ |
| ... | ... | |
| 309 | 313 |
#define LINE_OSC_IN PAL_LINE(GPIOH, 0U) |
| 310 | 314 |
#define LINE_OSC_OUT PAL_LINE(GPIOH, 1U) |
| 311 | 315 |
|
| 316 |
/*===========================================================================*/ |
|
| 317 |
/* Driver pre-compile time settings. */ |
|
| 318 |
/*===========================================================================*/ |
|
| 319 |
|
|
| 320 |
/*===========================================================================*/ |
|
| 321 |
/* Derived constants and error checks. */ |
|
| 322 |
/*===========================================================================*/ |
|
| 323 |
|
|
| 324 |
/*===========================================================================*/ |
|
| 325 |
/* Driver data structures and types. */ |
|
| 326 |
/*===========================================================================*/ |
|
| 327 |
|
|
| 328 |
/*===========================================================================*/ |
|
| 329 |
/* Driver macros. */ |
|
| 330 |
/*===========================================================================*/ |
|
| 331 |
|
|
| 312 | 332 |
/* |
| 313 | 333 |
* I/O ports initial setup, this configuration is established soon after reset |
| 314 | 334 |
* in the initialization code. |
| ... | ... | |
| 1384 | 1404 |
PIN_AFIO_AF(GPIOI_PIN14, STM32F4xx_AF_system) | \ |
| 1385 | 1405 |
PIN_AFIO_AF(GPIOI_PIN15, STM32F4xx_AF_system)) |
| 1386 | 1406 |
|
| 1407 |
/*===========================================================================*/ |
|
| 1408 |
/* External declarations. */ |
|
| 1409 |
/*===========================================================================*/ |
|
| 1410 |
|
|
| 1387 | 1411 |
#if !defined(_FROM_ASM_) |
| 1388 | 1412 |
#ifdef __cplusplus |
| 1389 | 1413 |
extern "C" {
|
Also available in: Unified diff