SikendeRTOS
RTOS for ARM Cortex M3+ SoCs designed and written from scratch
cpu.h
Go to the documentation of this file.
1
7#ifndef __CPU_H
8#define __CPU_H
9
10#include "tm4c123gh6pm.h"
11#include <stdint.h>
12#include "PLL.h"
13
14#define BUS_CLK 80000000 // 80 Mhz
15
16
17/* LED PORTF Register Setup **/
18#define CLOCK_MASK_PORTF 0x20
19#define PF1 (*((volatile uint32_t *)0x40025008))
20#define PF2 (*((volatile uint32_t *)0x40025010))
21#define PF3 (*((volatile uint32_t *)0x40025020))
22#define LEDS 0x0E
23#define GREEN_LED PF3
24#define GREEN_BLINK 0x8
25#define BLUE_LED PF2
26#define BLUE_BLINK 0x4
27#define RED_LED PF1
28#define RED_BLINK 0x2
29
33void CLOCK_Init(void);
34
38void LED_Init(void);
39
40
41
42#endif // __CPU_H
43
void LED_Init(void)
Initialize development board LEDS, example function.
Definition: cpu.c:26
void CLOCK_Init(void)
Initialize system clock (PLL)
Definition: cpu.c:15
Sets Clock Speed.
Register location header of TM4C123GH6PM.