29 lines
569 B
C
29 lines
569 B
C
|
/*
|
||
|
* briey.h
|
||
|
*
|
||
|
* Created on: Aug 24, 2016
|
||
|
* Author: clp
|
||
|
*/
|
||
|
|
||
|
#ifndef BRIEY_H_
|
||
|
#define BRIEY_H_
|
||
|
|
||
|
#include "timer.h"
|
||
|
#include "prescaler.h"
|
||
|
#include "interrupt.h"
|
||
|
#include "gpio.h"
|
||
|
#include "uart.h"
|
||
|
|
||
|
#define CORE_HZ 12000000
|
||
|
|
||
|
#define GPIO_A ((Gpio_Reg*)(0xF0000000))
|
||
|
#define TIMER_PRESCALER ((Prescaler_Reg*)0xF0020000)
|
||
|
#define TIMER_INTERRUPT ((InterruptCtrl_Reg*)0xF0020010)
|
||
|
#define TIMER_A ((Timer_Reg*)0xF0020040)
|
||
|
#define TIMER_B ((Timer_Reg*)0xF0020050)
|
||
|
#define UART ((Uart_Reg*)(0xF0010000))
|
||
|
#define UART_SAMPLE_PER_BAUD 5
|
||
|
|
||
|
|
||
|
#endif /* BRIEY_H_ */
|