Go to the documentation of this file.
19 #define UUID_ADDRESS (0x1FF0F420)
20 #define UUID_SIZE (12)
23 #define PV_COM (USART1)
24 #define PV_COM_ALT (GPIO_AF7_USART1)
25 #define PV_COM_IRQn (USART1_IRQn)
26 #define PV_COM_TX_Pin (GPIO_PIN_10)
27 #define PV_COM_TX_GPIO_Port (GPIOA)
28 #define PV_COM_RX_Pin (GPIO_PIN_9)
29 #define PV_COM_RX_GPIO_Port (GPIOA)
42 RCC_OscInitStruct.
PLL.
PLLM = 25;
43 RCC_OscInitStruct.
PLL.
PLLN = 400;
103 return (
const uint8_t *)
uuid;
void pv_error_handler(void)
static uint8_t uuid[UUID_SIZE]
void assert_failed(uint8_t *file, uint32_t line)
HAL_StatusTypeDef
HAL Status structures definition
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
GPIO Init structure definition
pv_status_t pv_board_init()
RCC System, AHB and APB busses clock configuration structure definition.
#define __HAL_RCC_USART1_CLK_ENABLE()
HAL_StatusTypeDef HAL_PWREx_EnableOverDrive(void)
RCC Internal/External Oscillator (HSE, HSI, LSE and LSI) configuration structure definition.
#define PV_COM_TX_GPIO_Port
This file contains definitions for STM32F769I-Discovery LEDs, push-buttons hardware resources.
const uint32_t pv_get_uuid_size(void)
#define GPIO_SPEED_FREQ_LOW
UART handle Structure definition.
__STATIC_FORCEINLINE void SCB_EnableICache(void)
Enable I-Cache.
#define RCC_SYSCLKSOURCE_PLLCLK
#define UART_HWCONTROL_NONE
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)
HAL_StatusTypeDef HAL_UART_Init(UART_HandleTypeDef *huart)
HAL_StatusTypeDef HAL_RCC_OscConfig(RCC_OscInitTypeDef *RCC_OscInitStruct)
#define RCC_CLOCKTYPE_PCLK2
static pv_status_t pv_uart_init(void)
#define UART_WORDLENGTH_8B
#define RCC_PLLSOURCE_HSE
#define RCC_CLOCKTYPE_SYSCLK
#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 ...
#define RCC_CLOCKTYPE_HCLK
__STATIC_FORCEINLINE void SCB_EnableDCache(void)
Enable D-Cache.
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)
const uint8_t * pv_get_uuid(void)
pv_status_t pv_message_init(void)
void BSP_LED_Init(Led_TypeDef Led)
Configures LED GPIO.