Go to the documentation of this file.
19 #define UUID_ADDRESS (0x1FF1E800)
20 #define UUID_SIZE (12)
22 #define PV_COM (USART1)
23 #define PV_COM_ALT (GPIO_AF7_USART1)
24 #define PV_COM_IRQn (USART1_IRQn)
25 #define PV_COM_TX_Pin (GPIO_PIN_10)
26 #define PV_COM_TX_GPIO_Port (GPIOA)
27 #define PV_COM_RX_Pin (GPIO_PIN_9)
28 #define PV_COM_RX_GPIO_Port (GPIOA)
30 #define SDRAM_DEVICE_ADDR 0xD0000000U
36 MPU_Region_InitTypeDef MPU_InitStruct;
38 MPU_InitStruct.Enable = MPU_REGION_ENABLE;
40 MPU_InitStruct.Size = MPU_REGION_SIZE_32MB;
41 MPU_InitStruct.AccessPermission = MPU_REGION_FULL_ACCESS;
42 MPU_InitStruct.IsBufferable = MPU_ACCESS_NOT_BUFFERABLE;
43 MPU_InitStruct.IsCacheable = MPU_ACCESS_CACHEABLE;
44 MPU_InitStruct.IsShareable = MPU_ACCESS_NOT_SHAREABLE;
45 MPU_InitStruct.Number = MPU_REGION_NUMBER0;
46 MPU_InitStruct.TypeExtField = MPU_TEX_LEVEL0;
47 MPU_InitStruct.SubRegionDisable = 0x00;
48 MPU_InitStruct.DisableExec = MPU_INSTRUCTION_ACCESS_ENABLE;
49 HAL_MPU_ConfigRegion(&MPU_InitStruct);
50 HAL_MPU_Enable(MPU_PRIVILEGED_DEFAULT);
76 RCC_OscInitStruct.
PLL.
PLLN = 160;
156 return (
const uint8_t *)
uuid;
#define __HAL_PWR_GET_FLAG(__FLAG__)
Check PWR flag is set or not.
#define UART_TXFIFO_THRESHOLD_1_8
HAL_StatusTypeDef
HAL Status structures definition
void pv_error_handler(void)
void HAL_NVIC_EnableIRQ(IRQn_Type IRQn)
HAL_StatusTypeDef HAL_UART_Transmit(UART_HandleTypeDef *huart, uint8_t *pData, uint16_t Size, uint32_t Timeout)
@ PV_STATUS_INVALID_STATE
HAL_StatusTypeDef HAL_UARTEx_DisableFifoMode(UART_HandleTypeDef *huart)
GPIO Init structure definition
RCC System, AHB and APB busses clock configuration structure definition.
#define PV_COM_TX_GPIO_Port
#define __HAL_RCC_USART1_CLK_ENABLE()
RCC Internal/External Oscillator (HSE, HSI, LSE and LSI) configuration structure definition.
This file contains definitions for STM32H747I_DISCO: LEDs push-buttons COM ports hardware resources.
#define UART_RXFIFO_THRESHOLD_1_8
#define GPIO_SPEED_FREQ_LOW
UART handle Structure definition.
static void MPU_Config(void)
HAL_StatusTypeDef HAL_PWREx_ConfigSupply(uint32_t SupplySource)
__STATIC_FORCEINLINE void SCB_EnableICache(void)
Enable I-Cache.
#define RCC_SYSCLKSOURCE_PLLCLK
#define UART_HWCONTROL_NONE
pv_status_t pv_board_init()
pv_status_t pv_message_init(void)
void HAL_GPIO_Init(GPIO_TypeDef *GPIOx, GPIO_InitTypeDef *GPIO_Init)
#define RCC_CLOCKTYPE_PCLK1
HAL_StatusTypeDef HAL_RCC_ClockConfig(RCC_ClkInitTypeDef *RCC_ClkInitStruct, uint32_t FLatency)
static pv_status_t pv_uart_init(void)
#define RCC_CLOCKTYPE_D3PCLK1
HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart)
static uint8_t uuid[UUID_SIZE]
HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
#define __HAL_RCC_SYSCFG_CLK_ENABLE()
static void CPU_CACHE_Enable(void)
void assert_failed(uint8_t *file, uint32_t line)
#define UART_WORDLENGTH_8B
#define RCC_PLLSOURCE_HSE
#define RCC_CLOCKTYPE_SYSCLK
#define PWR_REGULATOR_VOLTAGE_SCALE1
#define __HAL_RCC_GPIOA_CLK_ENABLE()
HAL_StatusTypeDef HAL_Init(void)
This function is used to initialize the HAL Library; it must be the first instruction to be executed ...
const uint8_t * pv_get_uuid(void)
#define RCC_CLOCKTYPE_HCLK
__STATIC_FORCEINLINE void SCB_EnableDCache(void)
Enable D-Cache.
const uint32_t pv_get_uuid_size(void)
#define SDRAM_DEVICE_ADDR
#define RCC_PLL1VCIRANGE_2
static pv_status_t pv_clock_config(void)
#define UART_OVERSAMPLING_16
#define RCC_OSCILLATORTYPE_HSE
void HAL_NVIC_SetPriority(IRQn_Type IRQn, uint32_t PreemptPriority, uint32_t SubPriority)
#define RCC_CLOCKTYPE_D1PCLK1
HAL_StatusTypeDef HAL_UARTEx_SetTxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold)
void HAL_EnableCompensationCell(void)
Enables the I/O Compensation Cell.
HAL_StatusTypeDef HAL_UARTEx_SetRxFifoThreshold(UART_HandleTypeDef *huart, uint32_t Threshold)
#define __HAL_RCC_CSI_ENABLE()
Macros to enable or disable the Internal oscillator (CSI).
void BSP_LED_Init(Led_TypeDef Led)
Configures LED GPIO.
#define __HAL_PWR_VOLTAGESCALING_CONFIG(__REGULATOR__)
macros configure the main internal regulator output voltage.