stdlib: *bi indexes are bytes
authorTero Marttila <terom@paivola.fi>
Wed, 24 Sep 2014 23:49:12 +0300
changeset 6 c5ab059eadc1
parent 5 652c31c10f91
child 7 5c37ed521807
stdlib: *bi indexes are bytes
include/stdlib.h
--- a/include/stdlib.h	Wed Sep 24 22:54:13 2014 +0300
+++ b/include/stdlib.h	Wed Sep 24 23:49:12 2014 +0300
@@ -10,22 +10,22 @@
 
 typedef volatile uint8_t ioport_t;
 
-static inline ioport_t tbi(ioport_t *port, int bit)
+static inline ioport_t tbi(ioport_t *port, byte bit)
 {
     return *port & (1 << bit);
 }
 
-static inline void sbi(ioport_t *port, int bit)
+static inline void sbi(ioport_t *port, byte bit)
 {
     *port |= (1 << bit);
 }
 
-static inline void cbi(ioport_t *port, int bit)
+static inline void cbi(ioport_t *port, byte bit)
 {
     *port &= ~(1 << bit);
 }
 
-static inline void xbi(ioport_t *port, int bit)
+static inline void xbi(ioport_t *port, byte bit)
 {
     *port ^= (1 << bit);
 }