Change port name to cxd56

This commit is contained in:
Kamil Tomaszewski 2019-10-11 08:09:15 +02:00
parent 0a48282e51
commit 1fa8841d20
61 changed files with 63 additions and 63 deletions

4
.gitmodules vendored
View File

@ -98,6 +98,6 @@
[submodule "ports/stm32f4/stm32f4"] [submodule "ports/stm32f4/stm32f4"]
path = ports/stm32f4/stm32f4 path = ports/stm32f4/stm32f4
url = https://github.com/adafruit/stm32f4.git url = https://github.com/adafruit/stm32f4.git
[submodule "ports/spresense/spresense-exported-sdk"] [submodule "ports/cxd56/spresense-exported-sdk"]
path = ports/spresense/spresense-exported-sdk path = ports/cxd56/spresense-exported-sdk
url = https://github.com/sonydevworld/spresense-exported-sdk.git url = https://github.com/sonydevworld/spresense-exported-sdk.git

View File

@ -125,6 +125,7 @@ exclude_patterns = ["**/build*",
"ports/cc3200", "ports/cc3200",
"ports/cc3200/FreeRTOS", "ports/cc3200/FreeRTOS",
"ports/cc3200/hal", "ports/cc3200/hal",
"ports/cxd56/spresense-exported-sdk",
"ports/esp32", "ports/esp32",
"ports/esp8266/boards", "ports/esp8266/boards",
"ports/esp8266/common-hal", "ports/esp8266/common-hal",
@ -142,7 +143,6 @@ exclude_patterns = ["**/build*",
"ports/stm32f4/README.md", "ports/stm32f4/README.md",
"ports/pic16bit", "ports/pic16bit",
"ports/qemu-arm", "ports/qemu-arm",
"ports/spresense/spresense-exported-sdk",
"ports/stm32", "ports/stm32",
"ports/stm32/hal", "ports/stm32/hal",
"ports/stm32/cmsis", "ports/stm32/cmsis",

View File

@ -10,4 +10,4 @@ and ESP8266.
../ports/atmel-samd/README ../ports/atmel-samd/README
../ports/esp8266/README ../ports/esp8266/README
../ports/nrf/README ../ports/nrf/README
../ports/spresense/README ../ports/cxd56/README

View File

@ -33,9 +33,9 @@ Build the MicroPython cross-compiler:
$ make -C mpy-cross $ make -C mpy-cross
Change directory to spresense: Change directory to cxd56:
$ cd ports/spresense $ cd ports/cxd56
To build circuitpython image run: To build circuitpython image run:

View File

@ -24,10 +24,10 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#ifndef MICROPY_INCLUDED_SPRESENSE_BACKGROUND_H #ifndef MICROPY_INCLUDED_CXD56_BACKGROUND_H
#define MICROPY_INCLUDED_SPRESENSE_BACKGROUND_H #define MICROPY_INCLUDED_CXD56_BACKGROUND_H
void background_tasks_reset(void); void background_tasks_reset(void);
void run_background_tasks(void); void run_background_tasks(void);
#endif // MICROPY_INCLUDED_SPRESENSE_BACKGROUND_H #endif // MICROPY_INCLUDED_CXD56_BACKGROUND_H

View File

@ -24,8 +24,8 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_ANALOGIO_ANALOGIN_H #ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_ANALOGIO_ANALOGIN_H
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_ANALOGIO_ANALOGIN_H #define MICROPY_INCLUDED_CXD56_COMMON_HAL_ANALOGIO_ANALOGIN_H
#include "py/obj.h" #include "py/obj.h"
@ -39,4 +39,4 @@ typedef struct {
void analogin_reset(void); void analogin_reset(void);
#endif // MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_ANALOGIO_ANALOGIN_H #endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_ANALOGIO_ANALOGIN_H

View File

@ -24,8 +24,8 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_ANALOGIO_ANALOGOUT_H #ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_ANALOGIO_ANALOGOUT_H
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_ANALOGIO_ANALOGOUT_H #define MICROPY_INCLUDED_CXD56_COMMON_HAL_ANALOGIO_ANALOGOUT_H
#include "py/obj.h" #include "py/obj.h"
@ -33,4 +33,4 @@ typedef struct {
mp_obj_base_t base; mp_obj_base_t base;
} analogio_analogout_obj_t; } analogio_analogout_obj_t;
#endif // MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_ANALOGIO_ANALOGOUT_H #endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_ANALOGIO_ANALOGOUT_H

View File

@ -24,8 +24,8 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_BUSIO_I2C_H #ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_I2C_H
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_BUSIO_I2C_H #define MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_I2C_H
#include "py/obj.h" #include "py/obj.h"
@ -40,4 +40,4 @@ typedef struct {
const mcu_pin_obj_t *sda_pin; const mcu_pin_obj_t *sda_pin;
} busio_i2c_obj_t; } busio_i2c_obj_t;
#endif // MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_BUSIO_I2C_H #endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_I2C_H

View File

@ -24,10 +24,10 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_BUSIO_ONEWIRE_H #ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_ONEWIRE_H
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_BUSIO_ONEWIRE_H #define MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_ONEWIRE_H
// Use bitbangio. // Use bitbangio.
#include "shared-module/busio/OneWire.h" #include "shared-module/busio/OneWire.h"
#endif // MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_BUSIO_ONEWIRE_H #endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_ONEWIRE_H

View File

@ -24,8 +24,8 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_BUSIO_SPI_H #ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_SPI_H
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_BUSIO_SPI_H #define MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_SPI_H
#include <nuttx/spi/spi.h> #include <nuttx/spi/spi.h>
@ -46,4 +46,4 @@ typedef struct {
const mcu_pin_obj_t *miso_pin; const mcu_pin_obj_t *miso_pin;
} busio_spi_obj_t; } busio_spi_obj_t;
#endif // MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_BUSIO_SPI_H #endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_SPI_H

