Skip to content

Fix CY8CPROTO_062_4343W baremetal build #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions mbed-os-5-docs
Submodule mbed-os-5-docs added at 6aec94
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
/** @file
*
*/

#if MBED_CONF_RTOS_PRESENT
#include "whd_bus.h"
#include "whd_int.h"

Expand Down Expand Up @@ -143,3 +143,4 @@ whd_result_t whd_bus_irq_enable(whd_driver_t whd_driver, whd_bool_t enable)
return whd_driver->bus_if->whd_bus_irq_enable_fptr(whd_driver, enable);
}

#endif // MBED_CONF_RTOS_PRESENT
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
/** @file
*
*/
#if MBED_CONF_RTOS_PRESENT

#include <stdlib.h>
#include "cyabs_rtos.h"

Expand Down Expand Up @@ -515,3 +517,4 @@ done: CHECK_RETURN(whd_bus_set_backplane_window(whd_driver, CHIPCOMMON_BASE_ADDR
return WHD_SUCCESS;
}

#endif // MBED_CONF_RTOS_PRESENT
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* limitations under the License.
*/

#if MBED_CONF_RTOS_PRESENT

#include "cyabs_rtos.h"

#include "whd.h"
Expand Down Expand Up @@ -126,3 +128,4 @@ extern whd_result_t whd_bus_irq_register(whd_driver_t whd_driver);

#endif /* ifndef INCLUDED_WHD_BUS_PROTOCOL_INTERFACE_H_ */

#endif // MBED_CONF_RTOS_PRESENT
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
* sending/receiving raw packets etc
*/

#if MBED_CONF_RTOS_PRESENT

#include <stdlib.h>
#include "cyabs_rtos.h"
#include "cyhal_sdio.h"
Expand Down Expand Up @@ -1467,3 +1469,4 @@ static whd_result_t whd_bus_sdio_deinit_oob_intr(whd_driver_t whd_driver)
return WHD_SUCCESS;
}

#endif // MBED_CONF_RTOS_PRESENT
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
* Provides functions for initialising, de-intitialising 802.11 device,
* sending/receiving raw packets etc
*/
#if MBED_CONF_RTOS_PRESENT

#include <stdlib.h>
#include <string.h> /* For memcpy */
Expand Down Expand Up @@ -1036,3 +1037,4 @@ whd_result_t whd_bus_spi_irq_enable(whd_driver_t whd_driver, whd_bool_t enable)
return WHD_TRUE;
}

#endif // MBED_CONF_RTOS_PRESENT
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#ifndef INCLUDED_WHD_AP_H
#define INCLUDED_WHD_AP_H

#if MBED_CONF_RTOS_PRESENT

#include "whd.h"
#include "cyabs_rtos.h"

Expand Down Expand Up @@ -98,5 +100,7 @@ extern whd_result_t whd_wifi_set_ampdu_parameters(whd_interface_t ifp);
} /*extern "C" */
#endif

#endif // MBED_CONF_RTOS_PRESENT

#endif /* ifndef INCLUDED_WHD_AP_H */

Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
#ifndef _WHD_INTERNAL_BUFFER_API_H_
#define _WHD_INTERNAL_BUFFER_API_H_

#if MBED_CONF_RTOS_PRESENT

#include "whd.h"
#include "whd_int.h"

