Changeset 86 for branches

Show
Ignore:
Timestamp:
12/08/07 00:11:48 (13 months ago)
Author:
follower
Message:

Add skeleton of SPI class.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/follower/wiz810mj/src/demo/WizDemo4/WizDemo4.pde

    r85 r86  
    4040 
    4141 
     42/* --------- SPI --------- */ 
    4243 
    4344// Define SPI-related pins 
     
    4647#define PIN_SPI_CLOCK  13 // SCK (Serial Clock)  
    4748#define PIN_SLAVE_SELECT 10 // SS (Slave Select) 
     49 
     50class SPI { 
     51   
     52  public: 
     53    static void begin(void); 
     54}; 
     55 
     56void SPI::begin(void) { 
     57} 
     58 
     59/* ----------------------- */ 
    4860 
    4961// #define PIN_RESET 9 // WIZnet module /RESET