From 3f5c052288f305b0cf7da7b9c7953ab2d5b9c97f Mon Sep 17 00:00:00 2001 From: Werner Almesberger Date: Thu, 6 Mar 2014 11:24:09 -0300 Subject: [PATCH] libubb/include/ubb/regbase.h (PDTRGx): add trigger mode registers --- libubb/include/ubb/regbase.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/libubb/include/ubb/regbase.h b/libubb/include/ubb/regbase.h index 39f22cd..aa9c310 100644 --- a/libubb/include/ubb/regbase.h +++ b/libubb/include/ubb/regbase.h @@ -1,8 +1,8 @@ /* * include/ubb/regbase.h - Jz4740 minimum register definitions for UBB * - * Written 2011-2012 by Werner Almesberger - * Copyright 2011-2012 Werner Almesberger + * Written 2011-2012, 2014 by Werner Almesberger + * Copyright 2011-2012, 2014 Werner Almesberger * * 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 @@ -45,5 +45,8 @@ extern volatile void *ubb_mem; #define PDDIR _GPIO(0x360) /* port D direction */ #define PDDIRS _GPIO(0x364) /* port D direction set */ #define PDDIRC _GPIO(0x368) /* port D direction clear */ +#define PDTRG _GPIO(0x370) /* port D trigger */ +#define PDTRGS _GPIO(0x374) /* port D trigger set */ +#define PDTRGC _GPIO(0x378) /* port D trigger clear */ #endif /* !UBB_REGBASE_H */