| BlueNRG-1 Peripherals drivers APIs

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

misc.h
Go to the documentation of this file.
1
23 /* Define to prevent recursive inclusion -------------------------------------*/
24 #ifndef BLUENRG1_MISC_H
25 #define BLUENRG1_MISC_H
26
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30
31 /* Includes ------------------------------------------------------------------*/
32 #include "BlueNRG1.h"
33
51 typedef struct
52 {
53 uint8_t NVIC_IRQChannel;
58 uint8_t NVIC_IRQChannelPreemptionPriority;
62 FunctionalState NVIC_IRQChannelCmd;
65 } NVIC_InitType;
66
79 /* IRQ priority high */
80 #define HIGH_PRIORITY 1
81
82 /* IRQ priority medium */
83 #define MED_PRIORITY 2
84
85 /* IRQ priority low */
86 #define LOW_PRIORITY 3
87
88 /* This macro checks if PRIORITY is a valid WriteAccess value */
89 #define IS_NVIC_PREEMPTION_PRIORITY(PRIORITY) ((PRIORITY) < 0x04)
90
91
113 void NVIC_Init(NVIC_InitType* NVIC_InitStruct);
114 void SystemSleepCmd(FunctionalState NewState);
115 void SysTick_State(FunctionalState NewState);
116
129 #ifdef __cplusplus
130 }
131 #endif
132
133 #endif /* BLUENRG1_MISC_H */
134
135 /******************* (C) COPYRIGHT 2016 STMicroelectronics *****END OF FILE****/
NVIC_InitType::NVIC_IRQChannelCmd
FunctionalState NVIC_IRQChannelCmd
Definition: misc.h:62
NVIC_Init
void NVIC_Init(NVIC_InitType *NVIC_InitStruct)
Initializes the NVIC peripheral according to the specified parameters in the NVIC_InitStruct.
Definition: misc.c:87
NVIC_InitType
Structure definition of NVIC initialization.
Definition: misc.h:51
NVIC_InitType::NVIC_IRQChannelPreemptionPriority
uint8_t NVIC_IRQChannelPreemptionPriority
Definition: misc.h:58
SysTick_State
void SysTick_State(FunctionalState NewState)
Definition: misc.c:131
NVIC_InitType::NVIC_IRQChannel
uint8_t NVIC_IRQChannel
Definition: misc.h:53
SystemSleepCmd
void SystemSleepCmd(FunctionalState NewState)
Enables or disables sleep/stop mode on system level.
Definition: misc.c:116