Skip to content

Commit

Permalink
cc3200: Remove unused NIC type customisation.
Browse files Browse the repository at this point in the history
See the previous commit, except in this case the customisation didn't
actually do anything so can just be removed.

This work was funded through GitHub Sponsors.

Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
  • Loading branch information
jimmo authored and dpgeorge committed Dec 15, 2022
1 parent 5f8f32f commit 68090cc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
7 changes: 1 addition & 6 deletions ports/cc3200/mods/modnetwork.h
Expand Up @@ -35,11 +35,6 @@
/******************************************************************************
DEFINE TYPES
******************************************************************************/
typedef struct _mod_network_nic_type_t {
// Ensure that this struct is big enough to hold any type size.
mp_obj_full_type_t base;
} mod_network_nic_type_t;

typedef struct _mod_network_socket_base_t {
union {
struct {
Expand All @@ -64,7 +59,7 @@ typedef struct _mod_network_socket_obj_t {
/******************************************************************************
EXPORTED DATA
******************************************************************************/
extern const mod_network_nic_type_t mod_network_nic_type_wlan;
extern const mp_obj_type_t mod_network_nic_type_wlan;

/******************************************************************************
DECLARE FUNCTIONS
Expand Down
8 changes: 2 additions & 6 deletions ports/cc3200/mods/modwlan.c
Expand Up @@ -1285,18 +1285,14 @@ STATIC const mp_rom_map_elem_t wlan_locals_dict_table[] = {
};
STATIC MP_DEFINE_CONST_DICT(wlan_locals_dict, wlan_locals_dict_table);

STATIC MP_DEFINE_CONST_OBJ_FULL_TYPE(
mod_network_nic_type_wlan_base,
MP_DEFINE_CONST_OBJ_TYPE(
mod_network_nic_type_wlan,
MP_QSTR_WLAN,
MP_TYPE_FLAG_NONE,
make_new, wlan_make_new,
locals_dict, &wlan_locals_dict
);

const mod_network_nic_type_t mod_network_nic_type_wlan = {
.base = mod_network_nic_type_wlan_base,
};

STATIC const mp_irq_methods_t wlan_irq_methods = {
.init = wlan_irq,
.enable = wlan_lpds_irq_enable,
Expand Down

0 comments on commit 68090cc

Please sign in to comment.