File tree Expand file tree Collapse file tree 2 files changed +11
-9
lines changed
components/storage/blockdevice/COMPONENT_SD
targets/TARGET_TI/TARGET_CC32XX/TARGET_CC3220SF Expand file tree Collapse file tree 2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change 166
166
"SPI_CLK" : " D13" ,
167
167
"SPI_CS" : " D10"
168
168
},
169
- "CC3220SF " : {
170
- "SPI_MOSI" : " P07 " ,
171
- "SPI_MISO" : " P06 " ,
172
- "SPI_CLK" : " P05 " ,
173
- "SPI_CS" : " P08 "
169
+ "CC3220SF_LAUNCHXL " : {
170
+ "SPI_MOSI" : " D11 " ,
171
+ "SPI_MISO" : " D12 " ,
172
+ "SPI_CLK" : " D13 " ,
173
+ "SPI_CS" : " D10 "
174
174
}
175
175
}
176
176
}
Original file line number Diff line number Diff line change 27
27
28
28
uint32_t gpio_set (PinName pin )
29
29
{
30
- pin_function (pin , 0 );
31
- return (1 );
30
+ pin_function (pin , 0 );
31
+ return (1 );
32
32
}
33
33
34
34
// function to initialise the gpio pin
35
35
// this links the board control bits for each pin
36
36
// with the object created for the pin
37
37
void gpio_init (gpio_t * obj , PinName pin )
38
38
{
39
- MBED_ASSERT (pin != (PinName )NC );
39
+ obj -> pin = pin ;
40
+ if (pin == (PinName )NC )
41
+ return ;
42
+
40
43
unsigned long gpio_base = (unsigned long )pinmap_peripheral (pin , PinMap_GPIO );
41
44
obj -> baseAddr = gpio_base ;
42
- obj -> pin = pin ;
43
45
obj -> pin_mask = 1 <<(pinmap_find_function (pin , PinMap_GPIO )%8 );
44
46
45
47
// determine PRCM GPIO CLOCK index
You can’t perform that action at this time.
0 commit comments