Mercurial > ~darius > hgwebdir.cgi > stm32test
view delay.c @ 13:96c345d304af default tip
Add 1wire code.
1wire.c, 1wire.h and 1wire-config.h are copied avr-lib.
author | Daniel O'Connor <darius@dons.net.au> |
---|---|
date | Wed, 08 Feb 2012 10:37:22 +1030 |
parents | 58d76cf522ff |
children |
line wrap: on
line source
#include <stdint.h> #include "stm32f10x.h" #include "delay.h" /* This is a bit rough and ready */ void delay(__IO uint32_t nCount) { __IO uint32_t i; for(; nCount != 0; nCount--) for (i = 0; i < 3900; i++) ; }