From: asterix Date: Fri, 16 Oct 2009 15:13:26 +0000 (+0000) Subject: Rename cs macro. X-Git-Tag: 2.3.0~2 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=07f3470fff18b401711ba668af40e649347171e5;p=bertos.git Rename cs macro. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3081 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/drv/tmp123.c b/bertos/drv/tmp123.c index 4c90a0e7..cce2696a 100644 --- a/bertos/drv/tmp123.c +++ b/bertos/drv/tmp123.c @@ -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); diff --git a/bertos/hw/hw_tmp123.h b/bertos/hw/hw_tmp123.h index 7da97e1f..adb18588 100644 --- a/bertos/hw/hw_tmp123.h +++ b/bertos/hw/hw_tmp123.h @@ -40,8 +40,8 @@ #warning TODO:This is an example implentation, you must implement it! -#define CS_ENABLE() /* Implement me! */ -#define CS_DISABLE() /* Implement me! */ +#define TMP123_HW_CS_EN() /* Implement me! */ +#define TMP123_HW_CS_DIS() /* Implement me! */ #define TMP123_HW_INIT() \ do { \