kosmos threading running
This commit is contained in:
@@ -1,29 +0,0 @@
|
||||
//
|
||||
// This file is part of the GNU ARM Eclipse distribution.
|
||||
// Copyright (c) 2014 Liviu Ionescu.
|
||||
//
|
||||
|
||||
#include "BlinkLed.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
void
|
||||
blink_led_init()
|
||||
{
|
||||
// Enable GPIO Peripheral clock
|
||||
RCC->AHB1ENR |= BLINK_RCC_MASKx(BLINK_PORT_NUMBER);
|
||||
|
||||
GPIO_InitTypeDef GPIO_InitStructure;
|
||||
|
||||
// Configure pin in output push/pull mode
|
||||
GPIO_InitStructure.Pin = BLINK_PIN_MASK(BLINK_PIN_NUMBER);
|
||||
GPIO_InitStructure.Mode = GPIO_MODE_OUTPUT_PP;
|
||||
GPIO_InitStructure.Speed = GPIO_SPEED_FAST;
|
||||
GPIO_InitStructure.Pull = GPIO_PULLUP;
|
||||
HAL_GPIO_Init(BLINK_GPIOx(BLINK_PORT_NUMBER), &GPIO_InitStructure);
|
||||
|
||||
// Start with led turned off
|
||||
blink_led_off();
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
@@ -1,64 +0,0 @@
|
||||
//
|
||||
// This file is part of the GNU ARM Eclipse distribution.
|
||||
// Copyright (c) 2014 Liviu Ionescu.
|
||||
//
|
||||
|
||||
#include "Timer.h"
|
||||
#include "cortexm/ExceptionHandlers.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#if defined(USE_HAL_DRIVER)
|
||||
void HAL_IncTick(void);
|
||||
#endif
|
||||
|
||||
// Forward declarations.
|
||||
|
||||
void
|
||||
timer_tick (void);
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
volatile timer_ticks_t timer_delayCount;
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
void
|
||||
timer_start (void)
|
||||
{
|
||||
// Use SysTick as reference for the delay loops.
|
||||
SysTick_Config (SystemCoreClock / TIMER_FREQUENCY_HZ);
|
||||
}
|
||||
|
||||
void
|
||||
timer_sleep (timer_ticks_t ticks)
|
||||
{
|
||||
timer_delayCount = ticks;
|
||||
|
||||
// Busy wait until the SysTick decrements the counter to zero.
|
||||
while (timer_delayCount != 0u)
|
||||
;
|
||||
}
|
||||
|
||||
void
|
||||
timer_tick (void)
|
||||
{
|
||||
// Decrement to zero the counter used by the delay routine.
|
||||
if (timer_delayCount != 0u)
|
||||
{
|
||||
--timer_delayCount;
|
||||
}
|
||||
}
|
||||
|
||||
// ----- SysTick_Handler() ----------------------------------------------------
|
||||
|
||||
void
|
||||
SysTick_Handler (void)
|
||||
{
|
||||
#if defined(USE_HAL_DRIVER)
|
||||
HAL_IncTick();
|
||||
#endif
|
||||
timer_tick ();
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
@@ -1,172 +0,0 @@
|
||||
//
|
||||
// This file is part of the GNU ARM Eclipse distribution.
|
||||
// Copyright (c) 2014 Liviu Ionescu.
|
||||
//
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#include "stm32f4xx.h"
|
||||
#include "stm32f4xx_hal.h"
|
||||
#include "stm32f4xx_hal_cortex.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// The external clock frequency is specified as a preprocessor definition
|
||||
// passed to the compiler via a command line option (see the 'C/C++ General' ->
|
||||
// 'Paths and Symbols' -> the 'Symbols' tab, if you want to change it).
|
||||
// The value selected during project creation was HSE_VALUE=8000000.
|
||||
//
|
||||
// The code to set the clock is at the end.
|
||||
//
|
||||
// Note1: The default clock settings assume that the HSE_VALUE is a multiple
|
||||
// of 1MHz, and try to reach the maximum speed available for the
|
||||
// board. It does NOT guarantee that the required USB clock of 48MHz is
|
||||
// available. If you need this, please update the settings of PLL_M, PLL_N,
|
||||
// PLL_P, PLL_Q to match your needs.
|
||||
//
|
||||
// Note2: The external memory controllers are not enabled. If needed, you
|
||||
// have to define DATA_IN_ExtSRAM or DATA_IN_ExtSDRAM and to configure
|
||||
// the memory banks in system/src/cmsis/system_stm32f4xx.c to match your needs.
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// Forward declarations.
|
||||
|
||||
void
|
||||
__initialize_hardware(void);
|
||||
|
||||
void
|
||||
SystemClock_Config(void);
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// This is the application hardware initialisation routine,
|
||||
// redefined to add more inits.
|
||||
//
|
||||
// Called early from _start(), right after data & bss init, before
|
||||
// constructors.
|
||||
//
|
||||
// After Reset the Cortex-M processor is in Thread mode,
|
||||
// priority is Privileged, and the Stack is set to Main.
|
||||
//
|
||||
// Warning: The HAL requires the system timer, running at 1000 Hz
|
||||
// and calling HAL_IncTick().
|
||||
|
||||
void
|
||||
__initialize_hardware(void)
|
||||
{
|
||||
// Initialise the HAL Library; it must be the first function
|
||||
// to be executed before the call of any HAL function.
|
||||
HAL_Init();
|
||||
|
||||
// Enable HSE Oscillator and activate PLL with HSE as source
|
||||
SystemClock_Config();
|
||||
|
||||
// Call the CSMSIS system clock routine to store the clock frequency
|
||||
// in the SystemCoreClock global RAM location.
|
||||
SystemCoreClockUpdate();
|
||||
}
|
||||
|
||||
// Disable when using RTOSes, since they have their own handler.
|
||||
#if 0
|
||||
|
||||
// This is a sample SysTick handler, use it if you need HAL timings.
|
||||
void __attribute__ ((section(".after_vectors")))
|
||||
SysTick_Handler(void)
|
||||
{
|
||||
#if defined(USE_HAL_DRIVER)
|
||||
HAL_IncTick();
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
/**
|
||||
* @brief System Clock Configuration
|
||||
* @param None
|
||||
* @retval None
|
||||
*/
|
||||
void
|
||||
__attribute__((weak))
|
||||
SystemClock_Config(void)
|
||||
{
|
||||
// Enable Power Control clock
|
||||
__PWR_CLK_ENABLE();
|
||||
|
||||
// The voltage scaling allows optimizing the power consumption when the
|
||||
// device is clocked below the maximum system frequency, to update the
|
||||
// voltage scaling value regarding system frequency refer to product
|
||||
// datasheet.
|
||||
__HAL_PWR_VOLTAGESCALING_CONFIG(PWR_REGULATOR_VOLTAGE_SCALE1);
|
||||
|
||||
//#warning "Please check if the SystemClock_Config() settings match your board!"
|
||||
// Comment out the warning after checking and updating.
|
||||
|
||||
RCC_OscInitTypeDef RCC_OscInitStruct;
|
||||
|
||||
#if defined(HSE_VALUE) && (HSE_VALUE != 0)
|
||||
// Enable HSE Oscillator and activate PLL with HSE as source.
|
||||
// This is tuned for STM32F4-DISCOVERY; update it for your board.
|
||||
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSE;
|
||||
RCC_OscInitStruct.HSEState = RCC_HSE_ON;
|
||||
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE;
|
||||
// This assumes the HSE_VALUE is a multiple of 1 MHz. If this is not
|
||||
// your case, you have to recompute these PLL constants.
|
||||
RCC_OscInitStruct.PLL.PLLM = (HSE_VALUE/1000000u);
|
||||
#else
|
||||
// Use HSI and activate PLL with HSI as source.
|
||||
// This is tuned for NUCLEO-F411; update it for your board.
|
||||
RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI;
|
||||
RCC_OscInitStruct.HSIState = RCC_HSI_ON;
|
||||
// 16 is the average calibration value, adjust for your own board.
|
||||
RCC_OscInitStruct.HSICalibrationValue = 16;
|
||||
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSI;
|
||||
// This assumes the HSI_VALUE is a multiple of 1 MHz. If this is not
|
||||
// your case, you have to recompute these PLL constants.
|
||||
RCC_OscInitStruct.PLL.PLLM = (HSI_VALUE/1000000u);
|
||||
#endif
|
||||
|
||||
RCC_OscInitStruct.PLL.PLLN = 336;
|
||||
#if defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F411xE)
|
||||
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV4; /* 84 MHz */
|
||||
#elif defined(STM32F427xx) || defined(STM32F437xx) || defined(STM32F429xx) || defined(STM32F439xx)
|
||||
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2; /* 168 MHz */
|
||||
#elif defined(STM32F405xx) || defined(STM32F415xx) || defined(STM32F407xx) || defined(STM32F417xx)
|
||||
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2; /* 168 MHz */
|
||||
#elif defined(STM32F446xx)
|
||||
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV2; /* 168 MHz */
|
||||
#else
|
||||
RCC_OscInitStruct.PLL.PLLP = RCC_PLLP_DIV4; /* 84 MHz, conservative */
|
||||
#endif
|
||||
RCC_OscInitStruct.PLL.PLLQ = 7; /* To make USB work. */
|
||||
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON;
|
||||
HAL_RCC_OscConfig(&RCC_OscInitStruct);
|
||||
|
||||
RCC_ClkInitTypeDef RCC_ClkInitStruct;
|
||||
// Select PLL as system clock source and configure the HCLK, PCLK1 and PCLK2
|
||||
// clocks dividers
|
||||
RCC_ClkInitStruct.ClockType = (RCC_CLOCKTYPE_SYSCLK | RCC_CLOCKTYPE_HCLK
|
||||
| RCC_CLOCKTYPE_PCLK1 | RCC_CLOCKTYPE_PCLK2);
|
||||
RCC_ClkInitStruct.SYSCLKSource = RCC_SYSCLKSOURCE_PLLCLK;
|
||||
#if defined(STM32F401xC) || defined(STM32F401xE) || defined(STM32F411xE)
|
||||
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
|
||||
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV2;
|
||||
RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV1;
|
||||
HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_2);
|
||||
#else
|
||||
// This is expected to work for most large cores.
|
||||
// Check and update it for your own configuration.
|
||||
RCC_ClkInitStruct.AHBCLKDivider = RCC_SYSCLK_DIV1;
|
||||
RCC_ClkInitStruct.APB1CLKDivider = RCC_HCLK_DIV4;
|
||||
RCC_ClkInitStruct.APB2CLKDivider = RCC_HCLK_DIV2;
|
||||
HAL_RCC_ClockConfig(&RCC_ClkInitStruct, FLASH_LATENCY_5);
|
||||
#endif
|
||||
|
||||
HAL_SYSTICK_Config(HAL_RCC_GetHCLKFreq()/1000);
|
||||
|
||||
HAL_SYSTICK_CLKSourceConfig(SYSTICK_CLKSOURCE_HCLK);
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
@@ -1,50 +0,0 @@
|
||||
//
|
||||
// This file is part of the µOS++ III distribution.
|
||||
// Copyright (c) 2014 Liviu Ionescu.
|
||||
//
|
||||
|
||||
// Do not include on semihosting and when freestanding
|
||||
#if !defined(OS_USE_SEMIHOSTING) && !(__STDC_HOSTED__ == 0)
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#include <errno.h>
|
||||
#include "diag/Trace.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
// When using retargetted configurations, the standard write() system call,
|
||||
// after a long way inside newlib, finally calls this implementation function.
|
||||
|
||||
// Based on the file descriptor, it can send arrays of characters to
|
||||
// different physical devices.
|
||||
|
||||
// Currently only the output and error file descriptors are tested,
|
||||
// and the characters are forwarded to the trace device, mainly
|
||||
// for demonstration purposes. Adjust it for your specific needs.
|
||||
|
||||
// For freestanding applications this file is not used and can be safely
|
||||
// ignored.
|
||||
|
||||
ssize_t
|
||||
_write (int fd, const char* buf, size_t nbyte);
|
||||
|
||||
ssize_t
|
||||
_write (int fd __attribute__((unused)), const char* buf __attribute__((unused)),
|
||||
size_t nbyte __attribute__((unused)))
|
||||
{
|
||||
#if defined(TRACE)
|
||||
// STDOUT and STDERR are routed to the trace device
|
||||
if (fd == 1 || fd == 2)
|
||||
{
|
||||
return trace_write (buf, nbyte);
|
||||
}
|
||||
#endif // TRACE
|
||||
|
||||
errno = ENOSYS;
|
||||
return -1;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#endif // !defined(OS_USE_SEMIHOSTING) && !(__STDC_HOSTED__ == 0)
|
@@ -1,84 +0,0 @@
|
||||
//
|
||||
// This file is part of the GNU ARM Eclipse distribution.
|
||||
// Copyright (c) 2014 Liviu Ionescu.
|
||||
//
|
||||
|
||||
#ifndef BLINKLED_H_
|
||||
#define BLINKLED_H_
|
||||
|
||||
#include "stm32f4xx.h"
|
||||
#include "stm32f4xx_hal.h"
|
||||
|
||||
// ----- LED definitions ------------------------------------------------------
|
||||
|
||||
// Adjust these definitions for your own board.
|
||||
|
||||
#if defined(BOARD_OLIMEX_STM32_E407)
|
||||
|
||||
// STM32-E407 definitions (the GREEN led, C13, active low)
|
||||
|
||||
// Port numbers: 0=A, 1=B, 2=C, 3=D, 4=E, 5=F, 6=G, ...
|
||||
#define BLINK_PORT_NUMBER (2)
|
||||
#define BLINK_PIN_NUMBER (13)
|
||||
#define BLINK_ACTIVE_LOW (1)
|
||||
|
||||
#else
|
||||
|
||||
// STM32F4DISCOVERY definitions (the GREEN led, D12, active high)
|
||||
// (SEGGER J-Link device name: STM32F407VG).
|
||||
|
||||
#define BLINK_PORT_NUMBER (3)
|
||||
#define BLINK_PIN_NUMBER (12)
|
||||
#define BLINK_ACTIVE_LOW (0)
|
||||
|
||||
#endif
|
||||
|
||||
#define BLINK_GPIOx(_N) ((GPIO_TypeDef *)(GPIOA_BASE + (GPIOB_BASE-GPIOA_BASE)*(_N)))
|
||||
#define BLINK_PIN_MASK(_N) (1 << (_N))
|
||||
#define BLINK_RCC_MASKx(_N) (RCC_AHB1ENR_GPIOAEN << (_N))
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
extern
|
||||
void
|
||||
blink_led_init(void);
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
inline void
|
||||
blink_led_on(void);
|
||||
|
||||
inline void
|
||||
blink_led_off(void);
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
inline void
|
||||
__attribute__((always_inline))
|
||||
blink_led_on(void)
|
||||
{
|
||||
#if (BLINK_ACTIVE_LOW)
|
||||
HAL_GPIO_WritePin(BLINK_GPIOx(BLINK_PORT_NUMBER),
|
||||
BLINK_PIN_MASK(BLINK_PIN_NUMBER), GPIO_PIN_RESET);
|
||||
#else
|
||||
HAL_GPIO_WritePin(BLINK_GPIOx(BLINK_PORT_NUMBER),
|
||||
BLINK_PIN_MASK(BLINK_PIN_NUMBER), GPIO_PIN_SET);
|
||||
#endif
|
||||
}
|
||||
|
||||
inline void
|
||||
__attribute__((always_inline))
|
||||
blink_led_off(void)
|
||||
{
|
||||
#if (BLINK_ACTIVE_LOW)
|
||||
HAL_GPIO_WritePin(BLINK_GPIOx(BLINK_PORT_NUMBER),
|
||||
BLINK_PIN_MASK(BLINK_PIN_NUMBER), GPIO_PIN_SET);
|
||||
#else
|
||||
HAL_GPIO_WritePin(BLINK_GPIOx(BLINK_PORT_NUMBER),
|
||||
BLINK_PIN_MASK(BLINK_PIN_NUMBER), GPIO_PIN_RESET);
|
||||
#endif
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#endif // BLINKLED_H_
|
@@ -1,27 +0,0 @@
|
||||
//
|
||||
// This file is part of the GNU ARM Eclipse distribution.
|
||||
// Copyright (c) 2014 Liviu Ionescu.
|
||||
//
|
||||
|
||||
#ifndef TIMER_H_
|
||||
#define TIMER_H_
|
||||
|
||||
#include "cmsis_device.h"
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#define TIMER_FREQUENCY_HZ (1000u)
|
||||
|
||||
typedef uint32_t timer_ticks_t;
|
||||
|
||||
extern volatile timer_ticks_t timer_delayCount;
|
||||
|
||||
extern void
|
||||
timer_start (void);
|
||||
|
||||
extern void
|
||||
timer_sleep (timer_ticks_t ticks);
|
||||
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
#endif // TIMER_H_
|
@@ -1 +0,0 @@
|
||||
INCLUDES += include
|
@@ -3,20 +3,16 @@
|
||||
// Copyright (c) 2014 Liviu Ionescu.
|
||||
//
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "diag/Trace.h"
|
||||
|
||||
#include "Timer.h"
|
||||
#include "BlinkLed.h"
|
||||
|
||||
#include "stack.h"
|
||||
#include "queue.h"
|
||||
#include "kernel.h"
|
||||
#include "board.h"
|
||||
#include "driver.h"
|
||||
|
||||
// Keep the LED on for 2/3 of a second.
|
||||
#define BLINK_ON_TICKS (TIMER_FREQUENCY_HZ * 3 / 4)
|
||||
#define BLINK_OFF_TICKS (TIMER_FREQUENCY_HZ - BLINK_ON_TICKS)
|
||||
|
||||
// Sample pragmas to cope with warnings. Please note the related line at
|
||||
// the end of this function, used to pop the compiler diagnostics status.
|
||||
#pragma GCC diagnostic push
|
||||
@@ -24,25 +20,30 @@
|
||||
#pragma GCC diagnostic ignored "-Wmissing-declarations"
|
||||
#pragma GCC diagnostic ignored "-Wreturn-type"
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
#define TH_STACK_SIZE 256
|
||||
stack_t th_stack[TH_STACK_SIZE];
|
||||
struct thread_context th_ctx;
|
||||
static void th_func(void *arg)
|
||||
{
|
||||
trace_puts("Hello ARM World!");
|
||||
trace_printf("System clock: %u Hz\n", SystemCoreClock);
|
||||
timer_start();
|
||||
// blink_led_init();
|
||||
uint32_t seconds = 0;
|
||||
drv_open(&gpio_d12);
|
||||
drv_write(&gpio_d12, "1", 1);
|
||||
drv_write(&gpio_d12, "0", 1);
|
||||
while(1) {
|
||||
// blink_led_on();
|
||||
sleep_ms(1000);
|
||||
drv_write(&gpio_d12, "1", 1);
|
||||
timer_sleep(seconds == 0 ? TIMER_FREQUENCY_HZ : BLINK_ON_TICKS);
|
||||
// blink_led_off();
|
||||
sleep_ms(1000);
|
||||
drv_write(&gpio_d12, "0", 1);
|
||||
timer_sleep(BLINK_OFF_TICKS);
|
||||
++seconds;
|
||||
trace_printf("Second %u\n", seconds);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
board_init();
|
||||
thread_create(&th_ctx, th_stack, TH_STACK_SIZE, th_func, NULL, THREAD_PRIO_LOW);
|
||||
|
||||
schedule_start();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#pragma GCC diagnostic pop
|
||||
|
@@ -1,130 +0,0 @@
|
||||
/**
|
||||
******************************************************************************
|
||||
* @file stm32f4xx_hal_msp_template.c
|
||||
* @author MCD Application Team
|
||||
* @version V1.4.4
|
||||
* @date 22-January-2016
|
||||
* @brief This file contains the HAL System and Peripheral (PPP) MSP initialization
|
||||
* and de-initialization functions.
|
||||
* It should be copied to the application folder and renamed into 'stm32f4xx_hal_msp.c'.
|
||||
******************************************************************************
|
||||
* @attention
|
||||
*
|
||||
* <h2><center>© COPYRIGHT(c) 2016 STMicroelectronics</center></h2>
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without modification,
|
||||
* are permitted provided that the following conditions are met:
|
||||
* 1. Redistributions of source code must retain the above copyright notice,
|
||||
* this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
* this list of conditions and the following disclaimer in the documentation
|
||||
* and/or other materials provided with the distribution.
|
||||
* 3. Neither the name of STMicroelectronics nor the names of its contributors
|
||||
* may be used to endorse or promote products derived from this software
|
||||
* without specific prior written permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
******************************************************************************
|
||||
*/
|
||||
|
||||
/* Includes ------------------------------------------------------------------*/
|
||||
#include "stm32f4xx_hal.h"
|
||||
|
||||
// [ILG]
|
||||
#if defined ( __GNUC__ )
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wmissing-prototypes"
|
||||
#endif
|
||||
|
||||
/** @addtogroup STM32F4xx_HAL_Driver
|
||||
* @{
|
||||
*/
|
||||
|
||||
/** @defgroup HAL_MSP HAL MSP
|
||||
* @brief HAL MSP module.
|
||||
* @{
|
||||
*/
|
||||
|
||||
/* Private typedef -----------------------------------------------------------*/
|
||||
/* Private define ------------------------------------------------------------*/
|
||||
/* Private macro -------------------------------------------------------------*/
|
||||
/* Private variables ---------------------------------------------------------*/
|
||||
/* Private function prototypes -----------------------------------------------*/
|
||||
/* Private functions ---------------------------------------------------------*/
|
||||
|
||||
/** @defgroup HAL_MSP_Private_Functions HAL MSP Private Functions
|
||||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* @brief Initializes the Global MSP.
|
||||
* @note This function is called from HAL_Init() function to perform system
|
||||
* level initialization (GPIOs, clock, DMA, interrupt).
|
||||
* @retval None
|
||||
*/
|
||||
void HAL_MspInit(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DeInitializes the Global MSP.
|
||||
* @note This functiona is called from HAL_DeInit() function to perform system
|
||||
* level de-initialization (GPIOs, clock, DMA, interrupt).
|
||||
* @retval None
|
||||
*/
|
||||
void HAL_MspDeInit(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Initializes the PPP MSP.
|
||||
* @note This functiona is called from HAL_PPP_Init() function to perform
|
||||
* peripheral(PPP) system level initialization (GPIOs, clock, DMA, interrupt)
|
||||
* @retval None
|
||||
*/
|
||||
void HAL_PPP_MspInit(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief DeInitializes the PPP MSP.
|
||||
* @note This functiona is called from HAL_PPP_DeInit() function to perform
|
||||
* peripheral(PPP) system level de-initialization (GPIOs, clock, DMA, interrupt)
|
||||
* @retval None
|
||||
*/
|
||||
void HAL_PPP_MspDeInit(void)
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
/**
|
||||
* @}
|
||||
*/
|
||||
|
||||
// [ILG]
|
||||
#if defined ( __GNUC__ )
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
Reference in New Issue
Block a user