Initial commit

Dependencies:   FastPWM

Committer:
lypinator
Date:
Wed Sep 16 01:11:49 2020 +0000
Revision:
0:bb348c97df44
Added PWM

Who changed what in which revision?

UserRevisionLine numberNew contents of line
lypinator 0:bb348c97df44 1 /*
lypinator 0:bb348c97df44 2 * Copyright (c) 2015-2015, ARM Limited, All Rights Reserved
lypinator 0:bb348c97df44 3 * SPDX-License-Identifier: Apache-2.0
lypinator 0:bb348c97df44 4 *
lypinator 0:bb348c97df44 5 * Licensed under the Apache License, Version 2.0 (the "License"); you may
lypinator 0:bb348c97df44 6 * not use this file except in compliance with the License.
lypinator 0:bb348c97df44 7 * You may obtain a copy of the License at
lypinator 0:bb348c97df44 8 *
lypinator 0:bb348c97df44 9 * http://www.apache.org/licenses/LICENSE-2.0
lypinator 0:bb348c97df44 10 *
lypinator 0:bb348c97df44 11 * Unless required by applicable law or agreed to in writing, software
lypinator 0:bb348c97df44 12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
lypinator 0:bb348c97df44 13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
lypinator 0:bb348c97df44 14 * See the License for the specific language governing permissions and
lypinator 0:bb348c97df44 15 * limitations under the License.
lypinator 0:bb348c97df44 16 */
lypinator 0:bb348c97df44 17 #include "stm32f4xx_hal.h"
lypinator 0:bb348c97df44 18
lypinator 0:bb348c97df44 19 HAL_StatusTypeDef HAL_InitPre(void);
lypinator 0:bb348c97df44 20
lypinator 0:bb348c97df44 21 /* this function is needed to peform hardware initialization that must happen
lypinator 0:bb348c97df44 22 * before the uVisor; the whole SystemInit function for the STM32F4 cannot be
lypinator 0:bb348c97df44 23 * put here as it depends on some APIs that need uVisor to be enabled */
lypinator 0:bb348c97df44 24 HAL_StatusTypeDef HAL_InitPre(void)
lypinator 0:bb348c97df44 25 {
lypinator 0:bb348c97df44 26 /* Set Interrupt Group Priority */
lypinator 0:bb348c97df44 27 HAL_NVIC_SetPriorityGrouping(NVIC_PRIORITYGROUP_4);
lypinator 0:bb348c97df44 28
lypinator 0:bb348c97df44 29 /* Return function status */
lypinator 0:bb348c97df44 30 return HAL_OK;
lypinator 0:bb348c97df44 31 }