diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-06-17 09:55:18 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-06-17 09:55:18 +0200 |
commit | ebaba1be96a6970705eb805dc3afc1d54f489ac8 (patch) | |
tree | 66b4006838f5e6ee63a39550f44c88ebe34d0bf4 /firmware/include/lib_AT91SAM7.h | |
parent | cda126a7ef6fbb54a18a4786c15117800a13f7b3 (diff) |
simtrace: introduce mode sniffer / mitm switching
Diffstat (limited to 'firmware/include/lib_AT91SAM7.h')
-rw-r--r-- | firmware/include/lib_AT91SAM7.h | 16 |
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 |