Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of S_SCTRL_SMlib by
Diff: S_SCTRL_SM1_hwfunct.h
- Revision:
- 6:24e981a63851
- Parent:
- 3:39671ee1347d
- Parent:
- 5:b527df9432c3
- Child:
- 8:fe1477cd1c14
--- a/S_SCTRL_SM1_hwfunct.h Mon Sep 15 14:55:03 2014 +0000 +++ b/S_SCTRL_SM1_hwfunct.h Mon Sep 15 15:14:42 2014 +0000 @@ -1,16 +1,11 @@ #ifndef S_SCTRL_SM1_hwfunct_H #define S_SCTRL_SM1_hwfunct_H -#define HW_LIB_HDR_VERSION "1.00" - -typedef unsigned int u32; -typedef unsigned short int u16; -typedef unsigned char u8; - +#define HW_LIB_HDR_VERSION "1.01" typedef struct { - +// BI-SPI DigitalInOut* msio[2]; DigitalOut* sclk[2]; DigitalOut* direction[2]; @@ -18,24 +13,19 @@ DigitalOut* csb1[2]; DigitalOut* csb2[2]; - - // SPI pins DigitalOut* mosi[2]; DigitalIn* miso[2]; - DigitalOut* t_cs[2]; DigitalOut* tc_cs1[2]; DigitalOut* tc_cs2[2]; DigitalOut* dac_cs[2]; DigitalOut* dac_rst[2]; - //cal DigitalOut* cal13[2]; // physical the same so will point to the same port DigitalOut* cal24[2]; // physical the same so will point to the same port DigitalOut* calint[2]; - // not related to connector 1 /2 DigitalOut* calext; DigitalOut* calgenext; @@ -44,14 +34,11 @@ DigitalOut* ledgreen; AnalogIn* ain[2]; - - - - - } HWlines; +} HWlines; void assignports(HWlines *hwlines ); void setcalsource( int extcal, HWlines hwl); +void set_bi_spi_mo(int masterout, DigitalInOut* msio, DigitalOut* ldir, DigitalOut* rdir); void setdefault(HWlines hwl ) ; char* hwfunct_lib_version(); // returns this lib version info