Macros | Functions | Variables
drv_system.c File Reference
#include <stdint.h>
#include <stdbool.h>
#include <stdlib.h>
#include "stm32f10x_conf.h"
#include "drv_gpio.h"
#include "drv_system.h"
Include dependency graph for drv_system.c:

Go to the source code of this file.

Macros

#define AFIO_MAPR_SWJ_CFG_NO_JTAG_SW   (0x2 << 24)
 
#define AIRCR_VECTKEY_MASK   ((uint32_t)0x05FA0000)
 

Functions

static void cycleCounterInit (void)
 
void delay (uint32_t ms)
 
void delayMicroseconds (uint32_t us)
 
void failureMode ()
 
uint64_t micros (void)
 
uint32_t millis (void)
 
uint32_t rccReadBkpDr (void)
 
void rccWriteBkpDr (uint32_t value)
 
void systemInit (void)
 
void systemReset (bool toBootloader)
 
void SysTick_Handler (void)
 

Variables

static volatile uint64_t sysTickUptime = 0
 

Macro Definition Documentation

#define AFIO_MAPR_SWJ_CFG_NO_JTAG_SW   (0x2 << 24)
#define AIRCR_VECTKEY_MASK   ((uint32_t)0x05FA0000)

Definition at line 153 of file drv_system.c.

Function Documentation

static void cycleCounterInit ( void  )
static

Definition at line 34 of file drv_system.c.

void delay ( uint32_t  ms)

Definition at line 126 of file drv_system.c.

void delayMicroseconds ( uint32_t  us)

Definition at line 120 of file drv_system.c.

void failureMode ( )

Definition at line 132 of file drv_system.c.

uint64_t micros ( void  )

Definition at line 46 of file drv_system.c.

uint32_t millis ( void  )

Definition at line 51 of file drv_system.c.

uint32_t rccReadBkpDr ( void  )

Definition at line 139 of file drv_system.c.

void rccWriteBkpDr ( uint32_t  value)

Definition at line 144 of file drv_system.c.

void systemInit ( void  )

Definition at line 56 of file drv_system.c.

void systemReset ( bool  toBootloader)

Definition at line 155 of file drv_system.c.

void SysTick_Handler ( void  )

Definition at line 41 of file drv_system.c.

Variable Documentation

volatile uint64_t sysTickUptime = 0
static

Definition at line 32 of file drv_system.c.



rosflight_firmware
Author(s): Daniel Koch , James Jackson
autogenerated on Thu Oct 24 2019 03:17:20