X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=carlfw%2Finclude%2Fgpio.h;h=56c554a40da4cf938a63e2e43e74cc56c100ca73;hb=b16e4b8d1a59abc67e1e7f2f4a5d297fbac6ee73;hp=97c192729098ecee2bbb8f817e7fec230998d891;hpb=12d3f1ba6ba522cd1ef11483d813fe2c2e64f04b;p=carl9170fw.git diff --git a/carlfw/include/gpio.h b/carlfw/include/gpio.h index 97c1927..56c554a 100644 --- a/carlfw/include/gpio.h +++ b/carlfw/include/gpio.h @@ -16,8 +16,7 @@ * 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, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * with this program; If not, see . */ #ifndef __CARL9170FW_GPIO_H @@ -37,6 +36,11 @@ static inline __inline void led_set(const unsigned int ledstate) set(AR9170_GPIO_REG_PORT_DATA, ledstate); } +static inline __inline u16 get_random_u16(void) +{ + return getw(AR9170_RAND_REG_NUM); +} + #ifdef CONFIG_CARL9170FW_GPIO_INTERRUPT void gpio_timer(void);