X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fdrv%2Ftmp123.c;h=7f8b4f09cd802c1af7d25b29e754772207bd51cb;hb=976d522209efc4c11a019ae6b34657b6b3f59ba0;hp=4c90a0e7ddbc6aab9ea04a89fb967ac7ecaaa73b;hpb=d27ccfcbcdad22acd83d20660fb88c4e5c3677e5;p=bertos.git diff --git a/bertos/drv/tmp123.c b/bertos/drv/tmp123.c index 4c90a0e7..7f8b4f09 100644 --- a/bertos/drv/tmp123.c +++ b/bertos/drv/tmp123.c @@ -44,7 +44,7 @@ #include -#include +#include #include // Macro and data type to manage celsius degree @@ -55,10 +55,10 @@ deg_t tmp123_read(KFile *fd) { int16_t tmp; - CS_ENABLE(); + TMP123_HW_CS_EN(); kfile_read(fd, &tmp, sizeof(tmp)); tmp = be16_to_cpu(tmp); - CS_DISABLE(); + TMP123_HW_CS_DIS(); tmp >>= 3; return DIV_ROUND((tmp * 10), 16);