Expand Down Expand Up @@ -149,3 +151,4 @@ whd_result_t whd_buffer_add_remove_at_front(whd_driver_t whd_driver, whd_buffer_

#endif /* ifndef _WHD_INTERNAL_BUFFER_API_H_ */

#endif // MBED_CONF_RTOS_PRESENT
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#ifndef INCLUDED_WHD_CHIP_H
#define INCLUDED_WHD_CHIP_H

#if MBED_CONF_RTOS_PRESENT

#include "cyabs_rtos.h" /* For cy_semaphore_t */

#include "whd_endian.h"
Expand Down Expand Up @@ -391,3 +393,4 @@ extern uint32_t whd_wifi_get_btc_params(whd_driver_t whd_driver, uint32_t addres

#endif /* ifndef INCLUDED_WHD_CHIP_H */

#endif // MBED_CONF_RTOS_PRESENT
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* limitations under the License.
*/

#if MBED_CONF_RTOS_PRESENT

#include <stdio.h>
#include <stdio.h>
#include <string.h>
Expand Down Expand Up @@ -138,3 +140,4 @@ typedef struct
#endif
#endif /* ifndef INCLUDED_WHD_DEBUG_H */

#endif // MBED_CONF_RTOS_PRESENT
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#ifndef INCLUDED_WHD_INT_H
#define INCLUDED_WHD_INT_H

#if MBED_CONF_RTOS_PRESENT

#include "whd_thread.h"
#include "whd_sdpcm.h"
#include "whd_cdc_bdc.h"
Expand Down Expand Up @@ -111,3 +113,4 @@ whd_interface_t whd_get_primary_interface(whd_driver_t whd_driver);
#endif
#endif /* INCLUDED_WHD_INT_H */

#endif // MBED_CONF_RTOS_PRESENT
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
#ifndef INCLUDED_WHD_SDPCM_H
#define INCLUDED_WHD_SDPCM_H

#if MBED_CONF_RTOS_PRESENT

#include "whd.h"
#include "whd_events_int.h"
#include "cyabs_rtos.h"
Expand Down Expand Up @@ -122,3 +124,4 @@ extern void whd_send_to_bus(whd_driver_t whd_driver, whd_buffer_t buffer,

#endif /* ifndef INCLUDED_WHD_SDPCM_H */

#endif // MBED_CONF_RTOS_PRESENT
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
* Received messages are delivered in the context of the whd Thread, so the callback function needs to avoid blocking.
*
*/
#if MBED_CONF_RTOS_PRESENT
#include "cyabs_rtos.h"
#include "whd.h"

Expand Down Expand Up @@ -90,3 +91,4 @@ extern void whd_thread_notify_irq(whd_driver_t whd_driver);

#endif /* ifndef INCLUDED_WHD_THREAD_H_ */

#endif // MBED_CONF_RTOS_PRESENT
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#ifndef INCLUDED_WHD_TYPES_INT_H_
#define INCLUDED_WHD_TYPES_INT_H_

#if MBED_CONF_RTOS_PRESENT

#include <stdint.h>
#include <stddef.h>
#include <inttypes.h>
Expand Down Expand Up @@ -405,3 +407,4 @@ extern uint32_t whd_wifi_set_mac_address(whd_interface_t ifp, whd_mac_t mac);
#endif
#endif /* ifndef INCLUDED_WHD_TYPES_INT_H_ */

#endif // MBED_CONF_RTOS_PRESENT
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
*
* Utilities to help do specialized (not general purpose) WHD specific things
*/

#if MBED_CONF_RTOS_PRESENT

#include "whd_chip.h"
#include "whd_events_int.h"
#include "whd_types_int.h"
Expand Down Expand Up @@ -156,4 +159,4 @@ extern wl_chanspec_t whd_channel_to_wl_band(whd_driver_t whd_driver, uint32_t ch
} /* extern "C" */
#endif
#endif

#endif // MBED_CONF_RTOS_PRESENT
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@
/** @file
* Provides generic APSTA functionality that chip specific files use
*/

#if MBED_CONF_RTOS_PRESENT

#include "whd_debug.h"
#include "whd_ap.h"
#include "bus_protocols/whd_chip_reg.h"
Expand Down Expand Up @@ -763,3 +766,4 @@ uint32_t whd_wifi_stop_ap(whd_interface_t ifp)
return WHD_SUCCESS;
}

#endif MBED_CONF_RTOS_PRESENT
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
/** @file
* Provides generic APSTA functionality that chip specific files use
*/
#if MBED_CONF_RTOS_PRESENT

#include "whd_debug.h"
#include "whd_buffer_api.h"
Expand Down Expand Up @@ -218,3 +219,4 @@ whd_result_t whd_buffer_add_remove_at_front(whd_driver_t whd_driver, whd_buffer_
return WHD_WLAN_NOFUNCTION;
}

#endif // MBED_CONF_RTOS_PRESENT
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#if MBED_CONF_RTOS_PRESENT
#include <limits.h>
#include "whd_int.h"
#include "whd_cdc_bdc.h"
Expand Down Expand Up @@ -721,4 +721,4 @@ void whd_process_bdc_event(whd_driver_t whd_driver, whd_buffer_t buffer, uint16_
WPRINT_WHD_ERROR( ("buffer release failed in %s at %d \n", __func__, __LINE__) );

}

#endif // MBED_CONF_RTOS_PRESENT
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#if MBED_CONF_RTOS_PRESENT

#include <stdlib.h>
#include "bus_protocols/whd_chip_reg.h"
Expand Down Expand Up @@ -1454,3 +1455,4 @@ whd_result_t whd_wlan_bus_complete_ds_wake(whd_driver_t whd_driver, whd_bool_t w
}
}

#endif // MBED_CONF_RTOS_PRESENT
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* limitations under the License.
*/

#if MBED_CONF_RTOS_PRESENT

#include "whd_chip_constants.h"
#include "whd_wlioctl.h"
#include "whd_int.h"
Expand Down Expand Up @@ -360,3 +362,4 @@ whd_result_t get_wl_chanspec_ctl_sb_mask(uint16_t wlan_chip_id, uint32_t *sb_mas
return WHD_SUCCESS;
}

#endif // MBED_CONF_RTOS_PRESENT
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
* Provides generic clm blob file download functionality
*/

#if MBED_CONF_RTOS_PRESENT

#include <stdlib.h>
#include "whd_clm.h"
#include "whd_wlioctl.h"
Expand Down Expand Up @@ -170,3 +172,4 @@ whd_result_t whd_process_clm_data(whd_interface_t ifp)
return ret;
}

