/************************************************/
/*                                              */
/* This is an example of use of the rock module */
/*                                              */
/* Some parts are missing, so do not compile it!*/
/*                                              */
/************************************************/

#include <Error.h>
#include <rock.h>

/* Set the BOE bit */

int main()
{
 ROCK_id rock_id;
 int err;
 int boe;

 /* open the rock */
 
 err = rock_open(0x50010000,0x100000,0x09,0,&rock_id);
 if (err!=ROCK_ERROR_OK)
   {
     printf("Error opening ROCK!: %s",ErrorGetMessage());
     return 1;
   }

 /* read the ROCK */
 rock_set_boe(rock_id,0);

 /* close the rock */
 rock_close(rock_id);

}