Central Heating controller using the real time clock, PHY module for internet, 1-wire interface for temperature sensors, a system log and a configuration file

Dependencies:   net 1-wire lpc1768 crypto clock web fram log

/media/uploads/andrewboyson/heating.sch

/media/uploads/andrewboyson/heating.brd

/media/uploads/andrewboyson/eagle.epf

Revision:
1:ccc66fdf858d
Parent:
0:3c04f4b47041
Child:
5:82197a6997fd
--- a/main/spi.c	Thu Jan 11 17:40:08 2018 +0000
+++ b/main/spi.c	Sun Jan 28 14:41:12 2018 +0000
@@ -1,13 +1,10 @@
-#include "peripherals.h"
+#include "defs.h"
 #include "log.h"
 
 #define CS_BIT_MASK_0 1 << 6 //pin 0.6
 
 void SpiInit(void)
-{
-    //Enable power
-    LPC_SC->PCONP |= 0x0400; //Table 46 Bit 10 is SSP1
-    
+{   
     //Configure
     LPC_SSP1->CR0 |= 7 << 0; //3:0 8 bit transfer
     LPC_SSP1->CR0 |= 0 << 4; //5:4 SPI