From 17e0e5edde60e9bf2aa4d52173ad7d47d6d6da75 Mon Sep 17 00:00:00 2001 From: Perry Hung Date: Thu, 22 Apr 2010 02:36:01 -0400 Subject: Initial SPI Polling implementation. Initial commit of a polling-based SPI driver. The driver is limited to synchronous, blocking sends and a 8-bit data frame format. Tested on SPI1 and SPI2. Other peripherals are temporarily disabled, and the rx function is untested until I find a good peripheral to test everything on. --- core/wiring.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'core/wiring.c') diff --git a/core/wiring.c b/core/wiring.c index 803b571..290cca1 100644 --- a/core/wiring.c +++ b/core/wiring.c @@ -40,11 +40,11 @@ void init(void) { nvic_init(); systick_init(); gpio_init(); - adc_init(); - timer_init(1, 1); - timer_init(2, 1); - timer_init(3, 1); - timer_init(4, 1); +// adc_init(); +// timer_init(1, 1); +// timer_init(2, 1); +// timer_init(3, 1); +// timer_init(4, 1); } void nvic_init(void) { -- cgit v1.2.3