*
* (see drv/datafalsh_test.c for more detail)
*/
-int dataflash_testSetup(void);
+int dataflash_testSetUp(void);
int dataflash_testRun(void);
int dataflash_testTearDown(void);
* Setup all needed to test dataflash memory
*
*/
-int dataflash_testSetup(void)
+int dataflash_testSetUp(void)
{
- kfile_testSetup();
+ kfile_testSetUp();
LOG_INFO("KFILE setup..ok\n");
LOG_INFO("Check if kernel is enable (if enable you should see the assert message.)\n");
proc_init();
#endif
- if (!dataflash_testSetup())
+ if (!dataflash_testSetUp())
{
LOG_INFO("DATAFLASH setup..ok\n");
}
return EOF;
}
- dataflash_testRun();
+ dataflash_testRun();
for(;;)
{
* See pwm_test.c for implemntation of these functions.
*/
int pwm_testRun(void);
-int pwm_testSetup(void);
+int pwm_testSetUp(void);
int pwm_testTearDown(void);
#endif /* DRV_PWM_H */
* Setup all needed to test PWM on AT91
*
*/
-int pwm_testSetup(void)
+int pwm_testSetUp(void)
{
LOG_INFO("Init pwm..");
pwm_init();
int duty = 0;
int delay = 0;
- pwm_testSetup();
+ pwm_testSetUp();
LOG_INFO("\n\n===== BeRTOS PWM test =====\n\n");
* \code
* typedef struct KFileSerial
* {
- * KFile fd;
- * Serial *ser;
+ * KFile fd;
+ * Serial *ser;
* } KFileSerial;
* \endcode
*
* \code
* INLINE KFileSerial * KFILESERIAL(KFile *fd)
* {
- * ASSERT(fd->_type == KFT_SERIAL);
- * return (KFileSerial *)fd;
+ * ASSERT(fd->_type == KFT_SERIAL);
+ * return (KFileSerial *)fd;
* }
* \endcode
*
* \code
* static int ser_kfile_close(struct KFile *fd)
* {
- * KFileSerial *fds = KFILESERIAL(fd);
- * ser_close(fds->ser);
- * return 0;
+ * KFileSerial *fds = KFILESERIAL(fd);
+ * ser_close(fds->ser);
+ * return 0;
* }
* \endcode
* KFILESERIAL macro helps to ensure that obj passed is really a Serial.
* are demanded to specific driver implementation.
*
* \version $Id$
+ *
* \author Bernardo Innocenti <bernie@develer.com>
* \author Francesco Sacchi <batt@develer.com>
* \author Daniele Basile <asterix@develer.com>
/**
* Kfile test function.
*/
-int kfile_testSetup(void);
+int kfile_testSetUp(void);
int kfile_testRun(KFile *fd, uint8_t *test_buf, uint8_t *save_buf, size_t size);
int kfile_testTearDown(void);
/**
* Setup all needed for kfile test
*/
-int kfile_testSetup(void)
+int kfile_testSetUp(void)
{
MOD_INIT(kfile_test);
LOG_INFO("Mod init..ok\n");
*/
int kfile_testRun(KFile *fd, uint8_t *test_buf, uint8_t *save_buf, size_t size)
{
- kfile_testSetup();
+ kfile_testSetUp();
/*
* Part of test buf size that you would write.
/* Fill test buffer */
- for (size_t i = 0; i < size; i++)
- test_buf[i] = (i & 0xff);
+ for (size_t i = 0; i < size; i++)
+ test_buf[i] = (i & 0xff);
/*
* If necessary, user can save content,