SikendeRTOS
RTOS for ARM Cortex M3+ SoCs designed and written from scratch
cpu.h File Reference

Contains CPU Initialization and Register functions/definitions. More...

#include "tm4c123gh6pm.h"
#include <stdint.h>
#include "PLL.h"
Include dependency graph for cpu.h:

Go to the source code of this file.

Macros

#define BUS_CLK   80000000
 
#define CLOCK_MASK_PORTF   0x20
 
#define PF1   (*((volatile uint32_t *)0x40025008))
 
#define PF2   (*((volatile uint32_t *)0x40025010))
 
#define PF3   (*((volatile uint32_t *)0x40025020))
 
#define LEDS   0x0E
 
#define GREEN_LED   PF3
 
#define GREEN_BLINK   0x8
 
#define BLUE_LED   PF2
 
#define BLUE_BLINK   0x4
 
#define RED_LED   PF1
 
#define RED_BLINK   0x2
 

Functions

void CLOCK_Init (void)
 Initialize system clock (PLL) More...
 
void LED_Init (void)
 Initialize development board LEDS, example function. More...
 

Detailed Description

Contains CPU Initialization and Register functions/definitions.

Date
6/19/2018

Definition in file cpu.h.

Macro Definition Documentation

◆ BLUE_BLINK

#define BLUE_BLINK   0x4

Definition at line 26 of file cpu.h.

◆ BLUE_LED

#define BLUE_LED   PF2

Definition at line 25 of file cpu.h.

◆ BUS_CLK

#define BUS_CLK   80000000

Definition at line 14 of file cpu.h.

◆ CLOCK_MASK_PORTF

#define CLOCK_MASK_PORTF   0x20

Definition at line 18 of file cpu.h.

◆ GREEN_BLINK

#define GREEN_BLINK   0x8

Definition at line 24 of file cpu.h.

◆ GREEN_LED

#define GREEN_LED   PF3

Definition at line 23 of file cpu.h.

◆ LEDS

#define LEDS   0x0E

Definition at line 22 of file cpu.h.

◆ PF1

#define PF1   (*((volatile uint32_t *)0x40025008))

Definition at line 19 of file cpu.h.

◆ PF2

#define PF2   (*((volatile uint32_t *)0x40025010))

Definition at line 20 of file cpu.h.

◆ PF3

#define PF3   (*((volatile uint32_t *)0x40025020))

Definition at line 21 of file cpu.h.

◆ RED_BLINK

#define RED_BLINK   0x2

Definition at line 28 of file cpu.h.

◆ RED_LED

#define RED_LED   PF1

Definition at line 27 of file cpu.h.

Function Documentation

◆ CLOCK_Init()

void CLOCK_Init ( void  )

Initialize system clock (PLL)

Initialize system clock (PLL)

Definition at line 15 of file cpu.c.

◆ LED_Init()

void LED_Init ( void  )

Initialize development board LEDS, example function.

Initialize development board LEDS, example function.

Definition at line 26 of file cpu.c.