View File

@ -24,8 +24,8 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_BUSIO_UART_H #ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_UART_H
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_BUSIO_UART_H #define MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_UART_H
#include "py/obj.h" #include "py/obj.h"
@ -40,4 +40,4 @@ typedef struct {
uint32_t timeout; uint32_t timeout;
} busio_uart_obj_t; } busio_uart_obj_t;
#endif // MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_BUSIO_UART_H #endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_UART_H

View File

@ -24,8 +24,8 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_DIGITALIO_DIGITALINOUT_H #ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_DIGITALIO_DIGITALINOUT_H
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_DIGITALIO_DIGITALINOUT_H #define MICROPY_INCLUDED_CXD56_COMMON_HAL_DIGITALIO_DIGITALINOUT_H
#include "py/obj.h" #include "py/obj.h"
@ -39,4 +39,4 @@ typedef struct {
uint8_t pull; uint8_t pull;
} digitalio_digitalinout_obj_t; } digitalio_digitalinout_obj_t;
#endif // MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_DIGITALIO_DIGITALINOUT_H #endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_DIGITALIO_DIGITALINOUT_H

View File

@ -24,8 +24,8 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_MICROCONTROLLER_PIN_H #ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_MICROCONTROLLER_PIN_H
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_MICROCONTROLLER_PIN_H #define MICROPY_INCLUDED_CXD56_COMMON_HAL_MICROCONTROLLER_PIN_H
#include "py/obj.h" #include "py/obj.h"
@ -89,4 +89,4 @@ void reset_pin_number(uint8_t pin_number);
void reset_all_pins(void); void reset_all_pins(void);
void claim_pin(const mcu_pin_obj_t* pin); void claim_pin(const mcu_pin_obj_t* pin);
#endif // MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_MICROCONTROLLER_PIN_H #endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_MICROCONTROLLER_PIN_H

View File

@ -24,8 +24,8 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H #ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H #define MICROPY_INCLUDED_CXD56_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H
#define COMMON_HAL_MCU_PROCESSOR_UID_LENGTH CONFIG_BOARDCTL_UNIQUEID_SIZE #define COMMON_HAL_MCU_PROCESSOR_UID_LENGTH CONFIG_BOARDCTL_UNIQUEID_SIZE
@ -37,4 +37,4 @@ typedef struct {
const mp_obj_type_t mcu_processor_type; const mp_obj_type_t mcu_processor_type;
#endif // MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H #endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H

View File

@ -24,8 +24,8 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_PULSEIO_PWMOUT_H #ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_PULSEIO_PWMOUT_H
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_PULSEIO_PWMOUT_H #define MICROPY_INCLUDED_CXD56_COMMON_HAL_PULSEIO_PWMOUT_H
#include <nuttx/drivers/pwm.h> #include <nuttx/drivers/pwm.h>
@ -45,4 +45,4 @@ void pwmout_reset(void);
void pwmout_start(uint8_t pwm_num); void pwmout_start(uint8_t pwm_num);
void pwmout_stop(uint8_t pwm_num); void pwmout_stop(uint8_t pwm_num);
#endif // MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_PULSEIO_PWMOUT_H #endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_PULSEIO_PWMOUT_H

View File

@ -24,8 +24,8 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_PULSEIO_PULSEIN_H #ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_PULSEIO_PULSEIN_H
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_PULSEIO_PULSEIN_H #define MICROPY_INCLUDED_CXD56_COMMON_HAL_PULSEIO_PULSEIN_H
#include "common-hal/microcontroller/Pin.h" #include "common-hal/microcontroller/Pin.h"
@ -44,4 +44,4 @@ typedef struct {
bool paused; bool paused;
} pulseio_pulsein_obj_t; } pulseio_pulsein_obj_t;
#endif // MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_PULSEIO_PULSEIN_H #endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_PULSEIO_PULSEIN_H

