Change port name to cxd56
This commit is contained in:
parent
0a48282e51
commit
1fa8841d20
4
.gitmodules
vendored
4
.gitmodules
vendored
@ -98,6 +98,6 @@
|
||||
[submodule "ports/stm32f4/stm32f4"]
|
||||
path = ports/stm32f4/stm32f4
|
||||
url = https://github.com/adafruit/stm32f4.git
|
||||
[submodule "ports/spresense/spresense-exported-sdk"]
|
||||
path = ports/spresense/spresense-exported-sdk
|
||||
[submodule "ports/cxd56/spresense-exported-sdk"]
|
||||
path = ports/cxd56/spresense-exported-sdk
|
||||
url = https://github.com/sonydevworld/spresense-exported-sdk.git
|
||||
|
2
conf.py
2
conf.py
@ -125,6 +125,7 @@ exclude_patterns = ["**/build*",
|
||||
"ports/cc3200",
|
||||
"ports/cc3200/FreeRTOS",
|
||||
"ports/cc3200/hal",
|
||||
"ports/cxd56/spresense-exported-sdk",
|
||||
"ports/esp32",
|
||||
"ports/esp8266/boards",
|
||||
"ports/esp8266/common-hal",
|
||||
@ -142,7 +143,6 @@ exclude_patterns = ["**/build*",
|
||||
"ports/stm32f4/README.md",
|
||||
"ports/pic16bit",
|
||||
"ports/qemu-arm",
|
||||
"ports/spresense/spresense-exported-sdk",
|
||||
"ports/stm32",
|
||||
"ports/stm32/hal",
|
||||
"ports/stm32/cmsis",
|
||||
|
@ -10,4 +10,4 @@ and ESP8266.
|
||||
../ports/atmel-samd/README
|
||||
../ports/esp8266/README
|
||||
../ports/nrf/README
|
||||
../ports/spresense/README
|
||||
../ports/cxd56/README
|
||||
|
@ -33,9 +33,9 @@ Build the MicroPython cross-compiler:
|
||||
|
||||
$ make -C mpy-cross
|
||||
|
||||
Change directory to spresense:
|
||||
Change directory to cxd56:
|
||||
|
||||
$ cd ports/spresense
|
||||
$ cd ports/cxd56
|
||||
|
||||
To build circuitpython image run:
|
||||
|
@ -24,10 +24,10 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef MICROPY_INCLUDED_SPRESENSE_BACKGROUND_H
|
||||
#define MICROPY_INCLUDED_SPRESENSE_BACKGROUND_H
|
||||
#ifndef MICROPY_INCLUDED_CXD56_BACKGROUND_H
|
||||
#define MICROPY_INCLUDED_CXD56_BACKGROUND_H
|
||||
|
||||
void background_tasks_reset(void);
|
||||
void run_background_tasks(void);
|
||||
|
||||
#endif // MICROPY_INCLUDED_SPRESENSE_BACKGROUND_H
|
||||
#endif // MICROPY_INCLUDED_CXD56_BACKGROUND_H
|
@ -24,8 +24,8 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_ANALOGIO_ANALOGIN_H
|
||||
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_ANALOGIO_ANALOGIN_H
|
||||
#ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_ANALOGIO_ANALOGIN_H
|
||||
#define MICROPY_INCLUDED_CXD56_COMMON_HAL_ANALOGIO_ANALOGIN_H
|
||||
|
||||
#include "py/obj.h"
|
||||
|
||||
@ -39,4 +39,4 @@ typedef struct {
|
||||
|
||||
void analogin_reset(void);
|
||||
|
||||
#endif // MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_ANALOGIO_ANALOGIN_H
|
||||
#endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_ANALOGIO_ANALOGIN_H
|
@ -24,8 +24,8 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_ANALOGIO_ANALOGOUT_H
|
||||
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_ANALOGIO_ANALOGOUT_H
|
||||
#ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_ANALOGIO_ANALOGOUT_H
|
||||
#define MICROPY_INCLUDED_CXD56_COMMON_HAL_ANALOGIO_ANALOGOUT_H
|
||||
|
||||
#include "py/obj.h"
|
||||
|
||||
@ -33,4 +33,4 @@ typedef struct {
|
||||
mp_obj_base_t base;
|
||||
} analogio_analogout_obj_t;
|
||||
|
||||
#endif // MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_ANALOGIO_ANALOGOUT_H
|
||||
#endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_ANALOGIO_ANALOGOUT_H
|
@ -24,8 +24,8 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_BUSIO_I2C_H
|
||||
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_BUSIO_I2C_H
|
||||
#ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_I2C_H
|
||||
#define MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_I2C_H
|
||||
|
||||
#include "py/obj.h"
|
||||
|
||||
@ -40,4 +40,4 @@ typedef struct {
|
||||
const mcu_pin_obj_t *sda_pin;
|
||||
} busio_i2c_obj_t;
|
||||
|
||||
#endif // MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_BUSIO_I2C_H
|
||||
#endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_I2C_H
|
@ -24,10 +24,10 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_BUSIO_ONEWIRE_H
|
||||
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_BUSIO_ONEWIRE_H
|
||||
#ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_ONEWIRE_H
|
||||
#define MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_ONEWIRE_H
|
||||
|
||||
// Use bitbangio.
|
||||
#include "shared-module/busio/OneWire.h"
|
||||
|
||||
#endif // MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_BUSIO_ONEWIRE_H
|
||||
#endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_ONEWIRE_H
|
@ -24,8 +24,8 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_BUSIO_SPI_H
|
||||
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_BUSIO_SPI_H
|
||||
#ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_SPI_H
|
||||
#define MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_SPI_H
|
||||
|
||||
#include <nuttx/spi/spi.h>
|
||||
|
||||
@ -46,4 +46,4 @@ typedef struct {
|
||||
const mcu_pin_obj_t *miso_pin;
|
||||
} busio_spi_obj_t;
|
||||
|
||||
#endif // MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_BUSIO_SPI_H
|
||||
#endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_SPI_H
|
@ -24,8 +24,8 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_BUSIO_UART_H
|
||||
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_BUSIO_UART_H
|
||||
#ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_UART_H
|
||||
#define MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_UART_H
|
||||
|
||||
#include "py/obj.h"
|
||||
|
||||
@ -40,4 +40,4 @@ typedef struct {
|
||||
uint32_t timeout;
|
||||
} busio_uart_obj_t;
|
||||
|
||||
#endif // MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_BUSIO_UART_H
|
||||
#endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_BUSIO_UART_H
|
@ -24,8 +24,8 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_DIGITALIO_DIGITALINOUT_H
|
||||
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_DIGITALIO_DIGITALINOUT_H
|
||||
#ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_DIGITALIO_DIGITALINOUT_H
|
||||
#define MICROPY_INCLUDED_CXD56_COMMON_HAL_DIGITALIO_DIGITALINOUT_H
|
||||
|
||||
#include "py/obj.h"
|
||||
|
||||
@ -39,4 +39,4 @@ typedef struct {
|
||||
uint8_t pull;
|
||||
} digitalio_digitalinout_obj_t;
|
||||
|
||||
#endif // MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_DIGITALIO_DIGITALINOUT_H
|
||||
#endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_DIGITALIO_DIGITALINOUT_H
|
@ -24,8 +24,8 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_MICROCONTROLLER_PIN_H
|
||||
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_MICROCONTROLLER_PIN_H
|
||||
#ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_MICROCONTROLLER_PIN_H
|
||||
#define MICROPY_INCLUDED_CXD56_COMMON_HAL_MICROCONTROLLER_PIN_H
|
||||
|
||||
#include "py/obj.h"
|
||||
|
||||
@ -89,4 +89,4 @@ void reset_pin_number(uint8_t pin_number);
|
||||
void reset_all_pins(void);
|
||||
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
|
@ -24,8 +24,8 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H
|
||||
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H
|
||||
#ifndef MICROPY_INCLUDED_CXD56_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
|
||||
|
||||
@ -37,4 +37,4 @@ typedef struct {
|
||||
|
||||
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
|
@ -24,8 +24,8 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_PULSEIO_PWMOUT_H
|
||||
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_PULSEIO_PWMOUT_H
|
||||
#ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_PULSEIO_PWMOUT_H
|
||||
#define MICROPY_INCLUDED_CXD56_COMMON_HAL_PULSEIO_PWMOUT_H
|
||||
|
||||
#include <nuttx/drivers/pwm.h>
|
||||
|
||||
@ -45,4 +45,4 @@ void pwmout_reset(void);
|
||||
void pwmout_start(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
|
@ -24,8 +24,8 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_PULSEIO_PULSEIN_H
|
||||
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_PULSEIO_PULSEIN_H
|
||||
#ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_PULSEIO_PULSEIN_H
|
||||
#define MICROPY_INCLUDED_CXD56_COMMON_HAL_PULSEIO_PULSEIN_H
|
||||
|
||||
#include "common-hal/microcontroller/Pin.h"
|
||||
|
||||
@ -44,4 +44,4 @@ typedef struct {
|
||||
bool paused;
|
||||
} pulseio_pulsein_obj_t;
|
||||
|
||||
#endif // MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_PULSEIO_PULSEIN_H
|
||||
#endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_PULSEIO_PULSEIN_H
|
@ -24,8 +24,8 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_PULSEIO_PULSEOUT_H
|
||||
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_PULSEIO_PULSEOUT_H
|
||||
#ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_PULSEIO_PULSEOUT_H
|
||||
#define MICROPY_INCLUDED_CXD56_COMMON_HAL_PULSEIO_PULSEOUT_H
|
||||
|
||||
#include "py/obj.h"
|
||||
|
||||
@ -36,4 +36,4 @@ typedef struct {
|
||||
|
||||
void pulseout_reset(void);
|
||||
|
||||
#endif // MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_PULSEIO_PULSEOUT_H
|
||||
#endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_PULSEIO_PULSEOUT_H
|
@ -24,7 +24,7 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_RTC_RTC_H
|
||||
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_RTC_RTC_H
|
||||
#ifndef MICROPY_INCLUDED_CXD56_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
|
@ -24,8 +24,8 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_SUPERVISOR_RUNTIME_H
|
||||
#define MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_SUPERVISOR_RUNTIME_H
|
||||
#ifndef MICROPY_INCLUDED_CXD56_COMMON_HAL_SUPERVISOR_RUNTIME_H
|
||||
#define MICROPY_INCLUDED_CXD56_COMMON_HAL_SUPERVISOR_RUNTIME_H
|
||||
|
||||
#include "py/obj.h"
|
||||
|
||||
@ -33,4 +33,4 @@ typedef struct {
|
||||
mp_obj_base_t base;
|
||||
} super_runtime_obj_t;
|
||||
|
||||
#endif // MICROPY_INCLUDED_SPRESENSE_COMMON_HAL_SUPERVISOR_RUNTIME_H
|
||||
#endif // MICROPY_INCLUDED_CXD56_COMMON_HAL_SUPERVISOR_RUNTIME_H
|
@ -24,8 +24,8 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef MICROPY_INCLUDED_SPRESENSE_MPHALPORT_H
|
||||
#define MICROPY_INCLUDED_SPRESENSE_MPHALPORT_H
|
||||
#ifndef MICROPY_INCLUDED_CXD56_MPHALPORT_H
|
||||
#define MICROPY_INCLUDED_CXD56_MPHALPORT_H
|
||||
|
||||
#include <sys/types.h>
|
||||
|
||||
@ -33,4 +33,4 @@
|
||||
|
||||
extern volatile uint64_t ticks_ms;
|
||||
|
||||
#endif // MICROPY_INCLUDED_SPRESENSE_MPHALPORT_H
|
||||
#endif // MICROPY_INCLUDED_CXD56_MPHALPORT_H
|
@ -24,7 +24,7 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef MICROPY_INCLUDED_SPRESENSE_INTERNAL_FLASH_H
|
||||
#define MICROPY_INCLUDED_SPRESENSE_INTERNAL_FLASH_H
|
||||
#ifndef MICROPY_INCLUDED_CXD56_INTERNAL_FLASH_H
|
||||
#define MICROPY_INCLUDED_CXD56_INTERNAL_FLASH_H
|
||||
|
||||
#endif // MICROPY_INCLUDED_SPRESENSE_INTERNAL_FLASH_H
|
||||
#endif // MICROPY_INCLUDED_CXD56_INTERNAL_FLASH_H
|
@ -23,9 +23,9 @@
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
#ifndef MICROPY_INCLUDED_SPRESENSE_INTERNAL_FLASH_ROOT_POINTERS_H
|
||||
#define MICROPY_INCLUDED_SPRESENSE_INTERNAL_FLASH_ROOT_POINTERS_H
|
||||
#ifndef MICROPY_INCLUDED_CXD56_INTERNAL_FLASH_ROOT_POINTERS_H
|
||||
#define MICROPY_INCLUDED_CXD56_INTERNAL_FLASH_ROOT_POINTERS_H
|
||||
|
||||
#define FLASH_ROOT_POINTERS
|
||||
|
||||
#endif // MICROPY_INCLUDED_SPRESENSE_INTERNAL_FLASH_ROOT_POINTERS_H
|
||||
#endif // MICROPY_INCLUDED_CXD56_INTERNAL_FLASH_ROOT_POINTERS_H
|
@ -24,11 +24,11 @@
|
||||
* THE SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef MICROPY_INCLUDED_SPRESENSE_TICK_H
|
||||
#define MICROPY_INCLUDED_SPRESENSE_TICK_H
|
||||
#ifndef MICROPY_INCLUDED_CXD56_TICK_H
|
||||
#define MICROPY_INCLUDED_CXD56_TICK_H
|
||||
|
||||
#include "py/mpconfig.h"
|
||||
|
||||
extern volatile uint64_t ticks_ms;
|
||||
|
||||
#endif // MICROPY_INCLUDED_SPRESENSE_TICK_H
|
||||
#endif // MICROPY_INCLUDED_CXD56_TICK_H
|
Loading…
Reference in New Issue
Block a user