summaryrefslogtreecommitdiff
path: root/firmware/include/lib_AT91SAM7.h
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-06-17 09:55:18 +0200
committerHarald Welte <laforge@gnumonks.org>2011-06-17 09:55:18 +0200
commitebaba1be96a6970705eb805dc3afc1d54f489ac8 (patch)
tree66b4006838f5e6ee63a39550f44c88ebe34d0bf4 /firmware/include/lib_AT91SAM7.h
parentcda126a7ef6fbb54a18a4786c15117800a13f7b3 (diff)
simtrace: introduce mode sniffer / mitm switching
Diffstat (limited to 'firmware/include/lib_AT91SAM7.h')
-rw-r--r--firmware/include/lib_AT91SAM7.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/firmware/include/lib_AT91SAM7.h b/firmware/include/lib_AT91SAM7.h
index f26ac54..2aa7df6 100644
--- a/firmware/include/lib_AT91SAM7.h
+++ b/firmware/include/lib_AT91SAM7.h
@@ -444,6 +444,22 @@ static inline void AT91F_PIO_CfgPullup(
pPio->PIO_PPUER = pullupEnable;
}
+static inline void AT91F_PIO_CfgPullupEn(
+ AT91PS_PIO pPio, // \arg pointer to a PIO controller
+ unsigned int pullupEnable) // \arg enable pullup on PIO
+{
+ // Connect or not Pullup
+ pPio->PIO_PPUER = pullupEnable;
+}
+
+static inline void AT91F_PIO_CfgPullupDis(
+ AT91PS_PIO pPio, // \arg pointer to a PIO controller
+ unsigned int pullupEnable) // \arg enable pullup on PIO
+{
+ // Connect or not Pullup
+ pPio->PIO_PPUDR = pullupEnable;
+}
+
//*----------------------------------------------------------------------------
//* \fn AT91F_PIO_CfgDirectDrive
//* \brief Enable direct drive on PIO
personal git repositories of Harald Welte. Your mileage may vary