#endif // MBED_CONF_RTOS_PRESENT
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* limitations under the License.
*/

#if MBED_CONF_RTOS_PRESENT

#include "whd_debug.h"
#include "whd_int.h"
#include "bus_protocols/whd_bus_protocol_interface.h"
Expand Down Expand Up @@ -60,3 +62,5 @@ uint32_t whd_print_stats(whd_driver_t whd_driver, whd_bool_t reset_after_print)
return WHD_SUCCESS;
}


#endif // MBED_CONF_RTOS_PRESENT
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
* limitations under the License.
*/

#if MBED_CONF_RTOS_PRESENT

#include "whd_int.h"
#include "whd_cdc_bdc.h"
#include "whd_events_int.h"
Expand Down Expand Up @@ -474,3 +476,4 @@ uint32_t whd_wifi_deregister_event_handler(whd_interface_t ifp, uint16_t event_i
return WHD_BADARG;
}

#endif // MBED_CONF_RTOS_PRESENT
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
* Implements initialisation and other management functions for WHD system
*
*/
#if MBED_CONF_RTOS_PRESENT

#include <stdlib.h>
#include <string.h>
Expand Down Expand Up @@ -476,3 +477,5 @@ uint32_t whd_wifi_off(whd_interface_t ifp)
return WHD_SUCCESS;
}

#endif // MBED_CONF_RTOS_PRESENT

Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
/** @file
* Provides generic APSTA functionality that chip specific files use
*/
#if MBED_CONF_RTOS_PRESENT

#include "whd_debug.h"
#include "whd_network_if.h"
Expand Down Expand Up @@ -83,3 +84,4 @@ whd_result_t whd_network_process_ethernet_data(whd_interface_t ifp, whd_buffer_t
return WHD_WLAN_NOFUNCTION;
}

#endif // MBED_CONF_RTOS_PRESENT
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
/** @file
* Provides generic APSTA functionality that chip specific files use
*/
#if MBED_CONF_RTOS_PRESENT

#include "whd_debug.h"
#include "whd_int.h"
Expand Down Expand Up @@ -101,3 +102,4 @@ uint32_t whd_get_resource_block(whd_driver_t whd_driver, whd_resource_type_t typ
return WHD_WLAN_NOFUNCTION;
}

#endif // MBED_CONF_RTOS_PRESENT
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@
* It is required when communicating with Broadcom 802.11 devices.
*
*/

#if MBED_CONF_RTOS_PRESENT

#include "whd_sdpcm.h"
#include "bus_protocols/whd_bus_protocol_interface.h"
#include "whd_endian.h"
Expand Down Expand Up @@ -616,3 +619,4 @@ static void whd_sdpcm_set_next_buffer_in_queue(whd_driver_t whd_driver, whd_buff
packet->queue_next = buffer;
}

#endif // MBED_CONF_RTOS_PRESENT
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
* @ref whd_thread_receive_one_packet or @ref whd_thread_poll_all functions
*
*/

#if MBED_CONF_RTOS_PRESENT

#include "stdlib.h"
#include "whd_debug.h"
#include "whd_thread.h"
Expand Down Expand Up @@ -344,3 +347,4 @@ static void whd_thread_func(whd_thread_arg_t thread_input)
(void)cy_rtos_exit_thread();
}

#endif // MBED_CONF_RTOS_PRESENT
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@
*
* Utilities to help do specialized (not general purpose) WHD specific things
*/

#if MBED_CONF_RTOS_PRESENT

#include "whd_debug.h"
#include "whd_utils.h"
#include "whd_chip_constants.h"
Expand Down Expand Up @@ -771,3 +774,4 @@ void whd_event_info_to_string(uint32_t cmd, uint16_t flag, uint32_t reason, char
}
}

#endif // MBED_CONF_RTOS_PRESENT
Loading