I wrote an code on Arduino and I getting compilation errors. I am using Arduino Due . I wrote the following code :


    
    void setup() {
      Serial.begin(9600);
      analogWriteResolution(12);  // set the analog output resolution to 12 bit (4096 levels)
      analogReadResolution(12);   // set the analog input resolution to 12 bit
 
    
    }
    
    void loop() {
      
      // code
    }


But compiler gave me the following errors :

    'analogReadResolution’ was not declared in this scope
    ‘analogWriteResolution’ was not declared in this scope
    ‘DAC0’ was not declared in this scope

I'm using Arduino 2:1.0.5 (on Linux). The board list doesn't show Arduino Due (USB programmable).And I don't have Board Manager option. How do I install Arduino SAM Board to compile the program ?