gr55xx_hal_cortex.h File Reference

Header file of CORTEX HAL module. More...

#include "gr55xx_hal_def.h"
+ Include dependency graph for gr55xx_hal_cortex.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define NVIC_PRIORITYGROUP_0   (0x00000007U)
 0 bit for pre-emption priority, 8 bits for subpriority More...
 
#define NVIC_PRIORITYGROUP_1   (0x00000006U)
 1 bit for pre-emption priority, 7 bits for subpriority More...
 
#define NVIC_PRIORITYGROUP_2   (0x00000005U)
 2 bits for pre-emption priority, 6 bits for subpriority More...
 
#define NVIC_PRIORITYGROUP_3   (0x00000004U)
 3 bits for pre-emption priority, 5 bits for subpriority More...
 
#define NVIC_PRIORITYGROUP_4   (0x00000003U)
 4 bits for pre-emption priority, 4 bits for subpriority More...
 
#define NVIC_PRIORITYGROUP_5   (0x00000002U)
 5 bits for pre-emption priority, 3 bits for subpriority More...
 
#define NVIC_PRIORITYGROUP_6   (0x00000001U)
 6 bits for pre-emption priority, 2 bits for subpriority More...
 
#define NVIC_PRIORITYGROUP_7   (0x00000000U)
 7 bits for pre-emption priority, 1 bit for subpriority More...
 
#define SYSTICK_CLKSOURCE_REFCLK   (0x00000000U)
 SYSTICK clock source External Reference Clock. More...
 
#define SYSTICK_CLKSOURCE_HCLK   (0x00000004U)
 SYSTICK clock source HCLK. More...
 
#define IS_NVIC_PRIORITY_GROUP(__GROUP__)
 Check if NVIC priority group is valid. More...
 
#define IS_NVIC_PREEMPTION_PRIORITY(__PRIORITY__)   ((__PRIORITY__) < 0x80U)
 Check if NVIC priority group is valid. More...
 
#define IS_NVIC_SUB_PRIORITY(__PRIORITY__)   ((__PRIORITY__) <= 0xFFU)
 Check if NVIC sub priority is valid. More...
 
#define IS_NVIC_DEVICE_IRQ(__IRQ__)   ((__IRQ__) >= 0x00)
 Check if NVIC deivce IRQ is valid. More...
 
#define IS_SYSTICK_CLK_SOURCE(__SOURCE__)
 Check if SYSTICK clock source is valid. More...
 

Functions

void hal_nvic_set_priority_grouping (uint32_t priority_group)
 Set the priority grouping field (pre-emption priority and subpriority) using the required unlock sequence. More...
 
void hal_nvic_set_priority (IRQn_Type IRQn, uint32_t preempt_priority, uint32_t sub_priority)
 Set the priority of an interrupt. More...
 
void hal_nvic_enable_irq (IRQn_Type IRQn)
 Enable a device specific interrupt in the NVIC interrupt controller. More...
 
void hal_nvic_disable_irq (IRQn_Type IRQn)
 Disable a device specific interrupt in the NVIC interrupt controller. More...
 
void hal_nvic_system_reset (void)
 Initiate a system reset request to reset the MCU. More...
 
uint32_t hal_systick_config (uint32_t ticks_number)
 Initialize the System Timer and its interrupt, and start the System Tick Timer. More...
 
uint32_t hal_nvic_get_priority_grouping (void)
 Get the priority grouping field from the NVIC Interrupt Controller. More...
 
void hal_nvic_get_priority (IRQn_Type IRQn, uint32_t priority_group, uint32_t *p_preempt_priority, uint32_t *p_sub_priority)
 Get the priority of an interrupt. More...
 
void hal_nvic_set_pending_irq (IRQn_Type IRQn)
 Set Pending bit of an external interrupt. More...
 
uint32_t hal_nvic_get_pending_irq (IRQn_Type IRQn)
 Get Pending Interrupt (reads the pending register in the NVIC and returns the pending bit for the specified interrupt). More...
 
void hal_nvic_clear_pending_irq (IRQn_Type IRQn)
 Clear the pending bit of an external interrupt. More...
 
uint32_t hal_nvic_get_active (IRQn_Type IRQn)
 Get active interrupt (reads the active register in NVIC and returns the active bit). More...
 
void hal_systick_clk_source_config (uint32_t clk_source)
 Configure the SysTick clock source. More...
 
void hal_systick_irq_handler (void)
 This function handles SYSTICK interrupt request. More...
 
void hal_systick_callback (void)
 SYSTICK callback. More...
 

Detailed Description

Header file of CORTEX HAL module.

Author
BLE Driver Team
Attention
Copyright (c) 2019 GOODIX

All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 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. Neither the name of GOODIX 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 COPYRIGHT HOLDERS AND 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.

Definition in file gr55xx_hal_cortex.h.