Commit 7674da80 authored by Damien George's avatar Damien George
Browse files

stmhal: Remove some unnecessary declarations, purely for cleanup.

parent 69922c60
...@@ -31,10 +31,6 @@ ...@@ -31,10 +31,6 @@
#include "ffconf.h" #include "ffconf.h"
#include "fsusermount.h" #include "fsusermount.h"
#if _FS_RPATH
extern BYTE ff_CurrVol;
#endif
STATIC bool check_path(const TCHAR **path, const char *mount_point_str, mp_uint_t mount_point_len) { STATIC bool check_path(const TCHAR **path, const char *mount_point_str, mp_uint_t mount_point_len) {
if (strncmp(*path, mount_point_str, mount_point_len) == 0) { if (strncmp(*path, mount_point_str, mount_point_len) == 0) {
if ((*path)[mount_point_len] == '/') { if ((*path)[mount_point_len] == '/') {
......
...@@ -37,5 +37,3 @@ extern uint32_t _heap_start; ...@@ -37,5 +37,3 @@ extern uint32_t _heap_start;
extern uint32_t _heap_end; extern uint32_t _heap_end;
extern uint32_t _estack; extern uint32_t _estack;
extern uint32_t _ram_end; extern uint32_t _ram_end;
void gc_collect(void);
...@@ -28,7 +28,6 @@ ...@@ -28,7 +28,6 @@
#include "py/lexer.h" #include "py/lexer.h"
#include "lib/fatfs/ff.h" #include "lib/fatfs/ff.h"
#include "lexerfatfs.h"
typedef struct _mp_lexer_file_buf_t { typedef struct _mp_lexer_file_buf_t {
FIL fp; FIL fp;
......
/*
* This file is part of the Micro Python project, http://micropython.org/
*
* The MIT License (MIT)
*
* Copyright (c) 2013, 2014 Damien P. George
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
* in the Software without restriction, including without limitation the rights
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
mp_lexer_t *mp_lexer_new_from_file(const char *filename);
...@@ -82,5 +82,4 @@ void mod_network_convert_ipv4_endianness(uint8_t *ip); ...@@ -82,5 +82,4 @@ void mod_network_convert_ipv4_endianness(uint8_t *ip);
void mod_network_parse_ipv4_addr(mp_obj_t addr_in, uint8_t *out_ip); void mod_network_parse_ipv4_addr(mp_obj_t addr_in, uint8_t *out_ip);
mp_uint_t mod_network_parse_inet_addr(mp_obj_t addr_in, uint8_t *out_ip); mp_uint_t mod_network_parse_inet_addr(mp_obj_t addr_in, uint8_t *out_ip);
mp_obj_t mod_network_format_ipv4_addr(uint8_t *ip); mp_obj_t mod_network_format_ipv4_addr(uint8_t *ip);
mp_obj_t mod_network_format_ipv4_addr(uint8_t *ip);
mp_obj_t mod_network_format_inet_addr(uint8_t *ip, mp_uint_t port); mp_obj_t mod_network_format_inet_addr(uint8_t *ip, mp_uint_t port);
...@@ -59,10 +59,6 @@ void pendsv_nlr_jump(void *o) { ...@@ -59,10 +59,6 @@ void pendsv_nlr_jump(void *o) {
} }
} }
// since we play tricks with the stack, the compiler must not generate a
// prelude for this function
void pendsv_isr_handler(void) __attribute__((naked));
void pendsv_isr_handler(void) { void pendsv_isr_handler(void) {
// re-jig the stack so that when we return from this interrupt handler // re-jig the stack so that when we return from this interrupt handler
// it returns instead to nlr_jump with argument pendsv_object // it returns instead to nlr_jump with argument pendsv_object
......
...@@ -26,4 +26,7 @@ ...@@ -26,4 +26,7 @@
void pendsv_init(void); void pendsv_init(void);
void pendsv_nlr_jump(void *val); void pendsv_nlr_jump(void *val);
void pendsv_isr_handler(void);
// since we play tricks with the stack, the compiler must not generate a
// prelude for this function
void pendsv_isr_handler(void) __attribute__((naked));
...@@ -261,7 +261,6 @@ STATIC mp_obj_t sd_power(mp_obj_t self, mp_obj_t state) { ...@@ -261,7 +261,6 @@ STATIC mp_obj_t sd_power(mp_obj_t self, mp_obj_t state) {
STATIC MP_DEFINE_CONST_FUN_OBJ_2(sd_power_obj, sd_power); STATIC MP_DEFINE_CONST_FUN_OBJ_2(sd_power_obj, sd_power);
STATIC mp_obj_t sd_info(mp_obj_t self) { STATIC mp_obj_t sd_info(mp_obj_t self) {
HAL_SD_ErrorTypedef HAL_SD_Init(SD_HandleTypeDef *hsd, HAL_SD_CardInfoTypedef *SDCardInfo);
if (sd_handle.Instance == NULL) { if (sd_handle.Instance == NULL) {
return mp_const_none; return mp_const_none;
} }
......
...@@ -71,6 +71,7 @@ ...@@ -71,6 +71,7 @@
#include "stm32f4xx_hal.h" #include "stm32f4xx_hal.h"
#include "py/obj.h" #include "py/obj.h"
#include "pendsv.h"
#include "extint.h" #include "extint.h"
#include "timer.h" #include "timer.h"
#include "uart.h" #include "uart.h"
...@@ -162,7 +163,6 @@ void DebugMon_Handler(void) { ...@@ -162,7 +163,6 @@ void DebugMon_Handler(void) {
* @retval None * @retval None
*/ */
void PendSV_Handler(void) { void PendSV_Handler(void) {
extern void pendsv_isr_handler(void);
pendsv_isr_handler(); pendsv_isr_handler();
} }
......
...@@ -42,6 +42,7 @@ ...@@ -42,6 +42,7 @@
#include "pendsv.h" #include "pendsv.h"
#include "py/obj.h" #include "py/obj.h"
#include "timer.h"
#include "usb.h" #include "usb.h"
// CDC control commands // CDC control commands
......
...@@ -29,7 +29,6 @@ ...@@ -29,7 +29,6 @@
****************************************************************************** ******************************************************************************
*/ */
extern TIM_HandleTypeDef TIM3_Handle;
extern const USBD_CDC_ItfTypeDef USBD_CDC_fops; extern const USBD_CDC_ItfTypeDef USBD_CDC_fops;
void USBD_CDC_HAL_TIM_PeriodElapsedCallback(void); void USBD_CDC_HAL_TIM_PeriodElapsedCallback(void);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment