| BlueNRG-1 Peripherals drivers APIs

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

Macros | Functions
BlueNRG1_sysCtrl.c File Reference

This file provides all the System Controller firmware functions. More...

`#include "BlueNRG1_sysCtrl.h"`

Go to the source code of this file.

## Macros

#define | SOC_REASON_SYSREQ (0x00000002)
#define | SOC_REASON_WDG (0x00000004)
#define | SOC_REASON_LOCKUP (0x00000008)
#define | BLE_REASON_WAKEUP_RST (0x00000001)
#define | BLE_REASON_BOR_RST (0x00000002 | BLE_REASON_WAKEUP_RST)
#define | BLE_REASON_POR_RST (0x00000004 | BLE_REASON_WAKEUP_RST)
#define | BLE_REASON_FROM_IO9 (0x00000008 | BLE_REASON_WAKEUP_RST)
#define | BLE_REASON_FROM_IO10 (0x00000010 | BLE_REASON_WAKEUP_RST)
#define | BLE_REASON_FROM_IO11 (0x00000020 | BLE_REASON_WAKEUP_RST)
#define | BLE_REASON_FROM_IO12 (0x00000040 | BLE_REASON_WAKEUP_RST)
#define | BLE_REASON_FROM_IO13 (0x00000080 | BLE_REASON_WAKEUP_RST)
#define | BLE_REASON_FROM_TIMER1 (0x00000100 | BLE_REASON_WAKEUP_RST)
#define | BLE_REASON_FROM_TIMER2 (0x00000400 | BLE_REASON_WAKEUP_RST)

## Functions

void | SysCtrl_DeInit (void)
| De init function. More...
void | SysCtrl_PeripheralClockCmd (uint32_t PeriphClock, FunctionalState NewState)
| Enables the clock for the specified peripheral. More...
RESET_REASON_Type | SysCtrl_GetWakeupResetReason (void)
| Get the wakeup reason. More...
void | SysCtrl_WakeupFromIo (uint8_t IO, uint8_t LevelState, FunctionalState NewState)
| Configure the wakeup source from IO. More...
void | SysCtrl_SelectXO (uint8_t XOFreq)
| Enable disable the XO clock divider for the system control. More...

## Detailed Description

This file provides all the System Controller firmware functions.

Author
  VMA Application Team

Version
  V2.0.0

Date
  21-March-2016

Attention

THE PRESENT FIRMWARE WHICH IS FOR GUIDANCE ONLY AIMS AT PROVIDING CUSTOMERS WITH CODING INFORMATION REGARDING THEIR PRODUCTS IN ORDER FOR THEM TO SAVE TIME. AS A RESULT, STMICROELECTRONICS SHALL NOT BE HELD LIABLE FOR ANY DIRECT, INDIRECT OR CONSEQUENTIAL DAMAGES WITH RESPECT TO ANY CLAIMS ARISING FROM THE CONTENT OF SUCH FIRMWARE AND/OR THE USE MADE BY CUSTOMERS OF THE CODING INFORMATION CONTAINED HEREIN IN CONNECTION WITH THEIR PRODUCTS.

##
© COPYRIGHT 2016 STMicroelectronics

Definition in file BlueNRG1_sysCtrl.c.