Macros | Functions
gr55xx_hal_cortex.h File Reference

Header file of CORTEX HAL module. More...

`#include "gr55xx_hal_def.h"`

Go to the source code of this file.

## Macros
#define | NVIC_PRIORITYGROUP_0 (0x00000007U)
#define | NVIC_PRIORITYGROUP_1 (0x00000006U)
#define | NVIC_PRIORITYGROUP_2 (0x00000005U)
#define | NVIC_PRIORITYGROUP_3 (0x00000004U)
#define | NVIC_PRIORITYGROUP_4 (0x00000003U)
#define | NVIC_PRIORITYGROUP_5 (0x00000002U)
#define | NVIC_PRIORITYGROUP_6 (0x00000001U)
#define | NVIC_PRIORITYGROUP_7 (0x00000000U)
#define | SYSTICK_CLKSOURCE_REFCLK (0x00000000U)
#define | SYSTICK_CLKSOURCE_HCLK (0x00000004U)
#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.
uint32_t | hal_systick_config (uint32_t ticks_number)
| Initialize the System Timer and its interrupt, and start the System Tick Timer. Counter is in free running mode to generate periodic interrupts. 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.
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.