View File

@ -24,8 +24,8 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_PULSEIO_PULSEOUT_H #ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_PULSEIO_PULSEOUT_H
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_PULSEIO_PULSEOUT_H #define MICROPY_INCLUDED_CXD56_COMMON_HAL_PULSEIO_PULSEOUT_H
#include "py/obj.h" #include "py/obj.h"
@ -36,4 +36,4 @@ typedef struct {
void pulseout_reset(void); void pulseout_reset(void);
#endif // MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_PULSEIO_PULSEOUT_H #endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_PULSEIO_PULSEOUT_H

View File

@ -24,7 +24,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_RTC_RTC_H #ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_RTC_RTC_H
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_RTC_RTC_H #define MICROPY_INCLUDED_CXD56_COMMON_HAL_RTC_RTC_H
#endif // MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_RTC_RTC_H #endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_RTC_RTC_H

View File

@ -24,8 +24,8 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_SUPERVISOR_RUNTIME_H #ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_SUPERVISOR_RUNTIME_H
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_SUPERVISOR_RUNTIME_H #define MICROPY_INCLUDED_CXD56_COMMON_HAL_SUPERVISOR_RUNTIME_H
#include "py/obj.h" #include "py/obj.h"
@ -33,4 +33,4 @@ typedef struct {
mp_obj_base_t base; mp_obj_base_t base;
} super_runtime_obj_t; } super_runtime_obj_t;
#endif // MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_SUPERVISOR_RUNTIME_H #endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_SUPERVISOR_RUNTIME_H

View File

@ -24,8 +24,8 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#ifndef MICROPY_INCLUDED_SPRESENSE_MPHALPORT_H #ifndef MICROPY_INCLUDED_CXD56_MPHALPORT_H
#define MICROPY_INCLUDED_SPRESENSE_MPHALPORT_H #define MICROPY_INCLUDED_CXD56_MPHALPORT_H
#include <sys/types.h> #include <sys/types.h>
@ -33,4 +33,4 @@
extern volatile uint64_t ticks_ms; extern volatile uint64_t ticks_ms;
#endif // MICROPY_INCLUDED_SPRESENSE_MPHALPORT_H #endif // MICROPY_INCLUDED_CXD56_MPHALPORT_H

View File

@ -24,7 +24,7 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#ifndef MICROPY_INCLUDED_SPRESENSE_INTERNAL_FLASH_H #ifndef MICROPY_INCLUDED_CXD56_INTERNAL_FLASH_H
#define MICROPY_INCLUDED_SPRESENSE_INTERNAL_FLASH_H #define MICROPY_INCLUDED_CXD56_INTERNAL_FLASH_H
#endif // MICROPY_INCLUDED_SPRESENSE_INTERNAL_FLASH_H #endif // MICROPY_INCLUDED_CXD56_INTERNAL_FLASH_H

View File

@ -23,9 +23,9 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#ifndef MICROPY_INCLUDED_SPRESENSE_INTERNAL_FLASH_ROOT_POINTERS_H #ifndef MICROPY_INCLUDED_CXD56_INTERNAL_FLASH_ROOT_POINTERS_H
#define MICROPY_INCLUDED_SPRESENSE_INTERNAL_FLASH_ROOT_POINTERS_H #define MICROPY_INCLUDED_CXD56_INTERNAL_FLASH_ROOT_POINTERS_H
#define FLASH_ROOT_POINTERS #define FLASH_ROOT_POINTERS
#endif // MICROPY_INCLUDED_SPRESENSE_INTERNAL_FLASH_ROOT_POINTERS_H #endif // MICROPY_INCLUDED_CXD56_INTERNAL_FLASH_ROOT_POINTERS_H

View File

@ -24,11 +24,11 @@
* THE SOFTWARE. * THE SOFTWARE.
*/ */
#ifndef MICROPY_INCLUDED_SPRESENSE_TICK_H #ifndef MICROPY_INCLUDED_CXD56_TICK_H
#define MICROPY_INCLUDED_SPRESENSE_TICK_H #define MICROPY_INCLUDED_CXD56_TICK_H
#include "py/mpconfig.h" #include "py/mpconfig.h"
extern volatile uint64_t ticks_ms; extern volatile uint64_t ticks_ms;
#endif // MICROPY_INCLUDED_SPRESENSE_TICK_H #endif // MICROPY_INCLUDED_CXD56_TICK_H