Fixed with HAL.

Fork of ST_L152_32MHZ by Peter Drescher

Not finish yet. External crystal doesn't work.

Revision:
1:bdeac50afe1a
Parent:
0:84e23a19e37d
diff -r 84e23a19e37d -r bdeac50afe1a ST_L152_32MHZ.h
--- a/ST_L152_32MHZ.h	Tue Mar 11 20:34:57 2014 +0000
+++ b/ST_L152_32MHZ.h	Tue Mar 11 21:03:03 2014 +0000
@@ -29,6 +29,8 @@
  * 
  */
 
+typedef enum { OK = 0 , PLL_ERR, EXT_ERR }ClockStatus;
+
 class L152_init32
 {
 public:
@@ -37,11 +39,11 @@
    * @param external = 1 use external 8 MHz crystal - you have to add some comonents to the pcb !
 */
 L152_init32(unsigned int external);
-int clk_err;
+ClockStatus Status;
 
 protected:
 // do the magic ;-)
-int setup_clock_32MHZ(int external);
+ClockStatus setup_clock_32MHZ(int external);
 };
 
 #endif