Files

  • Not Found
  • Invalid object requested. SHA must identify a commit or a tree.
Last update 6 years 1 month
Filescodecommon
..
GPIO-STM32F303_gpio_v1_0_Modes.xml
board.c
board.h
board_gpio.h
common.c
common.h
common.mk
link.ld
stm32f30x_flash.c
stm32f30x_flash.h
storage.c
storage.h
board.h
/* ChibiOS/RT - Copyright (C) 2006-2013 Giovanni Di Sirio Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ #ifndef _BOARD_H_ #define _BOARD_H_ /* * Setup for board. */ /* * Board identifier. */ #define BOARD_MOTOLINK_REV_B #define BOARD_NAME "Open Source Wideband Controller Revision A" /* * Board oscillators-related settings. * NOTE: LSE not fitted. */ #if !defined(STM32_LSECLK) #define STM32_LSECLK 0 #endif #define STM32_LSEDRV (3 << 3) #if !defined(STM32_HSECLK) #define STM32_HSECLK 8000000 #endif /* * MCU type as defined in the ST header. */ #define STM32F303xC #define STM32F30X //Fix /* * I/O ports initial setup, this configuration is established soon after reset * in the initialization code. * Please refer to the STM32 Reference Manual for details. */ #define PIN_MODE_INPUT(n) (0U << ((n) * 2)) #define PIN_MODE_OUTPUT(n) (1U << ((n) * 2)) #define PIN_MODE_ALTERNATE(n) (2U << ((n) * 2)) #define PIN_MODE_ANALOG(n) (3U << ((n) * 2)) #define PIN_ODR_LOW(n) (0U << (n)) #define PIN_ODR_HIGH(n) (1U << (n)) #define PIN_OTYPE_PUSHPULL(n) (0U << (n)) #define PIN_OTYPE_OPENDRAIN(n) (1U << (n)) #define PIN_OSPEED_VERYLOW(n) (0U << ((n) * 2)) #define PIN_OSPEED_LOW(n) (1U << ((n) * 2)) #define PIN_OSPEED_MEDIUM(n) (2U << ((n) * 2)) #define PIN_OSPEED_HIGH(n) (3U << ((n) * 2)) #define PIN_PUPDR_FLOATING(n) (0U << ((n) * 2)) #define PIN_PUPDR_PULLUP(n) (1U << ((n) * 2)) #define PIN_PUPDR_PULLDOWN(n) (2U << ((n) * 2)) #define PIN_AFIO_AF(n, v) ((v##U) << ((n % 8) * 4)) /* * IO pins assignments. */ #include "board_gpio.h" #if !defined(_FROM_ASM_) #ifdef __cplusplus extern "C" { #endif void boardInit(void); #ifdef __cplusplus } #endif #endif /* _FROM_ASM_ */ #endif /* _BOARD_H_ */
Report a bug