From be2ac142d9f08f0a6632043f99abf3bc6abd743e Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Thu, 30 Dec 2010 02:23:51 +0100 Subject: Rename include/libopenstm32 to include/stm32. --- include/libopenstm32/exti.h | 70 --------------------------------------------- 1 file changed, 70 deletions(-) delete mode 100644 include/libopenstm32/exti.h (limited to 'include/libopenstm32/exti.h') diff --git a/include/libopenstm32/exti.h b/include/libopenstm32/exti.h deleted file mode 100644 index db84cac..0000000 --- a/include/libopenstm32/exti.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * This file is part of the libopenstm32 project. - * - * Copyright (C) 2010 Mark Butler - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -#ifndef LIBOPENSTM32_EXTI_H -#define LIBOPENSTM32_EXTI_H - -#include -#include - -/* --- EXTI registers ------------------------------------------------------ */ - -#define EXTI_IMR MMIO32(EXTI_BASE + 0x00) -#define EXTI_EMR MMIO32(EXTI_BASE + 0x04) -#define EXTI_RTSR MMIO32(EXTI_BASE + 0x08) -#define EXTI_FTSR MMIO32(EXTI_BASE + 0x0c) -#define EXTI_SWIER MMIO32(EXTI_BASE + 0x10) -#define EXTI_PR MMIO32(EXTI_BASE + 0x14) - -/* EXTI number definitions */ -#define EXTI0 (1 << 0) -#define EXTI1 (1 << 1) -#define EXTI2 (1 << 2) -#define EXTI3 (1 << 3) -#define EXTI4 (1 << 4) -#define EXTI5 (1 << 5) -#define EXTI6 (1 << 6) -#define EXTI7 (1 << 7) -#define EXTI8 (1 << 8) -#define EXTI9 (1 << 9) -#define EXTI10 (1 << 10) -#define EXTI11 (1 << 11) -#define EXTI12 (1 << 12) -#define EXTI13 (1 << 13) -#define EXTI14 (1 << 14) -#define EXTI15 (1 << 15) -#define EXTI16 (1 << 16) -#define EXTI17 (1 << 17) -#define EXTI18 (1 << 18) -#define EXTI19 (1 << 19) - -/* Trigger types */ -typedef enum trigger_e { - EXTI_TRIGGER_RISING, - EXTI_TRIGGER_FALLING, - EXTI_TRIGGER_BOTH, -} exti_trigger_type; - -void exti_set_trigger(u32 extis, exti_trigger_type trig); -void exti_enable_request(u32 extis); -void exti_disable_request(u32 extis); -void exti_reset_request(u32 extis); -void exti_select_source(u32 exti, u32 gpioport); - -#endif -- cgit v1.2.3