Change port name to cxd56

crypto-aes
Kamil Tomaszewski 3 years ago
parent 0a48282e51
commit 1fa8841d20
  1. 4
      .gitmodules
  2. 2
      conf.py
  3. 2
      docs/supported_ports.rst
  4. 0
      ports/cxd56/Makefile
  5. 4
      ports/cxd56/README.md
  6. 0
      ports/cxd56/alloca.h
  7. 0
      ports/cxd56/background.c
  8. 6
      ports/cxd56/background.h
  9. 0
      ports/cxd56/common-hal/analogio/AnalogIn.c
  10. 6
      ports/cxd56/common-hal/analogio/AnalogIn.h
  11. 0
      ports/cxd56/common-hal/analogio/AnalogOut.c
  12. 6
      ports/cxd56/common-hal/analogio/AnalogOut.h
  13. 0
      ports/cxd56/common-hal/analogio/__init__.c
  14. 0
      ports/cxd56/common-hal/board/__init__.c
  15. 0
      ports/cxd56/common-hal/busio/I2C.c
  16. 6
      ports/cxd56/common-hal/busio/I2C.h
  17. 6
      ports/cxd56/common-hal/busio/OneWire.h
  18. 0
      ports/cxd56/common-hal/busio/SPI.c
  19. 6
      ports/cxd56/common-hal/busio/SPI.h
  20. 0
      ports/cxd56/common-hal/busio/UART.c
  21. 6
      ports/cxd56/common-hal/busio/UART.h
  22. 0
      ports/cxd56/common-hal/busio/__init__.c
  23. 0
      ports/cxd56/common-hal/digitalio/DigitalInOut.c
  24. 6
      ports/cxd56/common-hal/digitalio/DigitalInOut.h
  25. 0
      ports/cxd56/common-hal/digitalio/__init__.c
  26. 0
      ports/cxd56/common-hal/microcontroller/Pin.c
  27. 6
      ports/cxd56/common-hal/microcontroller/Pin.h
  28. 0
      ports/cxd56/common-hal/microcontroller/Processor.c
  29. 6
      ports/cxd56/common-hal/microcontroller/Processor.h
  30. 0
      ports/cxd56/common-hal/microcontroller/__init__.c
  31. 0
      ports/cxd56/common-hal/os/__init__.c
  32. 0
      ports/cxd56/common-hal/pulseio/PWMOut.c
  33. 6
      ports/cxd56/common-hal/pulseio/PWMOut.h
  34. 0
      ports/cxd56/common-hal/pulseio/PulseIn.c
  35. 6
      ports/cxd56/common-hal/pulseio/PulseIn.h
  36. 0
      ports/cxd56/common-hal/pulseio/PulseOut.c
  37. 6
      ports/cxd56/common-hal/pulseio/PulseOut.h
  38. 0
      ports/cxd56/common-hal/pulseio/__init__.c
  39. 0
      ports/cxd56/common-hal/rtc/RTC.c
  40. 6
      ports/cxd56/common-hal/rtc/RTC.h
  41. 0
      ports/cxd56/common-hal/rtc/__init__.c
  42. 0
      ports/cxd56/common-hal/supervisor/Runtime.c
  43. 6
      ports/cxd56/common-hal/supervisor/Runtime.h
  44. 0
      ports/cxd56/common-hal/supervisor/__init__.c
  45. 0
      ports/cxd56/common-hal/time/__init__.c
  46. 0
      ports/cxd56/fatfs_port.c
  47. 0
      ports/cxd56/mpconfigboard.h
  48. 0
      ports/cxd56/mpconfigport.h
  49. 0
      ports/cxd56/mpconfigport.mk
  50. 0
      ports/cxd56/mphalport.c
  51. 6
      ports/cxd56/mphalport.h
  52. 0
      ports/cxd56/qstrdefsport.h
  53. 0
      ports/cxd56/spresense-exported-sdk
  54. 0
      ports/cxd56/supervisor/cpu.s
  55. 0
      ports/cxd56/supervisor/internal_flash.c
  56. 6
      ports/cxd56/supervisor/internal_flash.h
  57. 6
      ports/cxd56/supervisor/internal_flash_root_pointers.h
  58. 0
      ports/cxd56/supervisor/port.c
  59. 0
      ports/cxd56/supervisor/usb.c
  60. 0
      ports/cxd56/tick.c
  61. 6
      ports/cxd56/tick.h

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

@ -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…
Cancel
Save